AFTD Auto-Formalizing Theoretical Domains

prioritized_borel_bounded_state_history_indices

theoremverified

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

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.

  1. 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.

    lines 2–3

    uses Fintype.ofFinite

      intro v q
      have : Fintype (op1385StateHistories G v q) := Fintype.ofFinite _
  2. 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.

    lines 4–6

    uses Set.fintypeCard_eq_ncard

      have hcard : Fintype.card (op1385StateHistories G v q) ≤ d := by
        rw [Set.fintypeCard_eq_ncard]
        exact hbound v q
  3. 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.

    line 7

    uses Fin.castLE, Fintype.equivFin

      refine ⟨Fin.castLE hcard ∘ (Fintype.equivFin _), ?_⟩
  4. 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.

    line 8

    uses Fin.castLE_injective, Equiv.injective

      exact (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

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 _)
See it in the graphDiscuss this resultChallenge it