Commit 2026-11-19 07:17 4dbecbe2

View on Github →

chore: do not exempt Subtype or Fin from the numeric projections linter (#46196) This PR removes Subtype and Fin from the exemptions list of the numeric projections linter, and replaces numeric projections on them with field name projections throughout mathlib. This PR also changes the type of

-lemma coe_toInteger … : hζ.toInteger.1 = ζ := rfl
+lemma coe_toInteger … : hζ.toInteger.val = ζ := rfl

where val now means NumberField.RingOfIntegers.val, not Subtype.val. This is the "better" version as it doesn't need as much unfolding, and allows us to remove a now-unnecessary terminal simp below. This PR includes an LLM-generated whitespace-only diff in 8f5818b to fix long lines, and manual fixes around congr and for long lines which benefitted from manual intervention (1743398).

Estimated changes

modified theorem DFinsupp.erase_def
modified theorem DFinsupp.filter_def
modified theorem DFinsupp.mk_neg
modified theorem DFinsupp.mk_sub
modified theorem DFinsupp.mk_zero
modified theorem DFinsupp.support_mk_subset