Skip to content

fix: verso breakage from the SubVerso examples-mechanism removal - #126

Merged
david-christiansen merged 1 commit into
masterfrom
push-mmnwzkovunwz
Oct 5, 2026
Merged

david-christiansen merged 1 commit into
masterfrom
push-mmnwzkovunwz

Conversation

@downstream-lean4

Copy link
Copy Markdown
Contributor

master failed in verso-slides alone in run
37033412492
,
which the build report counts green because verso-slides is noncritical.

verso — SubVerso.Examples no longer re-exports SubVerso.Signature

subverso#243 removes the old
examples mechanism: %example, loadExamples, the Example type and the
SubVerso.Examples.Env module are gone, and SubVerso.Examples no longer
public meta imports SubVerso.Signature. VersoManual.InlineLean.Signature
reached SubVerso.Examples.checkSignature through that re-export, so it fails
with Unknown identifier and takes verso-slides down with it.

Fixed by importing SubVerso.Signature directly — the same one-line change
upstream verso made in
verso#1015.

Why this reaches master

A branch mismatch in repos.toml: verso-slides follows verso's main, so its
manifest already pins subverso main (892d6dc5), while verso itself follows
nightly-testing, which is eight commits behind main and has not merged
verso#1015. Since subverso is not a subrepo, every consumer resolves it from
its own manifest, so the single in-tree verso copy is compiled against three
different subverso revisions at once. The new import works with all of them —
SubVerso.Signature carries checkSignature in d047cb48, acbaca23 and
892d6dc5 alike. The same breakage will recur whenever verso's main moves
ahead of nightly-testing.

Verified locally on nightly-2026-10-01

repo subverso pin result
verso-slides 892d6dc5 lake build ✔, lake test -- --no-playwright ✔ (no lint driver)
verso acbaca23 lake build ✔, lake test ✔ (726 passed, 0 failed)
verso-web-components d047cb48 lake build ✔
reference-manual (critical) acbaca23 lake build ✔

Nothing was left unfinished.

subverso#243 gutted `SubVerso.Examples` — `%example`, `loadExamples`, the
`Example` type and the `SubVerso.Examples.Env` module are gone, and with them
the `public meta import SubVerso.Signature` that `SubVerso.Examples` used to
re-export. `VersoManual.InlineLean.Signature` reached `checkSignature` through
that re-export, so it fails with
`Unknown identifier `SubVerso.Examples.checkSignature``.

Import `SubVerso.Signature` directly, exactly as upstream verso#1015 does.
This surfaced in `verso-slides`, which tracks verso `main` and therefore
already pins subverso `main`, while the in-tree verso tracks verso
`nightly-testing`, which has not merged verso#1015 yet. The import works
against every subverso revision currently pinned in the tree
(`d047cb48`, `acbaca23`, `892d6dc5`), all of which carry `checkSignature` in
`SubVerso.Signature`.

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

Copy link
Copy Markdown
Contributor Author

Build report for fix: verso breakage from the SubVerso examples-mechanism removal

Turned green:

Repo Critical Build Test Lint
verso-slides ✅ in 49s ✅ in 9s ⏭️
Stayed green
Repo Critical Build Test Lint
aesop ✅ ✅ in 0s ✅ in 4s ⏭️
batteries ✅ ✅ in 0s ✅ in 4s ✅ in 2s
import-graph ✅ ✅ in 2s ✅ in 4s ⏭️
lean4-cli ✅ ✅ in 0s ✅ in 0s ⏭️
mathlib4 ✅ ✅ in 56s ✅ in 44s ✅ in 1m 37s
plausible ✅ ✅ in 0s ✅ in 2s ⏭️
ProofWidgets4 ✅ ✅ in 1s ✅ in 1s ⏭️
quote4 ✅ ✅ in 0s ✅ in 1s ⏭️
reference-manual ✅ ✅ in 1m 12s ⏭️ ⏭️
BibtexQuery ✅ in 1s ⏭️ ⏭️
comparator ✅ in 2s ⏭️ ⏭️
cslib ✅ in 2s ✅ in 10s ✅ in 3s
doc-gen4 ✅ in 1s ⏭️ ⏭️
illuminate ✅ in 1s ✅ in 11s ⏭️
lean4-unicode-basic ✅ in 0s ⏭️ ⏭️
lean4export ✅ in 0s ✅ in 8s ⏭️
LeanSearchClient ✅ in 0s ✅ in 0s ⏭️
leansqlite ✅ in 3s ✅ in 21s ⏭️
nerodia ✅ in 1s ✅ in 21s ⏭️
repl ✅ in 0s ✅ in 51s ⏭️
verso ✅ in 1m 0s ✅ in 2m 59s ⏭️
verso-web-components ✅ in 25s ⏭️ ⏭️

View run

Kha pushed a commit that referenced this pull request Oct 4, 2026
Run
[37207955571](https://github.com/leanprover/downstream-lean4/actions/runs/37207955571)
on `nightly-2026-10-04` went red in `mathlib4` (critical) and `repl`,
with `cslib`
skipped behind `mathlib4`. The cause is not the nightly — it is the
`downstream: update repo batteries` merge 4cfce6c, which brought in

[batteries#1990](leanprover-community/batteries#1990).

## mathlib4

batteries#1990 lets `on_goal` act on several goals at once. It
introduces

```lean
syntax goalNum := "-"? num
```

and replaces `elab "on_goal " reverse:"-"? n:num " => " seq:tacticSeq`
with
`elab "on_goal " ns:goalNum+ " => " seq:tacticSeq`, and `pick_goal`
likewise.
That breaks Mathlib in two independent ways.

**1. The `on_goal` quotations in
`Mathlib.Tactic.ClickSuggestions.Util`** — `$n₁` is now
a `TSyntax goalNum` where the code wants a `NumLit`, and the
term-position quotation
wants a `goalNum` where `Syntax.mkNatLit` gives a `NumLit`. This is the
only error CI
reported. The fix is the author's own adaptation,

[mathlib4#44446](leanprover-community/mathlib4#44446),
applied
verbatim: annotate the three antiquotations `:num`.

**2. The syntax node kinds were renamed.** The `-` used to be an atom of
the tactic
syntax itself and is now part of `goalNum`, so the generated kinds
change:

| old | new |
| --- | --- |
| `Batteries.Tactic.«tacticOn_goal-_=>_»` |
`Batteries.Tactic.«tacticOn_goal_=>_»` |
| `Batteries.Tactic.«tacticPick_goal-_»` |
`Batteries.Tactic.tacticPick_goal_` |

Mathlib's `multiGoal` and `unusedTactic` linters keep those kinds in
exclusion lists,
written out by name, so after the rename neither linter recognises
`on_goal` or
`pick_goal` as focusing the goal any more and every use in Mathlib
starts warning —
`--wfail` turns that into a build failure. Renamed in
`Mathlib/Tactic/Linter/Multigoal.lean` (both entries) and
`Mathlib/Tactic/Linter/UnusedTacticExtension.lean`.

44446 does not carry this half, because upstream Mathlib still builds
against the
pre-#1990 batteries, where the old kinds exist and the exclusions work.
Upstream will
need it at its next batteries bump.

(`Mathlib/Tactic/Linter/FlexibleLinter.lean:299` holds a third such
entry, under the
pre-Batteries name `Std.Tactic.«tacticOn_goal-_=>_»`. It has been dead
since the
rename to batteries and is left alone here — reviving it would change
that linter's
output, which is not this breakage.)

Verified locally on 4cfce6c + `nightly-2026-10-04`:

* `lake build Mathlib Archive Counterexamples Wanted cache --wfail` —
18352 jobs, no
  warnings
* `lake test --iofail` — 18868 jobs
* `lake lint` — `Linting passed for Mathlib.`

`repl`, whose `test` phase failed on the very same module, needs no
change of its own:
`lake build` and `lake test` pass here, including the `test/Mathlib`
build and the
`on_goal` case of the `test/*.in` suite.

## Not fixed here

`cslib` and `verso-slides` are the two repos this run left red that are
already covered
by open PRs, and no second fix is opened for them:

* `cslib` —
[#129](#129), the
`Set.Finite.measure_lt_top_of_sigmaFinite` clash. It was *skipped* in
this run behind
`mathlib4`, so CI has not run it since `nightly-2026-10-03`. Re-verified
here on top of
this commit, with #129 applied: `lake build --wfail --iofail` (6646
jobs),
  `lake test --wfail --iofail` (18601 jobs) and `lake lint` all pass.
* `verso-slides` —
[#126](#126), the
`SubVerso.Examples` re-export. Re-verified with #126 applied: `lake
build` (749 jobs)
  and `lake test -- --no-playwright` pass.

Nothing was left unfinished: every phase of every repo in this run's red
set passes
locally, given those two PRs.

<!-- downstream-watch: unattended -->

Co-authored-by: downstream-lean4[bot] <downstream-lean4[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <[email protected]>
@david-christiansen
david-christiansen merged commit 4e2c18c into master Oct 5, 2026
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