Create a unary application by packing the given arguments using PSigma.mk
Equations
- Lean.Elab.WF.mkUnaryArg type args = Lean.Elab.WF.mkUnaryArg.go args 0 type
Instances For
def
Lean.Elab.WF.unpackUnaryArg
{m : Type → Type}
[Monad m]
[Lean.MonadError m]
(arity : Nat)
(e : Lean.Expr)
:
Unpacks a unary packed argument created with mkUnaryArg
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Convert the given pre-definitions into unary functions.
We "pack" the arguments using PSigma
.
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Elab.WF.packDomain.isAppOfPreDef?
(preDefs : Array Lean.Elab.PreDefinition)
(e : Lean.Expr)
:
Return some i
if e
is a preDefs[i]
application
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
Lean.Elab.WF.packDomain.packApplications
(fixedPrefix : Nat)
(preDefs : Array Lean.Elab.PreDefinition)
(e : Lean.Expr)
(arities : Array Nat)
(preDefsNew : Array Lean.Elab.PreDefinition)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
partial def
Lean.Elab.WF.packDomain.packApplications.visit
(preDefs : Array Lean.Elab.PreDefinition)
(arities : Array Nat)
(pack : Lean.Expr → Nat → Lean.MetaM Lean.Expr)
(e : Lean.Expr)
:
partial def
Lean.Elab.WF.packDomain.packApplications.visitApp
(preDefs : Array Lean.Elab.PreDefinition)
(arities : Array Nat)
(pack : Lean.Expr → Nat → Lean.MetaM Lean.Expr)
(e : Lean.Expr)
: