Documentation

Lean.Meta.Tactic.Clear

def Lean.MVarId.clear (mvarId : MVarId) (fvarId : FVarId) :

Erase the given free variable from the goal mvarId.

Equations
    Instances For
      def Lean.MVarId.tryClear (mvarId : MVarId) (fvarId : FVarId) :

      Try to erase the given free variable from the goal mvarId. It is no-op if the free variable cannot be erased due to forward dependencies.

      Equations
        Instances For

          Try to clear the given fvars from the local context.

          The fvars must be given in the order they appear in the local context.

          See also tryClearMany' which takes care of reordering internally, and returns the cleared hypotheses along with the new goal.

          Equations
            Instances For

              Try to clear the given fvars from the local context. Returns the new goal and the hypotheses that were cleared.

              Does not require the hyps to be given in the order in which they appear in the local context.

              Equations
                Instances For