AFTD Auto-Formalizing Theoretical Domains

prioritized_borel_sparse_clock_history_bound

theoremverified

If the clock base is at least the state count and exceeds one, at most n+1 original-state histories reach each padded public position at depth n.

Statement

theorem prioritized_borel_sparse_clock_history_bound {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3)
    {B : ℕ} (hB : 1 < B) (hcard : Fintype.card Q ≤ B) (v : List Bool) (q : Q) :
    (op1385StateHistories (op1385SparseClockArena G B) v q).ncard ≤ v.length+1
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 7
  • op1385SparseClockArenaThe original game with a public exponential clock. Each block consists of forced zero-priority waiting moves followed by one original…
  • prioritized_borel_bounded_state_history_indicesIf at most d state histories lead to each node and current state in a finite-state prioritized tree game, each such history can be…
  • TreeGameEdgeA structure TreeGameEdge (Q : Type*) (k : ℕ) representing an edge in a binary tree game arena with state space Q and k priorities, with…
  • prioritized_borel_reverse_state_histories_uniqueIf a tree-game edge is reverse-deterministic in the state at each fixed parent node and child direction, then at most one state history…
  • PrioritizedBorelGameA structure PrioritizedBorelGame (Q : Type*) (k : ℕ) representing a prioritized Borel game with state space Q and k priorities, with…
  • strictStrict preference derived from a weak preference relation.
  • g$g(S,M) = \dim_{\mathbb{F}_p}(S^{\perp}_M) - \dim_{\mathbb{F}_p}(S_M)$.
Used by 2

The proof, explained

The proof bounds the number of original-state histories reaching a given padded node of depth n in the sparse clock arena by constructing an injective record map from histories to state sequences of length slot B n = ⌊log_B(n + 1)⌋. Because clock arena transitions are forced to be idle (state-preserving) at all inactive time steps, state changes can only take place at the start of each new clock slot. Consequently, any history is entirely determined by its initial state and its values at the ⌊log_B(n + 1)⌋ slot boundaries, giving an upper bound of |Q|^(⌊log_B(n + 1)⌋) ≤ B^(⌊log_B(n + 1)⌋) ≤ n + 1 histories.

  1. The set S of valid state histories is introduced, and the slot function t ↦ slot B t is shown to be monotone.

    Let S be the set of state histories reaching state q along path v. Since slot B t is defined as ⌊log_B(t + 1)⌋, its monotonicity follows from the monotonicity of successor (Nat.succ_le_succ) and of the discrete logarithm (Nat.log_mono_right).

    lines 8–10

    uses Nat.log_mono_right, Nat.succ_le_succ

      classical
      let S := op1385StateHistories (arena G B) v q
      have smono : Monotone (slot B) := fun _ _ h => Nat.log_mono_right (Nat.succ_le_succ h)
  2. For each slot index i < slot B |v|, a valid time coordinate time(i) = start B (i + 1) is defined, inducing a record map from histories to state sequences of length slot B |v|.

    For each slot index i < slot B |v|, we set time(i) = start B (i + 1). Because i + 1 ≤ slot B |v|, strict monotonicity of start B (strict) combined with the fact that start B (slot B |v|) ≤ |v| (inside) guarantees time(i) ≤ |v| < |v| + 1, discharged by linear arithmetic. The function record maps any history h ∈ S to its states sampled at these time points.

    lines 11–16

    uses strict, inside

      let time (i : Fin (slot B v.length)) : Fin (v.length+1) :=
        ⟨start B (i.val+1),by
          have hs := (strict hB).monotone (show i.val+1 ≤ slot B v.length from i.isLt)
          have hh := (inside hB v.length).1
          omega⟩
      let record (h : S) (i : Fin (slot B v.length)) := h.val (time i)
  3. During any inactive step j, the state remains unchanged: h(j + 1) = h(j).

    By definition of valid state histories, step j uses an arena edge e whose source node is the prefix of v of length j (Nat.min_eq_left). When j is not active, the clock arena requires the transition to be an idle step where the target state equals the source state (if_neg). Therefore, the history cannot change state at step j.

    lines 17–23

    uses Nat.min_eq_left, if_neg

      have idle (h : S) (j : Fin v.length) (ha : ¬active B j.val) :
          h.val j.succ = h.val j.castSucc := by
        obtain ⟨e,he,hv,hq,_,ht⟩ := h.property.2.2 j
        have hl : e.source_node.length = j.val := by simp [hv,Nat.min_eq_left j.isLt.le]
        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 [hl,if_neg ha] at he
        exact ht.symm.trans (he.2.2.trans hq)
  4. The record map is injective: any two state histories agreeing at all slot start times are identical.

    Suppose record f = record g. We prove f(t) = g(t) for all t ≤ |v| by induction on t. At t = 0, both histories start at the initial state. For step t + 1, if t is active, then t is the last position of slot B t, so t + 1 is the start of the next slot by timings. Monotonicity of slot (slot_start) ensures this slot index is within bounds, so f(t + 1) and g(t + 1) coincide because record f = record g. If t is inactive, both histories preserve their state across the step by the idle lemma, so f(t + 1) = f(t) = g(t) = g(t + 1) by the induction hypothesis. Hence f = g by extensionality (Subtype.ext, Fin.ext, congrFun, congrArg).

    lines 24–46

    uses Subtype.ext, congrArg, timings, slot_start, congrFun, Fin.ext

      have hinj : Function.Injective record := by
        intro f g he
        apply Subtype.ext
        funext j
        have agree (t : ℕ) (ht : t < v.length+1) : f.val ⟨t,ht⟩ = g.val ⟨t,ht⟩ := by
          induction t with
          | zero => exact f.property.1.trans g.property.1.symm
          | succ t ih =>
            have htv : t < v.length := by omega
            by_cases ha : active B t
            · have hstart : t+1 = start B (slot B t+1) := by
                change t = last B (slot B t) at ha
                exact (congrArg (· + 1) ha).trans (timings hB _).2
              have hs : slot B t < slot B v.length := by
                have hm := smono (show t+1 ≤ v.length by omega)
                rw [hstart,slot_start hB] at hm
                omega
              have hh := congrFun he (⟨slot B t,hs⟩ : Fin (slot B v.length))
              change f.val (time ⟨slot B t,hs⟩) = g.val (time ⟨slot B t,hs⟩) at hh
              have heq : time ⟨slot B t,hs⟩ = ⟨t+1,ht⟩ := Fin.ext hstart.symm
              rwa [heq] at hh
            · exact (idle f ⟨t,htv⟩ ha).trans ((ih (by omega)).trans (idle g ⟨t,htv⟩ ha).symm)
        exact agree j.val j.isLt
  5. The number of state histories is bounded by |v| + 1.

    Injectivity of record embeds S into the function space Fin (slot B |v|) → Q, so |S| ≤ |Q|^(slot B |v|) (Fintype.card_le_of_injective, Fintype.card_fun, Set.fintypeCard_eq_ncard). Since |Q| ≤ B, this is bounded by B^(slot B |v|) = B^(⌊log_B(|v| + 1)⌋) (Nat.pow_le_pow_left). By Nat.pow_log_le_self applied with Nat.succ_ne_zero, this base-B power is at most |v| + 1.

    lines 47–51

    uses Fintype.card_le_of_injective, Fintype.card_fun, Set.fintypeCard_eq_ncard, Nat.pow_le_pow_left, Nat.pow_log_le_self, Nat.succ_ne_zero

      let _ := Fintype.ofFinite S
      have hi := Fintype.card_le_of_injective record hinj
      have hf : S.ncard ≤ (Fintype.card Q)^(slot B v.length) := by
        simpa [Fintype.card_fun,Set.fintypeCard_eq_ncard] using hi
      exact hf.trans ((Nat.pow_le_pow_left hcard _).trans (Nat.pow_log_le_self B (Nat.succ_ne_zero v.length)))
Nat.log_mono_right
The base-b discrete logarithm on ℕ is monotone in its second argument.
Nat.succ_le_succ
The successor function preserves the ≤ order on natural numbers (n ≤ m implies n + 1 ≤ m + 1).
strict
When base B > 1, the slot start function n ↦ start B n is strictly monotone.
inside
For any time t, start B (slot B t) ≤ t ≤ last B (slot B t).
Nat.min_eq_left
If a ≤ b, then min a b = a.
if_neg
An if-then-else evaluates to its else branch when the condition is false.
Subtype.ext
Two subtype elements are equal if their underlying values are equal.
congrArg
Applying a function to equal inputs yields equal outputs.
timings
In base B > 1, last B n + 1 = start B (n + 1).
slot_start
The slot index of start B n is n.
congrFun
Equal functions take equal values at any argument.
Fin.ext
Two elements of Fin n are equal if their underlying natural numbers are equal.
Fintype.card_le_of_injective
An injection between finite types implies the domain has cardinality at most the codomain.
Fintype.card_fun
The cardinality of the function space α → β is |β|^|α|.
Set.fintypeCard_eq_ncard
For a finite set s, its Fintype cardinality equals its natural-number cardinality (ncard).
Nat.pow_le_pow_left
If n ≤ m, then n^i ≤ m^i for any natural exponent i.
Nat.pow_log_le_self
For x ≠ 0, b^(log_b x) ≤ x.
Nat.succ_ne_zero
The successor of any natural number is non-zero (n + 1 ≠ 0).

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 600000namespace Op1385Clocktheorem sparse_histories {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3)    {B : ℕ} (hB : 1 < B) (hcard : Fintype.card Q ≤ B) (v : List Bool) (q : Q) :    (op1385StateHistories (arena G B) v q).ncard ≤ v.length+1 := by  classical  let S := op1385StateHistories (arena G B) v q  have smono : Monotone (slot B) := fun _ _ h => Nat.log_mono_right (Nat.succ_le_succ h)  let time (i : Fin (slot B v.length)) : Fin (v.length+1) :=    ⟨start B (i.val+1),by      have hs := (strict hB).monotone (show i.val+1 ≤ slot B v.length from i.isLt)      have hh := (inside hB v.length).1      omega⟩  let record (h : S) (i : Fin (slot B v.length)) := h.val (time i)  have idle (h : S) (j : Fin v.length) (ha : ¬active B j.val) :      h.val j.succ = h.val j.castSucc := by    obtain ⟨e,he,hv,hq,_,ht⟩ := h.property.2.2 j    have hl : e.source_node.length = j.val := by simp [hv,Nat.min_eq_left j.isLt.le]    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 [hl,if_neg ha] at he    exact ht.symm.trans (he.2.2.trans hq)  have hinj : Function.Injective record := by    intro f g he    apply Subtype.ext    funext j    have agree (t : ℕ) (ht : t < v.length+1) : f.val ⟨t,ht⟩ = g.val ⟨t,ht⟩ := by      induction t with      | zero => exact f.property.1.trans g.property.1.symm      | succ t ih =>        have htv : t < v.length := by omega        by_cases ha : active B t        · have hstart : t+1 = start B (slot B t+1) := by            change t = last B (slot B t) at ha            exact (congrArg (· + 1) ha).trans (timings hB _).2          have hs : slot B t < slot B v.length := by            have hm := smono (show t+1 ≤ v.length by omega)            rw [hstart,slot_start hB] at hm            omega          have hh := congrFun he (⟨slot B t,hs⟩ : Fin (slot B v.length))          change f.val (time ⟨slot B t,hs⟩) = g.val (time ⟨slot B t,hs⟩) at hh          have heq : time ⟨slot B t,hs⟩ = ⟨t+1,ht⟩ := Fin.ext hstart.symm          rwa [heq] at hh        · exact (idle f ⟨t,htv⟩ ha).trans ((ih (by omega)).trans (idle g ⟨t,htv⟩ ha).symm)    exact agree j.val j.isLt  let _ := Fintype.ofFinite S  have hi := Fintype.card_le_of_injective record hinj  have hf : S.ncard ≤ (Fintype.card Q)^(slot B v.length) := by    simpa [Fintype.card_fun,Set.fintypeCard_eq_ncard] using hi  exact hf.trans ((Nat.pow_le_pow_left hcard _).trans (Nat.pow_log_le_self B (Nat.succ_ne_zero v.length)))end Op1385Clocktheorem prioritized_borel_sparse_clock_history_bound {Q : Type} [Fintype Q] (G : PrioritizedBorelGame Q 3)    {B : ℕ} (hB : 1 < B) (hcard : Fintype.card Q ≤ B) (v : List Bool) (q : Q) :    (op1385StateHistories (op1385SparseClockArena G B) v q).ncard ≤ v.length+1 := Op1385Clock.sparse_histories G hB hcard v q
See it in the graphDiscuss this resultChallenge it