`lake comparator --paranoid`: on a 2.45 GB export, lean4lean, nanoda, con-leche and con-ron exit non-zero at their own limits while leanchecker-paranoid and the default kernel accept
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Start with src/lake/Lake/CLI/Check.lean and trace runExternalKernel, then inspect the comparator's progress output and JSON report. Reproduce the reported checker exits, especially con-leche's exit 2/3 versus exit 1, and check how each outcome is represented. Done means resource limits, crashes, and rejection are distinguishable in the progress line and report.
Written by the indexing model from the issue text.
Description
Toolchain: leanprover/lean4:v4.36.0-rc2 (the release's bundled leanchecker-paranoid, lean4lean, nanoda_bin 0.4.17, con-leche, con-ron), Linux x86-64, 16 vCPU / 128 GB, --inadvisably-no-sandbox (bubblewrap cannot create a user namespace on that container).
What I ran. lake comparator --paranoid on a solution whose theorem closes over Mathlib and a 3,210-module project (OpenAI's openai/math family-378 proof plus two bridge theorems, ported). The exporter wrote 2,452,607,904 bytes (45,400,403 lines). The judge's output:
Lean paranoid kernel accepts the solution
lean4lean kernel rejected the solution
nanoda kernel rejected the solution
con-leche kernel rejected the solution
con-ron kernel rejected the solution
Lean default kernel accepts the solution
and stderr, one line per checker:
uncaught exception: at OAI.Algorithms.SubexponentialSAT.SqrtLog.LeafRingSetupProgram.Interpolation.staged_ready: (kernel) deterministic timeout
thread 'thread_3' (67698) has overflowed its stack
fatal runtime error: stack overflow, aborting
con-leche: internal error: fuel exhausted: whnfCore [at theorem OAI.Bridges.AnthropicETH.converterHypothesis_proved, fold position 24102] (--verified) t=191.6s
con-ron: error: fuel exhausted: whnfCore [at thm OAI.Bridges.AnthropicETH.converterHypothesis_proved, fold position 24102] (--verified) t=80.973s
error: lean4lean exited with 1
Reproduced by hand on the same export (made with the toolchain's leanexport, the module and the declaration list the comparator printed), each checker alone with /usr/bin/time -v:
| checker | as the comparator runs it | with more room |
|---|---|---|
| nanoda_bin 0.4.17 (bundled) | exit 134, stack overflow in a worker thread after 47 s; its config has no stack-size field (the 15 fields: use_stdin … unsafe_permit_all_axioms); RUST_MIN_STACK=1073741824 changes nothing |
ammkrn/nanoda_lib at 8de7e0c4, built from source, num_threads 16 and stack_size_bytes 1 GiB: exit 0 in 142 s, 101,621 declarations, 37 GB RSS |
| lean4lean (bundled) | exit 1 after 549 s, (kernel) deterministic timeout (its FuelConfig at the defaults: whnf 100000, whnfEager 1000000, lazyDelta 1000, etaExpand 1000, recDepth 50000, inductiveFuel 1000) |
every field ×100 by --config:field=value: exit 0 in 1,382 s |
| leanchecker-paranoid | exit 0 in 1,529 s | — |
| con-leche | exit 3 after 170 s, internal error: fuel exhausted: whnfCore |
the same with --jobs=16; the fuel is a compiled constant (Level.defaultFuel and the knot's fuel), no setting I could find |
| con-ron | exit 3 after 69 s, the same message at the same declaration | the same |
So the four are resource stops, not rejections of a declaration: nanoda and lean4lean accept the export once given room, and con-leche's own source calls a fuel stop "OUR resource limit, so a DECLINE, never a verdict" — yet the comparator prints "rejected the solution" for every non-zero exit and exits 1, with the checker's message visible only on stderr.
What would help, in the order I would value it:
runExternalKernel(src/lake/Lake/CLI/Check.lean) distinguishes a checker's decline or crash (con-leche's exit 2/3, a signal) from a rejection (exit 1), in the progress line and in the JSON report, so a--paranoidrun that cannot finish is reported as such.- The nanoda config the comparator writes gets a
stack_size_bytesfield, or the bundled nanoda_bin is built from a version that reads it;num_threadscould follow the machine. - lean4lean's fuel defaults, or a way to pass
--config:through the comparator'sexternal_kernels(which works today: naminglean4lean --config:whnf=… --importas an external kernel is how I got the accepting run).
Everything above is in a public record with the pod facts (every stdout/stderr, /usr/bin/time -v), the export's sha256 and the exact commands: https://github.com/carlostoledo1891/cert-machine/blob/main/certs/eth-openai-chain.json (fields judge.shipped, judge.diagnosis, judge.named) and the run directories under corpus/eth-refutation/openai-chain/runs/. The export itself is 2.45 GB and reproducible from https://github.com/carlostoledo1891/claimbox/tree/bdf357ef782847f506a605b76f77edafa9fcc50f/lean/eth-bridge (lake build EthBridge.OpenAIChain, ~50 min on 16 vCPU). I can upload it somewhere if useful. Prepared with Claude's help.
The checker-side reports: https://github.com/ammkrn/nanoda_lib/issues/80 (the bundled nanoda_bin and the stack field) and https://github.com/leanprover/con-leche/issues/16 (the compiled fuel; con-ron named inside).
- Dominant language
- Lean
- Stars
- 10.3k
- Forks
- 1.1k
- Avg merge
- 19h 8m
- Merged PRs (30d)
- 421
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from leanprover/lean4
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
leanprover/lean4#16681 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
leanprover/lean4#16305 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
leanprover/lean4#16299 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
leanprover/lean4#16257 ·
Maintainers usually reply within 1 day
-
`IO.FS.realPath` reports every failure as `noFileOrDirectory` instead of classifying by `errno`Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
leanprover/lean4#15683 ·
Maintainers usually reply within 1 day
All issues in leanprover/lean4
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
TigreGotico/scriptconv-copyleft#13 ·
Maintainers usually reply within 1 day
-
bug mac test-rig
Difficulty 1/5 Under an hour Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
software-mansion-labs/Diplomat#20 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day