AFTD Auto-Formalizing Theoretical Domains

prioritized_borel_encoding_choice_action_trace

theoremverified

At a position owned by the phase strategy player, its entire block of direction-and-priority choices is the encoding of one legal original edge at that position.

Statement

theorem prioritized_borel_encoding_choice_action_trace {Q M : Type} [Fintype Q]
    (G : PrioritizedBorelGame Q 3) (pl : BorelGamePlayer)
    (σ : FiniteMemoryStrategy (enc1385Game G) pl M)
    (m : M) (node v : List Bool) (q : Q) (ho : G.owner (v,q) = pl) :
    ∃ e ∈ G.edges, e.source_node = v ∧ e.source_state = q ∧
      enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q + 1) =
        enc1385BlockMoves e
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 12
  • 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…
  • prioritized_borel_encoding_follow_finalAt a controlled original position, after the proper-prefix phase steps, the strategy’s final phase choice completes the code of some legal…
  • prioritized_borel_encoding_follow_proper_actionsDuring the proper-prefix steps of a controlled block, the recorded action directions equal the current pending bits and every recorded…
  • prioritized_borel_encoding_actions_eq_blockA sequence of zero-priority actions followed by a final action with the original priority equals the encoded edge-action block when its…
  • 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…
  • enc1385GameGiven a finite-state three-priority tree game, construct a phase-state game that encodes each original direction followed by a one-hot…
  • PrioritizedBorelGameA structure PrioritizedBorelGame (Q : Type*) (k : ℕ) representing a prioritized Borel game with state space Q and k priorities, with…
  • enc1385BlockMovesThe phase-game actions for one original edge, with the original priority on the final bit and priority zero on preceding bits.
  • 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.
  • BorelGamePlayerThe two players in a prioritized Borel game, Eve and Adam.
Used by 1

The proof, explained

To show that following the strategy σ for |Q| + 1 moves reproduces the canonical block encoding of an original edge e, the proof decomposes the trace into the first |Q| moves and the final move. By `prioritized_borel_encoding_follow_final`, the state reached after |Q| moves stores a bit sequence that, together with the (|Q| + 1)-th direction choice, encodes an edge e ∈ G.edges from (v, q) with the correct priority. Lemma `prioritized_borel_encoding_follow_proper_actions` ensures the first |Q| actions have priority 0 and match the stored bits, allowing `prioritized_borel_encoding_actions_eq_block` to equate the full action trace with `enc1385BlockMoves e`.

  1. Following the strategy for |Q| steps leads to an edge e in the original game from (v, q) and a sequence of |Q| bits such that the pending state records these bits, extending them with the strategy's next direction choice gives the encoding of e, and the chosen priority equals e.prio.

    Let `st` be the configuration reached after following σ for |Q| steps from source (v, q) with empty pending bits, and let `a` be the next choice of σ. Lemma `prioritized_borel_encoding_follow_final` establishes the existence of |Q| bits and an original game edge `e ∈ G.edges` originating at (v, q) such that `st` has pending bits `bits`, appending `a.dir` to `bits` yields `enc1385Block e`, and `a.prio = e.prio`.

    lines 8–11

    uses prioritized_borel_encoding_follow_final

      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,_,_,hs,e,he,hv,hq,hb,hp⟩ :=
        prioritized_borel_encoding_follow_final G pl σ m node v q ho
  2. The first |Q| actions played by the strategy all have priority 0, and their direction bits coincide with the list `bits`.

    Let `xs` be the trace of the first |Q| actions. Applying `prioritized_borel_encoding_follow_proper_actions` with n = |Q| (using `le_rfl` for |Q| ≤ |Q|) shows that all actions in `xs` carry priority 0 and their directions match the pending bits of `st`. Since the pending bits of `st` were shown to be `bits`, the direction sequence of `xs` is equal to `bits`.

    lines 12–19

    uses prioritized_borel_encoding_follow_proper_actions, le_rfl

      let xs := enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q)
      have hxs := prioritized_borel_encoding_follow_proper_actions G pl σ m node v q ho _ le_rfl
      have hx : xs.map Prod.fst = bits := by
        have hh := hxs.1
        change xs.map Prod.fst = st.2.2.pending at hh
        change st.2.2 = _ at hs
        rw [hs] at hh
        exact hh
  3. The edge e satisfies the theorem: e ∈ G.edges originates at (v, q) and the (|Q| + 1)-step action trace of σ equals enc1385BlockMoves e.

    Providing `e` as the witness, the remaining goal is that the (|Q| + 1)-step trace equals `enc1385BlockMoves e`. By definition, taking (|Q| + 1) steps appends the final action `(a.dir, a.prio)` to `xs`. Since `a.prio = e.prio`, this action sequence is `xs ++ [(a.dir, e.prio)]`. Because the actions in `xs` have priority 0 and their directions combined with `a.dir` form `enc1385Block e`, `prioritized_borel_encoding_actions_eq_block` concludes that this trace is exactly `enc1385BlockMoves e`.

    lines 20–24

    uses prioritized_borel_encoding_actions_eq_block

      refine ⟨e,he,hv,hq,?_⟩
      change xs ++ [(a.dir,a.prio)] = enc1385BlockMoves e
      change a.prio = e.prio at hp
      rw [hp]
      exact prioritized_borel_encoding_actions_eq_block e xs a.dir hxs.2 (hx ▸ hb)
prioritized_borel_encoding_follow_final
After following a strategy for |Q| steps from an owned position, the state stores |Q| bits, and the strategy's subsequent action provides the final direction bit and priority matching an edge of the original game.
prioritized_borel_encoding_follow_proper_actions
For any number of steps n ≤ |Q|, the sequence of direction choices matches the pending bits stored in the game state, and each intermediate action has priority 0.
le_rfl
The inequality relation in a preorder is reflexive: a ≤ a for every element a.
prioritized_borel_encoding_actions_eq_block
A sequence of |Q| actions with priority 0, together with a final action (bit, e.prio) whose direction sequence encodes e, equals the canonical block move trace enc1385BlockMoves e.

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

theorem prioritized_borel_encoding_choice_action_trace {Q M : Type} [Fintype Q]    (G : PrioritizedBorelGame Q 3) (pl : BorelGamePlayer)    (σ : FiniteMemoryStrategy (enc1385Game G) pl M)    (m : M) (node v : List Bool) (q : Q) (ho : G.owner (v,q) = pl) :    ∃ e ∈ G.edges, e.source_node = v ∧ e.source_state = q ∧      enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q + 1) =        enc1385BlockMoves e := by  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,_,_,hs,e,he,hv,hq,hb,hp⟩ :=    prioritized_borel_encoding_follow_final G pl σ m node v q ho  let xs := enc1385FollowActions G pl σ m node ⟨v,q,[]⟩ (Fintype.card Q)  have hxs := prioritized_borel_encoding_follow_proper_actions G pl σ m node v q ho _ le_rfl  have hx : xs.map Prod.fst = bits := by    have hh := hxs.1    change xs.map Prod.fst = st.2.2.pending at hh    change st.2.2 = _ at hs    rw [hs] at hh    exact hh  refine ⟨e,he,hv,hq,?_⟩  change xs ++ [(a.dir,a.prio)] = enc1385BlockMoves e  change a.prio = e.prio at hp  rw [hp]  exact prioritized_borel_encoding_actions_eq_block e xs a.dir hxs.2 (hx ▸ hb)
See it in the graphDiscuss this resultChallenge it