HepLean Documentation

Lean.Meta.Tactic.Clear

Erase the given free variable from the goal mvarId.

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

    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
    • mvarId.tryClear fvarId = (mvarId.clear fvarId <|> pure mvarId)
    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
        • One or more equations did not get rendered due to their size.
        Instances For