MindFormal v1.0.0One Mind

MindFormal.Tools.A595Trade.Cost

The waiting argument depends only on an integer budget. In the common-price corner this budget is the number of missing top holders, rather than their larger rank deficit.

Equations
Instances For
    theorem MindFormal.A595Trade.cost_accounting {C : ℕ → ℕ} {T : ℕ} (hc : ∀ j < T, C (j + 1) ≤ C j) :
    costCount C T + C T ≤ C 0
    def MindFormal.A595Trade.costTrials {Ω : Type u_1} (C : ℕ → Ω → ℕ) (failed : ℕ → Set Ω) (j : ℕ) :
    Set Ω
    Equations
    Instances For
      theorem MindFormal.A595Trade.cost_unfinished {Ω : Type u_1} (C : ℕ → Ω → ℕ) (failed : ℕ → Set Ω) (hf : Monotone failed) {m L : ℕ} (ω : Ω) (hno : ω ∉ failed m) (hc : ∀ j < m, C (j + 1) ω ≤ C j ω) (hL : C 0 ω = L) (hn : C m ω ≠ 0) :
      trialCount (costTrials C failed) m ω < L
      theorem MindFormal.A595Trade.finite_cost_endpoint {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {L : ℕ} (C : ℕ → Ω → ℕ) (failed : ℕ → Set Ω) (hf : Monotone failed) (past : ℕ → MeasurableSpace Ω) (hsub : ∀ (j : ℕ), past j ≤ mΩ) (hmono : Monotone past) (hknown : ∀ (j : ℕ), MeasurableSet (costTrials C failed j)) (hstop : ∀ (j : ℕ), MeasurableSet {ω : Ω | C j ω = 0 ∨ ω ∈ failed j}) (p : ℕ → ℝ) (hp : ∀ (j : ℕ), 0 ≤ p j ∧ p j ≤ 1) (hl : ∀ (j : ℕ), ∀ᵐ (ω : Ω) ∂μ, C j ω ≠ 0 → ω ∉ failed j → p j ≤ μ[(costTrials C failed j).indicator 1 | past j] ω) (m : ℕ) (hc : ∀ ω ∉ failed m, ∀ j < m, C (j + 1) ω ≤ C j ω) (hL : ∀ (ω : Ω), C 0 ω = L) {ε : ℝ} (hfail : μ.real (failed m) ≤ ε) :
      μ.real {ω : Ω | C m ω ≠ 0} ≤ min 1 (bernoulliTail p m L + ε)
      theorem MindFormal.A595Trade.expected_cost_wait {Ω : Type u_1} [mΩ : MeasurableSpace Ω] {μ : MeasureTheory.Measure Ω} [MeasureTheory.IsProbabilityMeasure μ] {L : ℕ} (C : ℕ → Ω → ℕ) (hc : ∀ᵐ (ω : Ω) ∂μ, ∀ (j : ℕ), C (j + 1) ω ≤ C j ω) (hL : ∀ᵐ (ω : Ω) ∂μ, C 0 ω = L) (past : ℕ → MeasurableSpace Ω) (hsub : ∀ (j : ℕ), past j ≤ mΩ) (hu : ∀ (j : ℕ), MeasurableSet {ω : Ω | C j ω ≠ 0}) (hm : ∀ (j : ℕ), MeasurableSet {ω : Ω | C (j + 1) ω < C j ω}) {p : ℝ} (hp : 0 < p) (hl : ∀ (j : ℕ), ∀ᵐ (ω : Ω) ∂μ, C j ω ≠ 0 → p ≤ μ[{ω : Ω | C (j + 1) ω < C j ω}.indicator 1 | past j] ω) :
      ∫⁻ (ω : Ω), SparseAgreement.extendedWait (fun (j : ℕ) => {ω : Ω | C j ω ≠ 0}) ω ∂μ ≤ ENNReal.ofReal (↑L / p)