Skip to content

fix: compile Mathlib cache holes before cache-only TauCeti restore - #2184

Closed
kim-em wants to merge 1 commit into
mainfrom
fix/mathlib-cache-holes
Closed

kim-em wants to merge 1 commit into
mainfrom
fix/mathlib-cache-holes

Conversation

@kim-em

@kim-em kim-em commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator

This PR runs a plain lake build Mathlib in the trusted root build before the cache-only lake -v --no-build build TauCeti. Mathlib's cache for the pinned revision (b63f6e8) lacks Mathlib.Tactic.CategoryTheory.BicategoryCoherence (lake exe cache get downloads 8959 of 8960 files), so the cache-only TauCeti step found that module out of date and failed every evaluation, for example https://github.com/leanprover/lean-eval-submissions/actions/runs/43348967927.

The Mathlib build runs without TauCeti's cache settings and compiles only the modules the Mathlib cache did not supply; on a complete cache it takes about 15 seconds. Mathlib cannot import TauCeti, so it cannot compile TauCeti, and the TauCeti step stays cache-only. Lake keys TauCeti's published outputs by input traces, which a locally compiled Mathlib module reproduces, so the TauCeti downloads still match.

#2182 replaces this step with a selective restore that also runs with compilation disabled, so it needs the same pre-build when it lands.

🤖 Prepared with Claude Code

Mathlib's cache for the pinned revision lacks
Mathlib.Tactic.CategoryTheory.BicategoryCoherence, so the trusted
`lake -v --no-build build TauCeti` found that module out of date and failed,
failing every evaluation since lean-eval moved to this Mathlib. Run a plain
`lake build Mathlib` first, without TauCeti's cache settings. It compiles only
the modules `lake exe cache get` could not supply, it cannot compile TauCeti,
and the compiled modules reproduce the input traces that key TauCeti's
published outputs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kim-em kim-em closed this Nov 13, 2026
@kim-em
kim-em deleted the fix/mathlib-cache-holes branch November 13, 2026 22:46
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