Equations
- Lean.Meta.instReprElimAltInfo = { reprPrec := Lean.Meta.reprElimAltInfo✝ }
Equations
- Lean.Meta.instInhabitedElimAltInfo = { default := { name := default, declName? := default, numFields := default } }
- name : Lake.Name
- motivePos : Nat
- altsInfo : Array Lean.Meta.ElimAltInfo
Instances For
Equations
- Lean.Meta.instReprElimInfo = { reprPrec := Lean.Meta.reprElimInfo✝ }
Equations
- Lean.Meta.instInhabitedElimInfo = { default := { name := default, motivePos := default, targetsPos := default, altsInfo := default } }
def
Lean.Meta.getElimInfo
(declName : Lake.Name)
(baseDeclName? : optParam (Option Lake.Name) none)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
Eliminators/recursors may have implicit targets. For builtin recursors, all indices are implicit targets. Given an eliminator and the sequence of explicit targets, this methods returns a new sequence containing implicit and explicit targets.
Equations
- One or more equations did not get rendered due to their size.
Instances For
partial def
Lean.Meta.addImplicitTargets.collect
(elimInfo : Lean.Meta.ElimInfo)
(targets : Array Lean.Expr)
(type : Lean.Expr)
(argIdx : Nat)
(targetIdx : Nat)
(targets' : Array Lean.Expr)
:
- elimInfo : Lean.Meta.ElimInfo
Instances For
Equations
- Lean.Meta.instInhabitedCustomEliminator = { default := { typeNames := default, elimInfo := default } }
Equations
- Lean.Meta.instReprCustomEliminator = { reprPrec := Lean.Meta.reprCustomEliminator✝ }
- map : Lean.SMap (Array Lake.Name) Lean.Meta.ElimInfo
Instances For
Equations
- Lean.Meta.instInhabitedCustomEliminators = { default := { map := default } }
Equations
- Lean.Meta.instReprCustomEliminators = { reprPrec := Lean.Meta.reprCustomEliminators✝ }
def
Lean.Meta.addCustomEliminatorEntry
(es : Lean.Meta.CustomEliminators)
(e : Lean.Meta.CustomEliminator)
:
Equations
- Lean.Meta.addCustomEliminatorEntry es e = match es with | { map := map } => { map := Lean.SMap.insert map e.typeNames e.elimInfo }
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- Lean.Meta.addCustomEliminator declName attrKind = do let e ← Lean.Meta.mkCustomEliminator declName Lean.ScopedEnvExtension.add Lean.Meta.customEliminatorExt e attrKind
Instances For
Equations
- Lean.Meta.getCustomEliminators = do let __do_lift ← Lean.getEnv pure (Lean.ScopedEnvExtension.getState Lean.Meta.customEliminatorExt __do_lift)
Instances For
Equations
- One or more equations did not get rendered due to their size.