MindFormal v1.0.0One Mind

MindFormal.Tools.A595Carried.Cohort

theorem MindFormal.A595Carried.uniform_cohort {lo hi c : ℝ} (h : lo < hi) :
MeasureTheory.volume.real (Set.Icc lo hi ∩ Set.Iic c) / (hi - lo) = max 0 (min 1 ((c - lo) / (hi - lo)))

Uniform threshold mass, including both clipped endpoints.

theorem MindFormal.A595Carried.clamp_shift (a δ : ℝ) (hδ : 0 ≤ δ) :
max 0 (min 1 (a + δ)) ≤ max 0 (min 1 a) + δ ∧ max 0 (min 1 a) - δ ≤ max 0 (min 1 (a - δ))

The clamp [a]_{[0,1]} moves by at most a shift δ ≥ 0 of its argument.

theorem MindFormal.A595Carried.uniform_indicator_average {lo hi y : ℝ} (h : lo < hi) :
IntervalIntegrable (fun (ω : ℝ) => if ω ≤ y then 1 else 0) MeasureTheory.volume lo hi ∧ (∫ (ω : ℝ) in lo..hi, if ω ≤ y then 1 else 0) = (hi - lo) * max 0 (min 1 ((y - lo) / (hi - lo)))

12.30 (RC10.6): thresholds uniform on [ω_lo,ω_hi] average the indicator of ω ≤ y to [(y−ω_lo)/(ω_hi−ω_lo)]_{[0,1]}.

theorem MindFormal.A595Carried.cohort_band {lo hi c e ε : ℝ} (h : lo < hi) (he : 0 ≤ e) (p : ℝ → ℝ) (hp : IntervalIntegrable p MeasureTheory.volume lo hi) (hlow : ∀ ω ∈ Set.Icc lo hi, (if ω ≤ c - e then 1 else 0) - ε ≤ p ω) (hup : ∀ ω ∈ Set.Icc lo hi, p ω ≤ (if ω ≤ c + e then 1 else 0) + ε) :
|(∫ (ω : ℝ) in lo..hi, p ω) / (hi - lo) - max 0 (min 1 ((c - lo) / (hi - lo)))| ≤ e / (hi - lo) + ε

12.30 (RC10.22): if, for every threshold ω of a uniform cohort on [ω_lo,ω_hi], the act probability p(ω) is at least the reference indicator of ω ≤ Ō−ε_O less ε and at most that of ω ≤ Ō+ε_O plus ε, the cohort average is within ε_O/(ω_hi−ω_lo)+ε of the reference cohort probability [(Ō−ω_lo)/(ω_hi−ω_lo)]_{[0,1]}.