`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
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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).
- 主要言語
- Lean
- スター
- 10.3k
- フォーク
- 1.1k
- 平均マージ
- 19時間 8分
- マージ済み PR(30日)
- 421
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
leanprover/lean4 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
leanprover/lean4#16681 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
leanprover/lean4#16305 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
leanprover/lean4#16299 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
leanprover/lean4#16257 ·
メンテナーはふだん 1 日以内に返信
-
`IO.FS.realPath` reports every failure as `noFileOrDirectory` instead of classifying by `errno`オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
leanprover/lean4#15683 ·
メンテナーはふだん 1 日以内に返信
leanprover/lean4 の issue をすべて見る
似ている issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
メンテナーはふだん 1 日以内に返信
-
garden
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
taecontrol/google-accounts-mcp#97 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
TigreGotico/scriptconv-copyleft#13 ·
メンテナーはふだん 1 日以内に返信
-
bug mac test-rig
難易度 1/5 1時間未満 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信