Skip to content

Pin Lean v4.36.0; keep v4.35.0 and v4.32.1 supported (built on every PR); README lists supported versions - #204

Merged
junjihashimoto merged 31 commits into
mainfrom
feat/pin-lean-4.36
Dec 1, 2026
Merged

junjihashimoto merged 31 commits into
mainfrom
feat/pin-lean-4.36

Conversation

@junjihashimoto

Copy link
Copy Markdown
Contributor

Decision: pin 4.36, keep 4.32 and 4.35 working, and list the supported versions in the README.

Changes:

  • lean-toolchain → leanprover/lean4:v4.36.0. The ProofConsumer fixture, which is the one How_To_Use tells users to copy, follows it.

  • New workflow lean-versions.yml ("Supported Lean versions"). On every PR and every push to main it builds, on v4.32.1 and on v4.35.0:

    • the default targets;
    • Tests.Ved.U1EntryCheck (the generated proofs; the 4.35 port-type break showed up there);
    • Tests.Ved.StrictAuditCheck (the axiom audit, whose fixtures depend on the version).

    A change that only works on the pin fails there.

  • lean-compat.yml keeps only the pinned and stable rows. It is informational, for versions newer than the pin. v4.35.0 moved to the supported workflow.

  • README: new section "Supported Lean versions", a table of version, status and what checks it.

  • How_To_Use: the toolchain row now says v4.36.0 and points to the README table.

  • docker/tutorial/README: the toolchain row follows lean-toolchain.

  • proofs/ (Mathlib) and docbuild/ (doc-gen4) keep their own v4.32.1 toolchains. They use Sparkle by path, and Sparkle builds on v4.32.1. The README says so; only docbuild is built in CI, by the main-only API-docs step.

Not changed: historical mentions of 4.32.1 (release notes, the research snapshot, the Ch07c example provenance, comments that say "observed on 4.32.1").

Verification so far (before this PR, on the same code with each toolchain, by kjob):

This PR's own CI runs the whole suite on 4.36 for the first time, and the new workflow runs 4.32.1 and 4.35.0.

Known risk: the tutorial Docker image is built only on tag push and has no notebook test. Its kernel is xlean on Lean 4.28.0, which is unchanged by this PR. Whether it works with Sparkle on 4.36 is only seen at the next tag, as it was for 4.32.1.

…PR by lean-versions.yml (default targets + U1EntryCheck + StrictAuditCheck); README 'Supported Lean versions'; How_To_Use, ProofConsumer fixture and docker README follow the pin; lean-compat keeps the informational stable row
…e taking the array (Lean 4.36 moved the pure evaluations past arrRef.take; re-entry then read the empty ref: 'null reference read')
…At before taking the array (Lean 4.36 moved the pure evaluations past arrRef.take; re-entry then read the empty ref: 'null reference read')"

This reverts commit 3026415.
…35+ Ref.set is swap, which panics on a taken ref: 'null reference read'; put does not exist in 4.32.1)
… have started (the consumer could finish all cycles before the producer was scheduled: 0 messages received on CI)
…Decidable instance, ofReduceBool matched by name)
…lCore gained a maxRecDepth argument in 4.36)
…nd proofs in the state trace and the CdoW step)
…true/if_false (4.36 deprecation warnings leaked into #guard_msgs of the checks; both names exist on 4.32.1)
…orems (BitVec.toNat_ushiftRight is not on 4.36); wrappers must still be non-rfl with the same type and axioms
… Lean-version dependent); depth and axioms stay exact
…d of pinning it (1297/1677 are 1353/1733 on 4.36); boundary checks kept
… the kernel refusal is thrown, not reported later
…steps (ite_eq_left does not exist on 4.32.1)
…erated scripts use lemma names deprecated on 4.36 only; the warnings leaked into #guard_msgs)
…e former jobs) for the pin, v4.35.0 and v4.32.1; README defines supported as library + whole VED set; BuildAndCI: how to change the supported versions
…ance residue by rfl (the simp set leaves an instance argument of ite unrewritten), gen_loop matches the top loop at default transparency (the body's type list is [a] ++ [b, c], not [a, b, c]), erw for runCircuitH_eq

The 'first | (simp ..; done) | ..' alternatives use '(try rfl); done' so that 'done' stays outside the try.
…ets for type correctness at implicit transparency; a lambda against the unfolded CEnv was rejected, so simp/rw skipped the stateAt/irEnv/loop rewrites); the generated rhoNS/rhoN equations use Eq.trans with natJoin_eq_join instead of rw; erw for the guarded nested-loop trace and for CdoM.irEnv_eq
…r-let isTypeCorrect, now at implicit transparency, took 73 s and the 1.6M-heartbeat budget on crc16's shared route; the kernel still checks the proof)
… (the constant is gone on 4.35+; it can only occur as an axiom on older versions)
…ewrite (dsimp no longer rewrites the Decidable instance argument of an ite, so the rewrite motive mentioned the loop term only in the condition)
…ns with implicitDefEqProofs := false (on 4.36 it exhausted the recursion depth, then the heartbeats, on parents with a Bool operator over a comparison; the same switch VedU1Entry's evaluating simps already use)
… default budgets on 4.36, still refused at depth 12 with the same message, accepted with the raised instance-search limit); Ex7 checks the axioms of ok5/insBig_not_ok/insRst_not_ok against the standard three instead of pinning the list (propext alone on 4.32, all three on 4.36)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant