MindFormal v1.0.0One Mind

MindFormal.Tools.CompanionAttention.FailureTransfer

Failure sets are charged in means and in every two-sided median.

theorem MindFormal.CompanionAttention.bounded_failure_mean {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {f : Ω → ℝ} {G : Set Ω} {n N ε : ℝ} (hG : MeasurableSet G) (hf : MeasureTheory.Integrable f μ) (hN : 0 ≤ n + N) (hbase : ∀ᵐ (ω : Ω) ∂μ, -N ≤ f ω) (hgood : ∀ᵐ (ω : Ω) ∂μ, ω ∈ G → n ≤ f ω) (hprob : 1 - ε ≤ μ.real G) :
n * (1 - ε) - N * ε ≤ ∫ (ω : Ω), f ω ∂μ
theorem MindFormal.CompanionAttention.good_interval_median {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {f : Ω → ℝ} {G : Set Ω} {l u ε m : ℝ} (hG : MeasurableSet G) (hε : ε < 1 / 2) (hprob : 1 - ε ≤ μ.real G) (hgood : ∀ᵐ (ω : Ω) ∂μ, ω ∈ G → f ω ∈ Set.Icc l u) (hbelow : 1 / 2 ≤ μ.real {ω : Ω | f ω ≤ m}) (habove : 1 / 2 ≤ μ.real {ω : Ω | m ≤ f ω}) :
m ∈ Set.Icc l u
theorem MindFormal.CompanionAttention.l2_set_bound {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {f : Ω → ℝ} {S : Set Ω} {M η : ℝ} (hf : MeasureTheory.MemLp f 2 μ) (h0 : 0 ≤ᵐ[μ] f) (hS : MeasurableSet S) (hM : 0 ≤ M) (hsecond : ∫ (ω : Ω), f ω ^ 2 ∂μ ≤ M ^ 2) (hprob : μ.real S ≤ η) :
∫ (ω : Ω) in S, f ω ∂μ ≤ M * √η
theorem MindFormal.CompanionAttention.good_interval_mean {Ω : Type u_1} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {f : Ω → ℝ} {G : Set Ω} {l u η M : ℝ} (hG : MeasurableSet G) (hf : MeasureTheory.MemLp f 2 μ) (h0 : 0 ≤ᵐ[μ] f) (hl : 0 ≤ l) (hu : 0 ≤ u) (hM : 0 ≤ M) (hsecond : ∫ (ω : Ω), f ω ^ 2 ∂μ ≤ M ^ 2) (hprob : 1 - η ≤ μ.real G) (hgood : ∀ᵐ (ω : Ω) ∂μ, ω ∈ G → f ω ∈ Set.Icc l u) :
l * (1 - η) ≤ ∫ (ω : Ω), f ω ∂μ ∧ ∫ (ω : Ω), f ω ∂μ ≤ u + M * √η