lean4-htt/src/Std
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
..
Data feat: move instance-class check to declaration site (#12325) 2026-03-06 03:23:27 +00:00
Do feat: add ExceptConds.and_elim_left/right (#12760) 2026-03-04 00:47:30 +00:00
Internal feat: add core HTTP data types (#12126) 2026-03-04 14:32:29 +00:00
Net refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Sat perf: remove the additional relabeling step during AIG to CNF conversion (#12480) 2026-02-14 17:08:07 +00:00
Sync chore: shake core (#12276) 2026-02-05 09:10:32 +00:00
Tactic perf: fixup BitVec.cpop termination proof performance (#12764) 2026-03-02 16:53:45 +00:00
Time feat: backward.isDefEq.respectTransparency (#12179) 2026-02-16 15:57:21 +00:00
Data.lean feat: add decidable equality to DHashMap/HashMap/HashSet and their extensional variants (#11421) 2025-12-12 09:55:55 +00:00
Do.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Internal.lean feat: add core HTTP data types (#12126) 2026-03-04 14:32:29 +00:00
Net.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Sat.lean chore: remove public section from end of files (#10684) 2025-10-06 13:30:48 +00:00
Sync.lean feat: introduce CancellationContext type for cancellation with context propagation (#11499) 2025-12-15 21:20:11 +00:00
Tactic.lean refactor: module-ize remainder of Std (#9195) 2025-07-17 11:43:57 +00:00
Time.lean style: fix typos in Init/ and Std/ docstrings (#11864) 2026-01-09 07:24:07 +00:00