MindFormal v1.0.0One Mind

MindFormal.Tools.A617Market.FiniteLaw

Finite laws including the rejected/no-trade mass. None of these identities prescribes the outcome of an encounter.

noncomputable def MindFormal.A617Market.tv {K : Type u_1} [Fintype K] (P Q : K → ℝ) :
Equations
Instances For
    theorem MindFormal.A617Market.tv_nonneg {K : Type u_1} [Fintype K] (P Q : K → ℝ) :
    0 ≤ tv P Q
    theorem MindFormal.A617Market.tv_symm {K : Type u_1} [Fintype K] (P Q : K → ℝ) :
    tv P Q = tv Q P
    theorem MindFormal.A617Market.tv_triangle {K : Type u_1} [Fintype K] (P Q R : K → ℝ) :
    tv P R ≤ tv P Q + tv Q R
    theorem MindFormal.A617Market.tv_le_one {K : Type u_1} [Fintype K] (P Q : K → ℝ) (hP : ∀ (k : K), 0 ≤ P k) (hQ : ∀ (k : K), 0 ≤ Q k) (sP : ∑ k : K, P k = 1) (sQ : ∑ k : K, Q k = 1) :
    tv P Q ≤ 1
    theorem MindFormal.A617Market.expectation_range {K : Type u_1} [Fintype K] (P Q f : K → ℝ) (sP : ∑ k : K, P k = 1) (sQ : ∑ k : K, Q k = 1) (lo hi : ℝ) (hf : ∀ (k : K), lo ≤ f k ∧ f k ≤ hi) :
    |∑ k : K, P k * f k - ∑ k : K, Q k * f k| ≤ (hi - lo) * tv P Q

    The sharp range-times-TV estimate includes arbitrary zero-mass atoms.

    theorem MindFormal.A617Market.mean_range {K : Type u_1} [Fintype K] (P price : K → ℝ) (hP : ∀ (k : K), 0 ≤ P k) (sP : ∑ k : K, P k = 1) (lo hi : ℝ) (hp : ∀ (k : K), lo ≤ price k ∧ price k ≤ hi) :
    theorem MindFormal.A617Market.centered_second {K : Type u_1} [Fintype K] (P price : K → ℝ) (sP : ∑ k : K, P k = 1) (c : ℝ) :
    ∑ k : K, P k * (price k - c) ^ 2 = MarketComparisonMath.priceVariance P price + (MarketComparisonMath.priceMean P price - c) ^ 2
    theorem MindFormal.A617Market.variance_range {K : Type u_1} [Fintype K] (P Q price : K → ℝ) (hP : ∀ (k : K), 0 ≤ P k) (hQ : ∀ (k : K), 0 ≤ Q k) (sP : ∑ k : K, P k = 1) (sQ : ∑ k : K, Q k = 1) (lo hi : ℝ) (hlh : lo ≤ hi) (hp : ∀ (k : K), lo ≤ price k ∧ price k ≤ hi) :
    noncomputable def MindFormal.A617Market.markedTV {K : Type u_1} [Fintype K] (f g : K → ℝ) :
    Equations
    Instances For
      theorem MindFormal.A617Market.conditional_tv {K : Type u_1} [Fintype K] (f g : K → ℝ) (hf : ∀ (k : K), 0 ≤ f k) (hg : ∀ (k : K), 0 ≤ g k) (eps : ℝ) (he : markedTV f g ≤ eps) (reserve : eps < ∑ k : K, g k) :
      0 < ∑ k : K, f k ∧ tv (MarketComparisonMath.acceptedProbability f) (MarketComparisonMath.acceptedProbability g) ≤ min 1 (2 * eps / (∑ k : K, g k - eps))
      theorem MindFormal.A617Market.variance_zero_iff_one_price {K : Type u_1} [Fintype K] (mass price : K → ℝ) (hm : ∀ (k : K), 0 ≤ mass k) (ha : 0 < ∑ k : K, mass k) :
      MarketComparisonMath.priceVariance (MarketComparisonMath.acceptedProbability mass) price = 0 ↔ ∃ (c : ℝ), ∀ (k : K), 0 < mass k → price k = c
      theorem MindFormal.A617Market.markedTV_option {K : Type u_1} [Fintype K] (mass reference : Option K → ℝ) (hm : ∑ z : Option K, mass z = 1) (hr : ∑ z : Option K, reference z = 1) :
      (markedTV (fun (k : K) => mass (some k)) fun (k : K) => reference (some k)) = tv mass reference
      theorem MindFormal.A617Market.tv_positive_part {K : Type u_1} [Fintype K] (P Q : K → ℝ) (hs : ∑ k : K, P k = ∑ k : K, Q k) :
      tv P Q = ∑ k : K, if Q k ≤ P k then P k - Q k else 0