Documentation

Lean.Elab.PreDefinition.Mutual

This module contains code common to mutual-via-fixedpoint constructions, i.e. well-founded recursion and partial fixed-points, but independent of the details of the mutual packing.

partial def Lean.Elab.Mutual.withCommonTelescope.go {α : Type} (k : Array ExprArray ExprMetaM α) (fvars vals : Array Expr) :
def Lean.Elab.Mutual.addPreDefsFromUnary (preDefs preDefsNonrec : Array PreDefinition) (unaryPreDefNonRec : PreDefinition) (cacheProofs : Bool := true) :
Equations
  • One or more equations did not get rendered due to their size.

Cleans the right-hand-sides of the predefinitions, to prepare for inclusion in the EqnInfos:

  • Remove RecAppSyntax markers
  • Abstracts nested proofs (and for that, add the _unsafe_rec definitions)
Equations
  • One or more equations did not get rendered due to their size.

Assign final attributes to the definitions. Assumes the EqnInfos to be already present.

Equations
  • One or more equations did not get rendered due to their size.