prioritized_borel_latch_lookahead_histories
Along the all-zero public word of length n, at least n different legal state histories end at the same state in the four-state example.
Statement
theorem prioritized_borel_latch_lookahead_histories
(owner : List Bool × (Bool × Bool) → BorelGamePlayer) (W : Fin 3 → Set (ℕ → Bool)) (hW : ∀ p, MeasurableSet (W p))
(n : ℕ) :
n ≤ (op1385StateHistories (op1385LatchLookaheadGame owner W hW) (List.replicate n false) (true,false)).ncard- Source
- arXiv:2611.10136, Conjecture 19. A four-state separation example for OP-1385, experiment 44458.
- Verified
- 29 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 9
- op1385LatchLookaheadGameA four-state three-priority game with unrestricted priority labels, arbitrary ownership and branch payoffs, a one-way latch, and a bit…
- 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…
- BorelGamePlayerThe two players in a prioritized Borel game, Eve and Adam.
- TreeGameEdgeA structure TreeGameEdge (Q : Type*) (k : ℕ) representing an edge in a binary tree game arena with state space Q and k priorities, with…
- LinearOrder.toTotalPreorderEvery
LinearOrderis aTotalPreorder. - 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…
- op1385LatchLookaheadStepA four-state transition keeps a hidden latch nondecreasing and requires the current public direction to match the second source-state bit.
- TotalPreorderA total preorder: a preorder where
≤is total (complete). This is weaker thanLinearOrder— it does NOT require antisymmetry or…
The proof, explained
To show that there are at least $n$ valid state histories along the all-zero word of length $n$ ending at $(\mathrm{true}, \mathrm{false})$, we construct an explicit injective map from $\{0, \dots, n-1\}$ into this set of histories. For each index $j$, the candidate history holds the second coordinate at $\mathrm{false}$ while the first coordinate transitions monotonically from $\mathrm{false}$ to $\mathrm{true}$ at step $j+1$, which satisfies the lookahead step conditions along the all-zero word. Because the switching index $j$ can be recovered from where the path first becomes $\mathrm{true}$, all $n$ histories are distinct, establishing the cardinality bound $n$.
Define the game, the all-false word, and a family of candidate state histories indexed by the switching time $j$.
Enable classical logic. Let $G$ denote the lookahead game with the given owner and winning sets, and let $v$ be the list of $n$ `false` bits. For each index $j \in \{0, \dots, n-1\}$, define a candidate state history `states j`: at step $i \in \{0, \dots, n\}$, its state is $(\mathrm{decide}(j < i), \mathrm{false})$. The second component is constantly $\mathrm{false}$, while the first component remains $\mathrm{false}$ until step $j+1$, where it permanently latches to $\mathrm{true}$.
classical let G := op1385LatchLookaheadGame owner W hW let v := List.replicate n false let states (j : Fin v.length) (i : Fin (v.length+1)) := (decide (j.val < i.val),false)
Each candidate sequence `states j` is a valid state history for $G$ along $v$ ending at $(\mathrm{true}, \mathrm{false})$.
To belong to `op1385StateHistories G v (true, false)`, a sequence must start at $G$'s initial state, end at $(\mathrm{true}, \mathrm{false})$, and make legal transitions at each step. (1) At step $0$, $j < 0$ is false, so `states j 0 = (false, false)`, which is $G.\mathrm{init\_state}$. (2) At the terminal step $n = v.\mathrm{length}$, $j < n$ holds because $j \in \mathrm{Fin}(v.\mathrm{length})$, so `states j n = (true, false)`. (3) For every step $i$, we exhibit the edge with source `states j i`, direction $v_i$, priority $0$, and target `states j (i+1)`. By definition of the latch step relation, this transition is legal if the first component is monotonic and the direction matches the second component of the source state. Monotonicity $\mathrm{decide}(j < i) \le \mathrm{decide}(j < i+1)$ follows by case analysis using `Nat.lt_succ_of_lt`. The direction check matches because both $v_i$ (by `List.get_eq_getElem`) and the second state component are constantly $\mathrm{false}$.
uses
Nat.lt_succ_of_lt,List.get_eq_getElemhave hh (j : Fin v.length) : states j ∈ op1385StateHistories G v (true,false) := by refine ⟨by simp [states,G,op1385LatchLookaheadGame],by simp [states,j.isLt],?_⟩ intro i refine ⟨⟨v.take i.val,states j i.castSucc,v.get i,0,states j i.succ⟩,⟨?_,?_⟩,rfl,rfl,rfl,rfl⟩ · change decide (j.val < i.val) ≤ decide (j.val < i.val+1) by_cases h : j.val < i.val · simp [h,Nat.lt_succ_of_lt h] · simp [h] · simp [v,states,List.get_eq_getElem]
Package each candidate history into an element of the subtype of valid state histories.
Define the function `enc` mapping each index $j \in \{0, \dots, n-1\}$ to the candidate history `states j`, paired with the proof `hh j` that it is indeed a valid history ending at $(\mathrm{true}, \mathrm{false})$.
let enc (j : Fin v.length) : op1385StateHistories G v (true,false) := ⟨states j,hh j⟩The encoding map `enc` is injective.
Assume $\mathrm{enc}(j) = \mathrm{enc}(k)$, which implies $\mathrm{states}(j) = \mathrm{states}(k)$ by stripping the subtype wrapper with `congrArg Subtype.val`. Evaluating both sides at $j$ and taking the first component via `congrFun` and `congrArg Prod.fst` gives $(j < j) = (k < j)$, so $\mathrm{false} = (k < j)$, which simplifies to $j \le k$. Symmetrically, evaluating at $k$ yields $k \le j$. By `Fin.ext`, equality in $\mathrm{Fin}(n)$ reduces to equality in $\mathbb{N}$, which `omega` concludes from $j \le k$ and $k \le j$.
uses
congrArg,Subtype.val,congrFun,Prod.fst,Fin.exthave hinj : Function.Injective enc := by intro j k hjk have eqs : states j = states k := congrArg Subtype.val hjk have hj := congrArg Prod.fst (congrFun eqs j.castSucc) have hk := congrArg Prod.fst (congrFun eqs k.castSucc) apply Fin.ext simp [states] at hj hk omega
The number of valid state histories along $v$ ending at $(\mathrm{true}, \mathrm{false})$ is at least $n$.
Endow the set of valid histories with a `Fintype` instance via `Fintype.ofFinite`. Since `enc` is an injective function from $\mathrm{Fin}(v.\mathrm{length})$ to this set, `Fintype.card_le_of_injective` gives $|\mathrm{Fin}(v.\mathrm{length})| \le |\mathrm{op1385StateHistories} \dots|$. Rewriting the cardinality of the subtype to the set cardinality `ncard` via `Set.fintypeCard_eq_ncard`, and simplifying with $|v| = n$, yields $n \le (\mathrm{op1385StateHistories} \dots).\mathrm{ncard}$.
uses
Fintype.ofFinite,Fintype.card_le_of_injective,Set.fintypeCard_eq_ncardlet _ := Fintype.ofFinite (op1385StateHistories G v (true,false)) simpa [v,Set.fintypeCard_eq_ncard] using Fintype.card_le_of_injective enc hinj
Nat.lt_succ_of_lt- If a natural number is strictly less than another, it is strictly less than its successor ($a < b \implies a < b + 1$).
List.get_eq_getElem- Accessing a list element with a bounded index using `.get` is equivalent to array-style indexing `[]`.
congrArg- If two inputs are equal, then applying any function to them yields equal results ($x = y \implies f(x) = f(y)$).
Subtype.val- The projection mapping an element of a subtype to its underlying value.
Prod.fst- The projection taking an ordered pair to its first component ($(a, b).1 = a$).
congrFun- If two functions are equal, their evaluations at any point are equal ($f = g \implies f(x) = g(x)$).
Fin.ext- Two bounded natural numbers in $\mathrm{Fin}(n)$ are equal if and only if their underlying values in $\mathbb{N}$ are equal.
Fintype.ofFinite- Constructs a `Fintype` instance from an existing `Finite` instance.
Set.fintypeCard_eq_ncard- For any set with a `Fintype` structure on its subtype, the `Fintype.card` equals the set's cardinality `ncard`.
Fintype.card_le_of_injective- If there is an injective function from a finite type $\alpha$ to a finite type $\beta$, then $|\alpha| \le |\beta|$.
- Lean automatically infers the finiteness of the set of state histories when invoking `Fintype.ofFinite` on line 27.
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.
theorem prioritized_borel_latch_lookahead_histories (owner : List Bool × (Bool × Bool) → BorelGamePlayer) (W : Fin 3 → Set (ℕ → Bool)) (hW : ∀ p, MeasurableSet (W p)) (n : ℕ) : n ≤ (op1385StateHistories (op1385LatchLookaheadGame owner W hW) (List.replicate n false) (true,false)).ncard := by classical let G := op1385LatchLookaheadGame owner W hW let v := List.replicate n false let states (j : Fin v.length) (i : Fin (v.length+1)) := (decide (j.val < i.val),false) have hh (j : Fin v.length) : states j ∈ op1385StateHistories G v (true,false) := by refine ⟨by simp [states,G,op1385LatchLookaheadGame],by simp [states,j.isLt],?_⟩ intro i refine ⟨⟨v.take i.val,states j i.castSucc,v.get i,0,states j i.succ⟩,⟨?_,?_⟩,rfl,rfl,rfl,rfl⟩ · change decide (j.val < i.val) ≤ decide (j.val < i.val+1) by_cases h : j.val < i.val · simp [h,Nat.lt_succ_of_lt h] · simp [h] · simp [v,states,List.get_eq_getElem] let enc (j : Fin v.length) : op1385StateHistories G v (true,false) := ⟨states j,hh j⟩ have hinj : Function.Injective enc := by intro j k hjk have eqs : states j = states k := congrArg Subtype.val hjk have hj := congrArg Prod.fst (congrFun eqs j.castSucc) have hk := congrArg Prod.fst (congrFun eqs k.castSucc) apply Fin.ext simp [states] at hj hk omega let _ := Fintype.ofFinite (op1385StateHistories G v (true,false)) simpa [v,Set.fintypeCard_eq_ncard] using Fintype.card_le_of_injective enc hinj