MindFormal v1.0.0One Mind

MindFormal.Tools.RefusalRoutes.Comparisons

Fixed represented comparisons and the normalization cost of conditioning. These are algebraic tools; the native applications retain their actual records.

theorem MindFormal.RefusalRoutes.quasilinear_trade (seller buyer slopeS slopeB cashS cashB price : ℝ) (hs : 0 < slopeS) (hb : 0 < slopeB) :
slopeS * (cashS + price) - (seller + slopeS * cashS) = slopeS * (price - seller / slopeS) ∧ buyer + slopeB * (cashB - price) - slopeB * cashB = slopeB * (buyer / slopeB - price) ∧ (0 < slopeS * (cashS + price) - (seller + slopeS * cashS) ∧ 0 < buyer + slopeB * (cashB - price) - slopeB * cashB ↔ seller / slopeS < price ∧ price < buyer / slopeB)
theorem MindFormal.RefusalRoutes.affordable_midpoint (s b funds : ℝ) (h : s < b) (hzero : 0 ≤ (s + b) / 2) (hfund : (s + b) / 2 ≤ funds) :
∃ (price : ℝ), 0 ≤ price ∧ price ≤ funds ∧ s < price ∧ price < b
theorem MindFormal.RefusalRoutes.interval_nonempty (s b : ℝ) :
(∃ (p : ℝ), s < p ∧ p < b) ↔ s < b
theorem MindFormal.RefusalRoutes.ownership_gap (p₁ p₂ d₁ d₂ : ℝ) (h12 : p₁ < p₂) (hgap : p₂ < p₁ + d₁) (hother : p₁ < p₂ + d₂) :
(¬∃ (p : ℝ), p₁ + d₁ < p ∧ p < p₂) ∧ (¬∃ (p : ℝ), p₂ + d₂ < p ∧ p < p₁) ∧ p₁ < p₂
theorem MindFormal.RefusalRoutes.conditional_ratio {a b c d epsilon : ℝ} (ha : 0 ≤ a) (hab : a ≤ b) (hc : 0 ≤ c) (hcd : c ≤ d) (he : 0 ≤ epsilon) (hed : epsilon < d) (hac : |a - c| ≤ epsilon) (hbd : |b - d| ≤ epsilon) :
|a / b - c / d| ≤ min 1 (2 * epsilon / (d - epsilon))
theorem MindFormal.RefusalRoutes.coupled_event_error {Ω : Type u_1} {Z : Type u_2} [MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] (actual reference : Ω → Z) (S : Set Z) {epsilon : ℝ} (hm : μ.real {ω : Ω | actual ω ≠ reference ω} ≤ epsilon) :
|μ.real (actual ⁻¹' S) - μ.real (reference ⁻¹' S)| ≤ epsilon