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.UpstreamableDecl

4 declarations. Mathlib docs · Source

The upstreamableDecl linter

The upstreamableDecl linter detects declarations that could be moved to a file higher up in the import hierarchy. This is intended to assist with splitting files.

TODO

This functionality does not behave well with the module system, and should be upgraded to use new #find_home internals (and/or upstreamed to ImportGraph).

def Lean.Name.isLocal E1 #

Lean.Environment → Lean.Name → Bool

Does this declaration come from the current file?

opaque Mathlib.Linter.linter.upstreamableDecl E1 #

Lean.Option Bool

The upstreamableDecl linter detects declarations that could be moved to a file higher up in the import hierarchy. If this is the case, it emits a warning.

By default, this linter will not fire on definitions, nor private declarations: see options linter.upstreamableDecl.defs and linter.upstreamableDecl.private.

This is intended to assist with splitting files.

opaque Mathlib.Linter.linter.upstreamableDecl.defs E1 #

Lean.Option Bool

If set to true, the upstreamableDecl linter will add warnings on definitions.

The linter does not place a warning on any declaration depending on a definition in the current file (while it does place a warning on the definition itself), since we often create a new file for a definition on purpose.

opaque Mathlib.Linter.linter.upstreamableDecl.private E1 #

Lean.Option Bool

If set to true, the upstreamableDecl linter will add warnings on private declarations.