MindFormal v1.0.0One Mind

MindFormal.Run.RedundantPrice.NativeComparison

noncomputable def MindFormal.RedundantPrice.record {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (R : PhysicalGlobalData N n T Λ) (H : ℝ) (k : ℕ) :

This is the actual optional native event, including deferral.

Equations
Instances For
    theorem MindFormal.RedundantPrice.native_window {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (R : PhysicalGlobalData N n T Λ) (H : ℝ) (k : ℕ) (X E : ℝ → Fin N → ℝ) (w : Fin N) (L U : ℝ) (he : ∀ t ∈ Set.Icc L U, ∀ (i : Fin N), |(R.reads.scores false) (R.realPath t) i - X t i| ≤ E t i) (hr : (R.native H false).release k ≤ U) (hU : U ≤ H) (hout : R.reads.outputs w = true) (before : ∀ (t : ℝ), (R.native H false).release k ≤ t → t < L → ∀ (j : Fin N), R.reads.outputs j = true → X t j + E t j < R.reads.actionBar) (before_error : ∀ (t : ℝ), (R.native H false).release k ≤ t → t < L → ∀ (j : Fin N), |(R.reads.scores false) (R.realPath t) j - X t j| ≤ E t j) (qualifies : R.reads.actionBar ≤ X U w - E U w) (dominates : ∀ t ∈ Set.Icc L U, ∀ (j : Fin N), j ≠ w → R.reads.outputs j = true → X t j + E t j < X t w - E t w) (hLU : L ≤ U) :
    ∃ t ∈ Set.Icc L U, record R H k = some (t, w)

    Complete first-hit windows, including every qualified rival and the actual release. The error input here is the deterministic consequence of a full state certificate.

    theorem MindFormal.RedundantPrice.release_iff {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (R : PhysicalGlobalData N n T Λ) (H : ℝ) (k : ℕ) (r : ℝ) (w : Fin N) (hr : (R.native H false).release k = r) (hrH : r ≤ H) :
    record R H k = some (r, w) ↔ R.reads.outputs w = true ∧ R.reads.actionBar ≤ (R.reads.scores false) (R.realPath r) w ∧ (∀ (j : Fin N), R.reads.outputs j = true → (R.reads.scores false) (R.realPath r) j ≤ (R.reads.scores false) (R.realPath r) w) ∧ ∀ (j : Fin N), R.reads.outputs j = true → (R.reads.scores false) (R.realPath r) j = (R.reads.scores false) (R.realPath r) w → w ≤ j

    At a release the exact priority domain is retained, including ties.

    theorem MindFormal.RedundantPrice.probability_enclosure {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] {Ω : Type u_3} [MeasurableSpace Ω] (μ : MeasureTheory.Measure Ω) [MeasureTheory.IsProbabilityMeasure μ] (R : Ω → PhysicalGlobalData N n T Λ) (H : ℝ) (k : ℕ) (r : Ω → ℝ) (a d : Fin N) (D ED : Ω → ℝ) (good : Set Ω) (failure : ℝ) (hgood : MeasurableSet good) (mass : 1 - failure ≤ μ.real good) (hD : Measurable D) (hED : Measurable ED) (hact : MeasurableSet {ω : Ω | record (R ω) H k = some (r ω, a)}) (release : ∀ ω ∈ good, ((R ω).native H false).release k = r ω ∧ r ω ≤ H) (outputs : ∀ ω ∈ good, (R ω).reads.outputs a = true ∧ (R ω).reads.outputs d = true) (error : ∀ ω ∈ good, |((R ω).reads.scores false) ((R ω).realPath (r ω)) a - ((R ω).reads.scores false) ((R ω).realPath (r ω)) d - D ω| ≤ ED ω) (qualifies : ∀ ω ∈ good, (R ω).reads.actionBar ≤ max (((R ω).reads.scores false) ((R ω).realPath (r ω)) a) (((R ω).reads.scores false) ((R ω).realPath (r ω)) d)) (rivals : ∀ ω ∈ good, ∀ (j : Fin N), j ≠ a → j ≠ d → (R ω).reads.outputs j = true → ((R ω).reads.scores false) ((R ω).realPath (r ω)) j < max (((R ω).reads.scores false) ((R ω).realPath (r ω)) a) (((R ω).reads.scores false) ((R ω).realPath (r ω)) d)) :
    max 0 (μ.real {ω : Ω | ED ω < D ω} - failure) ≤ μ.real {ω : Ω | record (R ω) H k = some (r ω, a)} ∧ μ.real {ω : Ω | record (R ω) H k = some (r ω, a)} ≤ min 1 (μ.real {ω : Ω | -ED ω ≤ D ω} + failure)

    Thin-strip transfer on a matched release. Qualification and all other outputs are charged on good; accepting ties are not asserted in the inner strict event.