# Documentation

Lean.Meta.Tactic.Cleanup

@[inline]
abbrev Lean.MVarId.cleanup (mvarId : Lean.MVarId) :

Auxiliary tactic for cleaning the local context. It removes local declarations (aka hypotheses) that are not relevant. We say a variable x is "relevant" if

• It occurs in the target type, or
• There is a relevant variable y that depends on x, or
• The type of x is a proposition and it depends on a relevant variable y.
Equations
@[inline]
abbrev Lean.Meta.cleanup (mvarId : Lean.MVarId) :
Equations