AFTD Auto-Formalizing Theoretical Domains

prioritized_borel_phase_strategy_transfer

theoremverified

Given an index that decodes and updates the phase branch at every reached original position, a winning phase strategy with memory M transfers to an original winning strategy with memory M times the index type. The second memory component starts and updates exactly as specified by the index.

Statement

theorem prioritized_borel_phase_strategy_transfer {Q M I : Type} [Fintype Q]
    (G : PrioritizedBorelGame Q 3) (pl : BorelGamePlayer)
    (σ : FiniteMemoryStrategy (enc1385Game G) pl M)
    (start : I) (view : I → List Bool → Q → Option (List Bool))
    (advance : I → TreeGameEdge Q 3 → I)
    (hstart : view start [] G.init_state = some [])
    (hadv : ∀ 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))
    (hw : PrioritizedBorelStrategyWins (enc1385Game G) pl σ) :
    ∃ τ : FiniteMemoryStrategy G pl (M × I), τ.init_mem.2 = start ∧
      (∀ m e, (τ.update m e).2 = advance m.2 e) ∧ PrioritizedBorelStrategyWins G pl τ
Source
arXiv:2611.10136, Conjecture 19 and Proposition 27. Block-encoding reduction for OP-1385.
Verified
28 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 15
  • 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_expanded_block_strategy_simulationFor an expanded sequence with matching consecutive positions and the phase strategy memory updates, full-block replay gives its memory and…
  • prioritized_borel_encoding_replay_boundaryReplaying an edge block from a block boundary appends its encoded bits to the phase-game node and ends at the original child node and…
  • prioritized_borel_expanded_play_legalThe encoded sequence of any legal original play is a legal play of the phase-state arena, with the correct initial position and…
  • prioritized_borel_expanded_play_payoffFor every original edge sequence, the phase-game prioritized payoff of its encoded sequence is equivalent to the original prioritized…
  • PrioritizedBorelStrategyWinsA strategy wins for its player if every legal play from the initial position consistent with its memory update and choices is won by that…
  • FiniteMemoryStrategyA structure FiniteMemoryStrategy {Q : Type*} {k : ℕ} (G : PrioritizedBorelGame Q k) (pl : BorelGamePlayer) (M : Type*) representing a…
  • 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…
  • enc1385GameGiven a finite-state three-priority tree game, construct a phase-state game that encodes each original direction followed by a one-hot…
  • enc1385BlockMovesThe phase-game actions for one original edge, with the original priority on the final bit and priority zero on preceding bits.
  • enc1385ExpandedPlayExpand an arbitrary sequence of original edges into phase-game edges by indexing its fixed-length direction-and-state blocks. This…
  • enc1385FollowActionsThe sequence of public bits and priorities selected by a phase-game strategy in its first n steps from a specified memory and position.
  • BorelGamePlayerThe two players in a prioritized Borel game, Eve and Adam.
  • enc1385ReplayReplay the bit-and-priority block of an original edge from a phase-game node, state, and strategy memory, returning the resulting memory,…
Used by 3

The proof, explained

To transfer a winning strategy σ with memory M from the encoded game to a winning strategy τ with memory M × I on G, we pull back σ by letting the original moves simulate blocks of |Q| + 1 encoding moves, updating the I-component via the assumed advance rule and the M-component via encoding replay. For any play π consistent with τ, its blockwise expansion E is a legal play in the encoded game whose steps faithfully follow σ. An induction on turns shows that the index component continually decodes the current node in E, so the choice of edge matches σ's blockwise decisions. Because σ wins on E and the winning condition on E is equivalent to that on π, the transferred strategy τ wins in G.

  1. At any position, there exists an edge in the original game whose encoding block moves match the phase strategy when the position is owned by player pl.

    We split into cases on whether player pl owns the position (v, q). If so, prioritized_borel_encoding_choice_action_trace produces an edge whose block moves equal the sequence of actions generated by following σ for |Q| + 1 steps. If pl does not own the position, an outgoing edge exists by the game's edge axiom (G.edges_outgoing), and the implication is vacuously satisfied.

    lines 9–13

    uses prioritized_borel_encoding_choice_action_trace

      by_cases ho : G.owner (v,q) = pl
      · obtain ⟨e,he,hv,hq,hb⟩ := prioritized_borel_encoding_choice_action_trace G pl σ m node v q ho
        exact ⟨e,he,hv,hq,fun _ => hb⟩
      · obtain ⟨e,he,hv,hq⟩ := G.edges_outgoing v q
        exact ⟨e,he,hv,hq,fun h => (ho h).elim⟩
  2. The choice function of the transferred strategy s3Pull always selects a valid outgoing edge in the original game.

    The strategy s3Pull uses s3ChoiceExists to select an edge outgoing from (v, q) via Classical.choose. Its specification (hh.choose_spec) guarantees that this chosen edge belongs to G.edges and originates at node v and state q.

    lines 25–26

    uses s3ChoiceExists

        have hh := (s3ChoiceExists G pl σ m.1 ((view m.2 v q).getD []) v q).choose_spec
        exact ⟨hh.1,hh.2.1,hh.2.2.1⟩
  3. The candidate strategy s3Pull satisfies the index memory conditions, and it suffices to show it wins on any consistent play.

    We define the candidate strategy τ := s3Pull G pl σ start view advance. By definition, its initial memory has second component start and its update rule advances the second component via advance. We then consider an arbitrary legal play π in G consistent with τ and extract its memory sequence mem.

    lines 40–43

      let τ := s3Pull G pl σ start view advance
      refine ⟨τ,rfl,fun _ _ => rfl,?_⟩
      intro π hπ hinit hnext hconsistent
      obtain ⟨mem,hm0,hmstep,hmchoice⟩ := hconsistent
  4. The expanded play in the encoded game is legal, and simulating σ across its blocks reproduces the replay operation.

    We expand the original play π into an encoded play E := enc1385ExpandedPlay G π with block length L := |Q| + 1, and define the simulated memory sequence μ for σ along E by recursion. By prioritized_borel_expanded_play_legal, E is a legal, properly initialized and consecutive play in enc1385Game G. By prioritized_borel_expanded_block_strategy_simulation, simulating σ along each block of length L matches the replay function enc1385Replay.

    lines 44–49

    uses prioritized_borel_expanded_play_legal, prioritized_borel_expanded_block_strategy_simulation

      let E := enc1385ExpandedPlay G π
      let L := Fintype.card Q + 1
      let μ : ℕ → M := Nat.rec σ.init_mem (fun t m => σ.update m (E t))
      have hu (t : ℕ) : μ (t+1) = σ.update (μ t) (E t) := rfl
      obtain ⟨hlegalE,hinitE,hnextE⟩ := prioritized_borel_expanded_play_legal G π hπ hinit hnext
      have sim := fun n => prioritized_borel_expanded_block_strategy_simulation G pl σ π n μ hu hnextE
  5. At every original step n, the first memory component matches μ(n · L) and the index view decodes the encoded node at step n · L.

    We prove this invariant by induction on n. The base case n = 0 holds immediately from the initialization of memory and play, using Nat.zero_mul and the hypothesis hstart. In the induction step, the block simulation sim n and prioritized_borel_encoding_replay_boundary show that executing block n appends enc1385Block (π n) to the encoded node and updates the memory via enc1385Replay. Applying the hypothesis hadv and congruence of equality (congrArg) across the update and view maps establishes the invariant for n + 1.

    lines 50–78

    uses Nat.zero_mul, congrArg, prioritized_borel_encoding_replay_boundary

      have inv (n : ℕ) : (mem n).1 = μ (n*L) ∧
          view (mem n).2 (π n).source_node (π n).source_state = some (E (n*L)).source_node := by
        induction n with
        | zero =>
          rw [hm0,Nat.zero_mul]
          constructor
          · rfl
          · change view start (π 0).source_node (π 0).source_state = some (E 0).source_node
            rw [hinit.1,hinit.2,hinitE.1]
            exact hstart
        | succ n ih =>
          let R := enc1385Replay G pl σ (μ (n*L)) (E (n*L)).source_node
            ⟨(π n).source_node,(π n).source_state,[]⟩ (π n)
          have hb := (sim n).1
          change (μ ((n+1)*L),(E ((n+1)*L)).source_node,(E ((n+1)*L)).source_state) = R at hb
          have hnode : (E ((n+1)*L)).source_node = (E (n*L)).source_node ++ enc1385Block (π n) :=
            (congrArg (fun z => z.2.1) hb).trans
              (prioritized_borel_encoding_replay_boundary G pl σ (μ (n*L)) (E (n*L)).source_node _ _ (π n)).1
          rw [hmstep]
          constructor
          · change (enc1385Replay G pl σ (mem n).1
              ((view (mem n).2 (π n).source_node (π n).source_state).getD [])
              ⟨(π n).source_node,(π n).source_state,[]⟩ (π n)).1 = μ ((n+1)*L)
            rw [ih.1,ih.2]
            exact (congrArg Prod.fst hb).symm
          · change view (advance (mem n).2 (π n)) (π (n+1)).source_node (π (n+1)).source_state =
              some (E ((n+1)*L)).source_node
            rw [(hnext n).1,(hnext n).2,hnode]
            exact hadv _ _ _ (hπ n) ih.2
  6. At every step of the expanded play owned by player pl, the edge played agrees with the choice of strategy σ.

    Any step t in the expanded game decomposes as t = n · L + i with remainder i < L, using division with remainder (Nat.div_add_mod', Nat.mod_lt, Nat.succ_pos). Because the ownership of the expanded state is defined as that of the original position (π n), consistency of π with τ implies that π n was chosen using s3ChoiceExists. By the invariant, the memory and decoded view at step n match the simulation, so the actions chosen by σ over the block match the moves of π n. The block simulation lemma sim n then ensures that every step i < L in the block coincides with σ.choice.

    lines 79–93

    uses Nat.mod_lt, Nat.succ_pos, Nat.div_add_mod', s3ChoiceExists

      have hchoiceE (t : ℕ) (ho : (enc1385Game G).owner ((E t).source_node,(E t).source_state) = pl) :
          E t = σ.choice (μ t) (E t).source_node (E t).source_state := by
        let n := t/L
        let i := t%L
        have hi : i < L := Nat.mod_lt _ (Nat.succ_pos _)
        have ht : n*L+i = t := Nat.div_add_mod' t L
        have horig : G.owner ((π n).source_node,(π n).source_state) = pl := ho
        have hc := hmchoice n horig
        let choiceData := s3ChoiceExists G pl σ (mem n).1
          ((view (mem n).2 (π n).source_node (π n).source_state).getD []) (π n).source_node (π n).source_state
        have hx := choiceData.choose_spec.2.2.2 horig
        change π n = choiceData.choose at hc
        rw [← hc,(inv n).1,(inv n).2] at hx
        rw [← ht]
        exact (sim n).2 horig hx i hi
  7. Strategy τ is winning for player pl in the original game G.

    Since the expanded play E is consistent with σ and σ is a winning strategy (hw), player pl wins on E. By prioritized_borel_expanded_play_payoff, player Eve wins the expanded play E if and only if she wins π. Case splitting on whether pl is Eve or Adam transfers the winning condition from E to π, concluding that τ is a winning strategy.

    lines 94–98

    uses prioritized_borel_expanded_play_payoff

      have hwin := hw E hlegalE hinitE hnextE ⟨μ,rfl,hu,hchoiceE⟩
      have hiff := prioritized_borel_expanded_play_payoff G π
      cases pl with
      | Eve => exact hiff.mp hwin
      | Adam => exact fun h => hwin (hiff.mpr h)
prioritized_borel_encoding_choice_action_trace
For an original position owned by player pl, following strategy σ for |Q| + 1 steps in the encoded game generates the sequence of encoding block moves corresponding to some valid outgoing edge.
s3ChoiceExists
At any original position and memory state, there exists an outgoing edge in G whose encoding block moves match the actions of strategy σ over the next |Q| + 1 steps whenever player pl owns the position.
prioritized_borel_expanded_play_legal
Expanding a legal, properly initialized and consecutive play π in the original game yields a legal, properly initialized and consecutive play in the encoded game.
prioritized_borel_expanded_block_strategy_simulation
Simulating strategy σ along the expanded play across any block of |Q| + 1 steps reproduces the replay function on memory and state, and agrees with σ's choices if the player owns the turn.
Nat.zero_mul
Zero multiplied by any natural number is zero (0 · n = 0).
congrArg
Functions respect equality: if x = y, then f(x) = f(y).
prioritized_borel_encoding_replay_boundary
Replaying strategy σ along the moves of an edge e appends the encoding block of e to the node path and advances the original state to the target state of e.
Nat.mod_lt
The remainder of dividing by a positive number is strictly less than that divisor (x % y < y for y > 0).
Nat.succ_pos
The successor of any natural number is strictly positive (0 < n + 1).
Nat.div_add_mod'
Division with remainder: (a / b) · b + a % b = a.
prioritized_borel_expanded_play_payoff
Player Eve wins the expanded play in the encoded game if and only if she wins the underlying play in the original game.

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

set_option maxHeartbeats 900000private theorem s3ChoiceExists {Q M : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3)    (pl : BorelGamePlayer) (σ : FiniteMemoryStrategy (enc1385Game G) pl M)    (m : M) (node v : List Bool) (q : Q) :    ∃ e ∈ G.edges, e.source_node = v ∧ e.source_state = q ∧        (G.owner (v,q) = pl → enc1385FollowActions G pl σ m node ⟨v,q,[]⟩          (Fintype.card Q + 1) = enc1385BlockMoves e) := by  by_cases ho : G.owner (v,q) = pl  · obtain ⟨e,he,hv,hq,hb⟩ := prioritized_borel_encoding_choice_action_trace G pl σ m node v q ho    exact ⟨e,he,hv,hq,fun _ => hb⟩  · obtain ⟨e,he,hv,hq⟩ := G.edges_outgoing v q    exact ⟨e,he,hv,hq,fun h => (ho h).elim⟩private noncomputable def s3Pull {Q M I : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3)    (pl : BorelGamePlayer) (σ : FiniteMemoryStrategy (enc1385Game G) pl M)    (start : I) (view : I → List Bool → Q → Option (List Bool)) (advance : I → TreeGameEdge Q 3 → I) :    FiniteMemoryStrategy G pl (M × I) where  init_mem := (σ.init_mem,start)  update m e := ((enc1385Replay G pl σ m.1    ((view m.2 e.source_node e.source_state).getD [])    ⟨e.source_node,e.source_state,[]⟩ e).1,advance m.2 e)  choice m v q := (s3ChoiceExists G pl σ m.1 ((view m.2 v q).getD []) v q).choose  choice_edge m v q _ := by    have hh := (s3ChoiceExists G pl σ m.1 ((view m.2 v q).getD []) v q).choose_spec    exact ⟨hh.1,hh.2.1,hh.2.2.1⟩theorem prioritized_borel_phase_strategy_transfer {Q M I : Type} [Fintype Q]    (G : PrioritizedBorelGame Q 3) (pl : BorelGamePlayer)    (σ : FiniteMemoryStrategy (enc1385Game G) pl M)    (start : I) (view : I → List Bool → Q → Option (List Bool))    (advance : I → TreeGameEdge Q 3 → I)    (hstart : view start [] G.init_state = some [])    (hadv : ∀ 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))    (hw : PrioritizedBorelStrategyWins (enc1385Game G) pl σ) :    ∃ τ : FiniteMemoryStrategy G pl (M × I), τ.init_mem.2 = start ∧      (∀ m e, (τ.update m e).2 = advance m.2 e) ∧ PrioritizedBorelStrategyWins G pl τ := by  let τ := s3Pull G pl σ start view advance  refine ⟨τ,rfl,fun _ _ => rfl,?_⟩  intro π hπ hinit hnext hconsistent  obtain ⟨mem,hm0,hmstep,hmchoice⟩ := hconsistent  let E := enc1385ExpandedPlay G π  let L := Fintype.card Q + 1  let μ : ℕ → M := Nat.rec σ.init_mem (fun t m => σ.update m (E t))  have hu (t : ℕ) : μ (t+1) = σ.update (μ t) (E t) := rfl  obtain ⟨hlegalE,hinitE,hnextE⟩ := prioritized_borel_expanded_play_legal G π hπ hinit hnext  have sim := fun n => prioritized_borel_expanded_block_strategy_simulation G pl σ π n μ hu hnextE  have inv (n : ℕ) : (mem n).1 = μ (n*L) ∧      view (mem n).2 (π n).source_node (π n).source_state = some (E (n*L)).source_node := by    induction n with    | zero =>      rw [hm0,Nat.zero_mul]      constructor      · rfl      · change view start (π 0).source_node (π 0).source_state = some (E 0).source_node        rw [hinit.1,hinit.2,hinitE.1]        exact hstart    | succ n ih =>      let R := enc1385Replay G pl σ (μ (n*L)) (E (n*L)).source_node        ⟨(π n).source_node,(π n).source_state,[]⟩ (π n)      have hb := (sim n).1      change (μ ((n+1)*L),(E ((n+1)*L)).source_node,(E ((n+1)*L)).source_state) = R at hb      have hnode : (E ((n+1)*L)).source_node = (E (n*L)).source_node ++ enc1385Block (π n) :=        (congrArg (fun z => z.2.1) hb).trans          (prioritized_borel_encoding_replay_boundary G pl σ (μ (n*L)) (E (n*L)).source_node _ _ (π n)).1      rw [hmstep]      constructor      · change (enc1385Replay G pl σ (mem n).1          ((view (mem n).2 (π n).source_node (π n).source_state).getD [])          ⟨(π n).source_node,(π n).source_state,[]⟩ (π n)).1 = μ ((n+1)*L)        rw [ih.1,ih.2]        exact (congrArg Prod.fst hb).symm      · change view (advance (mem n).2 (π n)) (π (n+1)).source_node (π (n+1)).source_state =          some (E ((n+1)*L)).source_node        rw [(hnext n).1,(hnext n).2,hnode]        exact hadv _ _ _ (hπ n) ih.2  have hchoiceE (t : ℕ) (ho : (enc1385Game G).owner ((E t).source_node,(E t).source_state) = pl) :      E t = σ.choice (μ t) (E t).source_node (E t).source_state := by    let n := t/L    let i := t%L    have hi : i < L := Nat.mod_lt _ (Nat.succ_pos _)    have ht : n*L+i = t := Nat.div_add_mod' t L    have horig : G.owner ((π n).source_node,(π n).source_state) = pl := ho    have hc := hmchoice n horig    let choiceData := s3ChoiceExists G pl σ (mem n).1      ((view (mem n).2 (π n).source_node (π n).source_state).getD []) (π n).source_node (π n).source_state    have hx := choiceData.choose_spec.2.2.2 horig    change π n = choiceData.choose at hc    rw [← hc,(inv n).1,(inv n).2] at hx    rw [← ht]    exact (sim n).2 horig hx i hi  have hwin := hw E hlegalE hinitE hnextE ⟨μ,rfl,hu,hchoiceE⟩  have hiff := prioritized_borel_expanded_play_payoff G π  cases pl with  | Eve => exact hiff.mp hwin  | Adam => exact fun h => hwin (hiff.mpr h)
See it in the graphDiscuss this resultChallenge it