AFTD Auto-Formalizing Theoretical Domains

prioritized_borel_expanded_play_node_adjacency

theoremverified

For any original edge sequence, consecutive encoded edges have matching tree-node endpoints; this assertion alone does not establish state adjacency or edge legality.

Statement

theorem prioritized_borel_expanded_play_node_adjacency {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3)
    (π : ℕ → TreeGameEdge Q 3) (n : ℕ) :
    (enc1385ExpandedPlay G π (n+1)).source_node =
      (enc1385ExpandedPlay G π n).source_node ++ [(enc1385ExpandedPlay G π n).dir]
Source
Infinite-play encoding for arXiv:2611.10136, Conjecture 19.
Verified
17 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 4
  • enc1385GameGiven a finite-state three-priority tree game, construct a phase-state game that encodes each original direction followed by a one-hot…
  • enc1385ExpandedPlayExpand an arbitrary sequence of original edges into phase-game edges by indexing its fixed-length direction-and-state blocks. This…
  • 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…

The proof, explained

In an expanded play, the tree node at step n records the sequence of the first n encoding bits, while the direction chosen at step n is the (n + 1)-th bit. The theorem establishes that the tree node at step n + 1 extends the tree node at step n by this direction bit. The proof accomplishes this in one step by applying List.ofFn_succ' to split the length-(n + 1) list into its initial length-n prefix and final element, matching the definition of enc1385ExpandedPlay.

  1. The source node of the expanded play at step n + 1 equals the source node at step n concatenated with the direction bit at step n.

    By definition of enc1385ExpandedPlay, the source_node at any step m is the list of length m formed by evaluating the encoding bits at indices 0, ..., m - 1, and the direction dir at step n is the bit at index n. The lemma List.ofFn_succ' decomposes the list of the first n + 1 bits into the list of the first n bits followed by the (n + 1)-th bit. Simplifying with this identity, rewriting list concatenation with List.concat_eq_append, and unfolding enc1385ExpandedPlay directly establishes the equality.

    lines 5–8

    uses List.concat_eq_append, List.ofFn_succ'

      simpa [enc1385ExpandedPlay, List.concat_eq_append] using
        (List.ofFn_succ' (fun i : Fin (n+1) =>
          (enc1385Block (π (i.val / (Fintype.card Q + 1)))).getD
            (i.val % (Fintype.card Q + 1)) false))
List.ofFn_succ'
A list of length n + 1 formed by evaluating a function f on Fin (n + 1) equals the list of the first n elements concatenated at the end with the final element f (Fin.last n).
List.concat_eq_append
Appending an element to the end of a list using concat is equivalent to appending the singleton list [a].

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_expanded_play_node_adjacency {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3)    (π : ℕ → TreeGameEdge Q 3) (n : ℕ) :    (enc1385ExpandedPlay G π (n+1)).source_node =      (enc1385ExpandedPlay G π n).source_node ++ [(enc1385ExpandedPlay G π n).dir] := by  simpa [enc1385ExpandedPlay, List.concat_eq_append] using    (List.ofFn_succ' (fun i : Fin (n+1) =>      (enc1385Block (π (i.val / (Fintype.card Q + 1)))).getD        (i.val % (Fintype.card Q + 1)) false))
See it in the graphDiscuss this resultChallenge it