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.

Instances For

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

    Instances For

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

      Instances For

        Close given goal using HEq.refl.

        Instances For