Documentation

Lean.Meta.Tactic.Subst

def Lean.Meta.substCore (mvarId : Lean.MVarId) (hFVarId : Lean.FVarId) (symm : Bool := false) (fvarSubst : Lean.Meta.FVarSubst := { map := }) (clearH : Bool := true) (tryToSkip : Bool := false) :
Instances For
    def Lean.Meta.heqToEq (mvarId : Lean.MVarId) (fvarId : Lean.FVarId) (tryToClear : Bool := true) :

    Given h : HEq α a α b in the given goal, produce a new goal where h : Eq α a b. If h is not of the give form, then just return (h, mvarId)

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

      Given x, try to find an equation of the form heq : x = rhs or heq : lhs = x, and runs substCore on it. Throws an exception if no such equation is found.

      Instances For

        Give h : Eq α a b, try to apply substCore

        Instances For

          Given x, try to find an equation of the form heq : x = rhs or heq : lhs = x, and runs substCore on it. Returns none if no such equation is found, or if substCore fails.

          Instances For
            Equations
            Instances For
              def Lean.Meta.substCore? (mvarId : Lean.MVarId) (hFVarId : Lean.FVarId) (symm : Bool := false) (fvarSubst : Lean.Meta.FVarSubst := { map := }) (clearH : Bool := true) (tryToSkip : Bool := false) :
              Equations
              Instances For
                Equations
                Instances For
                  Instances For