…Project#18426)
Remove all 42 persistent `omit` commands from 39 library files. Matching `include`/`omit` pairs use local `include ... in` commands where appropriate; other omissions become `omit ... in` at the affected declarations. Existing scoped omissions remain allowed.
This makes assumptions visible at each declaration without leaving an omission active for later declarations. Proofs and declaration order are unchanged.
Validation: all 39 affected modules build successfully (13,105 jobs including dependencies/cache restores); all 1,636 compiled declaration types have identical normalized fingerprints before and after, including implicit parameter order. Text style, copyright headers, the source-option guard, and `git diff --check` pass. The full downstream CI build/audits remain for CI.
[The upstream Mathlib linter proposal](leanprover-community/mathlib4#45017) would lint persistent `omit` commands while allowing `omit ... in`.
Roadmap: none
Warn on persistent
omitcommands and require per-declarationomit ... in. Addlinter.style.omittolinter.mathlibStandardSet.The check lives in the existing style-linter module and follows command wrappers only. It does not traverse declaration bodies or syntax quotations, read source files separately, or add imports. Scoped
set_optionsettings are respected, and elaborator errors suppress additional lint warnings.The exact policy remains under discussion, especially an exception for plain
omitat the start of a section or namespace. This draft retains the original strict rule pending that decision. The confusingomit ... in sectionidiom is no longer recommended or used by the cleanup.The linter-specific changes are in this diff (four files).
🤖 prepared with Codex