splitTelForWith :: TelescopeΔcontext of types and with-arguments.-> TypeΔ ⊢ ttype of rhs.-> [Arg (Term, EqualityView)]Δ ⊢ vs : aswith arguments and their types. Output:-> (Telescope, Telescope, Permutation, Type, [Arg (Term, EqualityView)])(
Δ₁,Δ₂,π,t',vtys') whereΔ₁part of context needed for with arguments and their types.
Δ₂part of context not needed for with arguments and their types.
πpermutation from Δ to Δ₁Δ₂ as returned by
.
Δ₁Δ₂ ⊢ t'type of rhs under
πΔ₁ ⊢ vtys'with-arguments and their types under
π.
Split pattern variables according to with-expressions.