MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch02.CompanionSuppression

theorem MindFormal.StateExperiment.companion_suppression_on_own_noise {Ω : Type u_1} [MeasurableSpace Ω] {N n : ℕ} {T : Type u_2} {Λ : Type u_3} {J : Type u_4} [Fintype T] [Fintype Λ] [Fintype J] (E : Bool → StateExperiment Ω N n T Λ J) (Ht : NNReal) (B : (g : Bool) → OwnBox (E g) Ht) (C : (g : Bool) → LoadComparison (B g)) (Rread : (g : Bool) → OutputComparison (C g)) (hHt : ∀ (g : Bool), Ht ≤ (E g).horizon) (press base : Fin N) (b : Fin n) (a : T) (γ : Bool → Fin N → ℝ) (z : Bool → ℝ → ℝ) (e0 dv Lv Ev' : Bool → ℝ) {H av : ℝ} {h h' shock : ℝ → ℝ} (hH : 0 ≤ H) (htrain : H ≤ ↑Ht) (hav : 0 < av) (he0 : ∀ (g : Bool), 0 ≤ e0 g) (hdv : ∀ (g : Bool), 0 ≤ dv g) (hLv : ∀ (g : Bool), 0 ≤ Lv g) (hh : ∀ (t : ℝ), HasDerivAt h (h' t) t) (hh' : Continuous h') (hshock : IntervalIntegrable shock MeasureTheory.volume 0 H) (hz : ∀ (g : Bool), Continuous (z g)) (hzEq : ∀ (g : Bool), ∀ t ∈ Set.Icc 0 H, z g t = ∫ (s : ℝ) in 0..t, (E g).mind.drift.η b * h s * (shock s + (∑ j : Fin N, γ g j ^ 2) * (h' s - h s / (E g).mind.drift.τ a) * z g s)) (hstart : ∀ (g : Bool), ∀ ω ∈ (B g).stream, ∀ (i : Fin N), |mindValue (↑((E g).start.state ω)) i b a| ≤ e0 g) (hrow : ∀ (g : Bool), ∀ t ∈ Set.Icc 0 H, ∀ (i : Fin N), ∑ j : Fin N, |(E g).mind.drift.η b * h t * (h' t - h t / (E g).mind.drift.τ a) * γ g i * γ g j| ≤ Lv g) (trainingInputs : Bool → ℝ → Set (Fin N → ℝ)) (hTrainingInputs : ∀ (g : Bool), ∀ ω ∈ (B g).stream, ∀ (hist : FiniteActionHistory (Fin N)), ChronologicalHistory hist → ∀ t ∈ Set.Icc 0 H, strictPastInput (E g).world.world t hist ω ∈ trainingInputs g t) (hdefect : ∀ (g : Bool), ∀ s0 ∈ (B g).starts, ∀ (s : MindState (Fin N) n T Λ), InCorridorBox (↑s0) (B g).X (B g).Xr (B g).ρW (B g).ρv s → ∀ t ∈ Set.Icc 0 H, ∀ (u q : Fin N → ℝ), 0 ≤ u → u ∈ (B g).inputs → u ∈ trainingInputs g t → (∀ (i : Fin N), q i ∈ {0, 1}) → ∀ (i : Fin N), |assembledDrift (E g).mind.drift u q s (Sum.inr (Sum.inr (Sum.inl (i, b, a)))) - (E g).mind.drift.η b * h t * γ g i * (shock t + (h' t - h t / (E g).mind.drift.τ a) * ∑ j : Fin N, γ g j * mindValue s j b a)| ≤ dv g) (hread : ∀ (g : Bool), ∀ s0 ∈ (B g).starts, ∀ (s : PhysicalState N n T Λ), InCorridorBox (↑s0) (B g).X (B g).Xr (B g).ρW (B g).ρv ↑s → (E g).mind.reads.output ((physicalReadState press) s) = mindActivity (↑s) press - av * mindValue (↑s) press b a) (hEv' : ∀ (g : Bool), companionError (B g) H (e0 g) (dv g) (Lv g) + (B g).Kv * (↑Ht - H) + 2 * (B g).ϖv ≤ Ev' g) {η τ pL q QS : ℝ} (hη : 0 < η) (hpL : 0 < pL) (hq : 0 < q) (hQS : 0 ≤ QS) (hmatched : ∀ (g : Bool), (E g).mind.drift.η b = η ∧ (E g).mind.drift.τ a = τ) (hlight : ∀ (g : Bool), γ g press = pL) (hQSsum : ∑ j : Fin N, γ false j ^ 2 = QS) (hQCsum : ∑ j : Fin N, γ true j ^ 2 = QS + q ^ 2) (hshock0 : ∀ (s : ℝ), 0 ≤ shock s) (hpresence0 : ∀ (s : ℝ), 0 ≤ h s) {m : ℕ} (shockStart len hj Rj Bminus Bplus : Fin m → ℝ) (hlen : ∀ (j : Fin m), 0 < len j) (hin : ∀ (j : Fin m), 0 ≤ shockStart j ∧ shockStart j + len j ≤ H) (hdisj : ∀ (j k : Fin m), j ≠ k → Disjoint (Set.Icc (shockStart j) (shockStart j + len j)) (Set.Icc (shockStart k) (shockStart k + len k))) (hoff : ∀ s ∈ Set.Icc 0 H, (∀ (j : Fin m), s ∉ Set.Icc (shockStart j) (shockStart j + len j)) → shock s = 0) (hbounds : ∀ (j : Fin m), ∀ s ∈ Set.Icc (shockStart j) (shockStart j + len j), hj j ≤ h s ∧ Rj j ≤ shock s ∧ Bminus j ≤ shockFeedback τ h H s ∧ shockFeedback τ h H s ≤ Bplus j) (hhj : ∀ (j : Fin m), 0 ≤ hj j) (hRj : ∀ (j : Fin m), 0 ≤ Rj j) (hBm : ∀ (j : Fin m), 0 < Bminus j) (valueMargin : Ev' false + Ev' true < η * pL * ∑ j : Fin m, len j * hj j * Rj j * Real.exp (-η * QS * Bplus j) * (1 - Real.exp (-η * q ^ 2 * Bminus j))) (d onset D : ℝ) (LB UB LL UL : Bool → ℝ) (k : Bool → ℕ) (mB : ℕ) (mL : Bool → Option ℕ) (hd : H ≤ d) (hD : 0 ≤ D) (htest : onset + D ≤ ↑Ht) (hBL : ∀ (g : Bool), d ≤ LB g) (hBU : ∀ (g : Bool), LB g ≤ UB g) (hclock : ∀ (g : Bool), ∀ ω ∈ (B g).stream, d ≤ (((E g).supportHistory ω).native (↑Ht) false).release (k g) ∧ (((E g).supportHistory ω).native (↑Ht) false).release (k g) ≤ UB g ∧ (((E g).supportHistory ω).native (↑Ht) false).release (k g) < d + (E g).mind.pause false) (hbeforeB : ∀ (g : Bool), ∀ t ∈ Set.Ico d (LB g), ∀ (i : Fin N), trainedPressUpper (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H t i < 0) (hqualB : ∀ (g : Bool), 0 ≤ trainedPressLower (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H (UB g) base) (hrivalsB : ∀ (g : Bool), ∀ t ∈ Set.Icc (LB g) (UB g + ↑mB * (E g).mind.pause false), ∀ (i : Fin N), i ≠ base → trainedPressUpper (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H t i < 0) (hpersistB : ∀ (g : Bool), ∀ t ∈ Set.Icc (LB g + (E g).mind.pause false) (UB g + ↑mB * (E g).mind.pause false), 0 ≤ trainedPressLower (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H t base) (hlastB : ∀ (g : Bool), UB g + ↑mB * (E g).mind.pause false < onset) (hnextB : ∀ (g : Bool), onset ≤ LB g + (↑mB + 1) * (E g).mind.pause false) (hquiet : ∀ (g : Bool), mL g = none → ∀ t ∈ Set.Icc onset (onset + D), ∀ (i : Fin N), i = base ∨ i = press → trainedPressUpper (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H t i < 0) (hLL : ∀ (g : Bool), mL g ≠ none → onset ≤ LL g ∧ LL g ≤ UL g) (hclockL : ∀ (g : Bool), mL g ≠ none → UB g + (↑mB + 1) * (E g).mind.pause false ≤ UL g) (hbeforeL : ∀ (g : Bool), mL g ≠ none → ∀ t ∈ Set.Ico onset (LL g), ∀ (i : Fin N), trainedPressUpper (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H t i < 0) (hqualL : ∀ (g : Bool), mL g ≠ none → 0 ≤ trainedPressLower (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H (UL g) press) (hrivalsL : ∀ (g : Bool) (m : ℕ), mL g = some m → ∀ t ∈ Set.Icc (LL g) (UL g + ↑m * (E g).mind.pause false), ∀ (i : Fin N), i ≠ press → trainedPressUpper (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H t i < 0) (hpersistL : ∀ (g : Bool) (m : ℕ), mL g = some m → ∀ t ∈ Set.Icc (LL g + (E g).mind.pause false) (UL g + ↑m * (E g).mind.pause false), 0 ≤ trainedPressLower (Rread g) press av (γ g press * z g H) (companionError (B g) H (e0 g) (dv g) (Lv g)) H t press) (hlastL : ∀ (g : Bool) (m : ℕ), mL g = some m → UL g + ↑m * (E g).mind.pause false ≤ onset + D) (hnextL : ∀ (g : Bool) (m : ℕ), mL g = some m → onset + D < LL g + (↑m + 1) * (E g).mind.pause false) (hε : ∀ (g : Bool), (B g).errorProbability < 1) (ratioMargin : (B true).errorProbability / (1 - (B true).errorProbability) + (B false).errorProbability / (1 - (B false).errorProbability) < ↑((mL true).elim 0 fun (m : ℕ) => m + 1) / (↑((mL true).elim 0 fun (m : ℕ) => m + 1) + ↑(mB + 1)) - ↑((mL false).elim 0 fun (m : ℕ) => m + 1) / (↑((mL false).elim 0 fun (m : ℕ) => m + 1) + ↑(mB + 1))) :
η * pL * ∑ j : Fin m, len j * hj j * Rj j * Real.exp (-η * QS * Bplus j) * (1 - Real.exp (-η * q ^ 2 * Bminus j)) ≤ γ false press * z false H - γ true press * z true H ∧ (∀ (g : Bool), z g H = learnedFactor ((E g).mind.drift.η b) ((E g).mind.drift.τ a) h shock H (∑ j : Fin N, γ g j ^ 2)) ∧ (∃ (good : Bool → Set Ω), (∀ (g : Bool), MeasurableSet (good g) ∧ good g ⊆ (B g).stream ∧ 1 - (B g).errorProbability ≤ (E g).ground.μ.real (good g) ∧ ∀ ω ∈ good g, (∀ t ∈ Set.Icc 0 H, ∀ (i : Fin N), |mindValue (((E g).supportHistory ω).state t) i b a - γ g i * z g t| ≤ companionError (B g) H (e0 g) (dv g) (Lv g)) ∧ (∀ t ∈ Set.Icc H ↑Ht, ∀ (i : Fin N), |mindValue (((E g).supportHistory ω).state t) i b a - γ g i * z g H| ≤ Ev' g) ∧ nativePressesIn (((E g).supportHistory ω).native (↑Ht) false) base press (Set.Ico d onset) = mB + 1 ∧ nativePressesIn (((E g).supportHistory ω).native (↑Ht) false) base press (Set.Icc onset (onset + D)) = (mL g).elim 0 fun (m : ℕ) => m + 1) ∧ ∀ ωS ∈ good false, ∀ ωC ∈ good true, ∀ t ∈ Set.Icc H ↑Ht, mindValue (((E true).supportHistory ωC).state t) press b a < mindValue (((E false).supportHistory ωS).state t) press b a) ∧ ∫ (ω : Ω), nativePressRatio (((E false).supportHistory ω).native (↑Ht) false) base press d onset D ∂(E false).ground.μ[|{ω : Ω | 0 < nativePressesIn (((E false).supportHistory ω).native (↑Ht) false) base press (Set.Icc onset (onset + D)) + nativePressesIn (((E false).supportHistory ω).native (↑Ht) false) base press (Set.Ico d onset)}] < ∫ (ω : Ω), nativePressRatio (((E true).supportHistory ω).native (↑Ht) false) base press d onset D ∂(E true).ground.μ[|{ω : Ω | 0 < nativePressesIn (((E true).supportHistory ω).native (↑Ht) false) base press (Set.Icc onset (onset + D)) + nativePressesIn (((E true).supportHistory ω).native (↑Ht) false) base press (Set.Ico d onset)}]

02.16 on each of the two continuing own-noise runs. false is single-cue preparation and true compound preparation. The only reference ODE is the verified mathematical comparison (16.1). Its quadrature, the actual training error, the subsequent value motion, both native press counts, the defined-trial group, and its conditional mean are conclusions. All test margins below are inequalities of the computed comparisons.