Repository navigation
Arena: run the Lean Kernel Arena test suite in CI - #24
Merged
Merged
Conversation
tests/arena/run.py downloads an Arena suite into ~/.cache/certus-arena (the closed round 2026-09, pinned by SHA-256, or the live suite), runs `certus check` on every test and compares verdicts. It fails on any new false acceptance. Known ones, each with a soundness issue, live in tests/arena/known-unsound.txt and fail the run once they are fixed, so a fix cannot silently regress. .github/workflows/arena.yml runs both suites; the live one does not gate. Co-Authored-By: Claude Opus 5.5 <[email protected]>
On the Lean 4.29 round, the nat-lit tests unfold literals in unary and grow without bound. Four in parallel exhausted the runner's memory. Cap each test's address space (Linux) and run 3 tests at a time in CI. A test that hits the cap is reported as an error, never as an acceptance. Co-Authored-By: Claude Opus 5.5 <[email protected]>
RLIMIT_AS also counts reserved but untouched memory, such as the checker's 1 GiB stack. Tests that use 10 MB (init-prelude) failed allocation under a 4 GB cap. Poll the child's resident set instead and kill it past the limit. This also works on macOS. Co-Authored-By: Claude Opus 5.5 <[email protected]>
gimbalzero
force-pushed
the
kernel-arena
branch
from
November 21, 2026 20:53
422b819 to
d1f42ce
Compare
On Linux, gf3-matrix-product and magma-list-pair-n21 need more than 4 GB resident. They pass locally. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #4
Runs the Lean Kernel Arena tests against Certus in CI.
tests/arena/run.py(standard library only) downloads a suite into~/.cache/certus-arena, runscertus checkon every test with a time limit and a resident-memory limit, and compares verdicts. Nothing large is committed. Two suites:round-2026-09: the closed round, pinned by SHA-256 (4 MB). This one gates CI.live: whatever arena.lean-lang.org serves today, mostly Lean 4.36 exports. Runs withcontinue-on-error..github/workflows/arena.ymlruns both suites on PRs, on pushes to main, weekly and on demand, and writes a verdict table to the job summary.Falsewith no axioms (Soundness: projection out of a Prop whose sort is stuck proves False (Arena bugs/proj-of-subst-prop) #17). It is tracked intests/arena/known-unsound.txtso the job can still catch new ones, and it is still reported in every run. When Soundness: projection out of a Prop whose sort is stuck proves False (Arena bugs/proj-of-subst-prop) #17 is fixed, the job fails until that line is deleted, so the fix cannot silently regress.The large real-world corpora (Init, Std, Mathlib, cslib, …) are not in the Arena's download and are skipped. So are the
eithercorner cases, which the Arena does not score.Results at main 6069b8f (after nested inductives, #25)
These are local numbers (Apple M2, 300 s per test). On the ubuntu runner, a few heavy tests hit the 6 GB cap instead. See the job summaries.
False rejections, by cause
other/sparse-name-index,other/level-index-out-of-order.perf/church-numerals.other/nat-lit-*,init-prelude,perf/grind-ring-5andperf/magma-list-deep-n21/n36time out. All pass on the 4.36 live suite.perf/magma-list-deep-n36takes 126 s (official kernel 41 s), andgf3-matrix-productuses more than 6 GB on Linux.semiOutParamparameters) was fixed by Kernel: support nested inductive types #25 while this PR was open. It is closed.🤖 Generated with Claude Code