MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.MovingTargetComparison

11.11 (SE2)-(SE3), 11.14 (SF10)-(SF12), 11.15: the reflected scalar comparison whose target is a deterministic function of time, driven by the actual activity innovation from the actual start. The integrated target ν∫c is moved into the driver, so the comparison is the constructed reflected OU path of target zero with that shifted driver; it solves the scalar reflected equation with drift ν(c(t)-y) and the original innovation.

noncomputable def MindFormal.targetSupport {H : ℝ} (hH : 0 ≤ H) (ν : NNReal) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 H) :

SE4: the integrated target support ν∫₀ᵗc of an interval-integrable target, as a continuous path on [0,H].

Equations
Instances For
    noncomputable def MindFormal.scalarOUPath {H : ℝ} (hH : 0 ≤ H) (ν : NNReal) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 H) (start : ℝ) (w : C(↑(HorizonTime H), ℝ)) :

    SE2, SE4: the reflected comparison with the time-dependent target c, start start and driver w: the constructed reflected OU path of target zero driven by w plus ν∫c.

    Equations
    Instances For
      theorem MindFormal.scalarOUPath_initial {H start : ℝ} (hH : 0 ≤ H) (ν : NNReal) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 H) (hs : 0 ≤ start) (w : C(↑(HorizonTime H), ℝ)) :
      (scalarOUPath hH ν c hc start w) ⟨0, ⋯⟩ = start
      theorem MindFormal.scalarOUPath_dynamics {H start : ℝ} (hH : 0 ≤ H) (ν : NNReal) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 H) (hs : 0 ≤ start) (w : C(↑(HorizonTime H), ℝ)) :
      ScalarDynamics hH (scalarOUPath hH ν c hc start w) w fun (t : ℝ) => ↑ν * (c t - (ContinuousMap.IccExtend hH (scalarOUPath hH ν c hc start w)) t)

      SE1, SE4: the moving-target comparison solves the scalar reflected integral equation with drift ν(c(t)-y(t)), the ORIGINAL continuous innovation w and a minimal floor regulator.

      theorem MindFormal.scalarOUPath_mono {H : ℝ} (hH : 0 ≤ H) (ν : NNReal) {c c' : ℝ → ℝ} (hc : IntervalIntegrable c MeasureTheory.volume 0 H) (hc' : IntervalIntegrable c' MeasureTheory.volume 0 H) (hcc : ∀ t ∈ Set.Icc 0 H, c t ≤ c' t) {s s' : ℝ} (hs0 : 0 ≤ s) (hs : s ≤ s') (w : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) :
      (scalarOUPath hH ν c hc s w) t ≤ (scalarOUPath hH ν c' hc' s' w) t

      SE2: two moving-target comparisons driven by the same innovation are ordered when their targets are ordered on [0,H] and their starts are ordered.

      theorem MindFormal.scalar_path_enclosure {H : ℝ} (hH : 0 ≤ H) (ν : NNReal) (x w : C(↑(HorizonTime H), ℝ)) (target lo hi : ℝ → ℝ) (hlo : IntervalIntegrable lo MeasureTheory.volume 0 H) (hhi : IntervalIntegrable hi MeasureTheory.volume 0 H) (hx : ScalarDynamics hH x w fun (t : ℝ) => ↑ν * (target t - (ContinuousMap.IccExtend hH x) t)) (T : ↑(HorizonTime H)) (hb : ∀ s ≤ T, lo ↑s ≤ target ↑s ∧ target ↑s ≤ hi ↑s) :
      (scalarOUPath hH ν lo hlo (x ⟨0, ⋯⟩) w) T ≤ x T ∧ x T ≤ (scalarOUPath hH ν hi hhi (x ⟨0, ⋯⟩) w) T

      SE1-SE3: a nonnegative scalar reflected path whose time-dependent target lies between two interval-integrable target functions through T is enclosed at T by the two moving-target comparisons with the SAME innovation and its own initial value.

      theorem MindFormal.scalarOUPath_deviation {H : ℝ} (hH : 0 ≤ H) (ν : NNReal) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 H) {start δ : ℝ} (hs : 0 ≤ start) (hδ : 0 ≤ δ) (w : C(↑(HorizonTime H), ℝ)) (t : ↑(HorizonTime H)) (hw : ∀ s ≤ t, |w s - w ⟨0, ⋯⟩| ≤ δ) :
      |(scalarOUPath hH ν c hc start w) t - (scalarOUPath hH ν c hc start 0) t| ≤ 2 * δ

      SE7: two moving-target comparisons with the same target and start, one driven by w and one by the zero path, stay within twice the driver's excursion from its start.

      theorem MindFormal.scalarOUPath_zero {H : ℝ} (hH : 0 ≤ H) (ν : NNReal) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 H) (hc0 : ∀ t ∈ Set.Icc 0 H, 0 ≤ c t) {start : ℝ} (hs : 0 ≤ start) (t : ↑(HorizonTime H)) :
      (scalarOUPath hH ν c hc start 0) t = expConv (↑ν) start c ↑t

      SE7: with a nonnegative target, the comparison driven by the zero innovation is the deterministic convolution of its target, x̄(t) = e^{-νt}x⁰ + ν∫₀ᵗe^{-ν(t-w)}c(w)dw.

      theorem MindFormal.scalarOUPath_measurable {Ω : Type u_1} [MeasurableSpace Ω] {H : ℝ} (hH : 0 ≤ H) (ν : NNReal) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 H) (start : Ω → ℝ) (w : Ω → C(↑(HorizonTime H), ℝ)) (hs : Measurable start) (hw : Measurable w) :
      Measurable fun (z : Ω) => scalarOUPath hH ν c hc (start z) (w z)

      SE4: the moving-target comparison is measurable in a measurable start and driver.

      noncomputable def MindFormal.actualScalarOUPath {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (H : NNReal) (i : Fin N) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 ↑H) (z : Ω) :

      11.11 (SE2): the moving-target comparison for content i on the actual run: target c (a deterministic interval-integrable function of time), the actual starting activity and exactly the actual activity innovation.

      Equations
      Instances For
        theorem MindFormal.actualScalarOUPath_measurable {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (H : NNReal) (i : Fin N) (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 ↑H) :
        theorem MindFormal.actualScalar_path_comparison {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (H : NNReal) (i : Fin N) (z : Ω) {lo hi : ℝ → ℝ} (hlo : IntervalIntegrable lo MeasureTheory.volume 0 ↑H) (hhi : IntervalIntegrable hi MeasureTheory.volume 0 ↑H) (t : ↑(HorizonTime ↑H)) (hb : ∀ s ≤ t, lo ↑s ≤ actualTarget S i z ↑s ∧ actualTarget S i z ↑s ≤ hi ↑s) :
        (actualScalarOUPath S H i lo hlo z) t ≤ (actualScalarPath S H i z) t ∧ (actualScalarPath S H i z) t ≤ (actualScalarOUPath S H i hi hhi z) t

        11.11 (SE3), 11.14 (SF10): on any draw, through any time at which the actual complete target of i has stayed between two deterministic target functions, the actual activity lies between the two moving-target comparisons.

        11.11 (SE2)-(SE3): the probability envelope with deterministic target functions #

        def MindFormal.StoppedTargetPathEnclosure {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (H : NNReal) (E : Set Ω) (i : Fin N) (a : ℝ) (lo hi : ℝ → ℝ) :

        11.11 (SE2): on an event E, at every time of [0,H] before the first actual hit of level a, the actual complete target of i lies between the deterministic target functions lo and hi.

        Equations
        • One or more equations did not get rendered due to their size.
        Instances For
          theorem MindFormal.stopped_universal_path_enclosure {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) (H : NNReal) (i : Fin N) (a : ℝ) :
          StoppedTargetPathEnclosure S H Set.univ i a (fun (x : ℝ) => 0) fun (x : ℝ) => 1 - S.data.activity.g

          11.11 (SE2): the universal enclosure by the constant functions 0 and 1-g, on every path.

          noncomputable def MindFormal.eventScalarPathPassage {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (S : PhysicalNoiseData Ω N n T Λ J 𝒩) [MeasureTheory.IsProbabilityMeasure S.μ] (H : NNReal) (E : Set Ω) (hE : MeasurableSet E) {ε : ℝ} (hfail : S.μ.real Eᶜ ≤ ε) (i : Fin N) (a : ℝ) (lo hi : ℝ → ℝ) (hlo : IntervalIntegrable lo MeasureTheory.volume 0 ↑H) (hhi : IntervalIntegrable hi MeasureTheory.volume 0 ↑H) (he : StoppedTargetPathEnclosure S H E i a lo hi) :
          ScalarPassage S.μ (fun (z : Ω) => ⇑(ContinuousMap.IccExtend ⋯ (actualScalarOUPath S H i lo hlo z))) (fun (z : Ω) => ⇑(ContinuousMap.IccExtend ⋯ (actualScalarPath S H i z))) (fun (z : Ω) => ⇑(ContinuousMap.IccExtend ⋯ (actualScalarOUPath S H i hi hhi z))) (↑H) a (S.μ.real {z : Ω | scalarHit a (actualScalarOUPath S H i lo hlo z)}) (S.μ.real {z : Ω | scalarHit a (actualScalarOUPath S H i hi hhi z)}) ε

          11.11 (SE2)-(SE3): the comparison bookkeeping on an event E with failure at most ε, for deterministic target functions.

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            theorem MindFormal.result_11_11_clause_1_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (H : NNReal) (i : Fin N) {a ε : ℝ} (lo hi : ℝ → ℝ) (hlo : IntervalIntegrable lo MeasureTheory.volume 0 ↑H) (hhi : IntervalIntegrable hi MeasureTheory.volume 0 ↑H) (E : Set Ω) (hE : MeasurableSet E) (hfail : experiment.data.μ.real Eᶜ ≤ ε) (enclosure : StoppedTargetPathEnclosure experiment.data.toPhysicalNoiseData H E i a lo hi) :
            have S := experiment.data.toPhysicalNoiseData; have F := fun (c : ℝ → ℝ) (hc : IntervalIntegrable c MeasureTheory.volume 0 ↑H) => S.μ.real {z : Ω | scalarHit a (actualScalarOUPath S H i c hc z)}; have P := S.μ.real {z : Ω | ∃ t ∈ Set.Icc 0 ↑H, a ≤ mindActivity ((S.globalData z).state t) i}; max (F (fun (x : ℝ) => 0) ⋯) (F lo hlo - ε) ≤ P ∧ P ≤ min (F (fun (x : ℝ) => 1 - S.data.activity.g) ⋯) (F hi hhi + ε)

            For any case of noise. At the constant case this theorem is result_11_11_clause_1.

            11.14 (SF10), (SF12): the simultaneous quorum with deterministic target functions #

            theorem MindFormal.result_11_14_clause_6_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (H : NNReal) (members : Finset (Fin N)) (m : ℕ) (need : ℝ) (lo hi : Fin N → ℝ → ℝ) (hlo : ∀ (i : Fin N), IntervalIntegrable (lo i) MeasureTheory.volume 0 ↑H) (hhi : ∀ (i : Fin N), IntervalIntegrable (hi i) MeasureTheory.volume 0 ↑H) (E : Set Ω) {ε : ℝ} (hfail : experiment.data.μ.real Eᶜ ≤ ε) (enclosure : ∀ z ∈ E, ∀ i ∈ members, ∀ (t : ↑(HorizonTime ↑H)), lo i ↑t ≤ actualTarget experiment.data.toPhysicalNoiseData i z ↑t ∧ actualTarget experiment.data.toPhysicalNoiseData i z ↑t ≤ hi i ↑t) :
            have S := experiment.data.toPhysicalNoiseData; S.μ.real {z : Ω | searchQuorum members m need fun (i : Fin N) => actualScalarOUPath S H i (lo i) ⋯ z} - ε ≤ S.μ.real {z : Ω | searchQuorum members m need fun (i : Fin N) => actualScalarPath S H i z} ∧ S.μ.real {z : Ω | searchQuorum members m need fun (i : Fin N) => actualScalarPath S H i z} ≤ S.μ.real {z : Ω | searchQuorum members m need fun (i : Fin N) => actualScalarOUPath S H i (hi i) ⋯ z} + ε

            For any case of noise. At the constant case this theorem is result_11_14_clause_6.

            theorem MindFormal.result_11_14_clause_13_wait_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (H : NNReal) (members : Finset (Fin N)) (m : ℕ) (need : ℝ) (lo hi : Fin N → ℝ → ℝ) (hlo : ∀ (i : Fin N), IntervalIntegrable (lo i) MeasureTheory.volume 0 ↑H) (hhi : ∀ (i : Fin N), IntervalIntegrable (hi i) MeasureTheory.volume 0 ↑H) (E : Set Ω) {ε εwait : ℝ} (hfail : experiment.data.μ.real Eᶜ ≤ ε) (enclosure : ∀ z ∈ E, ∀ i ∈ members, ∀ (t : ↑(HorizonTime ↑H)), lo i ↑t ≤ actualTarget experiment.data.toPhysicalNoiseData i z ↑t ∧ actualTarget experiment.data.toPhysicalNoiseData i z ↑t ≤ hi i ↑t) (deadline : experiment.data.μ.real {z : Ω | searchQuorum members m need fun (i : Fin N) => actualScalarOUPath experiment.data.toPhysicalNoiseData H i (hi i) ⋯ z} + ε ≤ εwait) :
            1 - εwait ≤ experiment.data.μ.real {z : Ω | ¬searchQuorum members m need fun (i : Fin N) => actualScalarPath experiment.data.toPhysicalNoiseData H i z}

            For any case of noise. At the constant case this theorem is result_11_14_clause_13_wait.

            theorem MindFormal.result_11_14_clause_9_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (experiment : NoiseExperiment Ω N n T Λ J 𝒩) (H : NNReal) (members : Finset (Fin N)) (need : ℝ) :
            have S := experiment.data.toPhysicalNoiseData; have Q := fun (c : Fin N → ℝ → ℝ) (hc : ∀ (i : Fin N), IntervalIntegrable (c i) MeasureTheory.volume 0 ↑H) (st : Fin N → ℝ) (m : ℕ) => S.μ.real {z : Ω | searchQuorum members m need fun (i : Fin N) => scalarOUPath ⋯ (actualScalarRate S) (c i) ⋯ (st i) (actualScalarDriver S H i z)}; (∀ (c : Fin N → ℝ → ℝ) (hc : ∀ (i : Fin N), IntervalIntegrable (c i) MeasureTheory.volume 0 ↑H) (st : Fin N → ℝ) (m m' : ℕ), m ≤ m' → Q c hc st m' ≤ Q c hc st m) ∧ ∀ (c c' : Fin N → ℝ → ℝ) (hc : ∀ (i : Fin N), IntervalIntegrable (c i) MeasureTheory.volume 0 ↑H) (hc' : ∀ (i : Fin N), IntervalIntegrable (c' i) MeasureTheory.volume 0 ↑H) (st st' : Fin N → ℝ) (m : ℕ), (∀ (i : Fin N), ∀ t ∈ Set.Icc 0 ↑H, c i t ≤ c' i t) → (∀ (i : Fin N), 0 ≤ st i) → (∀ (i : Fin N), st i ≤ st' i) → Q c hc st m ≤ Q c' hc' st' m

            For any case of noise. At the constant case this theorem is result_11_14_clause_9.

            11.15: the finite-trial correct-report contrast with deterministic target functions #

            theorem MindFormal.result_11_15_clause_3_general {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] {𝒩 : NoiseCase Ω (CoordinateIndex (Fin N) n T Λ) J} (control trained : NoiseExperiment Ω N n T Λ J 𝒩) (i : Fin N) {Hc Ht : NNReal} {a εc εt εr : ℝ} (loC hiT : ℝ → ℝ) (hloC : IntervalIntegrable loC MeasureTheory.volume 0 ↑Hc) (hhiT : IntervalIntegrable hiT MeasureTheory.volume 0 ↑Ht) (Ec Et : Set Ω) (hEc : MeasurableSet Ec) (hEt : MeasurableSet Et) (hfc : control.data.μ.real Ecᶜ ≤ εc) (hft : trained.data.μ.real Etᶜ ≤ εt) (enclosureC : StoppedTargetPathEnclosure control.data.toPhysicalNoiseData Hc Ec i a loC fun (x : ℝ) => 1) (enclosureT : StoppedTargetPathEnclosure trained.data.toPhysicalNoiseData Ht Et i a (fun (x : ℝ) => 0) hiT) (reportC reportT : Set Ω) (controlReport : control.data.μ.real ({z : Ω | ∃ t ∈ Set.Icc 0 ↑Hc, a ≤ mindActivity ((control.data.toPhysicalNoiseData.globalData z).state t) i} \ reportC) ≤ εr) (trainedReport : reportT ⊆ {z : Ω | ∃ t ∈ Set.Icc 0 ↑Ht, a ≤ mindActivity ((trained.data.toPhysicalNoiseData.globalData z).state t) i}) (separation : trained.data.μ.real {z : Ω | scalarHit a (actualScalarOUPath trained.data.toPhysicalNoiseData Ht i hiT hhiT z)} + εt < control.data.μ.real {z : Ω | scalarHit a (actualScalarOUPath control.data.toPhysicalNoiseData Hc i loC hloC z)} - εc - εr) :
            trained.data.μ.real reportT < control.data.μ.real reportC

            For any case of noise. At the constant case this theorem is result_11_15_clause_3.