theorem
MindFormal.AstraCarried.conditional_comparison
{Ω : Type u_1}
[MeasurableSpace Ω]
{N : ℕ}
(C : Calendar N)
(P : Parameters)
(m : ℚ)
(hm : 0 < m)
(hm1 : m ≤ 1)
{e : ℝ}
(he : 0 < e)
(G : EquationGround Ω (Sources N 1))
(hG : CompletedEquationGround G)
(H : NNReal)
(c : ↑(HorizonTime ↑H))
(hc : ↑c < ↑H)
(z : PhysicalState N 1 Unit Unit)
{B R δ b : ℝ}
(hB : 0 ≤ B)
(hR : 0 ≤ R)
(hδ : 0 ≤ δ)
(hb : 0 < b)
(hyB : ∀ (t : ↑(HorizonTime ↑⟨↑H - ↑c, ⋯⟩)), ‖(referencePath (C.shift ↑c) P z ⟨↑H - ↑c, ⋯⟩) t‖ ≤ B)
(hclose :
2 * (δ + b + ↑m * fullBoxDriftBound (gainComparison (coefficients N P 1) 1) ⋯ (↑C.bound) B * (↑H - ↑c)) * Real.exp (2 * ↑(fullBoxLipschitz (gainComparison (coefficients N P 1) 1) ⋯ (↑C.bound) (B + R)) * (↑H - ↑c)) < R)
(hA : 0 < G.μ.real (entrance (C.experiment ⋯ (P.withGain m hm) e he G hG H) ⟨↑c, ⋯⟩ (↑z) δ))
:
have E := C.experiment ⋯ (P.withGain m hm) e he G hG H;
have A := entrance E ⟨↑c, ⋯⟩ (↑z) δ;
have y := referencePath (C.shift ↑c) P z ⟨↑H - ↑c, ⋯⟩;
1 - 2 * ↑(Fintype.card (CoordinateIndex (Fin N) 1 Unit Unit)) * Real.exp (-(b ^ 2 / (2 * e ^ 2 * (↑H - ↑c)))) ≤ G.μ.real (A ∩ within E (↑c) (↑H - ↑c) y R) / G.μ.real A
Conditional confidence uses only the known entrance state event. The preparation's possibly tiny price is not charged against the future noise bill. One joint event controls the whole moving state and battery.