Repository navigation
fix: batteries breakage from nightly-2026-10-13 - #161
Closed
downstream-lean4[bot] wants to merge 1 commit into
Closed
downstream-lean4[bot] wants to merge 1 commit into
downstream-lean4[bot] wants to merge 1 commit into
Conversation
`unfold pack` in `Batteries.Data.Float.Lemmas.pack_unpack` no longer leaves the matcher application iota-reduced, so the `have`-bindings `actualMantissaBits`/`biasedExponent` stay inside the unreduced `match` and `extract_lets mantbits biasedexp` fails with "made no progress" (both the subnormal and the normal case). Interpose `dsimp -zeta only`, which performs the structural reduction without zeta-reducing the surrounding `let`s. This is the same hunk the batteries author already wrote for the pr-release in #152 (adaptation-15557), which cannot merge here: lean4#15557 is still open, so that PR stays unmerged while master is red. Verified: `lake build --wfail`, `lake test`, `lake lint` all pass. Co-Authored-By: Claude Opus 5 <[email protected]>
Contributor
Author
Build report for fix: batteries breakage from nightly-2026-10-13Turned green:
Stayed red
Stayed green
|
yermakoffivan
pushed a commit
to yermakoffivan/lean4
that referenced
this pull request
Oct 13, 2026
…oofs" (leanprover#15655) Reverts leanprover#15559 until leanprover/downstream-lean4#161 is addressed Co-authored-by: Claude Opus 5.5 <[email protected]>
Contributor
Author
|
Superseded by |
Kha
pushed a commit
that referenced
this pull request
Oct 14, 2026
`master` bumped to `nightly-2026-10-14` in ac06c20, and the `Build subrepos` runs for that commit and for the `#15581` merge on top of it were both cancelled before any step ran — so no CI run has ever looked at the new nightly. Built locally instead, and `reference-manual` (critical) is the one repo the bump breaks. ## reference-manual lean4#15630 added `--add-downstream` and `--add-public-downstream` to `lake shake`. `Manual/BuildTools/Lake/CLI.lean` checks the `lake shake --help` output verbatim, so `Manual.BuildTools.Lake.CLI` now fails with ``Mismatched `lake --help` output``. The two options are inserted into the `lakeHelp shake` block, copied from the nightly's own `lake shake --help`, and added to the prose option list below it, which enumerates every option of the subcommand. **Verified:** `lake build` passes (1583 jobs). reference-manual defines neither a test nor a lint driver, so that is its full matrix. ## State of the rest of `master` on `nightly-2026-10-14` Everything else in `repos.toml` was built locally at 81b76e9 — all 22 repos, every phase its lakefile defines: * **Green:** aesop, batteries, BibtexQuery, doc-gen4, illuminate, import-graph, lean4-cli, lean4-unicode-basic, lean4export, LeanSearchClient, leansqlite, mathlib4 (all five build targets with `--wfail`, `test --iofail`, `lint`), plausible, ProofWidgets4, quote4, repl, verso, verso-slides, verso-web-components. * **cslib** is still red for the reason given in #166 (mathlib4#41506 making `Set` a one-field structure); that PR applies cleanly to 81b76e9 and was re-verified on this nightly — `build --wfail --iofail`, `test --wfail --iofail` and `lint` all pass with it. Not duplicated here. * **nerodia** fails only on this machine: its `pyconfig` step wants Python 3.14+ and the box has 3.13.15. Green in CI. Two earlier unattended PRs are obsolete as of this nightly and have been closed: * #161 (batteries `extract_lets`) — lean4#15655 reverted the realization-export change that caused it. batteries now builds green without the patch, and *with* it the added `dsimp -zeta only` fails as "`dsimp` made no progress", so merging it would re-break the repo. * #158 (ProofWidgets4 `Jsx` deprecation) — the `downstream: update repo mathlib4` merge in 68af6a9 migrated mathlib4 to `jsx%{…}` literals, leaving the deprecated syntax with no users in the tree. mathlib4 and ProofWidgets4 both build green with the `deprecated_syntax` line in place. <!-- downstream-watch: unattended --> Co-authored-by: downstream-lean4[bot] <downstream-lean4[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 5 <[email protected]>
6 of 13 tasks
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.
masteris red atbatteriessince run 38385302531, which takes the criticalaesopandmathlib4down through the skip chain, along withcslibandrepl.batteries
Root cause. lean4#15559 stops a
modulefrom exporting constants that were realized only inside a proof.UnpackedFloat.pack.eq_defwas such a constant: nothing in core realizes it exceptfun_cases packin the proof ofvalid_pack.unfoldreduces the exposed matcher only when it rewrites with an existing unfold theorem; for a non-recursive definition without one it falls back to delta expansion, which leaves the matcher application in the goal. Core-only reproducer, no batteries involved:On
nightly-2026-10-12the goal afterunfoldishave actualMantissaBits := …; have biasedExponent := …; if …andextract_letspicks up both bindings. Onnightly-2026-10-13it ismatch finite s m e h with | … => have …andextract_letsfails withTactic `extract_lets` failed: made no progress, which is exactly the failure atBatteries/Data/Float/Lemmas.lean:79and:96inpack_unpack(the subnormal and the normal case).The breakage arrived with
nightly-2026-10-13rather thannightly-2026-10-09because that is the first stage2 nightly (lean4#15637): until then core's oleans were written by a stage0 that predates lean4#15559. The same behaviour reproduces without core on any nightly from 2026-10-09 on, with a two-module project where one module realizesf.eq_defin a proof and the other runsunfold f.Fix. Interpose
dsimp -zeta only, which performs the structural reduction without zeta-reducing the surroundinglets. This is the same hunk the batteries author already wrote against a stage2 pr-release in #152 (adaptation-15557); that PR cannot merge here, since lean4#15557 is still open.Verified on
nightly-2026-10-13, with #158 applied on top formathlib4:--wfail--wfail--wfail--wfail--iofail--wfail --iofail--wfail --iofailtest/Mathlibbuild)Not fixed here.
mathlib4still needs #158 (theProofWidgets.Jsxdeprecation), which has been open since 2026-10-12;mastergoes green only once both merge.