def
Lean.Elab.Structural.addSmartUnfoldingDefAux
(preDef : Lean.Elab.PreDefinition)
(recArgPos : Nat)
:
Equations
- One or more equations did not get rendered due to their size.
Instances For
partial def
Lean.Elab.Structural.addSmartUnfoldingDefAux.visit
(preDef : Lean.Elab.PreDefinition)
(recArgPos : Nat)
(e : Lean.Expr)
:
Auxiliary method for annotating match-alternatives with markSmartUnfoldingMatch and markSmartUnfoldingMatchAlt.
It uses the following approach:
- Whenever it finds a
matchapplicationes.t.recArgHasLooseBVarsAt preDef.declName recArgPos e, it marks thematchwithmarkSmartUnfoldingMatch, and each alternative that does not contain a nested markedmatchis marked withmarkSmartUnfoldingMatchAlt.
Recall that the condition recArgHasLooseBVarsAt preDef.declName recArgPos e is the one used at mkBRecOn.
def
Lean.Elab.Structural.addSmartUnfoldingDef
(preDef : Lean.Elab.PreDefinition)
(recArgPos : Nat)
:
Equations
- One or more equations did not get rendered due to their size.