theorem
MindFormal.ResponsiveConsequences.native_sharpening
{Ω : Type u_1}
[MeasurableSpace Ω]
{N n : ℕ}
{T : Type u_2}
{Λ : Type u_3}
{J : Type u_4}
[Fintype T]
[Fintype Λ]
[Fintype J]
(E : ℝ → StateExperiment Ω N n T Λ J)
(I : EquationInstance N n T Λ J)
(B : EquationGround Ω J)
(world : ℝ → FiniteActionHistory (Fin N) → Ω → Fin N → ℝ)
(startState : Ω → PhysicalState N n T Λ)
(mind_fixed :
∀ (χ : ℝ),
0 < χ →
(E χ).mind = { activity := I.activity, transform := I.transform, β := I.β, η := I.η, τ := I.τ, rate := I.rate,
sensed := I.sensed, primary := I.primary, drive := I.drive, residue := I.residue, presence := I.presence,
delivery := I.delivery, response := I.response, gain := I.gain, reads := I.reads, pause := I.pause,
amplitude := fun (z : InstanceArguments N n T Λ) (c : CoordinateIndex (Fin N) n T Λ) (j : J) =>
χ * I.amplitude z c j })
(ground_fixed : ∀ (χ : ℝ), 0 < χ → (E χ).ground = B)
(world_fixed : ∀ (χ : ℝ), 0 < χ → (E χ).world.world = world)
(start_fixed : ∀ (χ : ℝ), 0 < χ → (E χ).start.state = startState)
(H : NNReal)
(hH0 : 0 < H)
(hH : ∀ (χ : ℝ), 0 < χ → H ≤ (E χ).horizon)
(stream : ℝ → Set Ω)
(εstream εinit : ℝ → ℝ)
(streamMass : ∀ (χ : ℝ), 0 < χ → (E χ).ground.μ.real (stream χ)ᶜ ≤ εstream χ)
(times : Ω → Bool → ℕ → ℝ)
(labels : Ω → Bool → ℕ → Fin N)
(referenceStarts : Ω → PhysicalState N n T Λ)
(prefixes : Ω → ℕ → 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)
(initialMass :
∀ (χ : ℝ), 0 < χ → (E χ).ground.μ.real {ω : Ω | d0 < ‖↑((E χ).start.state ω) - ↑(referenceStarts ω)‖} ≤ εinit χ)
(modes : ℝ → Ω → ℝ → Set ((Fin N → ℝ) × (Fin N → ℝ)))
(attained :
∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
∀ t ∈ Set.Icc 0 ↑H, (((E χ).supportHistory ω).input t, ((E χ).supportHistory ω).pulse t) ∈ modes χ ω t)
(X Xr ρW ρv KW Kv : ℝ)
(loading : CoordinateIndex (Fin N) n T Λ → ℝ)
(hXr : X ≤ Xr)
(hr0 : ∀ (χ : ℝ), 0 < χ → ∀ ω ∈ stream χ, ∀ (i : Fin N) (l : Λ), mindTrace (↑((E χ).start.state ω)) i l ≤ Xr)
(hKW : 0 ≤ KW)
(hKv : 0 ≤ Kv)
(capW :
∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
∀ t ∈ Set.Icc 0 ↑H,
∀ uq ∈ modes χ ω t,
∀ (s : MindState (Fin N) n T Λ),
PhysicalMindState s →
InCorridorBox (↑((E χ).start.state ω)) X Xr ρW ρv s →
∀ (i j : Fin N), |assembledDrift (E χ).mind.drift uq.1 uq.2 s (Sum.inl (i, j))| ≤ KW)
(capv :
∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
∀ t ∈ Set.Icc 0 ↑H,
∀ uq ∈ modes χ ω t,
∀ (s : MindState (Fin N) n T Λ),
PhysicalMindState s →
InCorridorBox (↑((E χ).start.state ω)) X Xr ρW ρv s →
∀ (i : Fin N) (b : Fin n) (τ : T),
|assembledDrift (E χ).mind.drift uq.1 uq.2 s (Sum.inr (Sum.inr (Sum.inl (i, b, τ))))| ≤ Kv)
(capNoise :
∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
∀ t ∈ Set.Icc 0 ↑H,
∀ uq ∈ modes χ ω t,
∀ (s : MindState (Fin N) n T Λ),
PhysicalMindState s →
InCorridorBox (↑((E χ).start.state ω)) X Xr ρW ρv s →
∀ (c : CoordinateIndex (Fin N) n T Λ), ∑ j : J, I.amplitude (s, uq.1, uq.2) c j ^ 2 ≤ loading c ^ 2)
(closeW : KW * ↑H + b < ρW)
(closev : Kv * ↑H + b < ρv)
(closex :
∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
∀ (i : Fin N), max (mindActivity (↑((E χ).start.state ω)) i) (1 - (E χ).mind.drift.activity.g) + 2 * b ≤ X)
(tests :
∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
have G := (E χ).supportHistory ω;
have τ := times ω;
have w := labels ω;
have referenceStart := referenceStarts ω;
have Q := prefixes ω;
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) ≤ ⋯) ∧ (∀ t ∈ Set.Ico (max 0 (rbar - δ j)) (tbar - rad), ⋯) ∧ ∀ t ∈ Set.Icc (tbar - rad) (tbar + rad), ⋯) ∧ ∀ (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))
(εstream_limit : Filter.Tendsto εstream (nhdsWithin 0 (Set.Ioi 0)) (nhds 0))
(εinit_limit : Filter.Tendsto εinit (nhdsWithin 0 (Set.Ioi 0)) (nhds 0))
:
have cap := 2 * (2 + ⌊↑H / I.pause false⌋₊ + ⌊↑H / I.pause true⌋₊) + 1;
have A := 2 * Real.exp (2 * L * ↑H);
have Γ := 2 * Fmode + Lu * Lret;
have err := A * (1 + Γ * timeCoefficient A Γ event cap) * (d0 + b + Lu * dstream);
let Z := fun (χ : ℝ) (ω : Ω) =>
have __src := (E χ).supportHistory ω;
{ data := __src.data, regular := ⋯, rate_nonneg := ⋯, start := referenceStarts ω, driver := 0, driver_zero := ⋯,
driver_trace := ⋯, read := __src.read, measurable := ⋯, nonnegative := ⋯, bounded := ⋯, pause := __src.pause,
pause_pos := ⋯, reads := __src.reads };
have R := fun (χ : ℝ) (ω : Ω) => ResponsivePerturbation.reference (Z χ ω) ⋯ H;
(∀ (χ : ℝ), 0 < χ → (E χ).mind.drift = I.drift ∧ (E χ).world.world = world ∧ (E χ).start.state = startState) ∧ (∀ (i : Fin N) (α : ℝ),
(∀ (χ : ℝ), 0 < χ → ∀ ω ∈ stream χ, ∀ t ∈ Set.Icc 0 ↑H, (R χ ω).target i t ≤ α) →
(∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
(ContinuousMap.IccExtend ⋯ (R χ ω).path) 0 (Sum.inr (Sum.inl i)) < α ∧ err < (α - (ContinuousMap.IccExtend ⋯ (R χ ω).path) 0 (Sum.inr (Sum.inl i))) * Real.exp (-I.drift.activity.ν * ↑H)) →
Filter.Tendsto
(fun (χ : ℝ) =>
B.μ.real {ω : Ω | ∃ t ∈ Set.Icc 0 ↑H, α ≤ ((E χ).supportHistory ω).state t (Sum.inr (Sum.inl i))})
(nhdsWithin 0 (Set.Ioi 0)) (nhds 0) ∧ Filter.Tendsto
(fun (χ : ℝ) =>
B.μ.real {ω : Ω | ∃ t ∈ Set.Icc 0 ↑H, α ≤ ((E χ).supportHistory ω).state t (Sum.inr (Sum.inl i))}ᶜ)
(nhdsWithin 0 (Set.Ioi 0)) (nhds 1)) ∧ ∀ (i : Fin N) (α access Tlow dx : ℝ),
0 ≤ access →
0 < dx →
0 ≤ α →
α + dx < Tlow →
err ≤ dx →
access + Real.log (Tlow / (Tlow - α - dx)) / I.drift.activity.ν ≤ ↑H →
(∀ (χ : ℝ),
0 < χ →
∀ ω ∈ stream χ,
∀ t ∈ Set.Ioc access (access + Real.log (Tlow / (Tlow - α - dx)) / I.drift.activity.ν),
Tlow ≤ (R χ ω).target i t) →
Filter.Tendsto
(fun (χ : ℝ) =>
B.μ.real
{ω : Ω | ∃ t ∈ Set.Icc 0 ↑H, α ≤ ((E χ).supportHistory ω).state t (Sum.inr (Sum.inl i))})
(nhdsWithin 0 (Set.Ioi 0)) (nhds 1)
SR12–13: all innovations are scaled by chi in the same primitive mind, world, start and ground. Numerical prefix certificates derive the native error; no error or desired event is assumed. The two conclusions keep their distinct native ceiling / attained sustained-target holds and finite-horizon clearances.