Repository navigation
fix: mathlib4 breakage from nightly-2026-11-22 (lean4#16668) - #284
Merged
Merged
Conversation
lean4#16668 makes `lia` skip facts that are irrelevant to linear integer arithmetic, and the negated goal is filtered along with them: an `Eq`/`Ne` whose relation type is not one `lia` treats as arithmetic is relevant to no active solver, so it is dropped before the arithmetic hypotheses are ever consulted. 54 sites in 27 modules lost their proof that way — type equalities behind `eqToHom`, `Finset` memberships, `ENNReal` disequalities, a `Prod` equality. `lia -filterFacts` processes all facts again, which is the escape hatch the change ships and what its author suggested for these sites. Three of them sat under `try`/`any_goals`, where the failure was silent and surfaced as unsolved goals further down. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
Author
Build report for fix: mathlib4 breakage from nightly-2026-11-22 (lean4#16668)Stayed red
Stayed green
|
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.
Replaces #273, which went
CONFLICTINGonMathlib/Data/Int/Init.lean. That file was fixed straight onmasterasd9ac508cbyRob23oba— the same twocastgoals, spelledcast (by congr 1; lia)where #273's first commit hadcast (congrArg motive (by lia)). This PR is #273's second commit, unchanged, rebased ontod9ac508c: the remaining 54liasites in 27 modules. #273 carried nothing else and is now closed.To turn
mastergreen this also needs the still-open #279 (mathlib4, lean4#16680) and #283 (reference-manual), plus thenightly-2026-11-25bump together with #281 (import-graph) — see Verified below.mathlib4— lean4#16668 (leodemoura)lean4#16668 makes
liaskip facts that are irrelevant to linear integer arithmetic, and the negated goal is filtered along with them: anEq/Newhose relation type is not oneliatreats as arithmetic is relevant to no active solver, so it is dropped before the arithmetic hypotheses are ever consulted. 54 sites in 27 modules lost their proof that way — type equalities behindeqToHom,Finsetmemberships,ENNRealdisequalities, aProdequality.lia -filterFactsprocesses all facts again, which is the escape hatch the change ships and what its author suggested for these sites. Three of them sat undertry/any_goals, where the failure was silent and surfaced as unsolved goals further down.Run 45598923234 is the first to get past
Mathlib.Data.Int.Init, so it is also the first that shows this whole layer. Part of what it reports needs no change of its own:Counterexamples/AharoniKorman.lean:757/758callmem_sdiffanAmbiguous termonly while theliaabove them fails, and theunknown metavariable/(kernel) declaration has metavariableserrors inHasSpectralSequence,CochainComplexandCommShiftTwoare those files' own sorriedliagoals reaching the kernel. Both clear with the-filterFactssites.Verified
On
nightly-2026-11-24, with #279 applied:lake build --wfail Mathlib Archive Counterexamples Wanted cache— green, 18661 jobs, 0 warningslake test --iofail— greenlake lint— greentestandlintonly run at all once theLean.SourceInfo.getLeading?duplicate is gone, which is #281. On this nightly that means the inlined-matchform #281 carried beforemhuisireplaced it with core'sgetLeading?fornightly-2026-11-25; that form was applied locally for these two phases, and is no part of this PR.