theorem
MindFormal.ResponsiveConsequences.native_completed
{N n : ℕ}
{T : Type u_1}
{Λ : Type u_2}
[Fintype T]
[Fintype Λ]
(H : NNReal)
(G : PhysicalGlobalData N n T Λ)
(τ : Bool → ℕ → ℝ)
(w : Bool → ℕ → Fin N)
(referenceStart : PhysicalState N n T Λ)
(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 : ‖↑G.start - ↑referenceStart‖ ≤ d0)
(driver : ∀ (t : ↑(HorizonTime ↑H)), ‖G.driver ⟨↑t, ⋯⟩‖ ≤ b)
:
have Z :=
{ data := G.data, regular := ⋯, rate_nonneg := ⋯, start := referenceStart, driver := 0, driver_zero := ⋯,
driver_trace := ⋯, read := G.read, measurable := ⋯, nonnegative := ⋯, bounded := ⋯, pause := G.pause,
pause_pos := ⋯, reads := G.reads };
have R := fun (j : ℕ) => prefix_reference Z H (Q j);
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 = emptyActionSlot (Fin N)) ∧ (∀ (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 : ℕ),
(∀ (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,
have rbar := if k = 0 then 0 else τ c (k - 1) + G.pause c;
have g := fun (t : ℝ) => (G.reads.guards c) ((R j).realPath t);
have f := fun (t : ℝ) => (G.reads.scores c) ((R j).realPath t);
rbar ≤ τ c k ∧ τ c k ≤ ↑H ∧ 0 ≤ g (τ c k) (w c k) ∧ (∀ (t : ℝ), rbar ≤ t → t < τ c k → ∀ (i : Fin N), g t i < 0) ∧ ∀ (i : Fin N), i ≠ w c k → 0 ≤ g (τ c k) i → f (τ c k) i < f (τ c k) (w c k)) →
∃ (j : ℕ),
0 < j ∧ j ≤ D.flow.initial.budget + 1 ∧ (P j).history = D.coupledHistory ∧ Q j = (Z.toFinite H).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 ∈ Set.Icc 0 ↑H, ‖G.state t - Z.state t‖ ≤ err j ∧ ‖G.state t - Z.state t‖ < r j
SR13 completed on the original physical run. All prefix state, input, mode, root, release, expiry and label bounds are derived by the causal induction. Numerical qualification/earlier/rival tests on completed reference prefixes identify the terminal comparison with its own native zero-driver run; neither terminal native consistency nor final discrepancy is a premise.