The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V34. The tactics of Mathlib

Mathlib.Tactic.Linter.HashCommandLinter

1 declarations. Mathlib docs · Source

#-command linter

The #-command linter produces a warning when a command starting with # is used and

  • either the command emits no message;
  • or warningAsError is set to true.

The rationale behind this is that #-commands are intended to be transient: they provide useful information in development, but are not intended to be present in final code. Most of them are noisy and get picked up anyway by CI, but even the quiet ones are not expected to outlive their in-development status.

opaque Mathlib.Linter.linter.hashCommand E1 #

Lean.Option Bool

The linter emits a warning on any command beginning with # that itself emits no message. For example, #guard true and #check_tactic True ~> True by skip trigger a message. There is a list of silent #-command that are allowed.