def
Lean.Meta.forallTelescopeCompatibleAux
{α : Type}
(k : Array Lean.Expr → Lean.Expr → Lean.Expr → Lean.MetaM α)
:
Equations
- One or more equations did not get rendered due to their size.
- Lean.Meta.forallTelescopeCompatibleAux k 0 x✝¹ x✝ x = k x x✝¹ x✝
Instances For
def
Lean.Meta.forallTelescopeCompatible
{m : Type → Type u_1}
{α : Type}
[Monad m]
[MonadControlT Lean.MetaM m]
(type₁ : Lean.Expr)
(type₂ : Lean.Expr)
(numParams : Nat)
(k : Array Lean.Expr → Lean.Expr → Lean.Expr → m α)
:
m α
Given two forall-expressions type₁
and type₂
, ensure the first numParams
parameters are compatible, and
then execute k
with the parameters and remaining types.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Elab.expandOptDeclSig stx = if stx[1].isNone = true then (stx[0], none) else let typeSpec := stx[1][0]; (stx[0], some typeSpec[1])
Instances For
Equations
- Lean.Elab.expandDeclSig stx = (stx[0], stx[1][1])
Instances For
def
Lean.Elab.sortDeclLevelParams
(scopeParams : List Lake.Name)
(allUserParams : List Lake.Name)
(usedParams : Array Lake.Name)
:
Sort the given list of usedParams
using the following order:
- If it is an explicit level in
allUserParams
, then use user-given order. - All other levels come in lexicographic order after these.
Remark: scopeParams
are the universe params introduced using the universe
command. allUserParams
contains
the universe params introduced using the universe
command and the .{...}
notation.
Remark: this function return an exception if there is an u
not in usedParams
, that is in allUserParams
but not in scopeParams
.
Remark: scopeParams
and allUserParams
are in reverse declaration order. That is, the head is the last declared parameter.
Equations
- One or more equations did not get rendered due to their size.