User commands for assert the (non-)existence of declaration or instances. #
These commands are used to enforce the independence of different parts of mathlib.
Implementation notes #
This file provides two linters that verify that things we assert do not yet exist do eventually exist. This works by creating declarations of the form:
assert_not_exists._checked.<uniq> : name := `foo
forassert_not_exists foo
assert_no_instance._checked.<uniq> := t
forassert_instance t
These declarations are then picked up by the linter and analyzed accordingly.
The _
in the _checked
prefix should hide them from doc-gen.