MindFormal v1.0.0One Mind

MindFormal.Tools.A699Shared.CountBounds

noncomputable def MindFormal.A699Shared.realCount {I : Type u_1} {Ω : Type u_2} [Fintype I] (E : I → Set Ω) (ω : Ω) :
Equations
Instances For
    theorem MindFormal.A699Shared.realCount_eq {I : Type u_1} {Ω : Type u_2} [Fintype I] (E : I → Set Ω) (ω : Ω) :
    realCount E ω = ↑(successes E ω).card
    theorem MindFormal.A699Shared.realCount_integral {I : Type u_1} {Ω : Type u_2} [Fintype I] [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsFiniteMeasure μ] (E : I → Set Ω) (hE : ∀ (i : I), MeasurableSet (E i)) :
    ∫ (ω : Ω), realCount E ω ∂μ = ∑ i : I, μ.real (E i)
    theorem MindFormal.A699Shared.count_probability_upper {I : Type u_1} {Ω : Type u_2} [Fintype I] [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (E : I → Set Ω) (hE : ∀ (i : I), MeasurableSet (E i)) {m : ℕ} (hm : 0 < m) :
    μ.real (countEvent E m) ≤ min 1 ((∑ i : I, μ.real (E i)) / ↑m)

    Markov's count bound, with no independence requirement.

    theorem MindFormal.A699Shared.count_probability_lower {I : Type u_1} {Ω : Type u_2} [Fintype I] [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (E : I → Set Ω) (hE : ∀ (i : I), MeasurableSet (E i)) {m : ℕ} (hN : m ≤ Fintype.card I) :
    max 0 (∑ i : I, μ.real (E i) - (↑m - 1)) / (↑(Fintype.card I) - ↑m + 1) ≤ μ.real (countEvent E m)

    A count is at most m-1 off the count event and at most N on it. Integrating yields the dependence-free guarded lower bound in SF11.

    theorem MindFormal.A699Shared.countEvent_subsets {I : Type u_1} {Ω : Type u_2} [Fintype I] (E : I → Set Ω) (m : ℕ) :
    countEvent E m = ⋃ s ∈ Finset.powersetCard m Finset.univ, ⋂ i ∈ s, E i
    theorem MindFormal.A699Shared.independent_count_union_bound {I : Type u_1} {Ω : Type u_2} [Fintype I] [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (E : I → Set Ω) (hi : ProbabilityTheory.iIndepSet E μ) {p : ℝ} (hE : ∀ (i : I), μ.real (E i) ≤ p) (m : ℕ) :
    μ.real (countEvent E m) ≤ min 1 (↑((Fintype.card I).choose m) * p ^ m)

    The simultaneous count requires a successful subset of size m. Independence prices each subset; the union gives the printed SF12 combinatorial bound, with no false monotonicity claim for that bound.