Skip to content

Add a lakefile for the LEAP Lean solutions - #17

Open
Vilin97 wants to merge 1 commit into
google-deepmind:mainfrom
Vilin97:add-leap-lakefile
Open

Add a lakefile for the LEAP Lean solutions#17
Vilin97 wants to merge 1 commit into
google-deepmind:mainfrom
Vilin97:add-leap-lakefile

Conversation

@Vilin97

@Vilin97 Vilin97 commented Jul 20, 2026

Copy link
Copy Markdown

The leap/solutions corpus currently ships as standalone .lean files with no build configuration, so verifying that the proofs compile requires manual setup.

This PR adds a minimal lakefile.lean + lean-toolchain (and a .gitignore for lake artifacts) pinning Lean/mathlib v4.21.0 — the toolchain of AxiomMath/putnam2025, which the Putnam solutions target. With it:

cd leap && lake exe cache get && lake build

compiles 31 of the 58 solution files out of the box, including the Putnam 2025 set. The remaining files (mostly under LEAN-IMO-Bench) appear to target a different mathlib vintage — e.g. they reference Finset.card_sdiff_of_subset, which does not exist in v4.21 — so a per-directory pin (or a note of the intended versions) would be needed to make the whole corpus checkable; happy to adjust if the team can share the versions used.

Motivation: we've been measuring structural quality metrics across Lean corpora (reuse graphs, hygiene, elaboration cost — https://vilin97.github.io/lean-code-reuse/), and machine-checkability of published proof corpora is the first gate for any such analysis.

🤖 Generated with Claude Code

https://claude.ai/code/session_011pxj7RaxUiRdq8SmQm3iKg

Pins Lean/mathlib v4.21.0 (the toolchain of AxiomMath/putnam2025, which
these solutions target). With it, 'lake exe cache get && lake build'
compiles 31 of the 58 solution files out of the box, including the
Putnam 2025 set; the remaining files appear to target a different
mathlib vintage. This makes the corpus mechanically checkable rather
than read-only.
Vilin97 added a commit to Vilin97/lean-code-reuse that referenced this pull request Jul 20, 2026
…3) removed

- Erdos90's src/submission ships its own lakefile (v4.30.0): full 2h40m
  build, exact tier with 37k decls / 2.6M edges.
- Seed-Prover's imo2025 subproject ships a lakefile (v4.14.0, confirming
  the README); built and used as a tier-validation slice: textual vs exact
  Spearman 0.975 on the dump genre — the textual tier is essentially exact
  there.
- Authored leap/lakefile.lean for google-deepmind/superhuman (v4.21.0,
  31/58 files compile; corpus mixes mathlib vintages) and opened upstream
  PR google-deepmind/superhuman#17.
- Rubik Cube Group removed from the corpus (predominantly Lean 3).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011pxj7RaxUiRdq8SmQm3iKg
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