prioritized_borel_sparse_clock_preserves_payoff
The maximal recurring priority and the corresponding original branch payoff agree between an original edge sequence and its exponential-clock expansion.
Statement
theorem prioritized_borel_sparse_clock_preserves_payoff {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (π : ℕ → TreeGameEdge Q 3) : op1385Payoff (op1385SparseClockArena G B) (Op1385Clock.expand B π) ↔ op1385Payoff G π
- Source
- arXiv:2611.10136, Conjecture 19. Exponential public padding of three-priority Borel games in OP-1385, experiment 44462.
- Verified
- 28 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 5
- op1385SparseClockArenaThe original game with a public exponential clock. Each block consists of forced zero-priority waiting moves followed by one original…
- prioritized_borel_padding_offset_max_priorityFor any three-priority sequence and fixed offset r within blocks of positive length L, replacing each value by a block with that value at…
- prioritized_borel_payoff_tail_congrTwo prioritized-game plays have the same payoff when their directions agree everywhere and their priorities agree eventually.
- 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…
- Used by 2
- prioritized_borel_linear_depth_history_memory_equivalenceEvery three-priority game on a finite state type has a game on the same type with at most length(v)+1 distinct legal state sequences in…
- prioritized_borel_sparse_clock_strategy_pullbackAny winning strategy in the padded game pulls back to a winning strategy for the same player using the very same memory type in the…
The proof, explained
The proof establishes that expanding an edge sequence π in a 3-priority Borel game via an exponential clock preserves both the maximal recurring priority and the game payoff. Each step n of the original play is mapped to a single active time last(n), preceded by idle cycles that have priority 0 and direction false. Because priorities strictly above 0 only appear at active steps, the maximal infinitely recurring priority is preserved between π and its clock expansion. Finally, the arena's winning condition evaluates plays solely along the active steps, which reproduce the exact direction sequence of π, ensuring that the Borel winning conditions coincide.
For any offset i ≤ gap(|v|), the node node(B, v, i) belongs to slot |v|, and is active if and only if i = gap(|v|).
The node length is start(B, |v|) + i by encode_length. Using timings and slot_iff, this length falls strictly within slot |v|. By definition of active, it is active exactly when the length equals last(B, |v|), which linear arithmetic simplifies to i = gap(B, |v|).
uses
encode_length,timings,slot_iffslot B (node B v i).length = v.length ∧ (active B (node B v i).length ↔ i = gap B v.length) := by have hlen : (node B v i).length = start B v.length+i := by simp [node,encode_length hB] have he := timings hB v.length have hs := (slot_iff hB (start B v.length+i) v.length).mpr (by omega) rw [hlen] exact ⟨hs,by unfold active; rw [hs]; omega⟩
When i < gap(|v|), the idle edge idleEdge(B, v, q, i) is a legal edge in the clock arena.
Because i < gap(|v|), node_clock and modus tollens (mt) imply the node is inactive. By definition of arena edges, an inactive node requires direction false, priority 0, and state preservation, which matches idleEdge by definition.
uses
node_clock,mttheorem idle_legal {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (v : List Bool) (q : Q) (i : ℕ) (hi : i < gap B v.length) : idleEdge B v q i ∈ (arena G B).edges := by have ha := mt (node_clock hB v i hi.le).2.mp hi.ne change if active B (node B v i).length then _ else _ simp [ha,idleEdge]
Any arena edge originating at an inactive node node(B, v, i) with source state q is uniquely determined and equals idleEdge(B, v, q, i).
Since the node is inactive, rewriting with if_neg forces the edge to have direction false, priority 0, and target state equal to source state q. Reconstructing the edge from these components shows it is identical to idleEdge.
uses
node_clock,mt,if_negtheorem idle_unique {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (v : List Bool) (q : Q) (i : ℕ) (hi : i < gap B v.length) (e : TreeGameEdge Q 3) (he : e ∈ (arena G B).edges) (hv : e.source_node = node B v i) (hq : e.source_state = q) : e = idleEdge B v q i := by have ha := mt (node_clock hB v i hi.le).2.mp hi.ne change (if active B e.source_node.length then _ else e.dir = false ∧ e.prio = 0 ∧ e.target_state = e.source_state) at he rw [hv,if_neg ha] at he calc e = ⟨e.source_node,e.source_state,e.dir,e.prio,e.target_state⟩ := rfl _ = _ := by rw [hv,he.1,he.2.1,he.2.2,hq]; rfl
Decoding the real edge associated with an original edge e reproduces e: readEdge(B, realEdge(B, e)) = e.
Unfolding the definitions, realEdge encodes the source node and pads it with false bits up to the gap. By decode_phase, decoding this padded string recovers e.source_node. The state, direction, priority, and target state are preserved unchanged.
uses
decode_phase,le_rfltheorem read_real {Q : Type} {B : ℕ} (hB : 1 < B) (e : TreeGameEdge Q 3) : readEdge B (realEdge B e) = e := by unfold readEdge realEdge node rw [decode_phase hB _ _ le_rfl]
If e is a legal edge in the original game G, then realEdge(B, e) is a legal edge in the arena.
At offset i = gap(|e.source_node|), node_clock shows the node is active. The arena edge condition for active nodes requires readEdge(B, realEdge(B, e)) ∈ G.edges, which simplifies by read_real to the assumption e ∈ G.edges.
uses
node_clock,le_rfl,if_pos,read_realtheorem real_legal {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (e : TreeGameEdge Q 3) (he : e ∈ G.edges) : realEdge B e ∈ (arena G B).edges := by have ha := (node_clock hB e.source_node _ le_rfl).2.mpr rfl change if active B (node B e.source_node _).length then readEdge B (realEdge B e) ∈ _ else _ rwa [if_pos ha,read_real hB]
Every arena edge e leaving an active node corresponds to a valid edge in G, whose source node is v, source state is q, and which reconstructs e via realEdge.
The source node is active by node_clock, so the arena edge condition gives readEdge(B, e) ∈ G.edges. Decoding the source node with decode_phase yields v. Reconstructing the edge with realEdge matches e across all fields.
uses
node_clock,le_rfl,if_pos,decode_phasetheorem real_outgoing {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (v : List Bool) (q : Q) (e : TreeGameEdge Q 3) (he : e ∈ (arena G B).edges) (hv : e.source_node = node B v (gap B v.length)) (hq : e.source_state = q) : readEdge B e ∈ G.edges ∧ (readEdge B e).source_node = v ∧ (readEdge B e).source_state = q ∧ realEdge B (readEdge B e) = e := by have ha := (node_clock hB v _ le_rfl).2.mpr rfl change (if active B e.source_node.length then readEdge B e ∈ G.edges else _) at he have ha' : active B e.source_node.length := hv ▸ ha rw [if_pos ha'] at he have hr : (readEdge B e).source_node = v := by change decode B e.source_node = v rw [hv] exact decode_phase hB v _ le_rfl refine ⟨he,hr,hq,?_⟩ change (⟨node B (readEdge B e).source_node _,e.source_state,e.dir,e.prio,e.target_state⟩ : TreeGameEdge Q 3) = e rw [hr,← hv]
For any non-zero priority q ≠ 0, g takes value q infinitely often if and only if f takes value q infinitely often.
Rewriting frequently via Filter.frequently_atTop: if g(t) = q for large t, then since q ≠ 0 and g vanishes on inactive steps, t must be an active step last(B, slot(B, t)). Strict monotonicity of last ensures the slot index is large, and f(slot(B, t)) = g(t) = q. Conversely, if f(n) = q for large n, then g(last(B, n)) = f(n) = q at a strictly larger time.
uses
Filter.frequently_atTop,last_strictmaxInf1385 g p ↔ maxInf1385 f p := by have ff (q : Fin 3) (hq : q ≠ 0) : (∃ᶠ t in Filter.atTop, g t = q) ↔ ∃ᶠ n in Filter.atTop, f n = q := by simp only [Filter.frequently_atTop] constructor · intro h N obtain ⟨t,ht,hg⟩ := h (last B N) have ha : t = last B (slot B t) := by by_contra he exact hq (hg.symm.trans (hidle t he)) refine ⟨slot B t,(last_strict hB).le_iff_le.mp (ht.trans_eq ha),?_⟩ exact (hact _).symm.trans (ha ▸ hg) · intro h N obtain ⟨n,hn,hf⟩ := h N exact ⟨last B n,hn.trans ((last_strict hB).id_le _),(hact n).trans hf⟩
Any priority q strictly greater than p must be non-zero.
If q were 0, the hypothesis p < q would mean p < 0, which contradicts Fin.not_lt_zero.
uses
Fin.not_lt_zerohave higher (q : Fin 3) (h : p < q) : q ≠ 0 := by intro hh subst q exact (Fin.not_lt_zero p) h
If p is the maximal infinitely recurring priority of g, then p is the maximal infinitely recurring priority of f.
Because any q > p is non-zero, the frequency equivalence applies to all higher priorities, showing by modus tollens (mt) that no q > p recurs infinitely often in f. For p itself, if p = 0 this recurrence follows from freqZero1385; if p ≠ 0, it follows directly from the frequency equivalence.
uses
mt,freqZero1385constructor · rintro ⟨hf,hm⟩ have hmax := fun q h => mt (ff q (higher q h)).mpr (hm q h) refine ⟨?_,hmax⟩ by_cases hp : p = 0 · subst p exact freqZero1385 f hmax · exact (ff p hp).mp hf
If p is the maximal infinitely recurring priority of f, then p is also the maximal infinitely recurring priority of g, establishing max_on_clock.
Symmetrically, contraposition of the frequency equivalence ensures no priority strictly above p recurs in g. Recurrence of p in g follows from freqZero1385 when p = 0 and from the reverse direction of the frequency equivalence when p ≠ 0.
uses
mt,freqZero1385· rintro ⟨hf,hm⟩ have hmax := fun q h => mt (ff q (higher q h)).mp (hm q h) refine ⟨?_,hmax⟩ by_cases hp : p = 0 · subst p exact freqZero1385 g hmax · exact (ff p hp).mpr hfAt each active step last(B, n), the expanded edge sequence equals realEdge(B, π(n)). automation
At time t = last(B, n), slot_last gives slot(B, t) = n, and t is active by definition. The expand definition therefore selects realEdge(B, π(n)).
uses
slot_lasttheorem expand_last {Q : Type} {B : ℕ} (hB : 1 < B) (π : ℕ → TreeGameEdge Q 3) (n : ℕ) : expand B π (last B n) = realEdge B (π n) := by simp [expand,active,slot_last hB]
The maximal recurring priorities of expand(B, π) and π coincide (hmax), and the direction sequence of expand(B, π) at active steps equals the direction sequence of π (hdir).
The priority of expand(B, π) equals π(n).prio at active steps last(B, n) by expand_last and 0 at inactive steps by definition of idleEdge, so max_on_clock applies. Moreover, expand_last shows that the direction at active step last(B, n) is identically (π n).dir.
uses
max_on_clock,expand_lasttheorem expand_payoff {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (π : ℕ → TreeGameEdge Q 3) : op1385Payoff (arena G B) (expand B π) ↔ op1385Payoff G π := by have hmax := max_on_clock hB (fun n => (π n).prio) (fun t => (expand B π t).prio) (fun n => by rw [expand_last hB]; rfl) (fun t ht => by simp [expand,ht,idleEdge]) have hdir : (fun n => (expand B π (last B n)).dir) = (fun n => (π n).dir) := funext (fun n => by rw [expand_last hB]; rfl)
If the expanded sequence expand(B, π) satisfies the payoff condition in arena(G, B), then π satisfies the payoff condition in G.
A payoff witness gives a maximal recurring priority p for the expanded play and confirms that its direction sequence belongs to the arena's winning set for p. By hmax, p is also the maximal recurring priority for π. By hdir, the direction sequence evaluated at active steps matches π's directions, which therefore lie in G's winning set.
constructor · rintro ⟨p,hr,hm,hb⟩ obtain ⟨h₁,h₂⟩ := (hmax p).mp ⟨hr,hm⟩ exact ⟨p,h₁,h₂,hdir ▸ hb⟩
If π satisfies the payoff condition in G, then expand(B, π) satisfies the payoff condition in arena(G, B), completing expand_payoff.
Conversely, if p is the maximal recurring priority of π and its directions are winning, hmax gives that p is maximal recurring for expand(B, π), and hdir shows its directions at active steps satisfy the arena winning condition.
· rintro ⟨p,hr,hm,hb⟩ obtain ⟨h₁,h₂⟩ := (hmax p).mpr ⟨hr,hm⟩ refine ⟨p,h₁,h₂,?_⟩ change (fun n => (expand B π (last B n)).dir) ∈ G.winning_sets p rwa [hdir]The sparse clock arena preserves payoffs: op1385Payoff (op1385SparseClockArena G B) (expand B π) is equivalent to op1385Payoff G π.
By definition, op1385SparseClockArena G B is Op1385Clock.arena G B, so the claim is an immediate application of Op1385Clock.expand_payoff.
uses
Op1385Clock.expand_payofftheorem prioritized_borel_sparse_clock_preserves_payoff {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (π : ℕ → TreeGameEdge Q 3) : op1385Payoff (op1385SparseClockArena G B) (Op1385Clock.expand B π) ↔ op1385Payoff G π := Op1385Clock.expand_payoff G hB π
encode_length- The length of the encoded node sequence for a path v equals the start time of the slot corresponding to |v|.
timings- For slot n, adding the gap length to the start time yields the active time last(n), and the subsequent slot begins at last(n) + 1.
slot_iff- A time t belongs to slot n if and only if t lies in the half-open interval from the start of slot n to the start of slot n + 1.
node_clock- The node at offset i ≤ gap(|v|) lies in slot |v|, and is active if and only if i reaches the gap length.
mt- Modus tollens: if an implication holds, the negation of its conclusion implies the negation of its hypothesis.
if_neg- If the branching condition is false, an if-then-else expression evaluates to its else branch.
decode_phase- Decoding an encoded node padded with up to gap(|v|) trailing false bits recovers the original node v.
le_rfl- Reflexivity of inequality: every element is less than or equal to itself.
if_pos- If the branching condition is true, an if-then-else expression evaluates to its then branch.
read_real- Reading the real edge constructed from an original game edge e recovers the original edge e.
Filter.frequently_atTop- A predicate holds frequently at infinity if and only if for every bound a there exists some b ≥ a satisfying it.
last_strict- The mapping assigning each slot to its active time last(n) is strictly monotonic.
Fin.not_lt_zero- No element of Fin(n) is strictly less than zero.
freqZero1385- For any sequence with values in {0, 1, 2}, if neither 1 nor 2 recurs infinitely often, then 0 must recur infinitely often.
slot_last- The active time last(n) belongs to slot n.
max_on_clock- If a sequence g coincides with f at all active clock times last(n) and is 0 at inactive times, then g and f share the exact same maximal infinitely recurring priority.
expand_last- At the active time last(n), the clock expansion of an edge sequence π evaluates to the real edge corresponding to π(n).
Op1385Clock.expand_payoff- The payoff condition for the clock-expanded edge sequence in the arena is equivalent to the payoff condition for the original sequence in the game G.
- The lemma `expand_last` is verified entirely by `simp` expanding the definitions of clock expansion and active states.
- The proof of `max_on_clock` relies on `freqZero1385`, which ensures that for sequences valued in {0, 1, 2}, if no priority > 0 recurs infinitely often, then priority 0 must recur infinitely often.
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.
set_option maxHeartbeats 600000namespace Op1385Clockdef node (B : ℕ) (v : List Bool) (i : ℕ) := encode B v ++ List.replicate i falsedef idleEdge {Q : Type} (B : ℕ) (v : List Bool) (q : Q) (i : ℕ) : TreeGameEdge Q 3 := ⟨node B v i,q,false,0,q⟩def realEdge {Q : Type} (B : ℕ) (e : TreeGameEdge Q 3) : TreeGameEdge Q 3 := ⟨node B e.source_node (gap B e.source_node.length),e.source_state,e.dir,e.prio,e.target_state⟩theorem node_clock {B : ℕ} (hB : 1 < B) (v : List Bool) (i : ℕ) (hi : i ≤ gap B v.length) : slot B (node B v i).length = v.length ∧ (active B (node B v i).length ↔ i = gap B v.length) := by have hlen : (node B v i).length = start B v.length+i := by simp [node,encode_length hB] have he := timings hB v.length have hs := (slot_iff hB (start B v.length+i) v.length).mpr (by omega) rw [hlen] exact ⟨hs,by unfold active; rw [hs]; omega⟩theorem idle_legal {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (v : List Bool) (q : Q) (i : ℕ) (hi : i < gap B v.length) : idleEdge B v q i ∈ (arena G B).edges := by have ha := mt (node_clock hB v i hi.le).2.mp hi.ne change if active B (node B v i).length then _ else _ simp [ha,idleEdge]theorem idle_unique {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (v : List Bool) (q : Q) (i : ℕ) (hi : i < gap B v.length) (e : TreeGameEdge Q 3) (he : e ∈ (arena G B).edges) (hv : e.source_node = node B v i) (hq : e.source_state = q) : e = idleEdge B v q i := by have ha := mt (node_clock hB v i hi.le).2.mp hi.ne change (if active B e.source_node.length then _ else e.dir = false ∧ e.prio = 0 ∧ e.target_state = e.source_state) at he rw [hv,if_neg ha] at he calc e = ⟨e.source_node,e.source_state,e.dir,e.prio,e.target_state⟩ := rfl _ = _ := by rw [hv,he.1,he.2.1,he.2.2,hq]; rfltheorem read_real {Q : Type} {B : ℕ} (hB : 1 < B) (e : TreeGameEdge Q 3) : readEdge B (realEdge B e) = e := by unfold readEdge realEdge node rw [decode_phase hB _ _ le_rfl]theorem real_legal {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (e : TreeGameEdge Q 3) (he : e ∈ G.edges) : realEdge B e ∈ (arena G B).edges := by have ha := (node_clock hB e.source_node _ le_rfl).2.mpr rfl change if active B (node B e.source_node _).length then readEdge B (realEdge B e) ∈ _ else _ rwa [if_pos ha,read_real hB]theorem real_outgoing {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (v : List Bool) (q : Q) (e : TreeGameEdge Q 3) (he : e ∈ (arena G B).edges) (hv : e.source_node = node B v (gap B v.length)) (hq : e.source_state = q) : readEdge B e ∈ G.edges ∧ (readEdge B e).source_node = v ∧ (readEdge B e).source_state = q ∧ realEdge B (readEdge B e) = e := by have ha := (node_clock hB v _ le_rfl).2.mpr rfl change (if active B e.source_node.length then readEdge B e ∈ G.edges else _) at he have ha' : active B e.source_node.length := hv ▸ ha rw [if_pos ha'] at he have hr : (readEdge B e).source_node = v := by change decode B e.source_node = v rw [hv] exact decode_phase hB v _ le_rfl refine ⟨he,hr,hq,?_⟩ change (⟨node B (readEdge B e).source_node _,e.source_state,e.dir,e.prio,e.target_state⟩ : TreeGameEdge Q 3) = e rw [hr,← hv]end Op1385Clocknamespace Op1385Clocktheorem max_on_clock {B : ℕ} (hB : 1 < B) (f g : ℕ → Fin 3) (hact : ∀ n, g (last B n) = f n) (hidle : ∀ t, ¬active B t → g t = 0) (p : Fin 3) : maxInf1385 g p ↔ maxInf1385 f p := by have ff (q : Fin 3) (hq : q ≠ 0) : (∃ᶠ t in Filter.atTop, g t = q) ↔ ∃ᶠ n in Filter.atTop, f n = q := by simp only [Filter.frequently_atTop] constructor · intro h N obtain ⟨t,ht,hg⟩ := h (last B N) have ha : t = last B (slot B t) := by by_contra he exact hq (hg.symm.trans (hidle t he)) refine ⟨slot B t,(last_strict hB).le_iff_le.mp (ht.trans_eq ha),?_⟩ exact (hact _).symm.trans (ha ▸ hg) · intro h N obtain ⟨n,hn,hf⟩ := h N exact ⟨last B n,hn.trans ((last_strict hB).id_le _),(hact n).trans hf⟩ have higher (q : Fin 3) (h : p < q) : q ≠ 0 := by intro hh subst q exact (Fin.not_lt_zero p) h constructor · rintro ⟨hf,hm⟩ have hmax := fun q h => mt (ff q (higher q h)).mpr (hm q h) refine ⟨?_,hmax⟩ by_cases hp : p = 0 · subst p exact freqZero1385 f hmax · exact (ff p hp).mp hf · rintro ⟨hf,hm⟩ have hmax := fun q h => mt (ff q (higher q h)).mp (hm q h) refine ⟨?_,hmax⟩ by_cases hp : p = 0 · subst p exact freqZero1385 g hmax · exact (ff p hp).mpr hfdef expand {Q : Type} (B : ℕ) (π : ℕ → TreeGameEdge Q 3) (t : ℕ) : TreeGameEdge Q 3 := let n := slot B t if active B t then realEdge B (π n) else idleEdge B (π n).source_node (π n).source_state (t - start B n)theorem expand_last {Q : Type} {B : ℕ} (hB : 1 < B) (π : ℕ → TreeGameEdge Q 3) (n : ℕ) : expand B π (last B n) = realEdge B (π n) := by simp [expand,active,slot_last hB]theorem expand_payoff {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (π : ℕ → TreeGameEdge Q 3) : op1385Payoff (arena G B) (expand B π) ↔ op1385Payoff G π := by have hmax := max_on_clock hB (fun n => (π n).prio) (fun t => (expand B π t).prio) (fun n => by rw [expand_last hB]; rfl) (fun t ht => by simp [expand,ht,idleEdge]) have hdir : (fun n => (expand B π (last B n)).dir) = (fun n => (π n).dir) := funext (fun n => by rw [expand_last hB]; rfl) constructor · rintro ⟨p,hr,hm,hb⟩ obtain ⟨h₁,h₂⟩ := (hmax p).mp ⟨hr,hm⟩ exact ⟨p,h₁,h₂,hdir ▸ hb⟩ · rintro ⟨p,hr,hm,hb⟩ obtain ⟨h₁,h₂⟩ := (hmax p).mpr ⟨hr,hm⟩ refine ⟨p,h₁,h₂,?_⟩ change (fun n => (expand B π (last B n)).dir) ∈ G.winning_sets p rwa [hdir]end Op1385Clocktheorem prioritized_borel_sparse_clock_preserves_payoff {Q : Type} (G : PrioritizedBorelGame Q 3) {B : ℕ} (hB : 1 < B) (π : ℕ → TreeGameEdge Q 3) : op1385Payoff (op1385SparseClockArena G B) (Op1385Clock.expand B π) ↔ op1385Payoff G π := Op1385Clock.expand_payoff G hB π