prioritized_borel_encoding_follow_final
At a controlled original position, after the proper-prefix phase steps, the strategy’s final phase choice completes the code of some legal original outgoing edge and carries exactly that edge’s priority.
Statement
theorem prioritized_borel_encoding_follow_final {Q M : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (pl : BorelGamePlayer) (σ : FiniteMemoryStrategy (enc1385Game G) pl M) (m : M) (node v : List Bool) (q : Q) (hown : G.owner (v,q) = pl) : let st := enc1385Follow G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q) let a := σ.choice st.1 st.2.1 st.2.2 ∃ bits : List Bool, bits.length = Fintype.card Q ∧ st.2.1 = node ++ bits ∧ st.2.2 = ⟨v,q,bits⟩ ∧ ∃ e ∈ G.edges, e.source_node = v ∧ e.source_state = q ∧ bits ++ [a.dir] = enc1385Block e ∧ a.prio = e.prio
- Source
- Controlled block simulation for arXiv:2611.10136, Conjecture 19.
- Verified
- 17 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 8
- enc1385GameGiven a finite-state three-priority tree game, construct a phase-state game that encodes each original direction followed by a one-hot…
- enc1385FollowStarting with a phase-game memory and position, follow a fixed strategy for a specified number of phase steps, returning the resulting…
- FiniteMemoryStrategyA structure FiniteMemoryStrategy {Q : Type*} {k : ℕ} (G : PrioritizedBorelGame Q k) (pl : BorelGamePlayer) (M : Type*) representing a…
- prioritized_borel_encoding_follow_proper_prefixAt an original position controlled by the given player, after any number of phase-game strategy steps up to the number of states, the…
- prioritized_borel_encoding_real_prefix_has_nextA proper prefix of the code of a legal edge always admits a real next encoding move at the matching source position.
- PrioritizedBorelGameA structure PrioritizedBorelGame (Q : Type*) (k : ℕ) representing a prioritized Borel game with state space Q and k priorities, with…
- TreeGameEdgeA structure TreeGameEdge (Q : Type*) (k : ℕ) representing an edge in a binary tree game arena with state space Q and k priorities, with…
- BorelGamePlayerThe two players in a prioritized Borel game, Eve and Adam.
- Used by 2
- prioritized_borel_encoding_choice_action_traceAt a position owned by the phase strategy player, its entire block of direction-and-priority choices is the encoding of one legal original…
- prioritized_borel_encoding_controlled_blockAt a position controlled by a player, following that player’s strategy in the phase game for a complete block agrees with replaying the…
The proof, explained
After |Q| simulation steps in the encoded game starting from an owned original vertex, the player has built up a proper prefix of some original outgoing edge's code block. The strategy's choice edge must be an allowed transition, which cannot be a fallback default move because a real continuation exists. Since adding the strategy's chosen bit completes the |Q| + 1 bits of the block, the prefix condition forces it to be the exact code block of a legal original edge e', with the chosen priority matching e'.prio.
Introduce classical logic and define abbreviations st for the simulation state after |Q| steps and a for the strategy's chosen edge at st.
We enable classical reasoning and name the simulation state reached after |Q| steps st and the edge chosen by σ at st as a.
classical dsimp only let st := enc1385Follow G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q) let a := σ.choice st.1 st.2.1 st.2.2
The sequence bits accumulated after |Q| steps has length |Q|, correctly tracks the node and state, and prefixes the code block of some original edge e.
Applying prioritized_borel_encoding_follow_proper_prefix at step |Q| (using le_refl to verify |Q| ≤ |Q|) yields a bit sequence bits of length |Q| such that the node path is node ++ bits, the encoding state is ⟨v, q, bits⟩, and bits is a prefix of enc1385Block e for some edge e ∈ G.edges from (v, q).
uses
prioritized_borel_encoding_follow_proper_prefix,le_reflobtain ⟨bits, hlen, hnode, hstate, e, he, hv, hq, hp⟩ := prioritized_borel_encoding_follow_proper_prefix G pl σ m node v q hown (Fintype.card Q) (le_refl _)The encoded game state (st.2.1, st.2.2) is owned by player pl.
In enc1385Game G, the owner of a state is the owner of its underlying original vertex (origNode, origState) in G. Since st.2.2 has origNode = v and origState = q, ownership reduces to G.owner (v, q) = pl, which holds by hypothesis.
have ho : (enc1385Game G).owner (st.2.1, st.2.2) = pl := by change G.owner (st.2.2.origNode, st.2.2.origState) = pl simpa [st, hstate] using hown
The chosen edge a is a valid edge of enc1385Game G with source state st.2.2.
Because player pl owns the position, the strategy validity property choice_edge ensures that a belongs to the edges of the encoded game and starts at (st.2.1, st.2.2).
have ha := σ.choice_edge st.1 st.2.1 st.2.2 ho have hsrc : a.source_state = st.2.2 := ha.2.2
There exists at least one real (non-default) encoded outgoing move from st.2.2.
We apply prioritized_borel_encoding_real_prefix_has_next using the edge e obtained earlier. Since bits prefixes enc1385Block e and its length |Q| is strictly less than |Q| + 1 (verified by omega), a valid extension bit and priority exist.
uses
prioritized_borel_encoding_real_prefix_has_nexthave hreal_exists : ∃ bit prio, enc1385Real G st.2.2 bit prio := by apply prioritized_borel_encoding_real_prefix_has_next G st.2.2 e he · simpa [st, hstate] using hv · simpa [st, hstate] using hq · simpa [st, hstate] using hp · simpa [st, hstate, hlen] using (show Fintype.card Q < Fintype.card Q + 1 by omega)
The move (a.dir, a.prio) is an allowed transition (enc1385Allowed) at st.2.2.
Since a is an edge in enc1385Game G starting at st.2.2, its direction and priority must satisfy the enc1385Allowed condition at st.2.2.
have ha_allowed : enc1385Allowed G st.2.2 a.dir a.prio := by have h : enc1385Allowed G a.source_state a.dir a.prio := ha.1.2 simpa only [hsrc] using h
The move (a.dir, a.prio) is a real encoded transition (enc1385Real), not a fallback default move.
The enc1385Allowed predicate is a disjunction: either the move is real (enc1385Real), or no real move exists and a default move is forced. Since we already proved that a real move exists, the default-move branch contradicts existence via False.elim.
uses
False.elimhave ha_real : enc1385Real G st.2.2 a.dir a.prio := by rcases ha_allowed with hr | ⟨hnone, _, _⟩ · exact hr · exact False.elim (hnone hreal_exists)
There exists an original edge e' whose block is prefixed by bits ++ [a.dir] and whose priority matches a.prio when completed.
Unpacking the definition of enc1385Real for (a.dir, a.prio) provides an original edge e' ∈ G.edges from (v, q) such that bits ++ [a.dir] is a prefix of enc1385Block e', with a priority condition tying a.prio to e'.prio when the block length reaches |Q| + 1.
obtain ⟨e', he', hv', hq', hp', hprio⟩ := ha_realThe sequence bits ++ [a.dir] equals the entire code block enc1385Block e'.
The sequence bits ++ [a.dir] is a prefix of enc1385Block e'. Since both have length |Q| + 1, a prefix of the same length must be equal to the entire block.
have hpfx : bits ++ [a.dir] <+: enc1385Block e' := by simpa [st, hstate] using hp' have heq : bits ++ [a.dir] = enc1385Block e' := by apply hpfx.eq_of_length simp [hlen, enc1385Block, enc1385StateCode]
The priority of a matches that of e' (a.prio = e'.prio).
Because the length of bits ++ [a.dir] is |Q| + 1, the condition in the priority specification of enc1385Real is satisfied, establishing a.prio = e'.prio.
have hpriority : a.prio = e'.prio := by simpa [st, hstate, hlen] using hprio
The existential claim holds with bits and the original edge e'.
We package bits and e' along with their verified properties: length |Q|, node path, state structure, edge membership in G, source node and state, code block equality, and matching priority.
refine ⟨bits, hlen, hnode, hstate, e', he', ?_, ?_, heq, hpriority⟩ · simpa [st, hstate] using hv' · simpa [st, hstate] using hq'
prioritized_borel_encoding_follow_proper_prefix- After n ≤ |Q| simulation steps following a strategy from an owned original vertex, the pending bits have length n and form a prefix of the encoding block of some legal original outgoing edge.
le_refl- The partial order relation is reflexive: a ≤ a for any element a.
prioritized_borel_encoding_real_prefix_has_next- If the pending bits in an encoding state form a proper prefix of the block of an original edge (length strictly less than |Q| + 1), then there exists a valid real extension bit and priority.
False.elim- From a contradiction (False), any proposition follows.
- Linear arithmetic (`omega`) confirms |Q| < |Q| + 1, and simplification (`simp`) verifies that both the extended bit sequence and the edge code block have length |Q| + 1.
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_encoding_follow_final {Q M : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3) (pl : BorelGamePlayer) (σ : FiniteMemoryStrategy (enc1385Game G) pl M) (m : M) (node v : List Bool) (q : Q) (hown : G.owner (v,q) = pl) : let st := enc1385Follow G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q) let a := σ.choice st.1 st.2.1 st.2.2 ∃ bits : List Bool, bits.length = Fintype.card Q ∧ st.2.1 = node ++ bits ∧ st.2.2 = ⟨v,q,bits⟩ ∧ ∃ e ∈ G.edges, e.source_node = v ∧ e.source_state = q ∧ bits ++ [a.dir] = enc1385Block e ∧ a.prio = e.prio := by classical dsimp only let st := enc1385Follow G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q) let a := σ.choice st.1 st.2.1 st.2.2 obtain ⟨bits, hlen, hnode, hstate, e, he, hv, hq, hp⟩ := prioritized_borel_encoding_follow_proper_prefix G pl σ m node v q hown (Fintype.card Q) (le_refl _) have ho : (enc1385Game G).owner (st.2.1, st.2.2) = pl := by change G.owner (st.2.2.origNode, st.2.2.origState) = pl simpa [st, hstate] using hown have ha := σ.choice_edge st.1 st.2.1 st.2.2 ho have hsrc : a.source_state = st.2.2 := ha.2.2 have hreal_exists : ∃ bit prio, enc1385Real G st.2.2 bit prio := by apply prioritized_borel_encoding_real_prefix_has_next G st.2.2 e he · simpa [st, hstate] using hv · simpa [st, hstate] using hq · simpa [st, hstate] using hp · simpa [st, hstate, hlen] using (show Fintype.card Q < Fintype.card Q + 1 by omega) have ha_allowed : enc1385Allowed G st.2.2 a.dir a.prio := by have h : enc1385Allowed G a.source_state a.dir a.prio := ha.1.2 simpa only [hsrc] using h have ha_real : enc1385Real G st.2.2 a.dir a.prio := by rcases ha_allowed with hr | ⟨hnone, _, _⟩ · exact hr · exact False.elim (hnone hreal_exists) obtain ⟨e', he', hv', hq', hp', hprio⟩ := ha_real have hpfx : bits ++ [a.dir] <+: enc1385Block e' := by simpa [st, hstate] using hp' have heq : bits ++ [a.dir] = enc1385Block e' := by apply hpfx.eq_of_length simp [hlen, enc1385Block, enc1385StateCode] have hpriority : a.prio = e'.prio := by simpa [st, hstate, hlen] using hprio refine ⟨bits, hlen, hnode, hstate, e', he', ?_, ?_, heq, hpriority⟩ · simpa [st, hstate] using hv' · simpa [st, hstate] using hq'