prioritized_borel_segment_trace_tracker
If the endpoints of an unmarked segment determine its encoded trace, a memory component storing the last marked boundary and prefix recovers the encoded node and stays fixed on every unmarked edge.
Statement
theorem prioritized_borel_segment_trace_tracker {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (cut : TreeGameEdge Q 3 → Prop) (huniq : ∀ u p v q a b, Op1385SegmentTrace G cut u p v q a → Op1385SegmentTrace G cut u p v q b → a = b) : ∃ (I : Type) (start : I) (view : I → List Bool → Q → Option (List Bool)) (advance : I → TreeGameEdge Q 3 → I), view start [] G.init_state = some [] ∧ (∀ i (e : TreeGameEdge Q 3) w, e ∈ G.edges → view i e.source_node e.source_state = some w → view (advance i e) (e.source_node ++ [e.dir]) e.target_state = some (w ++ enc1385Block e)) ∧ (∀ i (e : TreeGameEdge Q 3), ¬cut e → advance i e = i)
- Source
- arXiv:2611.10136, Conjecture 19 and Proposition 27. Strategy compression for OP-1385.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 4
- Op1385SegmentTraceEncoded public bits of a finite original segment starting at a specified position and traversing only legal, unmarked edges.
- TreeGameEdgeA structure TreeGameEdge (Q : Type*) (k : ℕ) representing an edge in a binary tree game arena with state space Q and k priorities, with…
- PrioritizedBorelGameA structure PrioritizedBorelGame (Q : Type*) (k : ℕ) representing a prioritized Borel game with state space Q and k priorities, with…
- enc1385GameGiven a finite-state three-priority tree game, construct a phase-state game that encodes each original direction followed by a one-hot…
- Used by 1
- prioritized_borel_eventually_unambiguous_segments_reductionMark edges so that every legal play uses only finitely many marked edges and any unmarked segment has its encoded trace determined by its…
The proof, explained
The theorem shows that if unmarked segment traces between endpoints are unique, an internal memory can track encoded node traces while remaining stationary on unmarked edges. The memory type I = List Bool × Q × List Bool stores the anchor vertex (u, p) of the current unmarked segment and the prefix trace accumulated prior to reaching it. The view function looks up the unique trace from (u, p) to the current vertex and appends it to the stored prefix, while advance resets the anchor upon crossing a cut edge and remains identity otherwise. The edge step property follows by case analysis on whether the edge is cut, using the inductive step constructor of segment traces in the uncut case.
Define the memory type I as triples (anchor node, anchor state, prefix trace) and the view function that recovers traces from the anchor.
We enable classical logic. The memory type I is defined as `List Bool × Q × List Bool`, where a state `z = (u, p, pre)` records the anchor vertex `(u, p)` that began the current unmarked segment and the prefix trace `pre` accumulated before reaching `(u, p)`. For any memory state `z`, tree node `v`, and state `q`, the function `view z v q` tests if there exists an unmarked segment trace from `(u, p)` to `(v, q)`; if so, it returns `some (pre ++ w)` using the chosen trace `w`, and `none` otherwise.
classical let I := List Bool × Q × List Bool let view (z : I) (v : List Bool) (q : Q) : Option (List Bool) := if h : ∃ w, Op1385SegmentTrace G cut z.1 z.2.1 v q w then some (z.2.2 ++ h.choose) else none
If an unmarked segment trace w exists from the memory's anchor to (v, q), the view evaluates to some (z.2.2 ++ w).
We establish the helper lemma `view_of`. Given a witness trace `h : Op1385SegmentTrace G cut z.1 z.2.1 v q w`, the existential condition in `view` is satisfied (unfolded by `dif_pos`). By the uniqueness hypothesis `huniq`, any other witness trace must equal `w`, so the chosen trace equals `w` and `view z v q` evaluates to `some (z.2.2 ++ w)`.
uses
dif_poshave view_of (z : I) (v : List Bool) (q : Q) (w : List Bool) (h : Op1385SegmentTrace G cut z.1 z.2.1 v q w) : view z v q = some (z.2.2 ++ w) := by have hx : ∃ a, Op1385SegmentTrace G cut z.1 z.2.1 v q a := ⟨w,h⟩ simp only [view,dif_pos hx,huniq _ _ _ _ _ _ hx.choose_spec h]
At the anchor vertex itself, the view function returns the stored prefix trace.
We establish the helper lemma `seed`: for any vertex `(v, q)` and prefix `w`, `view (v, q, w) v q = some w`. This follows from `view_of` applied to the empty trace `Op1385SegmentTrace.root` connecting `(v, q)` to itself, since `w ++ [] = w`.
have seed (v : List Bool) (q : Q) (w : List Bool) : view (v,q,w) v q = some w := by simpa using view_of (v,q,w) v q [] .root
Define the memory update function advance, instantiate the tracker, and discharge the initial condition.
The function `advance z e` updates memory: if the edge `e` is marked (`cut e`), the anchor resets to the edge's target vertex `(e.source_node ++ [e.dir], e.target_state)` and the stored prefix updates to the trace accumulated at the source plus `enc1385Block e`; if `e` is unmarked, memory is unchanged. We instantiate the existential quantifier with `I`, the start state `([], G.init_state, [])`, `view`, and `advance`. The initial view condition `view start [] G.init_state = some []` holds immediately by `seed`.
let advance (z : I) (e : TreeGameEdge Q 3) : I := if cut e then (e.source_node ++ [e.dir],e.target_state,(view z e.source_node e.source_state).getD [] ++ enc1385Block e) else z refine ⟨I,([],G.init_state,[]),view,advance,seed _ _ _,?_,?_⟩
When an edge is marked, the updated memory views the target vertex as having the extended trace w ++ enc1385Block e.
Given a valid edge `e` and source view `view z e.source_node e.source_state = some w`, we case-split on `cut e`. When `cut e` is true, `advance z e` resets the anchor to the target vertex with prefix `w ++ enc1385Block e`. By `seed`, viewing the target vertex from this newly anchored memory state returns `some (w ++ enc1385Block e)`.
· intro z e w he hw by_cases hc : cut e · simp [advance,hc,hw,seed]
When an edge is unmarked, the view at the target vertex extends the view at the source by enc1385Block e.
When `¬cut e`, `advance z e` is simply `z`. From `view z ... = some w` at the source, an unmarked segment trace `a` from the anchor to the source vertex must exist (otherwise the view would be `none`). By `view_of`, `z.2.2 ++ a = w` via `Option.some.inj`. Extending `a` along the unmarked edge `e` using `Op1385SegmentTrace.step` produces a valid trace to the target vertex with block `a ++ enc1385Block e`. Applying `view_of` and associativity of list concatenation (`List.append_assoc`), the view at the target evaluates to `some ((z.2.2 ++ a) ++ enc1385Block e) = some (w ++ enc1385Block e)`.
uses
Option.some.inj,List.append_assoc· rw [show advance z e = z by simp [advance,hc]] have hx : ∃ a, Op1385SegmentTrace G cut z.1 z.2.1 e.source_node e.source_state a := by by_contra hn simp [view,hn] at hw have hval := Option.some.inj ((view_of _ _ _ _ hx.choose_spec).symm.trans hw) rw [view_of _ _ _ _ (.step e hx.choose_spec he hc),← hval,List.append_assoc]
The memory component is stationary on unmarked edges.
When `¬cut e`, the definition of `advance z e` immediately simplifies to `z` because the `cut e` branch is not taken.
· intro z e hn simp [advance,hn]
dif_pos- In a dependent if-then-else `if h : c then t else e`, if the condition `c` holds with proof `hc`, the expression evaluates to `t hc`.
Option.some.inj- The `Option.some` constructor is injective: if `some a = some b`, then `a = b`.
List.append_assoc- List concatenation is associative: `(as ++ bs) ++ cs = as ++ (bs ++ cs)`.
- Classical logic is used: `view` applies `Classical.choose` to select an unmarked segment trace from the existential witness. The uniqueness hypothesis `huniq` guarantees that this choice is canonical.
- The base case and inductive step of `Op1385SegmentTrace` are invoked in the Lean source via constructor dot-notation (`.root` and `.step`).
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem prioritized_borel_segment_trace_tracker {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (cut : TreeGameEdge Q 3 → Prop) (huniq : ∀ u p v q a b, Op1385SegmentTrace G cut u p v q a → Op1385SegmentTrace G cut u p v q b → a = b) : ∃ (I : Type) (start : I) (view : I → List Bool → Q → Option (List Bool)) (advance : I → TreeGameEdge Q 3 → I), view start [] G.init_state = some [] ∧ (∀ i (e : TreeGameEdge Q 3) w, e ∈ G.edges → view i e.source_node e.source_state = some w → view (advance i e) (e.source_node ++ [e.dir]) e.target_state = some (w ++ enc1385Block e)) ∧ (∀ i (e : TreeGameEdge Q 3), ¬cut e → advance i e = i) := by classical let I := List Bool × Q × List Bool let view (z : I) (v : List Bool) (q : Q) : Option (List Bool) := if h : ∃ w, Op1385SegmentTrace G cut z.1 z.2.1 v q w then some (z.2.2 ++ h.choose) else none have view_of (z : I) (v : List Bool) (q : Q) (w : List Bool) (h : Op1385SegmentTrace G cut z.1 z.2.1 v q w) : view z v q = some (z.2.2 ++ w) := by have hx : ∃ a, Op1385SegmentTrace G cut z.1 z.2.1 v q a := ⟨w,h⟩ simp only [view,dif_pos hx,huniq _ _ _ _ _ _ hx.choose_spec h] have seed (v : List Bool) (q : Q) (w : List Bool) : view (v,q,w) v q = some w := by simpa using view_of (v,q,w) v q [] .root let advance (z : I) (e : TreeGameEdge Q 3) : I := if cut e then (e.source_node ++ [e.dir],e.target_state,(view z e.source_node e.source_state).getD [] ++ enc1385Block e) else z refine ⟨I,([],G.init_state,[]),view,advance,seed _ _ _,?_,?_⟩ · intro z e w he hw by_cases hc : cut e · simp [advance,hc,hw,seed] · rw [show advance z e = z by simp [advance,hc]] have hx : ∃ a, Op1385SegmentTrace G cut z.1 z.2.1 e.source_node e.source_state a := by by_contra hn simp [view,hn] at hw have hval := Option.some.inj ((view_of _ _ _ _ hx.choose_spec).symm.trans hw) rw [view_of _ _ _ _ (.step e hx.choose_spec he hc),← hval,List.append_assoc] · intro z e hn simp [advance,hn]