Documentation

Lean.Meta.Tactic.Subst

def Lean.Meta.substCore (mvarId : MVarId) (hFVarId : FVarId) (symm : Bool := false) (fvarSubst : FVarSubst := { }) (clearH : Bool := true) (tryToSkip : Bool := false) :
Equations
    Instances For
      def Lean.Meta.heqToEq (mvarId : MVarId) (fvarId : 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
        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.

          Equations
            Instances For
              partial def Lean.Meta.subst (mvarId : MVarId) (h : FVarId) :

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

              Equations
                Instances For
                  def Lean.Meta.substVar? (mvarId : MVarId) (hFVarId : FVarId) :

                  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.

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