prioritized_borel_bounded_state_history_indices
If at most d state histories lead to each node and current state in a finite-state prioritized tree game, each such history can be assigned an index below d, injectively at each fixed node and state.
Statement
theorem prioritized_borel_bounded_state_history_indices {Q : Type} [Fintype Q] {k : ℕ} (G : PrioritizedBorelGame Q k) (d : ℕ) (hbound : ∀ (v : List Bool) (q : Q), (op1385StateHistories G v q).ncard ≤ d) : ∀ (v : List Bool) (q : Q), ∃ enc : (op1385StateHistories G v q) → Fin d, Function.Injective enc
- Source
- State-history coding step toward the bounded-ambiguity reduction for arXiv:2611.10136, Conjecture 19.
- Verified
- 17 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- 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…
- Used by 3
- prioritized_borel_sparse_clock_history_boundIf 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…
- prioritized_borel_bounded_history_trace_trackerIf at most d legal state histories reach each position, an index in Fin d recovers the accumulated encoded branch from the visible…
- prioritized_borel_latch_lookahead_historiesAlong 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.
The proof, explained
To construct an injective encoding of the state histories leading to a node v and state q into Fin d, we observe that the collection of such histories is finite because the state space Q is finite. Its cardinality is at most d by hypothesis. We then compose the canonical bijection from the set of histories to Fin m (where m is its cardinality) with the natural inclusion from Fin m into Fin d, yielding an injective map.
Fix a node v and state q; the set of state histories leading to (v, q) is finite.
We introduce the arbitrary node v and state q. Because the state space Q is finite, the function space Fin (v.length + 1) → Q is finite, so its subset of state histories is finite as well; we record this with Fintype.ofFinite.
uses
Fintype.ofFiniteintro v q have : Fintype (op1385StateHistories G v q) := Fintype.ofFinite _
The cardinality of the set of state histories leading to (v, q) is at most d.
Rewriting the Fintype cardinality in terms of the set cardinality ncard via Set.fintypeCard_eq_ncard, the bound follows directly from the assumption hbound.
uses
Set.fintypeCard_eq_ncardhave hcard : Fintype.card (op1385StateHistories G v q) ≤ d := by rw [Set.fintypeCard_eq_ncard] exact hbound v q
Composing the canonical bijection with Fin (card) and the inclusion into Fin d gives a candidate encoding.
We witness the existential by composing the canonical bijection Fintype.equivFin from the history set to Fin m (where m is its cardinality) with the embedding Fin.castLE hcard from Fin m into Fin d, reducing the goal to verifying injectivity.
uses
Fin.castLE,Fintype.equivFinrefine ⟨Fin.castLE hcard ∘ (Fintype.equivFin _), ?_⟩The candidate encoding into Fin d is injective.
The composition of two injective functions is injective; Fin.castLE is injective by Fin.castLE_injective, and the bijection Fintype.equivFin is injective by Equiv.injective.
uses
Fin.castLE_injective,Equiv.injectiveexact (Fin.castLE_injective hcard).comp (Equiv.injective _)
Fintype.ofFinite- Constructs a `Fintype` instance on a type from a proof that the type is finite.
Set.fintypeCard_eq_ncard- The `Fintype` cardinality of a set is equal to its set cardinality `ncard`.
Fin.castLE- Embeds `Fin n` into `Fin m` when `n ≤ m` by mapping each element to the corresponding element with the same numerical value.
Fintype.equivFin- The canonical bijection between any finite type and `Fin (Fintype.card α)`.
Fin.castLE_injective- The canonical embedding `Fin.castLE` from `Fin n` to `Fin m` is injective.
Equiv.injective- Every equivalence (bijection) between types is injective.
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_bounded_state_history_indices {Q : Type} [Fintype Q] {k : ℕ} (G : PrioritizedBorelGame Q k) (d : ℕ) (hbound : ∀ (v : List Bool) (q : Q), (op1385StateHistories G v q).ncard ≤ d) : ∀ (v : List Bool) (q : Q), ∃ enc : (op1385StateHistories G v q) → Fin d, Function.Injective enc := by intro v q have : Fintype (op1385StateHistories G v q) := Fintype.ofFinite _ have hcard : Fintype.card (op1385StateHistories G v q) ≤ d := by rw [Set.fintypeCard_eq_ncard] exact hbound v q refine ⟨Fin.castLE hcard ∘ (Fintype.equivFin _), ?_⟩ exact (Fin.castLE_injective hcard).comp (Equiv.injective _)