Skip to content

Commit cf8b1d1

Browse files
docs(abf26): true-up ToVCVio staging markers against the expanded VCV-io branch
All generic ToVCVio lemmas are now staged on the VCV-io branch feat/simulateq-routing-lemmas (c8e953c2 + a1e79b1b + 01ff338f, one-shot PR pending): the README gains the staging-state section with the delete-at-bump instruction and the three rename-at-deletion mappings (OptionT.failure_bind -> Batteries failure_bind, StateT.run'_map_comm -> StateT.run'_map', bind_liftComp_map -> Mathlib bind_map_left); the SimulateQ.lean "ArkLib-local / NOT mirrored" header is retitled accordingly. RbrGame.lean stays ArkLib-specific (references ProtocolSpec). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent ba408ed commit cf8b1d1

2 files changed

Lines changed: 32 additions & 8 deletions

File tree

ArkLib/ToVCVio/OracleComp/SimSemantics/SimulateQ.lean

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -453,10 +453,14 @@ lemma simulateQ_add_add_liftM_comp_right (t : spec₂.Domain) :
453453

454454
end QueryImpl
455455

456-
/-! ### ArkLib-local lemmas (upstream candidates; NOT mirrored in VCV-io yet)
457-
458-
Unlike the staged section above, nothing here exists upstream: do NOT delete these
459-
at the next VCVio bump unless they have been upstreamed by then. -/
456+
/-! ### Further staged lemmas (mirrored on the VCV-io PR branch 2026-06-12)
457+
458+
Everything below is now ALSO staged on the VCV-io branch
459+
`feat/simulateq-routing-lemmas` (commit `01ff338f`), in some cases generalized
460+
(`ProbComp` → generic monad) — see `ArkLib/ToVCVio/README.md` for the
461+
disposition table and the three rename-at-deletion cases. Delete here at the
462+
first VCVio bump past that branch's merge, after confirming the bump carries
463+
them. -/
460464

461465
/-- `OptionT` companion to `QueryImpl.simulateQ_liftM_eq_of_query`: simulating an
462466
`OracleComp`-computation `oa` lifted into `OptionT (OracleComp spec₂')` (the shape produced by

ArkLib/ToVCVio/README.md

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,28 @@ Workflow: prefer landing general statements upstream in VCV-io under the same
99
names and the mirrored path; on the next VCVio bump, delete the corresponding
1010
declaration here and let references resolve to the upstream version.
1111

12+
## Staging state (2026-06-12)
13+
14+
Everything generic in this directory is staged on the VCV-io branch
15+
`feat/simulateq-routing-lemmas` (commits `c8e953c2` + `a1e79b1b` + `01ff338f`,
16+
PR pending). **At the first VCVio bump past that branch's merge, delete the
17+
mirrored declarations here** — they were verified to be same-name drop-ins
18+
(some upstream versions are *generalized*: `ProbComp` → generic monad,
19+
`StateT σ ProbComp` → lawful target; all unify at ArkLib's instantiations).
20+
Before deleting, confirm the bump actually carries them.
21+
22+
Three local names resolve to pre-existing upstream lemmas instead — at
23+
deletion time, **rename call sites**:
24+
25+
| ArkLib-local name | upstream replacement |
26+
|---|---|
27+
| `OptionT.failure_bind` | `failure_bind` (Batteries, `@[simp]`) |
28+
| `StateT.run'_map_comm` | `StateT.run'_map'` (note: arg order differs) |
29+
| `OracleComp.bind_liftComp_map` | `bind_map_left` (Mathlib) |
30+
31+
**Not staged (genuinely ArkLib-specific, keep):**
32+
`OracleComp/RbrGame.lean` — references ArkLib's `ProtocolSpec`
33+
(challenge-query resolution + the rbr/KS game master mixture lemmas).
34+
1235
History note: `simulateQ_list_forIn` was staged here and has been deleted —
13-
the VCVio pin (`5f7707fb`, Lean 4.30 bump) now contains it upstream. The
14-
`simulateQ_addLift_add_liftM_left/right` routing pair
15-
(`OracleComp/SimSemantics/SimulateQ.lean`) remains ArkLib-local and is an
16-
upstream candidate.
36+
the VCVio pin (`5f7707fb`, Lean 4.30 bump) now contains it upstream.

0 commit comments

Comments
 (0)