theorem
MindFormal.Logic.Reasoning.pending_event
{Ω : 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)
(H : NNReal)
(hH : H ≤ E.horizon)
{refData : MindDriftData (Fin N) n T Λ}
(R : Ω → LearningReference refData H)
(active : Ω → ↑(HorizonTime ↑H) → Prop)
(active_prefix : ∀ (ω : Ω) (s t : ↑(HorizonTime ↑H)), s ≤ t → active ω t → active ω s)
(stream : Set Ω)
(allowance loading : CoordinateIndex (Fin N) n T Λ → ℝ)
(mismatch : Ω → ℝ → ℝ)
(failure e0 L delta clearance : ℝ)
(ha : ∀ (c : CoordinateIndex (Fin N) n T Λ), 0 < allowance c)
(hm : MeasurableSet stream)
(hmass : 1 - failure ≤ E.ground.μ.real stream)
(hstart : ∀ ω ∈ stream, ‖↑(E.start.state ω) - ↑(R ω).start‖ ≤ e0)
(he0 : 0 ≤ e0)
(hL : 0 ≤ L)
(hd : 0 ≤ delta)
(hi : ∀ ω ∈ stream, IntervalIntegrable (mismatch ω) MeasureTheory.volume 0 ↑H)
(hb : ∀ ω ∈ stream, ∀ (t : ↑(HorizonTime ↑H)), active ω t → ∫ (s : ℝ) in 0..↑t, mismatch ω s ≤ delta)
(drift :
∀ ω ∈ stream,
∀ (t : ↑(HorizonTime ↑H)),
active ω t →
∀ (s : MindState (Fin N) n T Λ),
PhysicalMindState s →
‖s - (R ω).path t‖ ≤ clearance →
‖assembledDrift E.mind.drift ((E.supportHistory ω).input ↑t) ((E.supportHistory ω).pulse ↑t) s - learningForcing refData ⋯ (R ω).input (R ω).mode (R ω).path ↑t‖ ≤ L * ‖s - (R ω).path t‖ + mismatch ω ↑t)
(amplitude :
∀ ω ∈ stream,
∀ (t : ↑(HorizonTime ↑H)),
active ω t →
∀ (s : MindState (Fin N) n T Λ),
PhysicalMindState s →
‖s - (R ω).path t‖ ≤ clearance →
∀ (c : CoordinateIndex (Fin N) n T Λ),
∑ j : J, E.mind.amplitude (s, (E.supportHistory ω).input ↑t, (E.supportHistory ω).pulse ↑t) c j ^ 2 ≤ loading c ^ 2)
(hroom : 2 * (e0 + ‖allowance‖ + delta) * Real.exp (2 * L * ↑H) < clearance)
:
∃ (good : Set Ω),
MeasurableSet good ∧ good ⊆ stream ∧ 1 - min 1
(failure + ∑ c : CoordinateIndex (Fin N) n T Λ with loading c ≠ 0,
2 * Real.exp (-(allowance c ^ 2 / (2 * loading c ^ 2 * ↑H)))) ≤ E.ground.μ.real good ∧ ∀ ω ∈ good,
E.own.data.toPhysicalNoiseData.Good ω ∧ ∀ (t : ↑(HorizonTime ↑H)),
active ω t →
‖(E.supportHistory ω).state ↑t - (R ω).path t‖ ≤ 2 * (e0 + ‖allowance‖ + delta) * Real.exp (2 * L * ↑H) ∧ ‖(E.supportHistory ω).state ↑t - (R ω).path t‖ < clearance
One noise event serves every tested pending prefix. active is a
downward closed time predicate, not an assumed event or winner. A stopped
input/focus envelope may be set to zero after that prefix. Local coefficient
tests are needed only while active. Own state-dependent loading is retained.