lean4-htt/tests/pkg
Sebastian Ullrich db6aa9d8d3
feat: move instance-class check to declaration site (#12325)
This PR adds a warning to any `def` of class type that does not also
declare an appropriate reducibility.

The warning check runs after elaboration (checking the actual
reducibility status via `getReducibilityStatus`) rather than
syntactically checking modifiers before elaboration. This is necessary
to accommodate patterns like `@[to_additive (attr :=
implicit_reducible)]` in Mathlib, where the reducibility attribute is
applied during `.afterCompilation` by another attribute, and would be
missed by a purely syntactic check.

---------

Co-authored-by: Paul Reichert <6992158+datokrat@users.noreply.github.com>
Co-authored-by: Kim Morrison <kim@tqft.net>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 03:23:27 +00:00
..
builtin_attr chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
cbv_attr chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
debug chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
def_clash chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
deriving chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
frontend chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
initialize chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
leanchecker chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
linter_set chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
misc chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
mod_clash chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
module feat: move instance-class check to declaration site (#12325) 2026-03-06 03:23:27 +00:00
path with spaces chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
prv chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
rebuild chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
setup chore: switch to new test/bench suite (#12590) 2026-02-25 13:51:53 +00:00
signal chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
structure_docstrings chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
test_extern chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
user_attr chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
user_attr_app chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
user_ext chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
user_opt chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
user_plugin chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
ver_clash chore: relative lean-toolchains (#12652) 2026-02-25 10:23:35 +00:00
.gitignore test: module clash across packages (#11246) 2025-11-19 02:23:34 +00:00