Skip to content

fix: reference-manual breakage from nightly-2026-10-08 - #148

Merged
Kha merged 1 commit into
masterfrom
push-vlrzyouryoxu
Oct 10, 2026
Merged

Kha merged 1 commit into
masterfrom
push-vlrzyouryoxu

Conversation

@downstream-lean4

Copy link
Copy Markdown
Contributor

master is red on nightly-2026-10-08 (run 37811116340): verso fails to build and reference-manual, verso-slides and verso-web-components are skipped behind it.

The verso failure is unchanged from the last four rounds and is fixed by the still-open #145. Building the skipped repos locally on top of that PR's hunk uncovers one more failure, which CI has never reached — hence this PR.

reference-manual

lean4#15533 (refactor: implement String.toList in Lean) reimplements String.toList in Lean and, since the deprecation was nearly a year old, removes every trace of String.data. The Palindrome example in Manual/Language/InductiveTypes/Structures.lean, which illustrates a non-default structure constructor name, still phrased its invariant with text.data:

error: Manual/Language/InductiveTypes/Structures.lean:192:23: Invalid field `data`: The environment
does not contain `String.data`, so it is not possible to project the field `data` from an expression
error: Manual/Language/InductiveTypes/Structures.lean:189:0: No error expected in code block, one occurred

Use text.toList instead. String.toList is noncomputable now, which does not matter here: the field is a Prop.

Verified

All on nightly-2026-10-08, in a checkout carrying #145's hunk:

repo result
reference-manual lake build green, 1583 jobs (no test or lint driver)
verso lake build green, 1294 jobs; lake test 768 passed, 0 failed
verso-web-components lake build green, 475 jobs
verso-slides lake build green, 755 jobs; lake test -- --no-playwright green

verso's DemoSite.Blog.Subprojects was re-elaborated with test-projects/website-examples/.lake/build removed, so #145's hunk was genuinely exercised rather than replayed from the artifact cache.

Not covered

This PR alone does not make master green: verso still needs #145, which has been open since 2026-10-07. Its own CI run here will show verso red and reference-manual skipped for exactly that reason.

lean4#15533 (`refactor: implement String.toList in Lean`) reimplements
`String.toList` in Lean and, since the deprecation was nearly a year old,
removes every trace of `String.data`. The `Palindrome` example in
`Manual/Language/InductiveTypes/Structures.lean`, which illustrates a
non-default structure constructor name, still phrased its invariant with
`text.data`:

    error: Manual/Language/InductiveTypes/Structures.lean:192:23: Invalid field `data`:
    The environment does not contain `String.data`, so it is not possible to project
    the field `data` from an expression
    error: Manual/Language/InductiveTypes/Structures.lean:189:0: No error expected in code block, one occurred

Use `text.toList` instead. `String.toList` is `noncomputable` now, which does
not matter here: the field is a `Prop`.

This was hidden behind the `verso` failure that #145 fixes, so CI has never
built `reference-manual` on this nightly; it was found by building the repo
locally on top of that PR's hunk.

Verified with a full `lake build` (1583 jobs). `reference-manual` defines
neither a test nor a lint driver.

Co-Authored-By: Claude Opus 5 <[email protected]>
@downstream-lean4

Copy link
Copy Markdown
Contributor Author

Build report for fix: reference-manual breakage from nightly-2026-10-08

Stayed red
Repo Critical Build Test Lint
reference-manual ✅ 🛑 by verso ⏭️ ⏭️
verso 🟥 in 1m 9s ⏭️ ⏭️
verso-slides 🛑 by verso ⏭️ ⏭️
verso-web-components 🛑 by verso ⏭️ ⏭️
Stayed green
Repo Critical Build Test Lint
aesop ✅ ✅ in 0s ✅ in 5s ⏭️
batteries ✅ ✅ in 0s ✅ in 4s ✅ in 2s
import-graph ✅ ✅ in 2s ✅ in 4s ⏭️
lean4-cli ✅ ✅ in 0s ✅ in 0s ⏭️
mathlib4 ✅ ✅ in 58s ✅ in 45s ✅ in 1m 30s
plausible ✅ ✅ in 0s ✅ in 2s ⏭️
ProofWidgets4 ✅ ✅ in 1s ✅ in 1s ⏭️
quote4 ✅ ✅ in 0s ✅ in 1s ⏭️
BibtexQuery ✅ in 3s ⏭️ ⏭️
comparator ✅ in 2s ⏭️ ⏭️
cslib ✅ in 2s ✅ in 9s ✅ in 3s
doc-gen4 ✅ in 6s ⏭️ ⏭️
illuminate ✅ in 1s ✅ in 9s ⏭️
lean4-unicode-basic ✅ in 0s ⏭️ ⏭️
lean4export ✅ in 0s ✅ in 6s ⏭️
LeanSearchClient ✅ in 0s ✅ in 0s ⏭️
leansqlite ✅ in 7s ✅ in 16s ⏭️
nerodia ✅ in 1s ✅ in 21s ⏭️
repl ✅ in 0s ✅ in 48s ⏭️

View run

@hargoniX
hargoniX enabled auto-merge (squash) October 8, 2026 19:08
@hargoniX
hargoniX disabled auto-merge October 8, 2026 19:08
@Kha
Kha merged commit bec3cfb into master Oct 10, 2026
19 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant