Documentation

Lean.Elab.Tactic.Rewrite

def Lean.Elab.Tactic.elabRewrite (mvarId : MVarId) (e : Expr) (stx : Syntax) (symm : Bool := false) (config : Meta.Rewrite.Config := { }) :

Runs Lean.MVarId.rewrite, and also handles filtering out the old metavariables in the rewrite result. This should be used from within withSynthesize. Use finishElabRewrite once elaboration is complete to make final updates to RewriteResult.

Instances For

    Makes new goals be synthetic opaque, to be done once elaboration of the rewrite theorem is complete.

    Workaround note: we are only doing this for proof goals, not data goals, since there are many downstream cases of tactic proofs that later assign data goals by unification.

    Instances For
      Instances For
        def Lean.Elab.Tactic.rewriteLocalDecl (stx : Syntax) (symm : Bool) (fvarId : FVarId) (config : Meta.Rewrite.Config := { }) :
        Instances For
          def Lean.Elab.Tactic.withRWRulesSeq (token rwRulesSeqStx : Syntax) (x : BoolSyntaxTacticM Unit) :
          Instances For