Documentation

ReflectiveSubsystems.DictatorDualHelly

The dual Helly number of the dictators as a covering problem #

[Discovery] §3. On the vectors Fin n → Bool, the dictators are the coordinate functions v ↦ v i. A labelled example (v, y) is fitted by the dictators of {i | v i = y}, so a set of examples is a family of subsets of Fin n, and a dictator fits a subfamily of examples exactly when the corresponding sets have a common point. The dual Helly number of the dictators relative to a class H of functions (the dual Helly lower bound of DualHelly.exists_mistakes_eq) therefore reads as a statement about families of sets: DualHellyLE at k holds exactly when every upward closed family whose k members always meet is extended by a member of H, a function that is true at the indicator of each set of the family and false at the indicator of its complement.

Main definitions #

Main results #

The dictators. The coordinate functions v ↦ v i on the vectors Fin n → Bool.

Equations
Instances For

    The dual Helly number is at most k. Every set S of labelled examples, every at most k of which some concept of Cl fits, is fitted whole by some member of H. This is the negation of the two hypotheses on a set of examples in DualHelly.exists_mistakes_eq at m := k.

    Equations
    Instances For

      A k-wise intersecting family. Every subfamily of at most k members has a common point (so at k = 0 the empty subfamily needs a point to exist).

      Equations
      Instances For
        def ReflectiveSubsystems.ExtendsFamily {n : ℕ} (h : (Fin n → Bool) → Bool) (𝒟 : Finset (Finset (Fin n))) :

        A function extends a family. At every set D of the family the function is true at the indicator of D and false at the indicator of its complement.

        Equations
        Instances For
          def ReflectiveSubsystems.bdFamily {n : ℕ} (T : Finset (Fin n)) (r : ℕ) :

          The sets that miss at most r points of T.

          Equations
          Instances For
            theorem ReflectiveSubsystems.mem_bdFamily {n : ℕ} {T D : Finset (Fin n)} {r : ℕ} :
            D ∈ bdFamily T r ↔ (T \ D).card ≤ r
            theorem ReflectiveSubsystems.dualHellyLE_dictators_iff {n : ℕ} (H : Cslib.MachineLearning.PACLearning.ConceptClass (Fin n → Bool) Bool) (k : ℕ) :
            DualHellyLE (dictators n) H k ↔ ∀ (𝒟 : Finset (Finset (Fin n))), (∀ D ∈ 𝒟, ∀ (E : Finset (Fin n)), D ⊆ E → E ∈ 𝒟) → KWiseIntersecting k 𝒟 → ∃ h ∈ H, ExtendsFamily h 𝒟

            The dual Helly number of the dictators as a covering problem. An example (v, y) is fitted by the dictators of {i | v i = y}, so a set of examples is a family of sets, fitted by one dictator on a subfamily exactly when its sets meet. The example (v, true) is the first half of ExtendsFamily at D = {i | v i}, the example (v, false) its second half at D = {i | ¬ v i}. No hypothesis on H is needed.

            theorem ReflectiveSubsystems.isUpper_bdFamily {n : ℕ} {T : Finset (Fin n)} {r : ℕ} (D : Finset (Fin n)) :
            D ∈ bdFamily T r → ∀ (E : Finset (Fin n)), D ⊆ E → E ∈ bdFamily T r

            A superset of a member of bdFamily T r is a member.

            theorem ReflectiveSubsystems.kWiseIntersecting_bdFamily {n : ℕ} {T : Finset (Fin n)} {k r : ℕ} (hkr : k * r < T.card) :

            bdFamily is k-wise intersecting when k * r < T.card: k members miss at most k * r points of T.

            theorem ReflectiveSubsystems.not_extendsFamily_bdFamily_pair {n : ℕ} {T T' : Finset (Fin n)} {r : ℕ} (h : (Fin n → Bool) → Bool) (hTT : (T ∩ T').card ≤ 2 * r) :

            No function extends the families of two sets that meet in at most 2 * r points. The two families hold disjoint members T \ A and T' \ B, with A and B of at most r points covering T ∩ T'; the second family then holds the complement of the first, and the two halves of ExtendsFamily disagree on one vector.

            theorem ReflectiveSubsystems.not_extendsFamily_dictator_bdFamily {n : ℕ} {T : Finset (Fin n)} {r : ℕ} (hr : 1 ≤ r) (i : Fin n) :
            ¬ExtendsFamily (fun (v : Fin n → Bool) => v i) (bdFamily T r)

            A coordinate function extends no bdFamily at r ≥ 1: the family holds the set of all coordinates but i, at whose indicator the coordinate i is false.

            The coordinate functions are n distinct functions.

            theorem ReflectiveSubsystems.card_add_le_encard_of_dualHellyLE {n : ℕ} {H : Cslib.MachineLearning.PACLearning.ConceptClass (Fin n → Bool) Bool} {k m r : ℕ} (hH : dictators n ⊆ H) (hK : DualHellyLE (dictators n) H k) (𝔓 : Finset (Finset (Fin n))) (hm : ∀ T ∈ 𝔓, T.card = m) (hr : 1 ≤ r) (hkr : k * r < m) (hpack : ∀ T ∈ 𝔓, ∀ T' ∈ 𝔓, T ≠ T' → (T ∩ T').card ≤ 2 * r) :
            ↑(𝔓.card + n) ≤ Set.encard H

            A packing lower bound on the hypotheses. Let the dual Helly number of the dictators relative to H be at most k, with the dictators in H, and let 𝔓 be a family of m-sets with k * r < m any two of which meet in at most 2 * r points. By dualHellyLE_dictators_iff, isUpper_bdFamily and kWiseIntersecting_bdFamily each T ∈ 𝔓 has an extender of bdFamily T r in H; the extenders are distinct across 𝔓 by not_extendsFamily_bdFamily_pair and none is a dictator by not_extendsFamily_dictator_bdFamily, so H holds at least 𝔓.card + n functions.

            theorem ReflectiveSubsystems.exists_mistakes_eq_of_encard_lt {n : ℕ} {H : Cslib.MachineLearning.PACLearning.ConceptClass (Fin n → Bool) Bool} {k m r : ℕ} (hH : dictators n ⊆ H) (𝔓 : Finset (Finset (Fin n))) (hm : ∀ T ∈ 𝔓, T.card = m) (hr : 1 ≤ r) (hkr : k * r < m) (hpack : ∀ T ∈ 𝔓, ∀ T' ∈ 𝔓, T ≠ T' → (T ∩ T').card ≤ 2 * r) (A : Cslib.MachineLearning.OnlineLearning.MistakeBound.OnlineLearner (Fin n → Bool)) (hA : DualHelly.HypothesesIn A (dictators n) H) (hlt : Set.encard H < ↑(𝔓.card + n)) :

            The dual Helly lower bound for a learner with few hypotheses. In the setting of card_add_le_encard_of_dualHellyLE without the dual Helly hypothesis: a learner whose hypotheses after the histories the dictators realize lie in a class H of fewer than 𝔓.card + n functions makes k mistakes on some realizable sequence of k examples. By the packing bound the dual Helly number of the dictators relative to H exceeds k, which gives the two hypotheses of DualHelly.exists_mistakes_eq at m := k.

            The hypotheses of card_add_le_encard_of_dualHellyLE hold together, at n = 3, k = 2, r = 1, m = 3, 𝔓 the family of the one set of all three coordinates and H all functions: every set of examples every two of which a dictator fits holds no example together with its negation, and a function fits it whole.

            theorem ReflectiveSubsystems.exists_mistakes_eq_of_encard_lt_nonvacuous :
            dictators 3 ⊆ dictators 3 ∧ (∀ T ∈ {Finset.univ}, T.card = 3) ∧ 1 ≤ 1 ∧ 2 * 1 < 3 ∧ (∀ T ∈ {Finset.univ}, ∀ T' ∈ {Finset.univ}, T ≠ T' → (T ∩ T').card ≤ 2 * 1) ∧ DualHelly.HypothesesIn (fun (x : List ((Fin 3 → Bool) × Bool)) (v : Fin 3 → Bool) => v 0) (dictators 3) (dictators 3) ∧ Set.encard (dictators 3) < ↑({Finset.univ}.card + 3)

            The hypotheses of exists_mistakes_eq_of_encard_lt hold together, at n = 3, k = 2, r = 1, m = 3, 𝔓 the family of the one set of all three coordinates, H the dictators themselves and the learner always answering by the first dictator: H has three functions, fewer than the four of 𝔓.card + n.

            A bound on intersecting families of m-sets. Every family of m-subsets of Fin n whose distinct members meet pairwise in at least t points has at most N members. Wilson's form of the Erdős–Ko–Rado theorem says it holds at N = (n - t).choose (m - t) once (t + 1) * (m - t + 1) ≤ n; it is a hypothesis here.

            Equations
            Instances For
              theorem ReflectiveSubsystems.two_mul_add_one_le_card_inter_of_extendsFamily {n : ℕ} {T T' : Finset (Fin n)} {r : ℕ} (h : (Fin n → Bool) → Bool) (h1 : ExtendsFamily h (bdFamily T r)) (h2 : ExtendsFamily h (bdFamily T' r)) :
              2 * r + 1 ≤ (T ∩ T').card

              The sets one function extends meet in at least 2 * r + 1 points. If a function extends both bdFamily T r and bdFamily T' r then T and T' meet in at least 2 * r + 1 points, the contrapositive of not_extendsFamily_bdFamily_pair.

              theorem ReflectiveSubsystems.choose_le_mul_encard_of_dualHellyLE {n : ℕ} {H : Cslib.MachineLearning.PACLearning.ConceptClass (Fin n → Bool) Bool} {k m r N : ℕ} (hK : DualHellyLE (dictators n) H k) (hr : 1 ≤ r) (hkr : k * r < m) (hN : IntersectingBound n m (2 * r + 1) N) :
              ↑(n.choose m) ≤ ↑N * Set.encard (H \ dictators n)

              A covering lower bound on the hypotheses. Let the dual Helly number of the dictators relative to H be at most k, with k * r < m, and let IntersectingBound n m (2 * r + 1) N hold. By dualHellyLE_dictators_iff, isUpper_bdFamily and kWiseIntersecting_bdFamily each m-set T has an extender of bdFamily T r in H, none is a dictator by not_extendsFamily_dictator_bdFamily, and by two_mul_add_one_le_card_inter_of_extendsFamily the m-sets one function extends form a family meeting IntersectingBound's hypothesis, so at most N of them; hence n.choose m is at most N times the number of non-dictator members of H.

              The lower bound for a learner, covering form. In the setting of choose_le_mul_encard_of_dualHellyLE without the dual Helly hypothesis: a learner whose hypotheses after the histories the dictators realize lie in a class H with N times the number of its non-dictator members below n.choose m makes k mistakes on some realizable sequence of k examples. By the covering bound the dual Helly number of the dictators relative to H exceeds k, which gives the two hypotheses of DualHelly.exists_mistakes_eq at m := k.

              The hypotheses of choose_le_mul_encard_of_dualHellyLE hold together, at n = 3, k = 2, r = 1, m = 3, N = 1 and H all functions: the dual Helly number of the dictators relative to all functions is at most 2, and the only 3-subset of Fin 3 is the set of all three coordinates, so a family of 3-sets has at most one member.

              The hypotheses of exists_mistakes_eq_of_choose_gt hold together, at n = 3, k = 2, r = 1, m = 3, N = 1, H the dictators themselves and the learner always answering by the first dictator: H has no non-dictator member, so 1 * 0 is below 3.choose 3 = 1.