MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch06.ResponsiveConsequences.NativeRecursion

theorem MindFormal.ResponsiveConsequences.native_prefix_recursion {N n : ℕ} {T : Type u_1} {Λ : Type u_2} [Fintype T] [Fintype Λ] (H : NNReal) (G : PhysicalGlobalData N n T Λ) (τ : Bool → ℕ → ℝ) (w : Bool → ℕ → Fin N) (R : ℕ → LearningReference G.data H) (Q : ℕ → ClockHistories N) (d0 b L Lu dstream Fmode Lret : ℝ) (hd0 : 0 ≤ d0) (hb : 0 ≤ b) (hL : 0 ≤ L) (hLu : 0 ≤ Lu) (hstream : 0 ≤ dstream) (hmode : 0 ≤ Fmode) (hret : 0 ≤ Lret) (r : ℕ → ℝ) (Lg Ls : ℝ) (hg : 0 ≤ Lg) (hs : 0 ≤ Ls) (event : ℕ → ℝ) (C : ℕ → Bool → ℝ) (hC : ∀ (j : ℕ) (c : Bool), 0 ≤ C j c) (hgroup : ∀ (j : ℕ), ∑ c : Bool, C j c ≤ event j) (start : ∀ (j : ℕ), ‖↑G.start - ↑(R j).start‖ ≤ d0) (driver : ∀ (t : ↑(HorizonTime ↑H)), ‖G.driver ⟨↑t, ⋯⟩‖ ≤ b) :
have D := G.toFinite H; have P := fun (j : ℕ) => CoupledPrefix.step^[j] D.flow.initial; have A := 2 * Real.exp (2 * L * ↑H); have Γ := 2 * Fmode + Lu * Lret; have z := d0 + b + Lu * dstream; have K := timeCoefficient A Γ event; have δ := fun (j : ℕ) => K j * z; have err := fun (j : ℕ) => A * (1 + Γ * K j) * z; have mismatch := fun (j : ℕ) (t : ℝ) => Lu * ‖D.world.input (↑((P j).history false)) t - (R j).input t‖ + Fmode * ‖historyPulse (D.pause true) (↑((P j).history true)) t - (R j).mode t‖; (∀ (j : ℕ), err j < r j) → (∀ (j : ℕ), (∀ (c : Bool), ∀ k < (P j).count c, (↑↑((P j).history c) k).2 = Sum.inl (w c k)) → (∀ (c : Bool), ∀ k < (P j).count c, ↑↑(Q j c) k = (τ c k, Sum.inl (w c k))) ∧ (∀ (c : Bool) (k : ℕ), (P j).count c ≤ k → (↑↑(Q j c) k).2 = Sum.inr ()) ∧ (∀ (t : ℝ), (R j).mode t = historyPulse (D.pause true) (↑(Q j true)) t) ∧ ∫⁻ (t : ℝ) in Set.Ioc 0 ↑H, ENNReal.ofReal ‖D.world.input (↑((P j).history false)) t - (R j).input t‖ ≤ ENNReal.ofReal (dstream + Lret * prefixTimeError (P j) τ) ∧ (∀ (t : ↑(HorizonTime ↑H)) (s : MindState (Fin N) n T Λ), PhysicalMindState s → ‖s - (R j).path t‖ ≤ r j → ‖assembledDrift D.data (D.world.input ↑((P j).history false) ↑t) (historyPulse (D.pause true) ↑((P j).history true) ↑t) s - learningForcing D.data ⋯ (R j).input (R j).mode (R j).path ↑t‖ ≤ L * ‖s - (R j).path t‖ + mismatch j ↑t) ∧ (∀ (c : Bool) (t : ↑(HorizonTime ↑H)) (s : PhysicalState N n T Λ), ‖↑s - (R j).path t‖ ≤ r j → ∀ (i : Fin N), |(D.guard c) s i - (D.guard c) ⟨(R j).path t, ⋯⟩ i| ≤ Lg * ‖↑s - (R j).path t‖) ∧ (∀ (c : Bool) (t : ↑(HorizonTime ↑H)) (s : PhysicalState N n T Λ), ‖↑s - (R j).path t‖ ≤ r j → ∀ (i : Fin N), |D.score c s i - D.score c ⟨(R j).path t, ⋯⟩ i| ≤ Ls * ‖↑s - (R j).path t‖) ∧ ∀ (c : Bool), have k := (P j).count c; have rbar := referenceRelease D.flow τ c k; have tbar := τ c k; have winner := w c k; (C j c = 0 ∧ ∀ t ∈ Set.Icc (max 0 (rbar - δ j)) ↑H, ∀ (i : Fin N), (D.guard c) ((R j).realPath t) i + Lg * err j < 0) ∨ (C j c = 1 ∧ tbar = rbar ∧ rbar + δ j ≤ ↑H ∧ (∀ t ∈ Set.Icc (max 0 (rbar - δ j)) (rbar + δ j), Lg * err j ≤ (D.guard c) ((R j).realPath t) winner) ∧ ∀ t ∈ Set.Icc (max 0 (rbar - δ j)) (rbar + δ j), ∀ (i : Fin N), i ≠ winner → 0 ≤ (D.guard c) ((R j).realPath t) i + Lg * err j → D.score c ((R j).realPath t) i + Ls * err j < D.score c ((R j).realPath t) winner - Ls * err j) ∨ ∃ (m : ℝ), 0 < m ∧ C j c = 1 + 2 * Lg / m ∧ rbar ≤ tbar ∧ have ε := Lg * err j + m * δ j / 2; have rad := 2 * ε / m; 0 ≤ tbar - rad ∧ tbar + rad ≤ ↑H ∧ (∀ t ∈ Set.Ico (max 0 (rbar - δ j)) tbar, (D.guard c) ((R j).realPath t) winner ≤ -m * (tbar - t)) ∧ (∀ t ∈ Set.Icc tbar (tbar + rad), m * (t - tbar) ≤ (D.guard c) ((R j).realPath t) winner) ∧ (∀ t ∈ Set.Ico (max 0 (rbar - δ j)) (tbar - rad), ∀ (i : Fin N), i ≠ winner → (D.guard c) ((R j).realPath t) i + ε < 0) ∧ ∀ t ∈ Set.Icc (tbar - rad) (tbar + rad), ∀ (i : Fin N), i ≠ winner → 0 ≤ (D.guard c) ((R j).realPath t) i + Lg * err j → Lg * err j ≤ (D.guard c) ((R j).realPath t) winner ∧ D.score c ((R j).realPath t) i + Ls * err j < D.score c ((R j).realPath t) winner - Ls * err j) → (∀ (j : ℕ), prefixTimeError (P j) τ ≤ δ j ∧ ∀ (c : Bool), ∀ k < (P j).count c, (↑↑((P j).history c) k).2 = Sum.inl (w c k)) ∧ ∃ (j : ℕ), 0 < j ∧ j ≤ D.flow.initial.budget + 1 ∧ (P j).history = D.coupledHistory ∧ prefixTimeError (P j) τ ≤ δ j ∧ (∀ (c : Bool), ∀ k < (P j).count c, (↑↑((P j).history c) k).2 = Sum.inl (w c k)) ∧ ∑ c : Bool, (P j).count c ≤ 2 + ⌊↑H / G.pause false⌋₊ + ⌊↑H / G.pause true⌋₊ ∧ (∀ (c : Bool), ∀ k < (P j).count c, |(↑↑((P j).history c) k).1 + G.pause c - (τ c k + G.pause c)| ≤ δ j) ∧ (∀ (t : ↑(HorizonTime ↑H)), ‖G.state ↑t - (R j).path t‖ ≤ err j ∧ ‖G.state ↑t - (R j).path t‖ < r j) ∧ ∀ (c : Bool), C j c = 0

SR13's induction on the existing coupled native construction. Its hypotheses are coefficient and reference-margin tests on matching causal prefixes. Neither an event estimate nor a one-step recursion is supplied.