The areas / V34. The tactics of Mathlib
Mathlib.Tactic.ClearExcept
3 declarations. Mathlib docs · Source
def Lean.Elab.Tactic.getVarsToClear E1 #
Array Lean.FVarId → Lean.MetaM (Array Lean.FVarId)
Returns the free variable IDs that can be cleared, excluding those in the preserve list, class instances, and auxiliary declarations (e.g. recursive hypotheses).
def Lean.Elab.Tactic.clearExcept E1 #
Array Lean.FVarId → Lean.MVarId → Lean.MetaM Lean.MVarId
Clears all hypotheses from a goal except those in the preserve list, class instances, and auxiliary declarations (e.g. recursive hypotheses).
def Lean.Elab.Tactic.clearExceptTactic E1 #
Lean.ParserDescr
Clears all hypotheses it can, except those provided after a minus sign, class instances, and hidden auxiliary declarations (for example recursive hypotheses). Example:
clear * - h₁ h₂
The intent is that clear * - only clears user-visible local declarations; hidden auxiliary
declarations should be handled by more specific mechanisms when needed.