Skip to content

Move the default Lean environment to 4.36.0 / Mathlib fc4f59e - #60

Merged
LikC1606 merged 1 commit into
mainfrom
feat/default-env-lean-4.36
Nov 28, 2026
Merged

LikC1606 merged 1 commit into
mainfrom
feat/default-env-lean-4.36

Conversation

@LikC1606

Copy link
Copy Markdown
Collaborator

Moves the standard and mathlib task environments from Lean 4.33.0 / Mathlib db584cd to Lean 4.36.0 / Mathlib fc4f59e, in place.

  • The pinned TheoremOS library is rebuilt for 4.36 (r5 plus resources/theorem-os-library/lean4.36.0.patch). Pantograph builds with scripts/pantograph/lean4.36.0.patch.
  • The Dockerfile, the CI solver matrix (now 4.34.1 and 4.36.0), docs, examples and tests follow the new pins.

Saved evidence is checked against the environment its digest records:

  • The 4.33 environment is kept as resources/mathlib/environment-4.33.json. recordedLeanTaskEnvironment(id, digest) resolves a saved digest to the current or a superseded environment.
  • Formalization evidence, reference receipts and the Web formalization report use that recorded environment. A nested correspondence receipt must carry the digest of its enclosing request.
  • New requests, resumed runs and worker results still require the current pins. The workbench shows old formalizations but refuses to confirm them or send them to research (409, asks the user to re-formalize).

Tests:

  • New receipt fixtures were generated with the real comparator on 4.36, without model calls. The 4.33 fixtures are kept for the historical path.
  • Kernel-context exporter tests now also run under Lean 4.36.0 (8/8, no skips).
  • Full local suite: 11181 tests. The only failures are the same as on main: formalizationReviewCli ×5 and putnamBench ×1. Both typechecks and bun run build pass.

Known limits:

  • A run records no Lean environment digest, so the verification kit for an old run uses the current environment.
  • Old runs cannot resume on the new pins.
  • PutnamBench 13d0429 is rejected under 4.36.
  • REDISTRIBUTION.md and upstream-grant.json still name library r4.
  • The docker image was not built locally.

🤖 Generated with Claude Code

The standard and mathlib task environments now pin Lean v4.36.0 and
Mathlib fc4f59e577feb1a4956671bc04ac18aaaf8cd842. The pinned TheoremOS
library is rebuilt for 4.36 (release r5 with a 4.36 compatibility
patch), Pantograph gets a 4.36 build patch, and the Dockerfile, CI
matrix (4.34.1, 4.36.0), docs, examples and tests follow the new pins.

Saved evidence keeps the environment digest it recorded. The 4.33
environment is kept as resources/mathlib/environment-4.33.json, and
recordedLeanTaskEnvironment(id, digest) resolves a saved digest to the
current or a superseded environment. Formalization evidence, reference
receipts and the Web report are checked in that recorded environment,
and a nested correspondence must carry its enclosing request's digest.
New requests, resumed runs and worker results still require the
current pins. The Web workbench shows old formalizations but refuses
to confirm them or hand them to research (409, asks to re-formalize).

New receipt fixtures were generated with the real comparator on 4.36
(no model calls); the 4.33 fixtures are kept for the historical path.
The kernel-context exporter tests now also run under Lean 4.36.0.

Known limits: a run records no Lean environment digest, so the
verification kit for an old run uses the current environment; old runs
cannot resume on the new pins.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@LikC1606
LikC1606 merged commit fc9a897 into main Nov 28, 2026
4 checks passed
@LikC1606
LikC1606 deleted the feat/default-env-lean-4.36 branch December 1, 2026 20:12
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