MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.AccumulatedReserve

11.10 (SW8), 11.13 (SI8)-(SI9): log reserves that are absolutely continuous between events, their almost-everywhere rates, and their accumulated form with jumps. The loss clocks need only a.e. rate bounds on the whole interval; no derivative at every time is assumed.

theorem MindFormal.ac_rate_envelope {f : ℝ → ℝ} {H lo hi : ℝ} (hf : AbsolutelyContinuousOnInterval f 0 H) (hb : ∀ᵐ (u : ℝ), u ∈ Set.Icc 0 H → lo ≤ deriv f u ∧ deriv f u ≤ hi) {t : ℝ} (ht : t ∈ Set.Icc 0 H) :
f 0 + lo * t ≤ f t ∧ f t ≤ f 0 + hi * t

SW8, SI9: an absolutely continuous function on [0,H] whose a.e. derivative lies in [lo,hi] stays between the two straight lines f(0)+lo·t and f(0)+hi·t on [0,H].

theorem MindFormal.reserve_family_loss_ac {I : Type u_1} (s : Finset I) (hs : s.Nonempty) (reserve : I → ℝ → ℝ) (dlo dhi : I → ℝ) {H : ℝ} (hac : ∀ j ∈ s, AbsolutelyContinuousOnInterval (reserve j) 0 H) (hb : ∀ j ∈ s, ∀ᵐ (u : ℝ), u ∈ Set.Icc 0 H → -dhi j ≤ deriv (reserve j) u ∧ deriv (reserve j) u ≤ -dlo j) (hlo : ∀ j ∈ s, 0 < dlo j) :
(∀ t ∈ Set.Icc 0 H, (t < s.sup' hs fun (j : I) => max (reserve j 0) 0 / dhi j) → ∃ j ∈ s, 0 < reserve j t) ∧ ∀ t ∈ Set.Icc 0 H, (s.sup' hs fun (j : I) => max (reserve j 0) 0 / dlo j) ≤ t → ∀ j ∈ s, reserve j t ≤ 0

11.10 (SW8), 11.13 (SI9): a finite cue family whose log reserves are absolutely continuous on [0,H] (no uncharged jump) with a.e. rates in [-d⁺_j,-d⁻_j], d⁻_j>0. Before the largest lower-rate clock some cue still has a positive reserve; from the largest upper-rate clock every reserve is nonpositive.

theorem MindFormal.ac_integral_bounds {G lo hi : ℝ → ℝ} {p q : ℝ} (hpq : p ≤ q) (hG : AbsolutelyContinuousOnInterval G p q) (hlo : IntervalIntegrable lo MeasureTheory.volume p q) (hhi : IntervalIntegrable hi MeasureTheory.volume p q) (hb : ∀ᵐ (s : ℝ), s ∈ Set.Icc p q → lo s ≤ deriv G s ∧ deriv G s ≤ hi s) {t : ℝ} (ht : t ∈ Set.Icc p q) :
G p + ∫ (s : ℝ) in p..t, lo s ≤ G t ∧ G t ≤ G p + ∫ (s : ℝ) in p..t, hi s

SB5-SB6, SI8: on [p,q] an absolutely continuous G whose a.e. rate lies between lo and hi moves from G(p) by between ∫_p^t lo and ∫_p^t hi.

theorem MindFormal.piecewise_accumulate {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hmono : ∀ (k : ℕ), e k ≤ e (k + 1)) (G : ℕ → ℝ → ℝ) (lo hi : ℝ → ℝ) (hlo : IntervalIntegrable lo MeasureTheory.volume 0 (e K)) (hhi : IntervalIntegrable hi MeasureTheory.volume 0 (e K)) (jlo jhi : ℕ → ℝ) (hac : ∀ k < K, AbsolutelyContinuousOnInterval (G k) (e k) (e (k + 1))) (hrate : ∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Icc (e k) (e (k + 1)) → lo s ≤ deriv (G k) s ∧ deriv (G k) s ≤ hi s) (hjump : ∀ (k : ℕ), 0 < k → k < K → jlo k ≤ G k (e k) - G (k - 1) (e k) ∧ G k (e k) - G (k - 1) (e k) ≤ jhi k) (k : ℕ) :
k < K → ∀ t ∈ Set.Icc (e k) (e (k + 1)), (G 0 0 + ∫ (s : ℝ) in 0..t, lo s) + ∑ m ∈ Finset.Ioc 0 k, jlo m ≤ G k t ∧ G k t ≤ (G 0 0 + ∫ (s : ℝ) in 0..t, hi s) + ∑ m ∈ Finset.Ioc 0 k, jhi m

SB5-SB6, SI8: a quantity absolutely continuous on each piece [e_k,e_{k+1}] between events, whose a.e. rate on every piece lies in [lo,hi] and whose jump at each event e_k (k≥1), the next piece's value there less the previous piece's, lies in [jlo_k,jhi_k], is bounded on piece k by its start plus the integrated rate bounds and the summed jump bounds up to that piece.

theorem MindFormal.sum_range_succ_eq_add_Ioc (a : ℕ → ℝ) (k : ℕ) :
∑ m ∈ Finset.range (k + 1), a m = a 0 + ∑ m ∈ Finset.Ioc 0 k, a m

The jumps out of the first k+1 event points, split as the first and the rest.

theorem MindFormal.actual_accumulate {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (S : ℝ → ℝ) (G : ℕ → ℝ → ℝ) (lo hi : ℝ → ℝ) (hlo : IntervalIntegrable lo MeasureTheory.volume 0 (e K)) (hhi : IntervalIntegrable hi MeasureTheory.volume 0 (e K)) (alo ahi blo bhi : ℕ → ℝ) (hac : ∀ k < K, AbsolutelyContinuousOnInterval (G k) (e k) (e (k + 1))) (hagree : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), S s = G k s) (hrate : ∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Icc (e k) (e (k + 1)) → lo s ≤ deriv (G k) s ∧ deriv (G k) s ≤ hi s) (hout : ∀ k < K, alo k ≤ G k (e k) - S (e k) ∧ G k (e k) - S (e k) ≤ ahi k) (hin : ∀ (k : ℕ), 0 < k → k ≤ K → blo k ≤ S (e k) - G (k - 1) (e k) ∧ S (e k) - G (k - 1) (e k) ≤ bhi k) :
(∀ k < K, ∀ t ∈ Set.Ioo (e k) (e (k + 1)), (S 0 + ∫ (s : ℝ) in 0..t, lo s) + ∑ m ∈ Finset.range (k + 1), alo m + ∑ m ∈ Finset.Ioc 0 k, blo m ≤ S t ∧ S t ≤ (S 0 + ∫ (s : ℝ) in 0..t, hi s) + ∑ m ∈ Finset.range (k + 1), ahi m + ∑ m ∈ Finset.Ioc 0 k, bhi m) ∧ ∀ (k : ℕ), 0 < k → k ≤ K → (S 0 + ∫ (s : ℝ) in 0..e k, lo s) + ∑ m ∈ Finset.range k, alo m + ∑ m ∈ Finset.Ioc 0 k, blo m ≤ S (e k) ∧ S (e k) ≤ (S 0 + ∫ (s : ℝ) in 0..e k, hi s) + ∑ m ∈ Finset.range k, ahi m + ∑ m ∈ Finset.Ioc 0 k, bhi m

SB5-SB6, SI8, THE ACTUAL READ AT EVERY TIME. A read S agrees on each open piece between events 0 = e_0 < … < e_K with a function G_k absolutely continuous on the closed piece, whose a.e. rate lies in [lo,hi]; at an event point S takes its own value, which may equal neither side's limit. With the jump out of each event point into the next piece, G_k(e_k) − S(e_k), in [alo_k, ahi_k] and the jump into each event point from the previous piece, S(e_k) − G_{k−1}(e_k), in [blo_k, bhi_k], S is bounded at every time inside piece k by S(0) plus its integrated rate bounds plus the jumps out of e_0,…,e_k and into e_1,…,e_k, and at an event point e_k by S(0) plus its integrated rate bounds plus the jumps out of e_0,…,e_{k−1} and into e_1,…,e_k.

theorem MindFormal.accumulated_identity {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (G : ℕ → ℝ → ℝ) (S : ℝ → ℝ) (hac : ∀ k < K, AbsolutelyContinuousOnInterval (G k) (e k) (e (k + 1))) (hagree : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), S s = G k s) :
IntervalIntegrable (deriv S) MeasureTheory.volume 0 (e K) ∧ ∀ k < K, ∀ t ∈ Set.Icc (e k) (e (k + 1)), G k t = (G 0 0 + ∫ (s : ℝ) in 0..t, deriv S s) + ∑ m ∈ Finset.Ioc 0 k, (G m (e m) - G (m - 1) (e m))

SI8: the accumulated form. A read S that agrees on each open piece between events with a function G_k absolutely continuous on the closed piece has an interval-integrable a.e. rate on [0,e_K], and on piece k, G_k(t) is G_0(0) plus the integral of S's rate from 0 to t plus the jumps G_m(e_m)-G_{m-1}(e_m) at the events up to that piece.

theorem MindFormal.result_11_13_clause_7_ceiling_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 𝒩) {Γ : Type u_5} (H : Γ → NNReal) (R : (γ : Γ) → LearningReference experiment.data.toPhysicalNoiseData.data (H γ)) (i : Fin N) {α : ℝ} (hα : 0 < α) :
have g := experiment.data.toPhysicalNoiseData.data.activity.g; have ϑ := g + α; have ceiling := sSup {v : ℝ | ∃ (γ : Γ), ∃ s ∈ Set.Icc 0 ↑(H γ), v = (R γ).target i s}; ((∃ (γ : Γ), ∃ s ∈ Set.Icc 0 ↑(H γ), α < (R γ).target i s) ↔ α < ceiling) ∧ ((∃ (γ : Γ), ∃ s ∈ Set.Icc 0 ↑(H γ), α < (R γ).target i s) ↔ ∃ (γ : Γ), ∃ s ∈ Set.Icc 0 ↑(H γ), ϑ * (R γ).rest i s < (1 - ϑ) * (R γ).useful i s) ∧ ceiling ≤ 1 - g

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

theorem MindFormal.result_11_12_clause_4_events_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} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need : ℝ} (hn : 0 < need) {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (hK : e K ≤ ↑H) (w : ℕ → ℝ → Fin N → ℝ) (q : ℕ → Fin N → ℝ) (hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1))) (hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s) (fixed : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s ∧ R.mode s = q k) (γUlo γUhi γLlo γLhi : ℝ → ℝ) (hUlo : IntervalIntegrable γUlo MeasureTheory.volume 0 (e K)) (hUhi : IntervalIntegrable γUhi MeasureTheory.volume 0 (e K)) (hLlo : IntervalIntegrable γLlo MeasureTheory.volume 0 (e K)) (hLhi : IntervalIntegrable γLhi MeasureTheory.volume 0 (e K)) (jUlo jUhi jLlo jLhi : ℕ → ℝ) (rates : ∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Icc (e k) (e (k + 1)) → γUlo s ≤ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * deriv (R.pathUseful (w k) (q k) i) s ∧ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * deriv (R.pathUseful (w k) (q k) i) s ≤ γUhi s ∧ γLlo s ≤ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * deriv (R.pathRest (w k) (q k) i) s ∧ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * deriv (R.pathRest (w k) (q k) i) s ≤ γLhi s) (jumps : ∀ (k : ℕ), 0 < k → k < K → jUlo k ≤ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * (R.pathUseful (w k) (q k) i (e k) - R.pathUseful (w (k - 1)) (q (k - 1)) i (e k)) ∧ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * (R.pathUseful (w k) (q k) i (e k) - R.pathUseful (w (k - 1)) (q (k - 1)) i (e k)) ≤ jUhi k ∧ jLlo k ≤ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * (R.pathRest (w k) (q k) i (e k) - R.pathRest (w (k - 1)) (q (k - 1)) i (e k)) ∧ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * (R.pathRest (w k) (q k) i (e k) - R.pathRest (w (k - 1)) (q (k - 1)) i (e k)) ≤ jLhi k) :
have d := experiment.data.toPhysicalNoiseData.data; have ϑ := d.activity.g + need; have Tk := fun (k : ℕ) (t : ℝ) => normalizedTarget d.activity.σ d.activity.g (assembledInputs d (w k t) (q k) ((ContinuousMap.IccExtend ⋯ R.path) t)) i; have J0 := R.pathUseful (w 0) (q 0) i 0; have H0 := R.pathRest (w 0) (q 0) i 0; have D := ϑ * H0 - (1 - ϑ) * J0; have U := fun (k : ℕ) (t : ℝ) => (1 - ϑ) * (R.pathUseful (w k) (q k) i t - J0); have L := fun (k : ℕ) (t : ℝ) => ϑ * (H0 - R.pathRest (w k) (q k) i t); have Ulo := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γUlo s) + ∑ m ∈ Finset.Ioc 0 k, jUlo m; have Uhi := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γUhi s) + ∑ m ∈ Finset.Ioc 0 k, jUhi m; have Llo := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γLlo s) + ∑ m ∈ Finset.Ioc 0 k, jLlo m; have Lhi := fun (k : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γLhi s) + ∑ m ∈ Finset.Ioc 0 k, jLhi m; ∀ k < K, ∀ t ∈ Set.Icc (e k) (e (k + 1)), (Ulo k t ≤ U k t ∧ U k t ≤ Uhi k t) ∧ (Llo k t ≤ L k t ∧ L k t ≤ Lhi k t) ∧ (need < Tk k t ↔ D < U k t + L k t) ∧ (Uhi k t + Lhi k t ≤ D → Tk k t ≤ need) ∧ (D < Ulo k t + Llo k t → need < Tk k t) ∧ (R.input t = w k t ∧ R.mode t = q k → R.target i t = Tk k t) ∧ (Uhi k t ≤ D → U k t ≤ D) ∧ (D < Ulo k t → D < U k t) ∧ (Lhi k t ≤ D → L k t ≤ D) ∧ (D < Llo k t → D < L k t)

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

theorem MindFormal.result_11_12_clause_4_actual_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} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need : ℝ} (hn : 0 < need) {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (hK : e K ≤ ↑H) (w : ℕ → ℝ → Fin N → ℝ) (q : ℕ → Fin N → ℝ) (hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1))) (hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s) (fixed : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s ∧ R.mode s = q k) (γUlo γUhi γLlo γLhi : ℝ → ℝ) (hUlo : IntervalIntegrable γUlo MeasureTheory.volume 0 (e K)) (hUhi : IntervalIntegrable γUhi MeasureTheory.volume 0 (e K)) (hLlo : IntervalIntegrable γLlo MeasureTheory.volume 0 (e K)) (hLhi : IntervalIntegrable γLhi MeasureTheory.volume 0 (e K)) (aUlo aUhi aLlo aLhi bUlo bUhi bLlo bLhi : ℕ → ℝ) (rates : ∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Icc (e k) (e (k + 1)) → γUlo s ≤ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * deriv (R.pathUseful (w k) (q k) i) s ∧ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * deriv (R.pathUseful (w k) (q k) i) s ≤ γUhi s ∧ γLlo s ≤ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * deriv (R.pathRest (w k) (q k) i) s ∧ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * deriv (R.pathRest (w k) (q k) i) s ≤ γLhi s) (outJump : ∀ k < K, aUlo k ≤ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * (R.pathUseful (w k) (q k) i (e k) - R.useful i (e k)) ∧ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * (R.pathUseful (w k) (q k) i (e k) - R.useful i (e k)) ≤ aUhi k ∧ aLlo k ≤ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * (R.pathRest (w k) (q k) i (e k) - R.rest i (e k)) ∧ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * (R.pathRest (w k) (q k) i (e k) - R.rest i (e k)) ≤ aLhi k) (inJump : ∀ (k : ℕ), 0 < k → k ≤ K → bUlo k ≤ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * (R.useful i (e k) - R.pathUseful (w (k - 1)) (q (k - 1)) i (e k)) ∧ (1 - (experiment.data.toPhysicalNoiseData.data.activity.g + need)) * (R.useful i (e k) - R.pathUseful (w (k - 1)) (q (k - 1)) i (e k)) ≤ bUhi k ∧ bLlo k ≤ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * (R.rest i (e k) - R.pathRest (w (k - 1)) (q (k - 1)) i (e k)) ∧ -(experiment.data.toPhysicalNoiseData.data.activity.g + need) * (R.rest i (e k) - R.pathRest (w (k - 1)) (q (k - 1)) i (e k)) ≤ bLhi k) :
have ϑ := experiment.data.toPhysicalNoiseData.data.activity.g + need; have D := ϑ * R.rest i 0 - (1 - ϑ) * R.useful i 0; have U := fun (t : ℝ) => (1 - ϑ) * (R.useful i t - R.useful i 0); have L := fun (t : ℝ) => ϑ * (R.rest i 0 - R.rest i t); have acc := fun (γ : ℝ → ℝ) (a b : ℕ → ℝ) (kA kB : ℕ) (t : ℝ) => (∫ (s : ℝ) in 0..t, γ s) + ∑ m ∈ Finset.range kA, a m + ∑ m ∈ Finset.Ioc 0 kB, b m; U 0 = 0 ∧ L 0 = 0 ∧ (∀ (t : ℝ), need < R.target i t ↔ D < U t + L t) ∧ (∀ k < K, ∀ t ∈ Set.Ioo (e k) (e (k + 1)), (acc γUlo aUlo bUlo (k + 1) k t ≤ U t ∧ U t ≤ acc γUhi aUhi bUhi (k + 1) k t) ∧ (acc γLlo aLlo bLlo (k + 1) k t ≤ L t ∧ L t ≤ acc γLhi aLhi bLhi (k + 1) k t) ∧ (acc γUhi aUhi bUhi (k + 1) k t + acc γLhi aLhi bLhi (k + 1) k t ≤ D → R.target i t ≤ need) ∧ (D < acc γUlo aUlo bUlo (k + 1) k t + acc γLlo aLlo bLlo (k + 1) k t → need < R.target i t) ∧ (acc γUhi aUhi bUhi (k + 1) k t ≤ D → U t ≤ D) ∧ (D < acc γUlo aUlo bUlo (k + 1) k t → D < U t) ∧ (acc γLhi aLhi bLhi (k + 1) k t ≤ D → L t ≤ D) ∧ (D < acc γLlo aLlo bLlo (k + 1) k t → D < L t)) ∧ ∀ (k : ℕ), 0 < k → k ≤ K → (acc γUlo aUlo bUlo k k (e k) ≤ U (e k) ∧ U (e k) ≤ acc γUhi aUhi bUhi k k (e k)) ∧ (acc γLlo aLlo bLlo k k (e k) ≤ L (e k) ∧ L (e k) ≤ acc γLhi aLhi bLhi k k (e k)) ∧ (acc γUhi aUhi bUhi k k (e k) + acc γLhi aLhi bLhi k k (e k) ≤ D → R.target i (e k) ≤ need) ∧ (D < acc γUlo aUlo bUlo k k (e k) + acc γLlo aLlo bLlo k k (e k) → need < R.target i (e k)) ∧ (acc γUhi aUhi bUhi k k (e k) ≤ D → U (e k) ≤ D) ∧ (D < acc γUlo aUlo bUlo k k (e k) → D < U (e k)) ∧ (acc γLhi aLhi bLhi k k (e k) ≤ D → L (e k) ≤ D) ∧ (D < acc γLlo aLlo bLlo k k (e k) → D < L (e k))

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

theorem MindFormal.result_11_13_clause_6_accumulated_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} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need : ℝ} (hn : 0 < need) {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (hK : e K ≤ ↑H) (w : ℕ → ℝ → Fin N → ℝ) (hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1))) (hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s) (world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s) :
have d := experiment.data.toPhysicalNoiseData.data; have ϑ := d.activity.g + need; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have read := fun (j : Fin N) (s : ℝ) => assembledInputs d (R.input s) (attendedMode j) (st s); have target := fun (j : Fin N) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read j s) i; have S := fun (j : Fin N) (s : ℝ) => (1 - ϑ) * read j s i - ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read j s l); have readk := fun (j : Fin N) (k : ℕ) (s : ℝ) => assembledInputs d (w k s) (attendedMode j) (st s); have targetk := fun (j : Fin N) (k : ℕ) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (readk j k s) i; have G := fun (j : Fin N) (k : ℕ) (t : ℝ) => (1 - ϑ) * R.pathUseful (w k) (attendedMode j) i t - ϑ * R.pathRest (w k) (attendedMode j) i t; have Lacc := fun (j : Fin N) (k : ℕ) (t : ℝ) => (G j 0 0 + ∫ (s : ℝ) in 0..t, deriv (S j) s) + ∑ m ∈ Finset.Ioc 0 k, (G j m (e m) - G j (m - 1) (e m)); (∀ (j : Fin N), IntervalIntegrable (deriv (S j)) MeasureTheory.volume 0 (e K)) ∧ ∀ k < K, ∀ t ∈ Set.Icc (e k) (e (k + 1)), (∀ (j : Fin N), G j k t = Lacc j k t) ∧ (∀ (j : Fin N), need < targetk j k t ↔ 0 < Lacc j k t) ∧ (∀ (Q : Finset (Fin N)) (hQ : Q.Nonempty), (∃ j ∈ Q, need < targetk j k t) ↔ 0 < Q.sup' hQ fun (j : Fin N) => Lacc j k t) ∧ (R.input t = w k t → ∀ (j : Fin N), S j t = G j k t ∧ target j t = targetk j k t)

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

theorem MindFormal.result_11_13_clause_6_actual_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} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {need : ℝ} (hn : 0 < need) {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (hK : e K ≤ ↑H) (w : ℕ → ℝ → Fin N → ℝ) (hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1))) (hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s) (world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s) :
have d := experiment.data.toPhysicalNoiseData.data; have ϑ := d.activity.g + need; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have read := fun (j : Fin N) (s : ℝ) => assembledInputs d (R.input s) (attendedMode j) (st s); have target := fun (j : Fin N) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read j s) i; have S := fun (j : Fin N) (s : ℝ) => (1 - ϑ) * read j s i - ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read j s l); have G := fun (j : Fin N) (k : ℕ) (t : ℝ) => (1 - ϑ) * R.pathUseful (w k) (attendedMode j) i t - ϑ * R.pathRest (w k) (attendedMode j) i t; have jout := fun (j : Fin N) (m : ℕ) => G j m (e m) - S j (e m); have jin := fun (j : Fin N) (m : ℕ) => S j (e m) - G j (m - 1) (e m); have Lacc := fun (j : Fin N) (kA kB : ℕ) (t : ℝ) => (S j 0 + ∫ (s : ℝ) in 0..t, deriv (S j) s) + ∑ m ∈ Finset.range kA, jout j m + ∑ m ∈ Finset.Ioc 0 kB, jin j m; (∀ (j : Fin N), IntervalIntegrable (deriv (S j)) MeasureTheory.volume 0 (e K)) ∧ (∀ k < K, ∀ t ∈ Set.Ioo (e k) (e (k + 1)), ∀ (j : Fin N), S j t = Lacc j (k + 1) k t) ∧ (∀ (k : ℕ), 0 < k → k ≤ K → ∀ (j : Fin N), S j (e k) = Lacc j k k (e k)) ∧ (∀ (j : Fin N) (t : ℝ), need < target j t ↔ 0 < S j t) ∧ ∀ (t : ℝ) (Q : Finset (Fin N)) (hQ : Q.Nonempty), (∃ j ∈ Q, need < target j t) ↔ 0 < Q.sup' hQ fun (j : Fin N) => S j t

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

theorem MindFormal.result_11_13_clause_6_actual_log_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} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i j : Fin N) {need : ℝ} (hn : 0 < need) (hq1 : experiment.data.toPhysicalNoiseData.data.activity.g + need < 1) {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (hK : e K ≤ ↑H) (w : ℕ → ℝ → Fin N → ℝ) (hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1))) (hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s) (world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s) (hpos : ∀ k < K, ∀ t ∈ Set.Icc (e k) (e (k + 1)), 0 < R.pathUseful (w k) (attendedMode j) i t) :
have d := experiment.data.toPhysicalNoiseData.data; have ϑ := d.activity.g + need; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have read := fun (s : ℝ) => assembledInputs d (R.input s) (attendedMode j) (st s); have target := fun (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read s) i; have ℓ := fun (s : ℝ) => Real.log ((1 - ϑ) * read s i / (ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read s l))); have Jk := fun (k : ℕ) => R.pathUseful (w k) (attendedMode j) i; have Hk := fun (k : ℕ) => R.pathRest (w k) (attendedMode j) i; have Gl := fun (k : ℕ) (t : ℝ) => Real.log ((1 - ϑ) * Jk k t / (ϑ * Hk k t)); have jout := fun (m : ℕ) => Gl m (e m) - ℓ (e m); have jin := fun (m : ℕ) => ℓ (e m) - Gl (m - 1) (e m); have Lacc := fun (kA kB : ℕ) (t : ℝ) => (ℓ 0 + ∫ (s : ℝ) in 0..t, deriv ℓ s) + ∑ m ∈ Finset.range kA, jout m + ∑ m ∈ Finset.Ioc 0 kB, jin m; IntervalIntegrable (deriv ℓ) MeasureTheory.volume 0 (e K) ∧ (∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Ioo (e k) (e (k + 1)) → deriv ℓ s = deriv (Jk k) s / Jk k s - deriv (Hk k) s / Hk k s) ∧ (∀ k < K, ∀ t ∈ Set.Ioo (e k) (e (k + 1)), ℓ t = Lacc (k + 1) k t) ∧ (∀ (k : ℕ), 0 < k → k ≤ K → ℓ (e k) = Lacc k k (e k)) ∧ ∀ (t : ℝ), 0 < read t i → (need < target t ↔ 0 < ℓ t)

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

theorem MindFormal.result_11_12_clause_2_events_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} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i : Fin N) {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (hK : e K ≤ ↑H) (w : ℕ → ℝ → Fin N → ℝ) (q : ℕ → Fin N → ℝ) (hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1))) (hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s) (fixed : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s ∧ R.mode s = q k) :
have d := experiment.data.toPhysicalNoiseData.data; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have Iref := fun (s : ℝ) => rawInput (fun (j : Fin N) => d.drive (R.input s j) (R.mode s j) (mindValue (st s) j)) (fun (j : Fin N) => d.residue (mindTrace (st s) j)) (mindRelation (st s)) (mindActivity (st s)) i; have G := fun (k : ℕ) (t : ℝ) => R.pathInput (w k) (q k) i t; IntervalIntegrable (deriv Iref) MeasureTheory.volume 0 (e K) ∧ ∀ k < K, ∀ t ∈ Set.Ioo (e k) (e (k + 1)), Iref t = (G 0 0 + ∫ (s : ℝ) in 0..t, deriv Iref s) + ∑ m ∈ Finset.Ioc 0 k, (G m (e m) - G (m - 1) (e m))

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

theorem MindFormal.result_11_13_clause_6_log_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} (R : LearningReference experiment.data.toPhysicalNoiseData.data H) (i j : Fin N) {need : ℝ} (hn : 0 < need) (hq1 : experiment.data.toPhysicalNoiseData.data.activity.g + need < 1) {K : ℕ} (e : ℕ → ℝ) (he0 : e 0 = 0) (hlt : ∀ (k : ℕ), e k < e (k + 1)) (hK : e K ≤ ↑H) (w : ℕ → ℝ → Fin N → ℝ) (hw : ∀ k < K, ∀ (j : Fin N), AbsolutelyContinuousOnInterval (fun (s : ℝ) => w k s j) (e k) (e (k + 1))) (hwnn : ∀ k < K, ∀ s ∈ Set.Icc (e k) (e (k + 1)), 0 ≤ w k s) (world : ∀ k < K, ∀ s ∈ Set.Ioo (e k) (e (k + 1)), R.input s = w k s) (hpos : ∀ k < K, ∀ t ∈ Set.Icc (e k) (e (k + 1)), 0 < R.pathUseful (w k) (attendedMode j) i t) :
have d := experiment.data.toPhysicalNoiseData.data; have ϑ := d.activity.g + need; have st := fun (s : ℝ) => (ContinuousMap.IccExtend ⋯ R.path) s; have read := fun (s : ℝ) => assembledInputs d (R.input s) (attendedMode j) (st s); have target := fun (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (read s) i; have ℓ := fun (s : ℝ) => Real.log ((1 - ϑ) * read s i / (ϑ * (d.activity.σ + ∑ l ∈ Finset.univ.erase i, read s l))); have targetk := fun (k : ℕ) (s : ℝ) => normalizedTarget d.activity.σ d.activity.g (assembledInputs d (w k s) (attendedMode j) (st s)) i; have Jk := fun (k : ℕ) => R.pathUseful (w k) (attendedMode j) i; have Hk := fun (k : ℕ) => R.pathRest (w k) (attendedMode j) i; have Gl := fun (k : ℕ) (t : ℝ) => Real.log ((1 - ϑ) * Jk k t / (ϑ * Hk k t)); have Lacc := fun (k : ℕ) (t : ℝ) => (Gl 0 0 + ∫ (s : ℝ) in 0..t, deriv ℓ s) + ∑ m ∈ Finset.Ioc 0 k, (Gl m (e m) - Gl (m - 1) (e m)); IntervalIntegrable (deriv ℓ) MeasureTheory.volume 0 (e K) ∧ (∀ k < K, ∀ᵐ (s : ℝ), s ∈ Set.Ioo (e k) (e (k + 1)) → deriv ℓ s = deriv (Jk k) s / Jk k s - deriv (Hk k) s / Hk k s) ∧ ∀ k < K, ∀ t ∈ Set.Icc (e k) (e (k + 1)), Gl k t = Lacc k t ∧ (need < targetk k t ↔ 0 < Lacc k t) ∧ (R.input t = w k t → ℓ t = Gl k t ∧ target t = targetk k t)

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