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.

Equations
    Instances For
      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
        Instances For

          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
            Instances For

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

              Equations
                Instances For