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).