Repository navigation
Batch Lean checks for team handoffs and continuation - #54
Merged
Merged
Conversation
LikC1606
added a commit
that referenced
this pull request
Nov 28, 2026
…sions (#56) Since #54 a batch of same-file declarations shares one verification deadline. When the batch timed out, every attribution was blocked and the check rejected the first declaration instead of retrying in isolation. In continuation seeding, tryBatch rethrew that error and aborted the seed. A batch that only hit its deadline, or that reached a verification checkpoint, now falls back to per-declaration checks with their own deadlines. tryBatch also falls back on other batch check failures, so each candidate records its own result as before batching. Since #55, a child first tracked after it had exited got the current uptime as its exit tick. A later session that reused its pid as sid could then pass the continuity check and be SIGKILLed. Only an exit observed while tracked now bounds the session, and the detached proof-environment helper is tracked at spawn. Co-authored-by: Zhenhao Liu <176368005+LikC1606@users.noreply.github.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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.
Team deliveries and Lead adoption used to check every declaration in a separate Lean session. Continuation imports did the same when reopening historical helpers. Declarations in the same file now share a verification session when their isolated source projections match. Each declaration still gets its own type check and receipt. Source failures fall back to individual checks, so a rejected historical helper does not prevent later helpers from being imported.
Compact projections also retain dependencies used with dot notation such as
lemma.mpr. This fixes missing-identifier errors in otherwise valid submissions.Local validation passed 128 focused tests, TypeScript checking, and the headless build. In a BandConnectivity replay, the 15-declaration delivery and adoption used two verification sessions instead of 30 and took 54.4 seconds instead of 332.0. A replay through the continuation entry point verified all 26 historical helpers in one session in 19.7 seconds, compared with 136.1 seconds in the archived sequential run. The timings exclude Lean dependency setup.