This module contains
- the data type
TerminationMeasure, the elaborated form of aTerminationByclause, - the
TerminationMeasurestype for a clique, and - elaboration and deelaboration functions.
Elaborated form for a termination_by clause.
The fn has the same (value) arity as the recursive functions (stored in
arity), and maps its measures (including fixed prefix, in unpacked form) to
the termination measure.
If structural := Bool, then the fn is a lambda picking out exactly one measure.
Instances For
Equations
Instances For
@[reducible, inline]
A complete set of TerminationMeasures, as applicable to a single clique.
Instances For
def
Lean.Elab.TerminationMeasure.elab
(funName : Name)
(type : Expr)
(arity extraParams : Nat)
(hint : TerminationBy)
:
Elaborates a TerminationBy to an TerminationMeasure.
typeis the full type of the original recursive function, including fixed prefix.hint : TerminationByis the syntacticTerminationBy.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
Delaborates a TerminationMeasure back to a TerminationHint, e.g. for termination_by?.
This needs extra information:
arityis the value arity of the recursive functionextraParamsindicates how many of the function's parameters are bound “after the colon”.
Equations
- One or more equations did not get rendered due to their size.