theorem
MindFormal.ChoicePreparations.Pool.first_from_scores
{N : ℕ}
(mask : Fin N → Bool)
(bar ν H e : ℝ)
(targets needs : Fin N → ℝ)
(score : ℝ → Fin N → ℝ)
{r : ℝ}
(S : NativeSearch (fun (t : ℝ) (i : Fin N) => if mask i = true then score t i - bar else -1) score r H)
(hr : r = 0)
(hν : 0 < ν)
(he : 0 ≤ e)
(hn : ∀ (i : Fin N), mask i = true → e < needs i)
(enc :
∀ t ∈ Set.Icc 0 H,
∀ (i : Fin N), mask i = true → |score t i - (referenceActivity ν (targets i) 0 t + bar - needs i)| ≤ e)
(w : Fin N)
(hw : mask w = true)
(hH : 0 ≤ H)
(deadline : needs w + e ≤ referenceActivity ν (targets w) 0 H)
(pairs : ∀ (j : Fin N), j ≠ w → mask j = true → 0 < targets j → (needs w + e) * targets j < (needs j - e) * targets w)
:
PI1.4/RT1.7 on enabled outputs only. Nonoutputs require no artificial score calibration; unoffered outputs are still included in every test.
theorem
MindFormal.ChoicePreparations.Pool.native_probability
{Ω : 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)
(s0 : PhysicalState N n T Λ)
(y : C(↑(HorizonTime ↑H), MindState (Fin N) n T Λ))
(force : ℝ → MindState (Fin N) n T Λ)
(hf : IntervalIntegrable force MeasureTheory.volume 0 ↑H)
(hy : reflectedForcing ⋯ mindFloor force hf (↑s0) 0 = y)
(hy0 : y ⟨0, ⋯⟩ = ↑s0)
(stream : Set Ω)
(Gd : CoordinateIndex (Fin N) n T Λ → ℝ)
(mismatch : Ω → ℝ → ℝ)
(failure d0 b L A R clearance : ℝ)
(hm : MeasurableSet stream)
(hmass : 1 - failure ≤ E.ground.μ.real stream)
(hd0 : 0 ≤ d0)
(hb : 0 < b)
(hL : 0 ≤ L)
(hA : 0 ≤ A)
(hR : 0 ≤ R)
(hstart : ∀ ω ∈ stream, ‖↑(E.start.state ω) - ↑s0‖ ≤ d0)
(hmis : ∀ ω ∈ stream, IntervalIntegrable (mismatch ω) MeasureTheory.volume 0 ↑H)
(hbudget : ∀ ω ∈ stream, ∀ (t : ↑(HorizonTime ↑H)), ∫ (s : ℝ) in 0..↑t, mismatch ω s ≤ A + R)
(hdrift :
∀ ω ∈ stream,
∀ (t : ↑(HorizonTime ↑H)) (s : MindState (Fin N) n T Λ),
PhysicalMindState s →
‖s - y t‖ ≤ clearance →
‖assembledDrift E.mind.drift ((E.supportHistory ω).input ↑t) ((E.supportHistory ω).pulse ↑t) s - force ↑t‖ ≤ L * ‖s - y t‖ + mismatch ω ↑t)
(hloading :
∀ ω ∈ stream,
∀ (t : ↑(HorizonTime ↑H)) (s : MindState (Fin N) n T Λ),
PhysicalMindState s →
‖s - y t‖ ≤ clearance →
∀ (c : CoordinateIndex (Fin N) n T Λ),
(∃ (i : Fin N) (l : Λ), c = Sum.inr (Sum.inr (Sum.inr (i, l)))) ∨ ∑ j : J, E.mind.amplitude (s, (E.supportHistory ω).input ↑t, (E.supportHistory ω).pulse ↑t) c j ^ 2 ≤ Gd c ^ 2)
(hroom : stateError H d0 b L A R < clearance)
(ν LO refError : ℝ)
(targets needs : Fin N → ℝ)
(hν : 0 < ν)
(hLO : 0 ≤ LO)
(hrefError : 0 ≤ refError)
(hread :
∀ (t : ↑(HorizonTime ↑H)) (s : PhysicalState N n T Λ),
‖↑s - y t‖ ≤ clearance →
∀ (i : Fin N),
E.mind.reads.outputs i = true →
|(E.mind.reads.scores false) s i - (referenceActivity ν (targets i) 0 ↑t + E.mind.reads.actionBar - needs i)| ≤ LO * ‖↑s - y t‖ + refError)
(w : Fin N)
(hw : E.mind.reads.outputs w = true)
(hne : ∀ (i : Fin N), E.mind.reads.outputs i = true → LO * stateError H d0 b L A R + refError < needs i)
(deadline : needs w + (LO * stateError H d0 b L A R + refError) ≤ referenceActivity ν (targets w) 0 ↑H)
(pairs :
∀ (j : Fin N),
j ≠ w →
E.mind.reads.outputs j = true →
0 < targets j →
(needs w + (LO * stateError H d0 b L A R + refError)) * targets j < (needs j - (LO * stateError H d0 b L A R + refError)) * targets w)
: