Documentation

Mathlib.Tactic.Linter.Multigoal

The "multiGoal" linter #

The "multiGoal" linter emits a warning where there is more than a single goal in scope. There is an exception: a tactic that closes all remaining goals is allowed.

There are a few tactics, such as skip, swap or the try combinator, that are intended to work specifically in such a situation. Otherwise, the mathlib style guide ask that goals be focused until there is only one active goal at a time. If this focusing does not happen, the linter emits a warning. Typically, the focusing is achieved by the cdot: ·, but, e.g., focus or on_goal x also serve a similar purpose.

TODO:

The "multiGoal" linter emits a warning when there are multiple active goals.