def Lean.Meta.abstractProof {m : Type → Type} [Monad m] [MonadLiftT MetaM m] [MonadEnv m] [MonadOptions m] [MonadFinally m] (proof : Expr) (cache : Bool := true) (postprocessType : Expr → m Expr := pure) :
m Expr
Abstracts the given proof into an auxiliary theorem, suitably pre-processing its type.