Documentation

Lean.Meta.AbstractNestedProofs

def Lean.Meta.abstractProof {m : TypeType} [Monad m] [MonadLiftT MetaM m] [MonadEnv m] [MonadOptions m] [MonadFinally m] (proof : Expr) (cache : Bool := true) (postprocessType : Exprm Expr := pure) :

Abstracts the given proof into an auxiliary theorem, suitably pre-processing its type.

Equations
    Instances For
      @[reducible, inline]
      Equations
        Instances For

          Replace proofs nested in e with new lemmas. The new lemmas are named using getDeclNGen.

          Equations
            Instances For