feat(lang): add Yield scheduler and structural lemmas#1
Open
elefthei wants to merge 4 commits into
Open
Conversation
Introduce Yield syntax, denotation, finite-pool scheduling, erased/visible interpretation APIs, and initial proof-surface scheduler regressions. AI-Assisted-By: GPT-5.5
Author
Implementation NotesTask: Implement research/docs/2026-06-01-yield2-cooperative-multithreading-ictrees.md work on new branch lang/yield Running Notes
Iteration 1 Notes
Iteration 2 Notes
Iteration 3 Notes
Iteration 4 Notes
Iteration 4 Notes
Iteration 5 Notes
|
Land Phases 4-6 of the Yield cooperative scheduler bisimulation: focused-thread matching, the coinductive sbisim_schedule congruence theorem, and the sbisim_scheduled_visible corollary. SBisim.v grows to 954 lines with 0 Admitted and only standard axioms. Wire SBisim into the Lang.Yield facade export. Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Author
Implementation NotesTask: Complete specs/2026-06-02-complete-specs-2026-06-02-sbisim-schedule-proof-md.md using the rocq skill Iteration 1/10 — 2026-06-02Orchestration deviation
State found at start of iteration
Design decisions / spec resolutions realised in the landed code
Validation outcomes (this iteration)
NOT completed this iteration (deferred to iteration 2+)
Precise technical blocker for Phase 4/5 (handoff)The Some-focus simulation case cannot be discharged with the currently-available
No secrets/credentials involved (proof-only change). Iteration 2/10 — 2026-06-04Orchestration
P0 RESOLVED
Iteration-1 "blocker" was INACCURATE — corrected
Phases 4/5/6 — COMPLETE (verified)
Design decisions / deviations from spec
Validation outcomes (orchestrator-verified, not just subagent-claimed)
State / not committed
|
Update Yield source syntax so YFork accepts a single child body and use flow-sensitive statement denotation to keep spawned children from inheriting surrounding continuations. Restore fork-facing façade/regression lemmas for the public Yield surface while preserving the raw scheduler boundary. Assistant-model: GPT-5.5
Author
Implementation NotesTask: Implement the change in specs/2026-06-04-yfork-single-body.md Running Notes
Iteration 1 Notes
Iteration 2 Notes
Iteration 3 Notes
Iteration 4 Notes
|
Add generic expression, assignment, sequence, branch, while, and fork structural proof doors for the Yield language, including the public while invariant lemma. AI-Assisted-By: GPT-5.5
Author
Implementation NotesTask: Implement specs/2026-06-04-yield-structural-lemma-plan.md, take as much time as needed to prove everything. No admitted! Running Notes
Iteration 1/20 notes — 2026-06-05Preflight and setup
Implementation decisions
Validation outcomesIndependent validation passed:
Residual work / deferred items
Worktree summary
Iteration 3/20 notes — 2026-06-05Preflight and setup
Analysis decisions
Implementation decisions
Validation outcomes
Residual risks / deferred work
|
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.
Summary
Adds the Yield language, cooperative scheduler, scheduler bisimulation proof layer, and TICL-facing structural lemma surface for source-level Yield reasoning.
Changes
YFork bodyas a single-body spawn where child execution remains separate from the parent continuation.Admitted,admit, orAxiomintheories/Lang/Yield.Validation
dune build theories/Lang/Yield/Ticl.vo theories/Lang/Yield/SBisim.vo theories/Lang/Yield.vodune buildrg -n "Admitted\\.|admit\\b|Axiom\\b" theories/Lang/Yield --glob '!_build/**'(no matches; exit 1)git diff --check origin/mainNotes
Untracked local planning/research documents remain in
specs/andresearch/; they were inspected for PR prep and intentionally not staged into this code PR.