Equations
- Lean.Meta.instReprElimAltInfo = { reprPrec := [anonymous] }
Equations
- Lean.Meta.instInhabitedElimAltInfo = { default := { name := default, numFields := default } }
- name : Lean.Name
- motivePos : Nat
- altsInfo : Array Lean.Meta.ElimAltInfo
Equations
- Lean.Meta.instReprElimInfo = { reprPrec := [anonymous] }
Equations
- Lean.Meta.instInhabitedElimInfo = { default := { name := default, motivePos := default, targetsPos := default, altsInfo := default } }
Equations
- One or more equations did not get rendered due to their size.
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.
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
Equations
- Lean.Meta.instInhabitedCustomEliminator = { default := { typeNames := default, elimInfo := default } }
Equations
- Lean.Meta.instReprCustomEliminator = { reprPrec := [anonymous] }
- map : Lean.SMap (Array Lean.Name) Lean.Meta.ElimInfo
Equations
- Lean.Meta.instInhabitedCustomEliminators = { default := { map := default } }
Equations
- Lean.Meta.instReprCustomEliminators = { reprPrec := [anonymous] }
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 }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.addCustomEliminator declName attrKind = do let e ← Lean.Meta.mkCustomEliminator declName Lean.ScopedEnvExtension.add Lean.Meta.customEliminatorExt e attrKind
Equations
- Lean.Meta.getCustomEliminators = do let a ← Lean.getEnv pure (Lean.ScopedEnvExtension.getState Lean.Meta.customEliminatorExt a)
Equations
- One or more equations did not get rendered due to their size.