Repository navigation
VED on Lean 4.35/4.36: bound the kernel check of u1_seq auxiliary theorems (multiloop-all memory) - #205
Merged
Conversation
…usly under a kernel heartbeat limit (20000 thousand; the largest of 2500 aux theorems needs 2878). On 4.36 the 384-bit row synth_fp2MulC0 sent a doomed first attempt into a 160 s, 24 GiB kernel check (simp skipped definitional steps on BitVec.ule over a symbolic 385-bit value); now it stops at 4.1 GiB and the fallback script runs as before
…er, which was shut down and took the row with it on the weekly run 46766627148); BuildAndCI: how to run it by hand
…lCap instead of overriding it (0 = no limit gets the cap; a lower caller limit is kept), keep the context's maxRecDepth (withOptions resets it to the option's value); AuxKernelBudgetCheck: low/normal/unlimited budgets, context-only recDepth, synchronous kernel refusal then fallback
…ll (set_option also lowered the elaborator's budget), values printed as text (tuple display differs between versions)
…the kernel instead of reusing the theorem of the normal one
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.
Follow-up to #204: the last VED part that fails on Lean 4.35/4.36 (
multiloop-all, killed on the 16 GiB runner).Cause. On the 384-bit row
synth_fp2MulC0(Tests/Ved/U1MultiLoopFull6.lean), the first proof attempt of oneu1_seqstep leaves the unfolding ofBitVec.extractLsb'/BitVec.uleon a symbolic 385-bit value to the kernel. On 4.36 that kernel check ran 160 s and peaked at 24 GiB (4.32.1: 3.6 GiB, because the attempt already fails insimp). The attempt fails either way and the fallback script proves the step.Change (
Tools/VedU1ScriptSeqGen.lean,withAuxKernelBudget): the kernel check of each auxiliary theorem runs synchronously (Elab.asyncoff) underauxKernelBudgetof the caller'smaxHeartbeats.0("no limit") gets the cap.Core.Context.maxHeartbeats) is not touched. The kernel reads its budget from the options at eachaddDecl.withOptionsresets the context'smaxRecDepthto the option's value, so the caller's context value is put back.Controls (
Tests/Ved/AuxKernelBudgetCheck.lean, in ved-pr and ved-full; built on 4.36.0 and 4.32.1):maxRecDepthraised in the context only is kept;tryfalling back, under the low one.Checks (review fix at eec8bdd):
Tests.Vedtarget built in one run: 88 targets, 38 min.For review (from #204, merged before review):
sparkle_clear_values(signal_lets): skips core's per-let type check; the kernel still checks the proof.Ex9: the refusal example moved from depth 11 to 12, because 4.36 accepts 11 within the default limits.Ex7: the axioms are checked as a subset of the standard three, instead of an exact list.VedSharedRefsCheck: node count within 5%;VedMemCloseCheck: tree size read from the refusal message;U1StructNamedCheck: corekshapelemmas need not berfl.Also (38704b3):
lean-compat.ymlno longer runslake check --paranoid. On the weekly run on main (46766627148) it exhausted the hosted runner, which was shut down and failed both rows; a step time limit cannot prevent that.docs/research/BuildAndCI.mdnow says how to run it by hand (32 GB+, before a release and after moving the pin).