Environment extension for tracking existence of declarations and imports #
This is used by the assert_not_exists
and assert_not_imported
commands.
AssertExists
is the structure that carries the data to check if a declaration or an
import are meant to exist somewhere in Mathlib.
Defines the assertExistsExt
extension for adding a HashSet
of AssertExists
s
to the environment.
addDeclEntry isDecl declName mod
takes as input the Bool
ean isDecl
and the Name
s of
a declaration or import, declName
, and of a module, mod
.
It extends the AssertExists
environment extension with the data isDecl, declName, mod
.
This information is used to capture declarations and modules that are required to not
exist/be imported at some point, but should eventually exist/be imported.
Equations
- One or more equations did not get rendered due to their size.
getSortedAssertExists env
returns the array of AssertExists
, placing first all declarations,
in alphabetical order, and then all modules, also in alphabetical order.
Equations
- One or more equations did not get rendered due to their size.