MindFormal v1.0.0One Mind

MindFormal.Run.RestartedExcursion

PG1.14b–e: constant own innovations and excursions after finite stopping times. The rows priced by an event are explicitly selected; value rows need not be charged.

def MindFormal.RestartedExcursion.sampled {J : Type u_1} {D : Type u_2} [Fintype J] (a : D → J → ℝ) (b : D → ℝ) (h : NNReal) :
Set (J → NNReal → ℝ)

Countable observation of reaching a level on a compact interval. On continuous paths sampled_iff identifies this with the exact, closed excursion event.

Equations
Instances For
    theorem MindFormal.RestartedExcursion.sampled_measurable {J : Type u_1} {D : Type u_2} [Fintype J] [Countable D] (a : D → J → ℝ) (b : D → ℝ) (h : NNReal) :

    The countable excursion test is measurable in the existing path product space, with arbitrary fixed rows, levels and horizon.

    theorem MindFormal.RestartedExcursion.sampled_iff {J : Type u_1} {D : Type u_2} [Fintype J] (a : D → J → ℝ) (b : D → ℝ) (h : NNReal) (f : J → NNReal → ℝ) (hf : ∀ (j : J), Continuous (f j)) :
    f ∈ sampled a b h ↔ ∃ (d : D), ∃ t ≤ h, b d ≤ |∑ j : J, a d j * f j t|

    For continuous source paths the countable test includes an excursion exactly at the level, including an attained maximum at either endpoint.

    theorem MindFormal.StateExperiment.ownPath_constant {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) (C : ConstantInstanceNoise E.mind) :
    ∀ᵐ (ω : Ω) ∂E.ground.μ, ∀ t ≤ E.horizon, ∀ (c : CoordinateIndex (Fin N) n T Λ), E.ownPath t ω c = loadedSum (C.matrix c) E.ground.brownian t ω

    PG1.14: at constant loading, every coordinate of the original own driver is its loading of the original sources, simultaneously through the horizon. The only extra datum is C, the instance's constant matrix; no driver identity is assumed. Trace rows are zero by admission, so they are covered as well.

    def MindFormal.StateExperiment.ownExcursion {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) (τ : Ω → NNReal) (h : NNReal) :
    Set Ω

    The exact event in PG1.14b: a selected own innovation, measured from the random block start, reaches its positive allowance by the end of the block.

    Equations
    Instances For
      theorem MindFormal.StateExperiment.driver_of_no_excursion {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) {τ : Ω → NNReal} {h : NNReal} {ω : Ω} (hω : E.own.data.toPhysicalNoiseData.Good ω) (hbad : ω ∉ E.ownExcursion rows b τ h) {r : ℝ} (hr : r ∈ Set.Icc ↑(τ ω) ↑(τ ω + h)) (d : D) :
      |(E.supportHistory ω).driver r.toNNReal (rows d) - (E.supportHistory ω).driver (τ ω) (rows d)| ≤ b d

      The complement of the original excursion event bounds the original physical driver on the whole block, including a random starting time.

      theorem MindFormal.StateExperiment.ownExcursion_eq_sampled {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} (C : ConstantInstanceNoise E.mind) (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) (τ : Ω → NNReal) (h : NNReal) (hH : ∀ᵐ (ω : Ω) ∂E.ground.μ, τ ω + h ≤ E.horizon) :
      E.ownExcursion rows b τ h =ᵐ[E.ground.μ] BrownianFiltration.futureAt E.ground.brownian τ ⁻¹' RestartedExcursion.sampled (fun (d : D) => C.matrix (rows d)) b h

      PG1.14b: the actual excursion equals the measurable future-source test almost surely. The interval is within the horizon almost surely (hH); its start is otherwise arbitrary. Constant loading is the only noise restriction.

      theorem MindFormal.StateExperiment.ownExcursion_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} [Countable D] (C : ConstantInstanceNoise E.mind) (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) {τ : Ω → NNReal} (hτ : MeasureTheory.IsStoppingTime E.ground.filtration fun (ω : Ω) => ↑(τ ω)) (h : NNReal) (hH : ∀ᵐ (ω : Ω) ∂E.ground.μ, τ ω + h ≤ E.horizon) :
      MeasurableSet (E.ownExcursion rows b τ h)

      PG1.14b: the exact own excursion is measurable. Completeness is already a field of the original experiment; no measurability premise is supplied.

      theorem MindFormal.StateExperiment.ownExcursion_indep {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} [Countable D] (C : ConstantInstanceNoise E.mind) (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) {τ : Ω → NNReal} (hτ : MeasureTheory.IsStoppingTime E.ground.filtration fun (ω : Ω) => ↑(τ ω)) (h : NNReal) (hH : ∀ᵐ (ω : Ω) ∂E.ground.μ, τ ω + h ≤ E.horizon) {A : Set Ω} (hA : MeasurableSet A) :

      PG1.14b: any event known at the block's stopping start is independent of its exact own-driver excursion. The stopping and horizon conditions are primitive clock data; the factorization is a conclusion.

      theorem MindFormal.StateExperiment.ownExcursion_probability {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} [Fintype D] (C : ConstantInstanceNoise E.mind) (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) (hb : ∀ (d : D), 0 < b d) {τ : Ω → NNReal} (hτ : MeasureTheory.IsStoppingTime E.ground.filtration fun (ω : Ω) => ↑(τ ω)) (h : NNReal) (hh : 0 < h) (hH : ∀ᵐ (ω : Ω) ∂E.ground.μ, τ ω + h ≤ E.horizon) :
      E.ground.μ.real (E.ownExcursion rows b τ h) ≤ ∑ d : D with C.matrix (rows d) ≠ 0, 2 * Real.exp (-(b d ^ 2 / (2 * loadNormSq (C.matrix (rows d)) * ↑h)))

      PG1.14b: a stopped block has the original loaded Brownian excursion price, summing only over the explicitly selected nonzero rows. Positive h and b are the primitive length and allowances; no chance bound is assumed.

      theorem MindFormal.StateExperiment.ownExcursion_adapted {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} [Countable D] (C : ConstantInstanceNoise E.mind) (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) {τ : Ω → NNReal} (hτ : MeasureTheory.IsStoppingTime E.ground.filtration fun (ω : Ω) => ↑(τ ω)) (h : NNReal) (hH : ∀ᵐ (ω : Ω) ∂E.ground.μ, τ ω + h ≤ E.horizon) :
      MeasurableSet (E.ownExcursion rows b τ h)

      PG1.14b: the exact block excursion is known at its stopping endpoint. This is proved from the original completed source past and the own-driver identity. The endpoint's stopping property follows from that of the start.

      theorem MindFormal.StateExperiment.ownExcursion_prefix {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} [Countable D] (C : ConstantInstanceNoise E.mind) (rows : ℕ → D → CoordinateIndex (Fin N) n T Λ) (b : ℕ → D → ℝ) (τ : ℕ → Ω → NNReal) (hτ : ∀ (k : ℕ), MeasureTheory.IsStoppingTime E.ground.filtration fun (ω : Ω) => ↑(τ k ω)) (h : NNReal) (r : ℕ) (hsep : ∀ k < r, ∀ (ω : Ω), τ k ω + h ≤ τ (k + 1) ω) (hH : ∀ k < r, ∀ᵐ (ω : Ω) ∂E.ground.μ, τ k ω + h ≤ E.horizon) (A : Set Ω) (hA : MeasurableSet A) (k : ℕ) :
      k ≤ r → MeasurableSet (A ∩ prefixEvent (fun (j : ℕ) => (E.ownExcursion (rows j) (b j) (τ j) h)ᶜ) k) ∧ E.ground.μ.real (A ∩ prefixEvent (fun (j : ℕ) => (E.ownExcursion (rows j) (b j) (τ j) h)ᶜ) k) = E.ground.μ.real A * ∏ j ∈ Finset.range k, E.ground.μ.real (E.ownExcursion (rows j) (b j) (τ j) h)ᶜ

      PG1.14e: for any finite sequence of separated stopping starts, the entering event together with all preceding certificates is known at the next start, and its probability is the entering probability times the product of the individual no-excursion probabilities. C, the selected rows and levels, the clocks and their separation/horizon bounds, and the entering event known at the first clock are primitive data. Independence, preceding-event measurability and product factorization are all derived, including null prefixes.

      theorem MindFormal.StateExperiment.ownExcursion_conditional {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : StateExperiment Ω N n T Λ J) {D : Type u_5} [Fintype D] (C : ConstantInstanceNoise E.mind) (rows : D → CoordinateIndex (Fin N) n T Λ) (b : D → ℝ) (hb : ∀ (d : D), 0 < b d) {τ : Ω → NNReal} (hτ : MeasureTheory.IsStoppingTime E.ground.filtration fun (ω : Ω) => ↑(τ ω)) (h : NNReal) (hh : 0 < h) (hH : ∀ᵐ (ω : Ω) ∂E.ground.μ, τ ω + h ≤ E.horizon) {A : Set Ω} (hA : MeasurableSet A) :
      E.ground.μ.real (A ∩ E.ownExcursion rows b τ h) / E.ground.μ.real A ≤ ∑ d : D with C.matrix (rows d) ≠ 0, 2 * Real.exp (-(b d ^ 2 / (2 * loadNormSq (C.matrix (rows d)) * ↑h)))

      PG1.14e: given any event known at a block's stopping start, the conditional failure ratio is at most the same selected-row excursion bill. A null entering event gives ratio zero. Applying this to ownExcursion_prefix supplies precisely the entering event and all earlier certificates, without an independence hold.