Skip to content

chore(deps): bump Lean toolchain and dependencies to v4.35.0 - #37

Merged
arademaker merged 1 commit into
mainfrom
chore/lean-v4.35.0
Oct 18, 2026
Merged

arademaker merged 1 commit into
mainfrom
chore/lean-v4.35.0

Conversation

@arademaker

Copy link
Copy Markdown
Member

Bumps lean-toolchain to v4.35.0 and pins cslib, verso, doc-gen4 and Mathlib to their v4.35.0 tags (previously cslib, verso and Mathlib were pinned by commit SHA; lake-manifest.json still locks the exact SHAs).

Code changes:

  • CSwL/Sets.lean: follow Mathlib's renames (Mathlib.Data.Rel → Mathlib.Basic.Rel, Mathlib.Data.Setoid.Basic → Mathlib.Order.Setoid.Basic) and update the expected #print Rel output — Rel now ranges over Sort, so students see universe levels here, before #check @Equivalence.
  • CSwL/InfEngine.lean: String.mk is deprecated; use String.ofList (already introduced in IntroL).
  • Version mentions in comments, README badge, and the fallback toolchain in CSwLMeta/Save/Project.lean.

Verified locally: lake build and make all (all four variants) build without errors; the solutions project compiles standalone; the grading project and the autograder executable compile.

Not verified:

  • End-to-end grading: lean4-autograder-main only has a comparator-4.33.0 branch; it compiles on v4.35.0, but --local needs landrun (Linux-only) and was not run.
  • New warning on every Mathlib-importing chapter: "consider adding module to the start of this file". Left as is.

This change was prepared with the assistance of Claude Code (Anthropic); all edits were reviewed by the author.

Pin cslib, verso, doc-gen4 and Mathlib to their v4.35.0 tags. Follow
Mathlib's renames of Mathlib.Data.Rel and Mathlib.Data.Setoid.Basic,
update the expected #print Rel output (Rel now ranges over Sort), and
replace the deprecated String.mk with String.ofList.

This change was prepared with the assistance of Claude Code (Anthropic);
all edits were reviewed by the author.
Copilot AI balanced review requested due to automatic review settings October 18, 2026 23:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

End-to-end grading remains unverified on Lean v4.35.0 with the autograder’s older comparator dependency.

No open issues 🎉

What changed in this PR

Updates the CSwL textbook and build infrastructure to Lean v4.35.0.

Changes:

  • Updates the toolchain, dependency tags, and locked revisions.
  • Adapts chapter code and expected output to upstream API changes.
  • Refreshes version documentation and the generated-project fallback.
File Description
README.md Updates the Lean version badge.
lean-toolchain Selects Lean v4.35.0.
lakefile.toml Pins direct dependencies to matching release tags.
lake-manifest.json Updates locked dependency revisions and manifest format.
CSwLMeta/​Save/​Project.lean Updates fallback toolchain and version comment.
CSwLCompat.lean Removes an outdated version comparison from comments.
CSwL/​Sets.lean Updates Mathlib imports and expected Rel output.
CSwL/​InfEngine.lean Replaces deprecated String.mk with String.ofList.

Review effort: Balanced

@arademaker
arademaker merged commit b80d1a1 into main Oct 18, 2026
2 checks passed
@arademaker
arademaker deleted the chore/lean-v4.35.0 branch October 18, 2026 23:21
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.

2 participants