MindFormal v1.0.0One Mind

MindFormal.Run.CompanionPrivatePrices.FiniteComparison

def MindFormal.CompanionPrivatePrices.PriceProtocol.Certificate {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (P : PriceProtocol M K) (r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J) (H : NNReal) (ω : Ω) (reference : A595Trade.Histories M) :

Full guard/score/release margins for every required quote and both assents, or every native auction slot plus queue priority. Outcomes are derived from these inequalities; paid marks are not certificate fields.

Equations
Instances For
    theorem MindFormal.CompanionPrivatePrices.PriceProtocol.firstPaid_eq {N K : ℕ} {M : Fin N → ℕ} (offers : List (A595Trade.Ticket M × Fin K)) (h reference : A595Trade.Histories M) (s : A595Trade.Ledger N) (marks : ∀ o ∈ offers, o.1.Marks h ↔ o.1.Marks reference) :
    theorem MindFormal.CompanionPrivatePrices.PriceProtocol.certificate_correct {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} (P : PriceProtocol M K) (r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J) (H : NNReal) (ω : Ω) (reference : A595Trade.Histories M) (cert : P.Certificate r H ω reference) :
    P.read (A595Trade.nativeHistories r H ω) = P.read reference
    theorem MindFormal.CompanionPrivatePrices.PriceProtocol.marked_transfer {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} [MeasureTheory.IsProbabilityMeasure μ] (P : PriceProtocol M K) (r : GroupsWorld.ObservedContinuation μ ℱ (Fin N) M n V Λ J) (H : NNReal) (reference : Ω → A595Trade.Histories M) (href : Measurable reference) (good : Set Ω) (eps : ℝ) (cert : ∀ ω ∈ good, P.Certificate r H ω (reference ω)) (bad : μ.real goodᶜ ≤ eps) :
    A617Market.tv (MarkedMass.ofLaw μ (fun (ω : Ω) => P.read (A595Trade.nativeHistories r H ω)) ⋯).mass (MarkedMass.ofLaw μ (fun (ω : Ω) => P.read (reference ω)) ⋯).mass ≤ eps
    structure MindFormal.CompanionPrivatePrices.NativeComparison {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} :
    Type (max (max (max (max u_1 u_2) u_3) u_4) u_5)

    A printed finite whole-run comparison, not an existence axiom. The one common bad-event bill must include original innovation excursions, stochastic strips, timing/packet failures and every omitted reference writer. All trader paths, both clocks, full pool, signed uncapped W/v, D4, normal floor and causal world remain native. No desired winner/mark is a field. decisions are the complete local inequalities that imply those marks.

    Instances For
      noncomputable def MindFormal.CompanionPrivatePrices.NativeComparison.referenceMarked {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) :
      Equations
      Instances For
        noncomputable def MindFormal.CompanionPrivatePrices.NativeComparison.referenceMass {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) (k : Fin K) :
        Equations
        Instances For
          noncomputable def MindFormal.CompanionPrivatePrices.NativeComparison.referenceLaw {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) :
          Fin K → ℝ
          Equations
          Instances For
            noncomputable def MindFormal.CompanionPrivatePrices.NativeComparison.error {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) :
            Equations
            Instances For
              theorem MindFormal.CompanionPrivatePrices.NativeComparison.native_transfer {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) :
              0 < ∑ k : Fin K, (MarkedMass.ofLaw μ (fun (ω : Ω) => (D.protocol θ).read (A595Trade.nativeHistories (D.experiment θ).observed D.horizon ω)) ⋯).mass (some k) ∧ A617Market.tv (MarketComparisonMath.acceptedProbability fun (k : Fin K) => (MarkedMass.ofLaw μ (fun (ω : Ω) => (D.protocol θ).read (A595Trade.nativeHistories (D.experiment θ).observed D.horizon ω)) ⋯).mass (some k)) (D.referenceLaw θ) ≤ D.error θ
              def MindFormal.CompanionPrivatePrices.NativeComparison.channel {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) :

              The native accepted channel, with its positive denominator PROVED from the full certificate and reserve rather than supplied as success.

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                theorem MindFormal.CompanionPrivatePrices.NativeComparison.tv_bound {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) :
                theorem MindFormal.CompanionPrivatePrices.NativeComparison.reference_probability {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) :
                (∀ (k : Fin K), 0 ≤ D.referenceLaw θ k) ∧ ∑ k : Fin K, D.referenceLaw θ k = 1
                theorem MindFormal.CompanionPrivatePrices.NativeComparison.mean_bound {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) (price : Fin K → ℝ) (lo hi : ℝ) (ordered : lo ≤ hi) (range : ∀ (k : Fin K), lo ≤ price k ∧ price k ≤ hi) :
                theorem MindFormal.CompanionPrivatePrices.NativeComparison.variance_bound {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ : Θ) (price : Fin K → ℝ) (lo hi : ℝ) (ordered : lo ≤ hi) (range : ∀ (k : Fin K), lo ≤ price k ∧ price k ≤ hi) :
                theorem MindFormal.CompanionPrivatePrices.NativeComparison.separation {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) (θ θ' : Θ) (gap : D.error θ + D.error θ' < A617Market.tv (D.referenceLaw θ) (D.referenceLaw θ')) :
                theorem MindFormal.CompanionPrivatePrices.NativeComparison.pooling {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) {U : Type u_6} [Nonempty U] (target : Θ → U) (gap : ∀ (θ θ' : Θ), target θ ≠ target θ' → D.error θ + D.error θ' < A617Market.tv (D.referenceLaw θ) (D.referenceLaw θ')) :
                theorem MindFormal.CompanionPrivatePrices.NativeComparison.fit_bound {Ω : Type u_1} {J : Type u_2} [mΩ : MeasurableSpace Ω] {N K : ℕ} {M n : Fin N → ℕ} {V : Fin N → Type u_3} {Λ : Fin N → Type u_4} [(a : Fin N) → Fintype (V a)] [(a : Fin N) → Fintype (Λ a)] {μ : MeasureTheory.Measure Ω} {ℱ : MeasureTheory.Filtration NNReal mΩ} {Θ : Type u_5} [MeasureTheory.IsProbabilityMeasure μ] {B : J → NNReal → Ω → ℝ} {hB : BrownianFiltration μ ℱ B} (D : NativeComparison) [Fintype Θ] (weight pooled rival : Θ → ℝ) (nonnegative : ∀ (θ : Θ), 0 ≤ weight θ) (price : Fin K → ℝ) (lo hi : ℝ) (ordered : lo ≤ hi) (range : ∀ (k : Fin K), lo ≤ price k ∧ price k ≤ hi) :
                |fitGap weight D.channel.law price pooled rival - fitGap weight D.referenceLaw price pooled rival| ≤ 2 * ∑ θ : Θ, weight θ * |pooled θ - rival θ| * ((hi - lo) * D.error θ)