Documentation

ReflectiveSubsystems.DictatorFar

Learners whose far pairs hold two disjoint triangles: two states past C buy two misses #

[Discovery] §3.4 Proposition 3.16. Take a finite-state learner over C candidates (FiniteLearner) with at most C + 2 states, a dictator d c for each candidate, its start not a dictator, and a map F moving the dictator of c to the state its miss at the vector false at c alone and the outcome true leads to, and every further state to itself. (The last three results below take the start to be the dictator of a candidate.) A set of candidates is finished within k steps (WalkFinishes F d k B) when the walk of F from the dictator of some candidate meets the dictator of every member within k steps; a walk that meets a further state stays there, so this is the notion that no walk from a dictator, meeting no further state before, visits the whole set. Two candidates are far when the pair is not finished within C - 5 steps. Such a learner misses at least C - 3 times on some realizable stream, at every C ≥ 6, whenever every set of candidates no two of which are far leaves outside it two disjoint sets that no walk finishes within C - 6 steps.

Main results #

def ReflectiveSubsystems.WalkFinishes {ι : Type u_1} {σ : Type u_2} (F : σ → σ) (d : ι → σ) (k : ℕ) (B : Finset ι) :

The walk of F from the image of some index meets the image of every member of B within k steps.

Equations
Instances For
    @[instance_reducible]
    instance ReflectiveSubsystems.instDecidableWalkFinishesOfFintypeOfDecidableEq {ι : Type u_1} {σ : Type u_2} [Fintype ι] [DecidableEq σ] (F : σ → σ) (d : ι → σ) (k : ℕ) (B : Finset ι) :
    Equations
    theorem ReflectiveSubsystems.FiniteLearner.exists_missCount_ge_of_far {C : ℕ} (hC : 6 ≤ C) {L : FiniteLearner C} (hcard : Fintype.card L.S ≤ C + 2) {d : Fin C → L.S} (hd : ∀ (c : Fin C), L.Dictates (d c) c) (hstart : ∀ (c : Fin C), L.start ≠ d c) {F : L.S → L.S} (hF : ∀ (c : Fin C), F (d c) = L.step (d c) (fun (q : Fin C) => decide (q ≠ c)) true) (_hFfix : ∀ (s : L.S), (∀ (c : Fin C), s ≠ d c) → F s = s) (hfar : ∀ (T : Finset (Fin C)), (∀ a ∈ T, ∀ x ∈ T, WalkFinishes F d (C - 5) {a, x}) → ∃ (Q₁ : Finset (Fin C)) (Q₂ : Finset (Fin C)), Disjoint Q₁ T ∧ Disjoint Q₂ T ∧ Disjoint Q₁ Q₂ ∧ ¬WalkFinishes F d (C - 6) Q₁ ∧ ¬WalkFinishes F d (C - 6) Q₂) :
    ∃ (v : ℕ → Fin C → Bool) (y : ℕ → Bool), Realizable v y ∧ ∃ (m : ℕ), C ≤ L.missCount v y m + 3

    Two states past C buy two misses where far pairs hold two disjoint triangles ([Discovery] §3.4 Proposition 3.16, the general form). Take a learner over C ≥ 6 candidates with at most C + 2 states, a dictator d c for each candidate, its start not a dictator, and a map F moving the dictator of c to the state its miss at the vector false at c alone and the outcome true leads to, and every state that is not a dictator to itself. Call two candidates far when the pair is not finished within C - 5 steps of F (WalkFinishes). If every set of candidates no two of which are far leaves outside it two disjoint sets that no walk finishes within C - 6 steps, then some realizable stream has a horizon with a count m such that C ≤ m + 3: the learner misses at least C - 3 times. With at most C + 1 states this is the bound at one state past C (exists_missCount_ge_of_card_le_succ). With exactly C + 2 states the dictators leave two further states, the start h1 and one more h2. The adversary is that of exists_missCount_ge_of_path: at a dictator it presents the vector false at its candidate alone with the outcome true, a miss removing that candidate and no other; at a further state, for a split it chooses, the indicator of one side with the outcome opposite to the state's prediction, a miss that keeps the side the state reveals; and a further state met twice on a run is replayed forever. Were no stream to have C - 3 misses, at each split both of whose sides are not finished within C - 5 steps h1 would reveal a side and either reach h2 directly, or, handed on by a walk of m ≤ C - 5 dictators, reach h2 with what that walk leaves of the side and C - 4 - m further misses unforced. A candidate is received when it lies in the set so delivered at some such split. Two far candidates are not both unreceived: at the split cutting off the pair, the side of the pair delivers a set inside it, and the other side delivers a set of at least C - 2 - m members against a budget of C - 5 - m steps, which no walk finishes on both parts of the split exists_split_of_iterate gives it. So the unreceived candidates meet the premise of the hypothesis, which leaves two disjoint sets of received candidates that no walk finishes within C - 6 steps; at the split cutting off one of them, h2 reveals a side holding the one or the other, and its successor, which does not depend on which received set is in play, is a dictator whose walk meets every member of that set within C - 6 steps.

    theorem ReflectiveSubsystems.FiniteLearner.exists_missCount_ge_of_far_triangles {C : ℕ} (hC : 6 ≤ C) {L : FiniteLearner C} (hcard : Fintype.card L.S ≤ C + 2) {d : Fin C → L.S} (hd : ∀ (c : Fin C), L.Dictates (d c) c) (hstart : ∀ (c : Fin C), L.start ≠ d c) {F : L.S → L.S} (hF : ∀ (c : Fin C), F (d c) = L.step (d c) (fun (q : Fin C) => decide (q ≠ c)) true) (hFfix : ∀ (s : L.S), (∀ (c : Fin C), s ≠ d c) → F s = s) (A₁ A₂ : Finset (Fin C)) (h₁ : A₁.card = 3) (h₂ : A₂.card = 3) (h₁₂ : Disjoint A₁ A₂) (hf₁ : ∀ a ∈ A₁, ∀ x ∈ A₁, a ≠ x → ¬WalkFinishes F d (C - 5) {a, x}) (hf₂ : ∀ a ∈ A₂, ∀ x ∈ A₂, a ≠ x → ¬WalkFinishes F d (C - 5) {a, x}) :
    ∃ (v : ℕ → Fin C → Bool) (y : ℕ → Bool), Realizable v y ∧ ∃ (m : ℕ), C ≤ L.missCount v y m + 3

    Two disjoint triangles of far candidates ([Discovery] §3.4 Proposition 3.16). The hypotheses of exists_missCount_ge_of_far, with the hypothesis on far pairs replaced by two disjoint sets of three candidates, each pairwise far: a learner over C ≥ 6 candidates with at most C + 2 states misses at least C - 3 times on some realizable stream. A set of pairwise finished pairs holds at most one member of each triple, so two disjoint far pairs lie outside it, and a far pair is not finished within C - 6 steps.

    theorem ReflectiveSubsystems.FiniteLearner.exists_missCount_ge_of_far_five {C : ℕ} (hC : 6 ≤ C) {L : FiniteLearner C} (hcard : Fintype.card L.S ≤ C + 2) {d : Fin C → L.S} (hd : ∀ (c : Fin C), L.Dictates (d c) c) (hstart : ∀ (c : Fin C), L.start ≠ d c) {F : L.S → L.S} (hF : ∀ (c : Fin C), F (d c) = L.step (d c) (fun (q : Fin C) => decide (q ≠ c)) true) (hFfix : ∀ (s : L.S), (∀ (c : Fin C), s ≠ d c) → F s = s) (A : Finset (Fin C)) (hA : A.card = 5) (hf : ∀ a ∈ A, ∀ x ∈ A, a ≠ x → ¬WalkFinishes F d (C - 5) {a, x}) :
    ∃ (v : ℕ → Fin C → Bool) (y : ℕ → Bool), Realizable v y ∧ ∃ (m : ℕ), C ≤ L.missCount v y m + 3

    Five far candidates ([Discovery] §3.4 Proposition 3.16). The hypotheses of exists_missCount_ge_of_far, with the hypothesis on far pairs replaced by five candidates, pairwise far: a learner over C ≥ 6 candidates with at most C + 2 states misses at least C - 3 times on some realizable stream. A set of pairwise finished pairs holds at most one of the five, so two disjoint far pairs lie outside it.

    theorem ReflectiveSubsystems.FiniteLearner.exists_missCount_ge_of_far_dictator_start {C : ℕ} {L : FiniteLearner C} (hcard : Fintype.card L.S ≤ C + 2) {d : Fin C → L.S} (hd : ∀ (c : Fin C), L.Dictates (d c) c) {z₀ : Fin C} (hstart : L.start = d z₀) {F : L.S → L.S} (hF : ∀ (c : Fin C), F (d c) = L.step (d c) (fun (q : Fin C) => decide (q ≠ c)) true) (_hFfix : ∀ (s : L.S), (∀ (c : Fin C), s ≠ d c) → F s = s) (hcase : (∀ (i : ℕ), ∃ (c : Fin C), F^[i] (d z₀) = d c) ∨ ∃ (p : ℕ) (A : Finset (Fin C)), (∀ (c : Fin C), F^[p] (d z₀) ≠ d c) ∧ (∀ i < p, ∃ (c : Fin C), F^[i] (d z₀) = d c) ∧ (∀ (c : Fin C), c ∈ A ↔ ∀ i < p, F^[i] (d z₀) ≠ d c) ∧ (A.card ≤ 5 ∨ ∀ T ⊆ A, (∀ a ∈ T, ∀ x ∈ T, WalkFinishes F d (A.card - 5) {a, x}) → ∃ (Q₁ : Finset (Fin C)) (Q₂ : Finset (Fin C)), Q₁ ⊆ A \ T ∧ Q₂ ⊆ A \ T ∧ Disjoint Q₁ Q₂ ∧ ¬WalkFinishes F d (A.card - 6) Q₁ ∧ ¬WalkFinishes F d (A.card - 6) Q₂)) :
    ∃ (v : ℕ → Fin C → Bool) (y : ℕ → Bool), Realizable v y ∧ ∃ (m : ℕ), C ≤ L.missCount v y m + 3

    A dictator start: the bound ([Discovery] §3.4 Proposition 3.16(ii)). Take a learner over C candidates with at most C + 2 states, a dictator d c for each candidate, its start the dictator of z₀, and a map F moving the dictator of c to the state its miss at the vector false at c alone and the outcome true leads to. The adversary presents at each dictator of the walk of F from the start that vector with the outcome true, a miss removing the candidate the dictator stands for. Either the walk meets no further state, or it first meets one after p steps, with A the candidates it has not visited. The learner then misses at least C - 3 times on some realizable stream, stated additively as C ≤ m + 3, when the walk meets no further state, when A has at most five members, and when every set of members of A no two of which are finished within |A| - 5 steps leaves in A outside it two disjoint sets that no walk finishes within |A| - 6 steps. With at most C + 1 states this is the bound at one state past C (exists_missCount_ge_of_card_le_succ). The walk misses at every step it takes through dictators, so p ≥ C - 3 and the walk alone forces C - 3 misses unless at least four candidates are left. At four, a state with two or more alive candidates misses on a split of them, keeping one part (forces_one); at five, a split into two and three gives two such misses in a row. With six or more, the argument of exists_missCount_ge_of_far runs from the further state the walk reaches, the other further state in the role of the second, with A alive and |A| in place of C: the splits are splits of A, the received sets lie in A, and the window split applies to a received set.

    theorem ReflectiveSubsystems.FiniteLearner.exists_far_triangles_missCount_le {C : ℕ} (hC : 6 ≤ C) :
    ∃ (L : FiniteLearner C) (d : Fin C → L.S) (F : L.S → L.S) (A₁ : Finset (Fin C)) (A₂ : Finset (Fin C)), Fintype.card L.S = C + 2 ∧ (∀ (c : Fin C), L.Dictates (d c) c) ∧ (∀ (c : Fin C), L.start ≠ d c) ∧ (∀ (c : Fin C), F (d c) = L.step (d c) (fun (q : Fin C) => decide (q ≠ c)) true) ∧ (∀ (s : L.S), (∀ (c : Fin C), s ≠ d c) → F s = s) ∧ A₁.card = 3 ∧ A₂.card = 3 ∧ Disjoint A₁ A₂ ∧ (∀ a ∈ A₁, ∀ x ∈ A₁, a ≠ x → ¬WalkFinishes F d (C - 5) {a, x}) ∧ (∀ a ∈ A₂, ∀ x ∈ A₂, a ≠ x → ¬WalkFinishes F d (C - 5) {a, x}) ∧ ∀ (v : ℕ → Fin C → Bool) (y : ℕ → Bool), Realizable v y → ∀ (m : ℕ), L.missCount v y m + 3 ≤ C

    The bound is attained ([Discovery] §3.4 Proposition 3.16). At every C ≥ 6 the trio chain with two triples (trioChain) has C + 2 states, a dictator for each candidate, a start that is not a dictator, and a count of at most C - 3 on every realizable stream, to every horizon. With the map F moving a dictator to the state its miss at the vector false at its candidate alone leads to and every head to itself, the candidates 0, 1, 2 are pairwise far and so are 3, 4, 5: the dictators of a triple pass at their misses to the entry of the block after the triple, the head of the second triple or the dictator of a single candidate, from which no walk comes back to the triple, so no walk meets two members of a triple, however many steps it takes. These are the hypotheses of exists_missCount_ge_of_far_triangles.

    theorem ReflectiveSubsystems.FiniteLearner.exists_far_dictator_start_missCount_le {C : ℕ} (hC : 7 ≤ C) :
    ∃ (L : FiniteLearner C) (d : Fin C → L.S) (F : L.S → L.S) (z₀ : Fin C) (A₁ : Finset (Fin C)) (A₂ : Finset (Fin C)), Fintype.card L.S = C + 2 ∧ (∀ (c : Fin C), L.Dictates (d c) c) ∧ L.start = d z₀ ∧ (∀ (c : Fin C), F (d c) = L.step (d c) (fun (q : Fin C) => decide (q ≠ c)) true) ∧ (∀ (s : L.S), (∀ (c : Fin C), s ≠ d c) → F s = s) ∧ (∀ (c : Fin C), F (d z₀) ≠ d c) ∧ A₁.card = 3 ∧ A₂.card = 3 ∧ Disjoint A₁ A₂ ∧ z₀ ∉ A₁ ∧ z₀ ∉ A₂ ∧ (∀ a ∈ A₁, ∀ x ∈ A₁, a ≠ x → ¬WalkFinishes F d (C - 6) {a, x}) ∧ (∀ a ∈ A₂, ∀ x ∈ A₂, a ≠ x → ¬WalkFinishes F d (C - 6) {a, x}) ∧ ∀ (v : ℕ → Fin C → Bool) (y : ℕ → Bool), Realizable v y → ∀ (m : ℕ), L.missCount v y m + 3 ≤ C

    The bound from a dictator start is attained ([Discovery] §3.4 Proposition 3.16(ii)). At every C ≥ 7 there is a learner with C + 2 states, a dictator for each candidate, and as its start the dictator of the candidate z₀, whose count is at most C - 3 on every realizable stream, to every horizon. It stands on z₀ = 0 while that candidate is right, and at a miss passes to the trio chain with two triples (trioChain) on the other candidates, the first triple 1, 2, 3 and the second 4, 5, 6. With the map F moving a dictator to the state its miss at the vector false at its candidate alone leads to, the walk from the start is one step into a head, which stays there, so it meets no dictator after its first step and the candidates it has not visited are the C - 1 others. No walk meets two members of either triple, however many steps it takes, so the triples are pairwise far at C - 6 steps, the survivors' count less five. The count is the start's one miss and the trio chain's (C - 1) - 3 on the others, by the argument of trioChain_missCount_le run on the stream shifted down by one. These are the hypotheses of exists_missCount_ge_of_far_dictator_start at its third alternative.

    theorem ReflectiveSubsystems.FiniteLearner.exists_missCount_ge_of_far_nonvacuous :
    ∃ (L : FiniteLearner 6) (d : Fin 6 → L.S) (F : L.S → L.S), 6 ≤ 6 ∧ Fintype.card L.S = 8 ∧ Fintype.card L.S ≤ 6 + 2 ∧ L.BoundedCount ∧ (∀ (c : Fin 6), L.Dictates (d c) c) ∧ (∀ (c : Fin 6), L.start ≠ d c) ∧ (∀ (c : Fin 6), F (d c) = L.step (d c) (fun (q : Fin 6) => decide (q ≠ c)) true) ∧ (∀ (s : L.S), (∀ (c : Fin 6), s ≠ d c) → F s = s) ∧ ∀ (T : Finset (Fin 6)), (∀ a ∈ T, ∀ x ∈ T, WalkFinishes F d (6 - 5) {a, x}) → ∃ (Q₁ : Finset (Fin 6)) (Q₂ : Finset (Fin 6)), Disjoint Q₁ T ∧ Disjoint Q₂ T ∧ Disjoint Q₁ Q₂ ∧ ¬WalkFinishes F d (6 - 6) Q₁ ∧ ¬WalkFinishes F d (6 - 6) Q₂

    Joint satisfiability of the general form. A learner over six candidates with exactly eight states and a bounded count, its start not a dictator, a map F moving each dictator to the state its miss at the vector false at its candidate alone leads to and every head to itself, and the hypothesis on far pairs: all the hypotheses of exists_missCount_ge_of_far hold together. It is the trio chain with two triples, the hypothesis on far pairs following from its two far triangles as in exists_missCount_ge_of_far_triangles.

    theorem ReflectiveSubsystems.FiniteLearner.exists_missCount_ge_of_far_five_nonvacuous :
    ∃ (L : FiniteLearner 6) (d : Fin 6 → L.S) (F : L.S → L.S) (A : Finset (Fin 6)), 6 ≤ 6 ∧ Fintype.card L.S = 8 ∧ Fintype.card L.S ≤ 6 + 2 ∧ L.BoundedCount ∧ (∀ (c : Fin 6), L.Dictates (d c) c) ∧ (∀ (c : Fin 6), L.start ≠ d c) ∧ (∀ (c : Fin 6), F (d c) = L.step (d c) (fun (q : Fin 6) => decide (q ≠ c)) true) ∧ (∀ (s : L.S), (∀ (c : Fin 6), s ≠ d c) → F s = s) ∧ A.card = 5 ∧ ∀ a ∈ A, ∀ x ∈ A, a ≠ x → ¬WalkFinishes F d (6 - 5) {a, x}

    Joint satisfiability of the five-candidate form. A learner over six candidates with exactly eight states and a bounded count, its start not a dictator, a map F as above, and five candidates pairwise far: all the hypotheses of exists_missCount_ge_of_far_five hold together. It is the trio chain with two triples, in which the candidates 1, 2, 3, 4, 5 are pairwise far: no walk meets two of them, the dictators of the first triple passing to the head of the second and those of the second to the dictator of the first candidate.

    theorem ReflectiveSubsystems.FiniteLearner.exists_missCount_ge_of_far_dictator_start_nonvacuous :
    ∃ (L : FiniteLearner 7) (d : Fin 7 → L.S) (F : L.S → L.S) (z₀ : Fin 7) (p : ℕ) (A : Finset (Fin 7)), Fintype.card L.S = 9 ∧ Fintype.card L.S ≤ 7 + 2 ∧ L.BoundedCount ∧ (∀ (c : Fin 7), L.Dictates (d c) c) ∧ L.start = d z₀ ∧ (∀ (c : Fin 7), F (d c) = L.step (d c) (fun (q : Fin 7) => decide (q ≠ c)) true) ∧ (∀ (s : L.S), (∀ (c : Fin 7), s ≠ d c) → F s = s) ∧ (∀ (c : Fin 7), F^[p] (d z₀) ≠ d c) ∧ (∀ i < p, ∃ (c : Fin 7), F^[i] (d z₀) = d c) ∧ (∀ (c : Fin 7), c ∈ A ↔ ∀ i < p, F^[i] (d z₀) ≠ d c) ∧ 6 ≤ A.card ∧ ∀ T ⊆ A, (∀ a ∈ T, ∀ x ∈ T, WalkFinishes F d (A.card - 5) {a, x}) → ∃ (Q₁ : Finset (Fin 7)) (Q₂ : Finset (Fin 7)), Q₁ ⊆ A \ T ∧ Q₂ ⊆ A \ T ∧ Disjoint Q₁ Q₂ ∧ ¬WalkFinishes F d (A.card - 6) Q₁ ∧ ¬WalkFinishes F d (A.card - 6) Q₂

    Joint satisfiability of the dictator-start form. A learner over seven candidates with exactly nine states and a bounded count, its start the dictator of a candidate, a map F moving each dictator to the state its miss at the vector false at its candidate alone leads to and every further state to itself, and the walk from the start meeting a further state after one step, the survivors being the six other candidates and the relative hypothesis holding over them: all the hypotheses of exists_missCount_ge_of_far_dictator_start hold together, through its third alternative. It is the trio chain behind one dictator (exists_far_dictator_start_missCount_le at seven), the relative hypothesis following from its two far triples as in exists_missCount_ge_of_far_triangles, here over the survivors.