`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

Aperta
#16,290 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Ambito
testing, tooling

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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:

  1. 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 --paranoid run that cannot finish is reported as such.
  2. The nanoda config the comparator writes gets a stack_size_bytes field, or the bundled nanoda_bin is built from a version that reads it; num_threads could follow the machine.
  3. lean4lean's fuel defaults, or a way to pass --config: through the comparator's external_kernels (which works today: naming lean4lean --config:whnf=… --import as 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).

Lingua principale
Lean
Stelle
10.3k
Fork
1.1k
Merge medio
19h 8m
PR unite (30g)
421

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di leanprover/lean4

Tutte le issue di leanprover/lean4

Issue simili

Altre issue su Testing & QA

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.