MindFormal v1.0.0One Mind

MindFormal.Tools.CompanionPrivatePrices.Calibration

def MindFormal.CompanionPrivatePrices.fitGap {Θ : Type u_1} {K : Type u_2} [Fintype Θ] [Fintype K] (weight : Θ → ℝ) (law : Θ → K → ℝ) (price : K → ℝ) (pooled rival : Θ → ℝ) :

The declared squared-price-loss advantage over one rival. Positive is better fit for the pooled benchmark. State and component weights are external scoring conventions, not a pooling computation performed by a trader.

Equations
Instances For
    theorem MindFormal.CompanionPrivatePrices.fitGap_calibration {Θ : Type u_1} {K : Type u_2} [Fintype Θ] [Fintype K] (weight : Θ → ℝ) (law : Θ → K → ℝ) (price : K → ℝ) (pooled rival : Θ → ℝ) (total : ∀ (θ : Θ), ∑ k : K, law θ k = 1) :
    fitGap weight law price pooled rival = 2 * ∑ θ : Θ, weight θ * (pooled θ - rival θ) * (MarketComparisonMath.priceMean (law θ) price - (pooled θ + rival θ) / 2)
    theorem MindFormal.CompanionPrivatePrices.fitGap_margin {Θ : Type u_1} {K : Type u_2} [Fintype Θ] [Fintype K] (weight : Θ → ℝ) (P Q : Θ → K → ℝ) (price : K → ℝ) (pooled rival : Θ → ℝ) (totalP : ∀ (θ : Θ), ∑ k : K, P θ k = 1) (totalQ : ∀ (θ : Θ), ∑ k : K, Q θ k = 1) (hw : ∀ (θ : Θ), 0 ≤ weight θ) (width error : Θ → ℝ) (meanBound : ∀ (θ : Θ), |MarketComparisonMath.priceMean (P θ) price - MarketComparisonMath.priceMean (Q θ) price| ≤ width θ * error θ) :
    |fitGap weight P price pooled rival - fitGap weight Q price pooled rival| ≤ 2 * ∑ θ : Θ, weight θ * |pooled θ - rival θ| * (width θ * error θ)

    IM4.6 from the actual conditional mean bounds. No inference from an unmeasured belief, no replacement of a ratio by its expected numerator.

    theorem MindFormal.CompanionPrivatePrices.fitGap_tv_margin {Θ : Type u_1} {K : Type u_2} [Fintype Θ] [Fintype K] (weight : Θ → ℝ) (P Q : Θ → K → ℝ) (price : K → ℝ) (pooled rival : Θ → ℝ) (totalP : ∀ (θ : Θ), ∑ k : K, P θ k = 1) (totalQ : ∀ (θ : Θ), ∑ k : K, Q θ k = 1) (hw : ∀ (θ : Θ), 0 ≤ weight θ) (lo hi : ℝ) (range : ∀ (k : K), lo ≤ price k ∧ price k ≤ hi) :
    |fitGap weight P price pooled rival - fitGap weight Q price pooled rival| ≤ 2 * ∑ θ : Θ, weight θ * |pooled θ - rival θ| * ((hi - lo) * A617Market.tv (P θ) (Q θ))
    theorem MindFormal.CompanionPrivatePrices.fitGap_sign_transfer {native reference allowance : ℝ} (bound : |native - reference| ≤ allowance) :
    (allowance < reference → 0 < native) ∧ (reference < -allowance → native < 0)
    theorem MindFormal.CompanionPrivatePrices.robust_sign_iff (reference allowance : ℝ) (nonnegative : 0 ≤ allowance) :
    ((∀ (native : ℝ), |native - reference| ≤ allowance → 0 < native) ↔ allowance < reference) ∧ ((∀ (native : ℝ), |native - reference| ≤ allowance → native < 0) ↔ reference < -allowance)

    A strict fit sign is guaranteed by a symmetric allowance exactly when the signed reference gap exceeds it. A thin interval permits zero.

    theorem MindFormal.CompanionPrivatePrices.finite_separation {K : Type u_2} [Fintype K] {P Q P' Q' : K → ℝ} {e e' : ℝ} (first : A617Market.tv P Q ≤ e) (second : A617Market.tv P' Q' ≤ e') (gap : e + e' < A617Market.tv Q Q') :
    P ≠ P'

    Separation survives the sum of both conditional allowances, rather than a pointwise error for one unconditioned mean.

    theorem MindFormal.CompanionPrivatePrices.coordinate_tv {K : Type u_2} [Fintype K] (P Q : K → ℝ) (totalP : ∑ k : K, P k = 1) (totalQ : ∑ k : K, Q k = 1) (high : K) :
    |P high - Q high| ≤ A617Market.tv P Q

    A high-price frequency is an event of the normalized price law.