Repository navigation
fix: mathlib4 +typeChanged marker for the renamed central binomial bound - #76
Merged
Merged
Conversation
…bound The merge with mathlib master (mathlib4#42606) renamed `Nat.four_pow_le_two_mul_add_one_mul_central_binom` to `...centralBinom` and restated the new lemma in terms of `Nat.centralBinom n` rather than `(2 * n).choose n`, so the compatibility alias deprecates in favour of a declaration whose type differs syntactically. lean4#14600's inexact-deprecation check fires on it, and `mathlib4` builds with `--wfail`. Added `+typeChanged` to the `@[deprecated]` attribute.
Contributor
Build report for fix: mathlib4
|
| Repo | Critical | Build | Test | Lint |
|---|---|---|---|---|
| mathlib4 | ✅ | ✅ in 220s | ✅ in 48s | ✅ in 96s |
| cslib | ✅ in 35s | ✅ in 9s | ✅ in 3s |
Stayed green
| Repo | Critical | Build | Test | Lint |
|---|---|---|---|---|
| aesop | ✅ | ✅ in 7s | ✅ in 5s | ⏭️ |
| batteries | ✅ | ✅ in 5s | ✅ in 4s | ✅ in 2s |
| import-graph | ✅ | ✅ in 2s | ✅ in 3s | ⏭️ |
| lean4-cli | ✅ | ✅ in 1s | ✅ in 0s | ⏭️ |
| plausible | ✅ | ✅ in 1s | ✅ in 2s | ⏭️ |
| ProofWidgets4 | ✅ | ✅ in 3s | ✅ in 1s | ⏭️ |
| quote4 | ✅ | ✅ in 2s | ✅ in 1s | ⏭️ |
| reference-manual | ✅ | ✅ in 16s | ⏭️ | ⏭️ |
| BibtexQuery | ✅ in 1s | ⏭️ | ⏭️ | |
| comparator | ✅ in 2s | ⏭️ | ⏭️ | |
| doc-gen4 | ✅ in 3s | ⏭️ | ⏭️ | |
| illuminate | ✅ in 3s | ✅ in 10s | ⏭️ | |
| lean4-unicode-basic | ✅ in 2s | ⏭️ | ⏭️ | |
| lean4export | ✅ in 0s | ✅ in 7s | ⏭️ | |
| LeanSearchClient | ✅ in 1s | ✅ in 0s | ⏭️ | |
| leansqlite | ✅ in 4s | ✅ in 15s | ⏭️ | |
| nerodia | ✅ in 2s | ✅ in 21s | ⏭️ | |
| repl | ✅ in 1s | ✅ in 57s | ⏭️ | |
| verso | ✅ in 36s | ✅ in 165s | ⏭️ | |
| verso-slides | ✅ in 5s | ✅ in 6s | ⏭️ | |
| verso-web-components | ✅ in 2s | ⏭️ | ⏭️ |
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.
Fixes the red run 34921296164 on
master(nightly-2026-09-14, commit d7f4adbdownstream: update repo mathlib4).mathlib4
Root cause. The merge with mathlib master brought in mathlib4#42606, which renames
Nat.four_pow_le_two_mul_add_one_mul_central_binomtoNat.four_pow_le_two_mul_add_one_mul_centralBinomand restates it aswhile the deprecated alias it leaves behind still says
The two are defeq but not syntactically equal, so lean4#14600's inexact-deprecation check warns at
Mathlib/Data/Nat/Choose/Central.lean:131.mathlib4builds with--wfail, so the warning is the failure;Mathlib.Data.Nat.Choose.Centralwas the only logged target.mathlib's own CI builds on a release toolchain, which does not have this check, so markers like this one only ever exist downstream and every mathlib merge can add another.
Fix. Added
+typeChangedto the@[deprecated]attribute, as the warning's own hint suggests. The marker is not recorded in the environment, so no dependent.oleanchanges and everything downstream of the module replays from cache.Verified locally on
nightly-2026-09-14:mathlib4:lake build --wfail Mathlib Archive Counterexamples Wanted,lake test --iofail,lake lint— all pass. OnlyMathlib.Data.Nat.Choose.Centralrebuilt; the rest replayed.cslib:lake build --wfail --iofail,lake test --wfail --iofail,lake lint— all pass with no changes. It was red in the run only because it was skipped behindmathlib4.Nothing was left unfinished: those two were the entire red set.