Documentation

Lean.Meta.Tactic.Refl

def Lean.MVarId.refl (mvarId : MVarId) (check : Bool := true) :

Close given goal using Eq.refl.

With (check := false), the elaborator does not check if the goal is actually a definitionaly equality.

See Lean.MVarId.applyRfl for the variant that also consults @[refl] lemmas, and which backs the rfl tactic.

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

    Proves a goal with rfl, provided that no reduction step needs the constructor of a String literal (see Config.stringLitToCtor). Otherwise, executes prove, and tries rfl without this restriction if prove fails. rfl must throw an exception if it fails.

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

      Try to apply heq_of_eq. If successful, then return new goal, otherwise return mvarId.

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

        Try to apply eq_of_heq. If successful, then return new goal, otherwise return mvarId.

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

          Close given goal using HEq.refl.

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