Repository navigation
Conversation
These commands made the changes in this commit. To make the same fixes yourself, run them in your mathlib4 checkout.
…g asked an unrelated question. sure. that's fine. sigh.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… the wrapped `ULift.down` field
Whitespace-only: wrap lines over 100 characters introduced by the `scripts/runSkimmer.sh` rewrite. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
bors unlink |
Contributor
|
This pull request is no longer linked; it will merge on its own. |
Deicyde
reviewed
Nov 19, 2026
|
This PR/issue depends on:
|
Reflows the lines pushed over 100 characters by replacing numeric projections with field names. This commit only changes whitespace; check with `git diff --word-diff=porcelain --word-diff-regex='[^[:space:]]+'`, which should show no added or removed words. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Contributor
|
Here's the output of the prototype declaration diff: Declarations diff (Lean)
Shape: statement changes. 1 definition body changed; 4 proofs changed.
definition bodies changed (1)
proofs changed (statement unchanged) (4)
Not counted as changes (5)statements differing only in instance paths (5)
|
Contributor
|
Everything looks reasonable to me. Let's get this in before it picks up conflicts. Thanks! |
mathlib-bors Bot
pushed a commit
that referenced
this pull request
Nov 19, 2026
…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). Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jireh Loreaux <[email protected]>
Contributor
|
Pull request successfully merged into master. Build succeeded: |
Subtype or Fin from the numeric projections linterSubtype or Fin from the numeric projections linter
TJHeeringa
pushed a commit
to TJHeeringa/mathlib4
that referenced
this pull request
Dec 2, 2026
…linter (leanprover-community#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). Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Co-authored-by: Jireh Loreaux <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR removes
SubtypeandFinfrom 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
where
valnow meansNumberField.RingOfIntegers.val, notSubtype.val. This is the "better" version as it doesn't need as much unfolding, and allows us to remove a now-unnecessary terminalsimpbelow.This PR includes an LLM-generated whitespace-only diff in 8f5818b to fix long lines, and manual fixes around
congrand for long lines which benefitted from manual intervention (1743398).Note: the nontrivial changes in this PR can also be reviewed by looking at the output of the following Lean code in a new file, which gets everything from the git diff which isn't either whitespace or an expected projection replacement:
Details