MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.A630NativeMargins.Counts

noncomputable def MindFormal.A630NativeMargins.intervalCount {I : Type u_1} {T : Type u_2} (items : Finset I) (times : Set T) (x : T → I → ℝ) (level : ℝ) :
Equations
Instances For
    theorem MindFormal.A630NativeMargins.interval_count_sandwich {I : Type u_1} {T : Type u_2} (items : Finset I) (times : Set T) (x ref : T → I → ℝ) {level err : ℝ} (distance : ∀ t ∈ times, ∀ i ∈ items, |x t i - ref t i| ≤ err) :
    intervalCount items times ref (level + err) ≤ intervalCount items times x level ∧ intervalCount items times x level ≤ intervalCount items times ref (level - err)
    theorem MindFormal.A630NativeMargins.interval_inf_iff {T : Type u_1} (S : Set T) (f : T → ℝ) (level : ℝ) (nonempty : S.Nonempty) (bounded : BddBelow (f '' S)) :
    level ≤ sInf (f '' S) ↔ ∀ t ∈ S, level ≤ f t

    For a nonempty compact interval and a continuous read the infimum formulation in RP13 is precisely the pointwise staying-above count.

    theorem MindFormal.A630NativeMargins.counts_on_corridor {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (E : GroupsWorld.CompleteExperiment hB) (H : NNReal) (reference : Ω → MarginView H) (good : Set Ω) {failure ex ev eo ey : ℝ} (mass : 1 - failure ≤ μ.real good) (corridor : ∀ ω ∈ good, ViewClose (stateView E ⇑(A678NativeEncounter.groupPath E H ω)) (reference ω) ex ev eo ey) (items : Finset Item) (times : Set ↑(HorizonTime ↑H)) (level : ℝ) :
    1 - failure ≤ μ.real {ω : Ω | have lower := intervalCount items times (reference ω).activity (level + ex); have upper := intervalCount items times (reference ω).activity (level - ex); have count := intervalCount items times (stateView E ⇑(A678NativeEncounter.groupPath E H ω)).activity level; lower ≤ count ∧ count ≤ upper ∧ (lower = upper → count = lower)}

    RP13's two interval counts and exact-count test on the actual full native experiment, conditional on the common RP10 corridor. Singleton time sets give read counts; an empty content set gives zero. Equality at the threshold is retained in both directions. The probability bill is the one corridor bill, including when both bounds certify an exact count.

    theorem MindFormal.A630NativeMargins.lead_on_corridor {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (E : GroupsWorld.CompleteExperiment hB) {H : NNReal} (reference : Ω → MarginView H) (good : Set Ω) {failure ex ev eo ey : ℝ} (mass : 1 - failure ≤ μ.real good) (corridor : ∀ ω ∈ good, ViewClose (stateView E ⇑(A678NativeEncounter.groupPath E H ω)) (reference ω) ex ev eo ey) (i j : Item) (s t : ↑(HorizonTime ↑H)) (growth : ∀ ω ∈ good, 4 * ex < (reference ω).activity t i - (reference ω).activity t j - ((reference ω).activity s i - (reference ω).activity s j)) :

    RP13's four-error net growth of a lead between two reads on the same complete continuation. This is an endpoint comparison; it supplies no monotonicity assertion about the continuously noisy intervening path.

    theorem MindFormal.A630NativeMargins.result_02_20_5_counts_L636 {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] [Finite J] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (E : GroupsWorld.CompleteExperiment hB) {H : NNReal} (C : CorridorBudget E H) (items : Finset Item) (times : Set ↑(HorizonTime ↑H)) (level : ℝ) :
    1 - C.failure ≤ μ.real {ω : Ω | have lower := intervalCount items times (stateView E ⇑(C.reference.path ω)).activity (level + C.error); have upper := intervalCount items times (stateView E ⇑(C.reference.path ω)).activity (level - C.error); have count := intervalCount items times (stateView E ⇑(A678NativeEncounter.groupPath E H ω)).activity level; lower ≤ count ∧ count ≤ upper ∧ (lower = upper → count = lower)}

    The RP13 interval and exact read counts with the common event derived from the complete local input, original-row and full-writer budget.

    theorem MindFormal.A630NativeMargins.result_02_20_5_lead_L636 {Ω : Type u_1} {A : Type u_2} {J : Type u_3} [mΩ : MeasurableSpace Ω] [Fintype A] [Finite J] {N n : A → ℕ} {V : A → Type u_4} {Λ : A → Type u_5} [(a : A) → Fintype (V a)] [(a : A) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {ℱ : MeasureTheory.Filtration NNReal mΩ} {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (E : GroupsWorld.CompleteExperiment hB) {H : NNReal} (C : CorridorBudget E H) (i j : Item) (s t : ↑(HorizonTime ↑H)) (growth : ∀ ω ∈ C.inputEnclosure, 4 * C.error < (stateView E ⇑(C.reference.path ω)).activity t i - (stateView E ⇑(C.reference.path ω)).activity t j - ((stateView E ⇑(C.reference.path ω)).activity s i - (stateView E ⇑(C.reference.path ω)).activity s j)) :

    RP13's endpoint lead growth is protected by four activity errors, without asserting monotonicity between the two reads. The probability event is constructed, rather than postulated, from the complete budget.