Documentation

Mathlib.Tactic.Linter.MinImports

The minImports linter #

The minImports linter incrementally computes the minimal imports needed for each file to build. Whenever it detects that a new command requires an increase in the (transitive) imports that it computed so far, it emits a warning mentioning the bigger minimal imports.

Unlike the related #min_imports command, the linter takes into account notation and tactic information. It also works incrementally, accumulating increasing import information. This is better suited, for instance, to split files.

The "minImports" linter #

The "minImports" linter tracks information about minimal imports over several commands.

minImportsRef keeps track of cumulative imports across multiple commands.

#reset_min_imports sets to empty the current list of cumulative imports.

Equations
Instances For

    The minImports linter incrementally computes the minimal imports needed for each file to build. Whenever it detects that a new command requires an increase in the (transitive) imports that it computed so far, it emits a warning mentioning the bigger minimal imports.

    Unlike the related #min_imports command, the linter takes into account notation and tactic information. It also works incrementally, providing information that it better suited, for instance, to split files.

    The minImports linter incrementally computes the minimal imports needed for each file to build. Whenever it detects that a new command requires an increase in the (transitive) imports that it computed so far, it emits a warning mentioning the bigger minimal imports.

    Unlike the related #min_imports command, the linter takes into account notation and tactic information. It also works incrementally, providing information that it better suited, for instance, to split files.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For