prioritized_borel_encoding_follow_proper_actions
During the proper-prefix steps of a controlled block, the recorded action directions equal the current pending bits and every recorded priority is zero.
Statement
theorem prioritized_borel_encoding_follow_proper_actions {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) (n : ℕ) (hn : n ≤ Fintype.card Q) : (enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n).map Prod.fst = (enc1385Follow G pl σ m node ⟨v,q,[]⟩ n).2.2.pending ∧ ∀ a ∈ enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n, a.2 = 0
- Source
- Controlled block simulation for arXiv:2611.10136, Conjecture 19.
- Verified
- 17 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 10
- 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…
- enc1385FollowActionsThe sequence of public bits and priorities selected by a phase-game strategy in its first n steps from a specified memory and position.
- 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.
- FiniteMemoryStrategyA structure FiniteMemoryStrategy {Q : Type*} {k : ℕ} (G : PrioritizedBorelGame Q k) (pl : BorelGamePlayer) (M : Type*) representing a…
- 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…
- BorelGamePlayerThe two players in a prioritized Borel game, Eve and Adam.
- bitThe real embedding of a Boolean value, sending false to 0 and true to 1.
- 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
The result is established by induction on the step index n ≤ |Q| within a block, proven as the lemma enc1385LocalProperActions. At each step, because the accumulated bit length is strictly less than the full block length |Q| + 1, the strategy is guaranteed to choose a genuine encoding continuation rather than a fallback move. Consequently, the chosen action appends its direction to the pending bits without completing the block, keeping its priority zero and preserving the invariant.
The claim holds for n = 0: the action list is empty, matching the initially empty pending bit sequence, and every recorded action vacuously has priority zero.
We proceed by induction on n. In the base case n = 0, both enc1385FollowActions and the pending bits of the initial state are empty. Mapping the direction projection over the empty list gives the empty list, and the priority condition holds vacuously.
classical intro n induction n with | zero => intro _ simp [enc1385FollowActions, enc1385Follow]
In the inductive step for n + 1 ≤ |Q|, the induction hypothesis applies at step n, where the state's pending bits have length n and extend along a valid game edge.
From n + 1 ≤ |Q|, linear arithmetic implies n ≤ |Q|, giving the induction hypothesis at step n. By prioritized_borel_encoding_follow_proper_prefix, the state reached after n steps has pending bits of length n that form a prefix of the encoding block of some edge e originating at (v, q).
uses
prioritized_borel_encoding_follow_proper_prefix| succ n ih => intro hn have hn' : n ≤ Fintype.card Q := by omega have hprevious := ih hn' obtain ⟨bits, hlen, _, hstate, e, he, hv, hq, hp⟩ := prioritized_borel_encoding_follow_proper_prefix G pl σ m node v q hown n hn'The strategy σ selects a valid outgoing edge a from the current encoded state.
Let st be the configuration after n steps and a the action chosen by σ. Since the state's original node and vertex are (v, q), which is owned by player pl, the encoded state is also owned by pl. Hence the strategy's choice property ensures that a is a valid edge of the encoded game with source state st.2.2.
let st := enc1385Follow G pl σ m node ⟨v,q,[]⟩ n let a := σ.choice st.1 st.2.1 st.2.2 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
The chosen action a is a genuine encoding step, not a fallback default move.
Because the pending bits have length n < |Q| + 1 and extend along the valid edge e, prioritized_borel_encoding_real_prefix_has_next shows that a real continuation exists. In the encoded game, an allowed action must be a real continuation unless none exists; since one does exist, the fallback case leads to a contradiction via False.elim, confirming that a is a real step.
uses
prioritized_borel_encoding_real_prefix_has_next,False.elimhave 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 n < 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)
The action a has priority zero, and the target state appends a's direction to the pending bits.
By the definition of a real step, the priority can only be non-zero when the step completes a block of length |Q| + 1. Since the current length is n < |Q|, the step does not finish the block, so a.prio = 0. Likewise, enc1385Step appends a.dir to the pending bits while preserving the original node and state.
obtain ⟨e', he', hv', hq', hp', hprio⟩ := ha_real have hlenne : bits.length ≠ Fintype.card Q := by omega have hzero : a.prio = 0 := by simpa [st, hstate, hlenne] using hprio have htarget : a.target_state = ⟨v,q,bits ++ [a.dir]⟩ := by have h : a.target_state = enc1385Step G a.source_state a.dir := ha.1.1 rw [hsrc, show st.2.2 = ⟨v,q,bits⟩ from hstate] at h simpa [enc1385Step, hlenne] using h
The recorded action directions up to step n + 1 match the pending bits of the new state.
The action list at step n + 1 appends (a.dir, a.prio) to the previous actions. Distributing the direction projection over the append via List.map_append, List.map_cons, and List.map_nil produces the previous directions followed by a.dir. By the induction hypothesis, the previous directions equal the previous pending bits, so the result matches the updated pending bits of the target state.
uses
List.map_append,List.map_cons,List.map_nilconstructor · change (enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n ++ [(a.dir,a.prio)]).map Prod.fst = a.target_state.pending simp only [List.map_append, List.map_cons, List.map_nil] rw [hprevious.1, show st.2.2 = ⟨v,q,bits⟩ from hstate, htarget]
Every action recorded up to step n + 1 has priority zero.
Using List.mem_append and List.mem_singleton, any action up to step n + 1 is either one of the first n actions or the newly added action. The earlier actions have priority zero by the induction hypothesis, and the new action has priority zero by our previous deduction.
uses
List.mem_append,List.mem_singleton· change ∀ x ∈ enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n ++ [(a.dir,a.prio)], x.2 = 0 intro x hx simp only [List.mem_append, List.mem_singleton] at hx rcases hx with hx | rfl · exact hprevious.2 x hx · exact hzero
The theorem prioritized_borel_encoding_follow_proper_actions follows directly.
The main theorem is identical to the inductive lemma enc1385LocalProperActions, which directly finishes the proof.
uses
enc1385LocalProperActionstheorem prioritized_borel_encoding_follow_proper_actions {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) (n : ℕ) (hn : n ≤ Fintype.card Q) : (enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n).map Prod.fst = (enc1385Follow G pl σ m node ⟨v,q,[]⟩ n).2.2.pending ∧ ∀ a ∈ enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n, a.2 = 0 := by exact enc1385LocalProperActions G pl σ m node v q hown n hn
prioritized_borel_encoding_follow_proper_prefix- For any n ≤ |Q|, following player pl's strategy for n steps from a state owned by pl yields an encoded state whose pending bits have length n and form a prefix of the encoding block of some valid edge originating at (v, q).
prioritized_borel_encoding_real_prefix_has_next- If an encoded state's pending bits form a proper prefix of length less than |Q| + 1 of the block of a valid edge, then there exists a valid real encoding continuation (a bit and a priority).
False.elim- From False, any proposition follows (the principle of explosion).
List.map_append- Mapping a function over the concatenation of two lists equals the concatenation of the mapped lists.
List.map_cons- Mapping a function over a list with head a and tail l equals f(a) prepended to the mapped tail.
List.map_nil- Mapping a function over the empty list yields the empty list.
List.mem_append- An element belongs to the concatenation of two lists if and only if it belongs to the first list or the second list.
List.mem_singleton- An element belongs to a singleton list [b] if and only if it equals b.
enc1385LocalProperActions- The local induction lemma asserting that during the first n ≤ |Q| steps of following strategy σ, the recorded action directions match the state's pending bits and all recorded action priorities are zero.
- The main theorem is stated as an immediate corollary of the local induction lemma enc1385LocalProperActions.
- Linear arithmetic bounds on step indices (such as n ≤ card Q and n < card Q + 1) are discharged automatically by omega.
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.
lemma enc1385LocalProperActions {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) : ∀ n, n ≤ Fintype.card Q → (enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n).map Prod.fst = (enc1385Follow G pl σ m node ⟨v,q,[]⟩ n).2.2.pending ∧ ∀ a ∈ enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n, a.2 = 0 := by classical intro n induction n with | zero => intro _ simp [enc1385FollowActions, enc1385Follow] | succ n ih => intro hn have hn' : n ≤ Fintype.card Q := by omega have hprevious := ih hn' obtain ⟨bits, hlen, _, hstate, e, he, hv, hq, hp⟩ := prioritized_borel_encoding_follow_proper_prefix G pl σ m node v q hown n hn' let st := enc1385Follow G pl σ m node ⟨v,q,[]⟩ n let a := σ.choice st.1 st.2.1 st.2.2 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 n < 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 hlenne : bits.length ≠ Fintype.card Q := by omega have hzero : a.prio = 0 := by simpa [st, hstate, hlenne] using hprio have htarget : a.target_state = ⟨v,q,bits ++ [a.dir]⟩ := by have h : a.target_state = enc1385Step G a.source_state a.dir := ha.1.1 rw [hsrc, show st.2.2 = ⟨v,q,bits⟩ from hstate] at h simpa [enc1385Step, hlenne] using h constructor · change (enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n ++ [(a.dir,a.prio)]).map Prod.fst = a.target_state.pending simp only [List.map_append, List.map_cons, List.map_nil] rw [hprevious.1, show st.2.2 = ⟨v,q,bits⟩ from hstate, htarget] · change ∀ x ∈ enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n ++ [(a.dir,a.prio)], x.2 = 0 intro x hx simp only [List.mem_append, List.mem_singleton] at hx rcases hx with hx | rfl · exact hprevious.2 x hx · exact hzerotheorem prioritized_borel_encoding_follow_proper_actions {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) (n : ℕ) (hn : n ≤ Fintype.card Q) : (enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n).map Prod.fst = (enc1385Follow G pl σ m node ⟨v,q,[]⟩ n).2.2.pending ∧ ∀ a ∈ enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ n, a.2 = 0 := by exact enc1385LocalProperActions G pl σ m node v q hown n hn