Repository navigation
fix: batteries breakage from nightly-2026-11-22 (lean4#15687) - #272
Merged
Merged
Conversation
lean4#15687 makes `unfold` on a non-recursive definition independent of whether `f.eq_def` happens to have been realized: it now always unfolds by plain delta expansion and no longer reduces the resulting `match` on a constructor. In `Float.Model.UnpackedFloat.pack_unpack`, `unfold pack` therefore leaves the two `have`s inside a `match` arm, where `extract_lets` cannot reach them (`Tactic `extract_lets` failed: made no progress`). Reduce the match with `dsimp -zeta only` before `extract_lets`, in both the subnormal and the normal case. This is the same hunk the bot already carries on `adaptation-15687` (#265) and `adaptation-16623` (#266); both conflict with master because upstream has since split `Batteries/Data/Float/Lemmas.lean` into `Batteries/Data/Float/Lemmas/{Basic,Arithmetic,Order}.lean`, so the fix is applied to the new location here. Co-Authored-By: Claude Opus 5 <[email protected]>
This was referenced Nov 22, 2026
Contributor
Author
Build report for fix: batteries breakage from nightly-2026-11-22 (lean4#15687)Turned green:
Stayed red
Stayed green
|
TwoFX
added a commit
that referenced
this pull request
Nov 23, 2026
…274) 3 of 4 for [run 45055845730](https://github.com/leanprover/downstream-lean4/actions/runs/45055845730), with #272, #273 and #275 — `reference-manual` goes green only with this PR *and* #275 *and* the still-open #268, so on its own this PR's CI stays red on `reference-manual` until those merge. Verified together. ### `reference-manual` — lean4#16627 (`TwoFX`) lean4#16627 makes `MessageData.format` respect `maxTraceChildren`, so a trace node with more than 50 children now prints its first 50 followed by `` N more entries... (increase `maxTraceChildren` to see more) ``. Two nodes of the `grind` diagnostics that the `#check_msgs` block in front of the first `eraseSwap` pins (`extended-examples/IndexMapGrind.lean`) have 86 and 119 entries, so the block fails with ``` extended-examples/IndexMapGrind.lean:748:0: ❌️ Docstring on `#check_msgs` does not match generated message ``` and the two truncation markers are the *only* difference in the diff — everything else still matches. `Tutorial.Grind.IndexMap` then fails too, because it extracts anchors from that module through a nested `lake build`. Those diagnostics are the whole point of the example, so this lifts the limit for the one command (`maxTraceChildren 0` = no limit, which is how core's own guard reads it) rather than pinning a truncated list. The `set_option` sits outside `-- ANCHOR: eraseSwap_init`, so the code the manual renders is unchanged. **Verified:** `lake build IndexMapGrind` green, and the repo's full `lake build` is green with the two commits of this round plus #268 applied (`lake test` and `lake lint` report no driver configured, so `build` is the whole phase set here). <!-- downstream-watch: unattended --> --------- Co-authored-by: downstream-lean4[bot] <downstream-lean4[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Julia Markus Himmel <[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.
1 of 4 for run 45055845730, with #273, #274 and #275 — one PR per author of the upstream change behind each breakage, so each asks that author for review. This one stands alone:
batteriesandaesopgo green with it and nothing else.batterieswas the only repo that CI could build this round:aesop,mathlib4andcslibwere all skipped behind it, so this unblocks three more repos.batteries— lean4#15687 (Kha)lean4#15687 makes
unfoldon a non-recursive definition independent of whetherf.eq_defhappens to have been realized already: it now always unfolds by plain deltaexpansion, and so no longer reduces the resulting
matchon a constructor. InFloat.Model.UnpackedFloat.pack_unpack,unfold packtherefore leaves the twohavesof
pack's.finitearm inside the unreducedmatch, whereextract_letscannotreach them:
Fix: reduce the match with
dsimp -zeta onlybeforeextract_lets, in both thesubnormal and the normal case.
This is byte-for-byte the hunk the bot already carries on
adaptation-15687(#265) andadaptation-16623(#266) — both nowCONFLICTING, because upstream has since splitBatteries/Data/Float/Lemmas.leanintoBatteries/Data/Float/Lemmas/{Basic,Arithmetic,Order}.lean, so neither can merge as itstands. Applying it at the new location is what makes
masterbuild.Verified:
batterieslake build --wfail,lake testandlake lintall green;aesoplake build --wfailandlake testgreen (it has no lint driver).