Calculates the .brecOn motive corresponding to one structural recursive function.
The value is the function with (only) the fixed parameters moved into the context.
Equations
Instances For
def
Lean.Elab.Structural.mkIndPredBRecOnF
(recArgInfos : Array RecArgInfo)
(positions : Positions)
(recArgInfo : RecArgInfo)
(value FType : Expr)
(params : Array Expr)
:
Calculates the .brecOn functional argument corresponding to one structural recursive function.
The value is the function with (only) the fixed parameters moved into the context,
The FType is the expected type of the argument.
The recArgInfos is used to transform the body of the function to replace recursive calls with
uses of the below induction hypothesis.