Skip to content

Batch Lean checks for team handoffs and continuation - #54

Merged
LikC1606 merged 1 commit into
mainfrom
perf/batch-lean-declaration-checks
Nov 28, 2026
Merged

LikC1606 merged 1 commit into
mainfrom
perf/batch-lean-declaration-checks

Conversation

@LikC1606

Copy link
Copy Markdown
Collaborator

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.

@LikC1606
LikC1606 merged commit 0ab690b into main Nov 28, 2026
4 checks passed
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>
@LikC1606
LikC1606 deleted the perf/batch-lean-declaration-checks branch December 1, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant