MindFormal v1.0.0One Mind

MindFormal.Chapters.Ch13.DescribedCashMargins

theorem MindFormal.DescribedChoice.cash_margins_price_native {Ω : 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) (M : ℕ) (endTime : NNReal) (hend : endTime ≤ E.horizon) (H : Fin M → NNReal) (cap : ℕ → NNReal) (hcap0 : cap 0 = 0) (hcap : ∀ (k : Fin M), cap ↑k + H k ≤ endTime) (hstep : ∀ (k : Fin M), cap ↑k + H k ≤ cap (↑k + 1)) (R : (k : Fin M) → Ω → FrozenReference E.mind.drift (H k)) (A : Fin M → Set Ω) (hA : ∀ (k : Fin M), MeasurableSet (A k)) (ε : Fin M → ℝ) (hε : ∀ (k : Fin M), 1 - ε k ≤ E.ground.μ.real (A k)) (d0 b L residual inputBill room : Fin M → ℝ) (range : Fin M → NNReal) (hrange : ∀ (k : Fin M), 0 < range k) (hd0 : ∀ (k : Fin M), 0 ≤ d0 k) (hb : ∀ (k : Fin M), 0 < b k) (hL : ∀ (k : Fin M), 0 ≤ L k) (hresidual : ∀ (k : Fin M), 0 ≤ residual k) (hinputBill : ∀ (k : Fin M), 0 ≤ inputBill k) (hinitial : ∀ (h : 0 < M), ∀ ω ∈ A ⟨0, h⟩, ‖(E.supportHistory ω).state 0 - ↑(R ⟨0, h⟩ ω).start‖ ≤ d0 ⟨0, h⟩) (hcarry : ∀ (k : Fin M) (hk : ↑k + 1 < M), ∀ ω ∈ A ⟨↑k + 1, hk⟩, ∀ (t : ↑(HorizonTime ↑(H k))), ↑(queryCutValue E (↑k + 1) ω) = ↑(queryCutValue E (↑k) ω) + ↑t → ∀ (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) → ‖↑x - ↑(R ⟨↑k + 1, hk⟩ ω).start‖ ≤ d0 ⟨↑k + 1, hk⟩) (m : Fin M → Ω → ℝ → ℝ) (hm : ∀ (k : Fin M), ∀ ω ∈ A k, IntervalIntegrable (m k ω) MeasureTheory.volume 0 ↑(H k)) (hbudget : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), ∫ (s : ℝ) in 0..↑t, m k ω s ≤ residual k + inputBill k) (hlocal : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (hist : FiniteActionHistory (Fin N)), ChronologicalHistory hist → ∀ (t : ↑(HorizonTime ↑(H k))) (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ room k → ∀ (q : Fin N → ℝ), (∀ (i : Fin N), q i ∈ {0, 1}) → ‖assembledDrift E.mind.drift (strictPastInput E.world.world (↑(queryCutValue E (↑k) ω) + ↑t) hist ω) q ↑x - frozenForcing E.mind.drift ⋯ (R k ω).input (R k ω).mode (R k ω).path ↑t‖ ≤ L k * ‖↑x - (R k ω).path t‖ + m k ω ↑t) (hgeometry : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), room k + ‖(R k ω).path t - ↑(R k ω).start‖ + d0 k < ↑(range k)) (G : Fin M → innovationIndex N n T → ℝ) (hV : ∀ (k : Fin M) (i : innovationIndex N n T), 0 < G k i) (hloading : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (s0 : PhysicalState N n T Λ), ‖↑s0 - ↑(R k ω).start‖ ≤ d0 k → ∀ (x : NNReal → PhysicalState N n T Λ) (hist : NNReal → FiniteActionHistory (Fin N)), (∀ (s : NNReal), ChronologicalHistory (hist s)) → ∀ (q : NNReal → Fin N → ℝ), (∀ (s : NNReal) (i : Fin N), q s i ∈ {0, 1}) → ∀ (i : innovationIndex N n T), ∫⁻ (s : NNReal) in Set.Ioc 0 E.horizon, if ↑(queryCutValue E (↑k) ω) < ↑s ∧ ↑s ≤ ↑(queryCutValue E (↑k) ω) + ↑(H k) ∧ ‖↑(x s) - ↑s0‖ ≤ ↑(range k) then ∑ j : J, ‖E.mind.amplitude (↑(x s), strictPastInput E.world.world (↑s) (hist s) ω, q s) (innovationRow i) j‖ₑ ^ 2 else 0 ∂MathFin.ItoIntegralL2.timeMeasure ≤ ENNReal.ofReal (G k i)) (hroom : ∀ (k : Fin M), errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) < room k) (LO : Fin M → ℝ) (hLO : ∀ (k : Fin M), 0 ≤ LO k) (hread : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))) (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ room k → ∀ (i : Fin N), |(E.mind.reads.scores false) x i - referenceScore E (R k ω) t i| ≤ LO k * ‖↑x - (R k ω).path t‖) {C : Type u_5} (port : Fin M → Fin 2 ↪ Fin N) (cell : Fin M → C) (amount : Fin M → Ω → ℝ) (F : C → Ω → ℝ → ℝ) (Q : C → Ω → ℝ) (e : C → ℝ) (χ : Fin M → Ω → ℝ) (hχ : ∀ (k : Fin M) (ω : Ω), 0 < χ k ω) (hports : ∀ (k : Fin M) (i : Fin 2), E.mind.reads.outputs ((port k) i) = true) (hcontrast : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), referenceScore E (R k ω) t ((port k) 0) - referenceScore E (R k ω) t ((port k) 1) = χ k ω * (Q (cell k) ω - F (cell k) ω (amount k ω))) (hband : ∀ (k : Fin M), ∀ ω ∈ A k, 2 * (LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k)) ≤ χ k ω * e (cell k)) (hdeadline : ∀ (k : Fin M), ∀ ω ∈ A k, E.mind.reads.actionBar ≤ max (referenceScore E (R k ω) ⟨↑(H k), ⋯⟩ ((port k) 0)) (referenceScore E (R k ω) ⟨↑(H k), ⋯⟩ ((port k) 1)) - LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k)) (hoffmenu : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))) (i : Fin N), i ≠ (port k) 0 → i ≠ (port k) 1 → E.mind.reads.outputs i = true → referenceScore E (R k ω) t i + LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) < E.mind.reads.actionBar) (heligible : ∀ (k : Fin M), queryPause E ↑k ≤ ↑(H k)) (B : Set Ω) (hB : MeasurableSet B) (εinstrument : ℝ) (hBprob : 1 - εinstrument ≤ E.ground.μ.real B) (decode : C → Ω → (Fin M → Fin N ⊕ Unit) → Option ℝ) (lo hi : C → Ω → ℝ) (grid tolerance : C → ℝ) (represented : C → Ω → Set ℝ) (point : C → Bool) (hleft : ∀ (k : Fin M) (ω : Ω), point (cell k) = false → amount k ω < lo (cell k) ω → F (cell k) ω (amount k ω) < Q (cell k) ω - e (cell k)) (hright : ∀ (k : Fin M) (ω : Ω), point (cell k) = false → hi (cell k) ω < amount k ω → Q (cell k) ω + e (cell k) < F (cell k) ω (amount k ω)) (hsound : ∀ ω ∈ B, ∀ (word : Fin M → Fin N ⊕ Unit) (c : C) (r : ℝ), decode c ω word = some r → ∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ (word a = Sum.inl ((port a) 0)) ≠ (word b = Sum.inl ((port b) 0)) ∧ amount b ω - amount a ω + tolerance c ≤ grid c ∧ r ∈ Set.Icc (amount a ω - tolerance c) (amount b ω + tolerance c) ∧ r ∈ represented c ω) (htotal : ∀ ω ∈ B, ∀ (word : Fin M → Fin N ⊕ Unit) (c : C), (∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ word a = Sum.inl ((port a) 0) ∧ word b = Sum.inl ((port b) 1)) → ∃ (r : ℝ), decode c ω word = some r) (sign : C → ℝ) (hsign : ∀ (c : C), |sign c| = 1) (root slope Ilo Ihi : C → Ω → ℝ) (hpoint : ∀ (c : C) (ω : Ω), point c = true → lo c ω = root c ω - e c / slope c ω ∧ hi c ω = root c ω + e c / slope c ω) (hpointData : ∀ (c : C) (ω : Ω), point c = true → root c ω ∈ Set.Icc (Ilo c ω) (Ihi c ω) ∧ F c ω (root c ω) = Q c ω ∧ 0 < slope c ω ∧ 0 ≤ e c ∧ ContinuousOn (F c ω) (Set.Icc (Ilo c ω) (Ihi c ω)) ∧ DifferentiableOn ℝ (F c ω) (Set.Ioo (Ilo c ω) (Ihi c ω)) ∧ ∀ x ∈ Set.Ioo (Ilo c ω) (Ihi c ω), slope c ω ≤ deriv (F c ω) x) (hamount : ∀ (k : Fin M) (ω : Ω), point (cell k) = true → amount k ω ∈ Set.Icc (Ilo (cell k) ω) (Ihi (cell k) ω)) :
∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ B ∧ 1 - min 1 (∑ k : Fin M, min 1 (ε k + excursionBill (b k) (G k) (H k))) - εinstrument ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, (∀ (k : Fin M), (∃ (t : ℝ) (j : Fin 2), E.supportRecord endTime false (↑k) ω = (t, Sum.inl ((port k) j))) ∧ (F (cell k) ω (amount k ω) < Q (cell k) ω - e (cell k) → (E.supportRecord endTime false (↑k) ω).2 = Sum.inl ((port k) 0)) ∧ (Q (cell k) ω + e (cell k) < F (cell k) ω (amount k ω) → (E.supportRecord endTime false (↑k) ω).2 = Sum.inl ((port k) 1))) ∧ (∀ (c : C) (r : ℝ), (decode c ω fun (k : Fin M) => (E.supportRecord endTime false (↑k) ω).2) = some r → r ∈ Set.Icc (lo c ω - grid c) (hi c ω + grid c) ∩ represented c ω ∧ (point c = true → |sign c * r - sign c * root c ω| ≤ e c / slope c ω + grid c)) ∧ ∀ (c : C), (∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ F c ω (amount a ω) < Q c ω - e c ∧ Q c ω + e c < F c ω (amount b ω)) → ∃ (r : ℝ), (decode c ω fun (k : Fin M) => (E.supportRecord endTime false (↑k) ω).2) = some r

A catalog may mix positive-slope point inverses and verified inverse intervals. The point branch derives its exact outer tests by the mean value theorem on the complete comparator; the interval branch permits multiple roots. Native thin-band answers remain valid and a missing bracket censors.

theorem MindFormal.DescribedChoice.cash_margins_native {Ω : 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) (M : ℕ) (endTime : NNReal) (hend : endTime ≤ E.horizon) (H : Fin M → NNReal) (cap : ℕ → NNReal) (hcap0 : cap 0 = 0) (hcap : ∀ (k : Fin M), cap ↑k + H k ≤ endTime) (hstep : ∀ (k : Fin M), cap ↑k + H k ≤ cap (↑k + 1)) (R : (k : Fin M) → Ω → FrozenReference E.mind.drift (H k)) (A : Fin M → Set Ω) (hA : ∀ (k : Fin M), MeasurableSet (A k)) (ε : Fin M → ℝ) (hε : ∀ (k : Fin M), 1 - ε k ≤ E.ground.μ.real (A k)) (d0 b L residual inputBill room : Fin M → ℝ) (range : Fin M → NNReal) (hrange : ∀ (k : Fin M), 0 < range k) (hd0 : ∀ (k : Fin M), 0 ≤ d0 k) (hb : ∀ (k : Fin M), 0 < b k) (hL : ∀ (k : Fin M), 0 ≤ L k) (hresidual : ∀ (k : Fin M), 0 ≤ residual k) (hinputBill : ∀ (k : Fin M), 0 ≤ inputBill k) (hinitial : ∀ (h : 0 < M), ∀ ω ∈ A ⟨0, h⟩, ‖(E.supportHistory ω).state 0 - ↑(R ⟨0, h⟩ ω).start‖ ≤ d0 ⟨0, h⟩) (hcarry : ∀ (k : Fin M) (hk : ↑k + 1 < M), ∀ ω ∈ A ⟨↑k + 1, hk⟩, ∀ (t : ↑(HorizonTime ↑(H k))), ↑(queryCutValue E (↑k + 1) ω) = ↑(queryCutValue E (↑k) ω) + ↑t → ∀ (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) → ‖↑x - ↑(R ⟨↑k + 1, hk⟩ ω).start‖ ≤ d0 ⟨↑k + 1, hk⟩) (m : Fin M → Ω → ℝ → ℝ) (hm : ∀ (k : Fin M), ∀ ω ∈ A k, IntervalIntegrable (m k ω) MeasureTheory.volume 0 ↑(H k)) (hbudget : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), ∫ (s : ℝ) in 0..↑t, m k ω s ≤ residual k + inputBill k) (hlocal : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (hist : FiniteActionHistory (Fin N)), ChronologicalHistory hist → ∀ (t : ↑(HorizonTime ↑(H k))) (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ room k → ∀ (q : Fin N → ℝ), (∀ (i : Fin N), q i ∈ {0, 1}) → ‖assembledDrift E.mind.drift (strictPastInput E.world.world (↑(queryCutValue E (↑k) ω) + ↑t) hist ω) q ↑x - frozenForcing E.mind.drift ⋯ (R k ω).input (R k ω).mode (R k ω).path ↑t‖ ≤ L k * ‖↑x - (R k ω).path t‖ + m k ω ↑t) (hgeometry : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), room k + ‖(R k ω).path t - ↑(R k ω).start‖ + d0 k < ↑(range k)) (G : Fin M → innovationIndex N n T → ℝ) (hV : ∀ (k : Fin M) (i : innovationIndex N n T), 0 < G k i) (hloading : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (s0 : PhysicalState N n T Λ), ‖↑s0 - ↑(R k ω).start‖ ≤ d0 k → ∀ (x : NNReal → PhysicalState N n T Λ) (hist : NNReal → FiniteActionHistory (Fin N)), (∀ (s : NNReal), ChronologicalHistory (hist s)) → ∀ (q : NNReal → Fin N → ℝ), (∀ (s : NNReal) (i : Fin N), q s i ∈ {0, 1}) → ∀ (i : innovationIndex N n T), ∫⁻ (s : NNReal) in Set.Ioc 0 E.horizon, if ↑(queryCutValue E (↑k) ω) < ↑s ∧ ↑s ≤ ↑(queryCutValue E (↑k) ω) + ↑(H k) ∧ ‖↑(x s) - ↑s0‖ ≤ ↑(range k) then ∑ j : J, ‖E.mind.amplitude (↑(x s), strictPastInput E.world.world (↑s) (hist s) ω, q s) (innovationRow i) j‖ₑ ^ 2 else 0 ∂MathFin.ItoIntegralL2.timeMeasure ≤ ENNReal.ofReal (G k i)) (hroom : ∀ (k : Fin M), errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) < room k) (LO : Fin M → ℝ) (hLO : ∀ (k : Fin M), 0 ≤ LO k) (hread : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))) (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ room k → ∀ (i : Fin N), |(E.mind.reads.scores false) x i - referenceScore E (R k ω) t i| ≤ LO k * ‖↑x - (R k ω).path t‖) {C : Type u_5} (port : Fin M → Fin 2 ↪ Fin N) (cell : Fin M → C) (amount : Fin M → Ω → ℝ) (F : C → Ω → ℝ → ℝ) (Q : C → Ω → ℝ) (e : C → ℝ) (χ : Fin M → Ω → ℝ) (hχ : ∀ (k : Fin M) (ω : Ω), 0 < χ k ω) (hports : ∀ (k : Fin M) (i : Fin 2), E.mind.reads.outputs ((port k) i) = true) (hcontrast : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), referenceScore E (R k ω) t ((port k) 0) - referenceScore E (R k ω) t ((port k) 1) = χ k ω * (Q (cell k) ω - F (cell k) ω (amount k ω))) (hband : ∀ (k : Fin M), ∀ ω ∈ A k, 2 * (LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k)) ≤ χ k ω * e (cell k)) (hdeadline : ∀ (k : Fin M), ∀ ω ∈ A k, E.mind.reads.actionBar ≤ max (referenceScore E (R k ω) ⟨↑(H k), ⋯⟩ ((port k) 0)) (referenceScore E (R k ω) ⟨↑(H k), ⋯⟩ ((port k) 1)) - LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k)) (hoffmenu : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))) (i : Fin N), i ≠ (port k) 0 → i ≠ (port k) 1 → E.mind.reads.outputs i = true → referenceScore E (R k ω) t i + LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) < E.mind.reads.actionBar) (heligible : ∀ (k : Fin M), queryPause E ↑k ≤ ↑(H k)) (B : Set Ω) (hB : MeasurableSet B) (εinstrument : ℝ) (hBprob : 1 - εinstrument ≤ E.ground.μ.real B) (decode : C → Ω → (Fin M → Fin N ⊕ Unit) → Option ℝ) (lo hi : C → Ω → ℝ) (grid tolerance : C → ℝ) (represented : C → Ω → Set ℝ) (point : C → Bool) (hleft : ∀ (k : Fin M) (ω : Ω), point (cell k) = false → amount k ω < lo (cell k) ω → F (cell k) ω (amount k ω) < Q (cell k) ω - e (cell k)) (hright : ∀ (k : Fin M) (ω : Ω), point (cell k) = false → hi (cell k) ω < amount k ω → Q (cell k) ω + e (cell k) < F (cell k) ω (amount k ω)) (hsound : ∀ ω ∈ B, ∀ (word : Fin M → Fin N ⊕ Unit) (c : C) (r : ℝ), decode c ω word = some r → ∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ (word a = Sum.inl ((port a) 0)) ≠ (word b = Sum.inl ((port b) 0)) ∧ amount b ω - amount a ω + tolerance c ≤ grid c ∧ r ∈ Set.Icc (amount a ω - tolerance c) (amount b ω + tolerance c) ∧ r ∈ represented c ω) (htotal : ∀ ω ∈ B, ∀ (word : Fin M → Fin N ⊕ Unit) (c : C), (∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ word a = Sum.inl ((port a) 0) ∧ word b = Sum.inl ((port b) 1)) → ∃ (r : ℝ), decode c ω word = some r) (sign : C → ℝ) (hsign : ∀ (c : C), |sign c| = 1) (root slope mean : C → Ω → ℝ) (seeking : C → Bool) (hdirection : ∀ (c : C) (ω : Ω), ∀ r ∈ Set.Icc (lo c ω - grid c) (hi c ω + grid c) ∩ represented c ω, (seeking c = true → mean c ω < sign c * r) ∧ (seeking c = false → sign c * r < mean c ω)) (Ilo Ihi : C → Ω → ℝ) (hpoint : ∀ (c : C) (ω : Ω), point c = true → lo c ω = root c ω - e c / slope c ω ∧ hi c ω = root c ω + e c / slope c ω) (hpointData : ∀ (c : C) (ω : Ω), point c = true → root c ω ∈ Set.Icc (Ilo c ω) (Ihi c ω) ∧ F c ω (root c ω) = Q c ω ∧ 0 < slope c ω ∧ 0 ≤ e c ∧ ContinuousOn (F c ω) (Set.Icc (Ilo c ω) (Ihi c ω)) ∧ DifferentiableOn ℝ (F c ω) (Set.Ioo (Ilo c ω) (Ihi c ω)) ∧ ∀ x ∈ Set.Ioo (Ilo c ω) (Ihi c ω), slope c ω ≤ deriv (F c ω) x) (hamount : ∀ (k : Fin M) (ω : Ω), point (cell k) = true → amount k ω ∈ Set.Icc (Ilo (cell k) ω) (Ihi (cell k) ω)) :
∃ (good : Set Ω), MeasurableSet good ∧ good ⊆ B ∧ 1 - min 1 (∑ k : Fin M, min 1 (ε k + excursionBill (b k) (G k) (H k))) - εinstrument ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, (∀ (k : Fin M), (∃ (t : ℝ) (j : Fin 2), E.supportRecord endTime false (↑k) ω = (t, Sum.inl ((port k) j))) ∧ (F (cell k) ω (amount k ω) < Q (cell k) ω - e (cell k) → (E.supportRecord endTime false (↑k) ω).2 = Sum.inl ((port k) 0)) ∧ (Q (cell k) ω + e (cell k) < F (cell k) ω (amount k ω) → (E.supportRecord endTime false (↑k) ω).2 = Sum.inl ((port k) 1))) ∧ (∀ (c : C) (r : ℝ), (decode c ω fun (k : Fin M) => (E.supportRecord endTime false (↑k) ω).2) = some r → r ∈ Set.Icc (lo c ω - grid c) (hi c ω + grid c) ∩ represented c ω ∧ (point c = true → |sign c * r - sign c * root c ω| ≤ e c / slope c ω + grid c) ∧ (seeking c = true → mean c ω < sign c * r) ∧ (seeking c = false → sign c * r < mean c ω)) ∧ ∀ (c : C), (∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ F c ω (amount a ω) < Q c ω - e c ∧ Q c ω + e c < F c ω (amount b ω)) → ∃ (r : ℝ), (decode c ω fun (k : Fin M) => (E.supportRecord endTime false (↑k) ω).2) = some r

L55: the native price/inverse-interval certificate uses only price controls. The side of a mean is applied separately by the original directional wrapper.

theorem MindFormal.DescribedChoice.cash_fourfold_native {Ω : 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) (M : ℕ) (endTime : NNReal) (hend : endTime ≤ E.horizon) (H : Fin M → NNReal) (cap : ℕ → NNReal) (hcap0 : cap 0 = 0) (hcap : ∀ (k : Fin M), cap ↑k + H k ≤ endTime) (hstep : ∀ (k : Fin M), cap ↑k + H k ≤ cap (↑k + 1)) (R : (k : Fin M) → Ω → FrozenReference E.mind.drift (H k)) (A : Fin M → Set Ω) (hA : ∀ (k : Fin M), MeasurableSet (A k)) (ε : Fin M → ℝ) (hε : ∀ (k : Fin M), 1 - ε k ≤ E.ground.μ.real (A k)) (d0 b L residual inputBill room : Fin M → ℝ) (range : Fin M → NNReal) (hrange : ∀ (k : Fin M), 0 < range k) (hd0 : ∀ (k : Fin M), 0 ≤ d0 k) (hb : ∀ (k : Fin M), 0 < b k) (hL : ∀ (k : Fin M), 0 ≤ L k) (hresidual : ∀ (k : Fin M), 0 ≤ residual k) (hinputBill : ∀ (k : Fin M), 0 ≤ inputBill k) (hinitial : ∀ (h : 0 < M), ∀ ω ∈ A ⟨0, h⟩, ‖(E.supportHistory ω).state 0 - ↑(R ⟨0, h⟩ ω).start‖ ≤ d0 ⟨0, h⟩) (hcarry : ∀ (k : Fin M) (hk : ↑k + 1 < M), ∀ ω ∈ A ⟨↑k + 1, hk⟩, ∀ (t : ↑(HorizonTime ↑(H k))), ↑(queryCutValue E (↑k + 1) ω) = ↑(queryCutValue E (↑k) ω) + ↑t → ∀ (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) → ‖↑x - ↑(R ⟨↑k + 1, hk⟩ ω).start‖ ≤ d0 ⟨↑k + 1, hk⟩) (m : Fin M → Ω → ℝ → ℝ) (hm : ∀ (k : Fin M), ∀ ω ∈ A k, IntervalIntegrable (m k ω) MeasureTheory.volume 0 ↑(H k)) (hbudget : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), ∫ (s : ℝ) in 0..↑t, m k ω s ≤ residual k + inputBill k) (hlocal : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (hist : FiniteActionHistory (Fin N)), ChronologicalHistory hist → ∀ (t : ↑(HorizonTime ↑(H k))) (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ room k → ∀ (q : Fin N → ℝ), (∀ (i : Fin N), q i ∈ {0, 1}) → ‖assembledDrift E.mind.drift (strictPastInput E.world.world (↑(queryCutValue E (↑k) ω) + ↑t) hist ω) q ↑x - frozenForcing E.mind.drift ⋯ (R k ω).input (R k ω).mode (R k ω).path ↑t‖ ≤ L k * ‖↑x - (R k ω).path t‖ + m k ω ↑t) (hgeometry : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), room k + ‖(R k ω).path t - ↑(R k ω).start‖ + d0 k < ↑(range k)) (G : Fin M → innovationIndex N n T → ℝ) (hV : ∀ (k : Fin M) (i : innovationIndex N n T), 0 < G k i) (hloading : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (s0 : PhysicalState N n T Λ), ‖↑s0 - ↑(R k ω).start‖ ≤ d0 k → ∀ (x : NNReal → PhysicalState N n T Λ) (hist : NNReal → FiniteActionHistory (Fin N)), (∀ (s : NNReal), ChronologicalHistory (hist s)) → ∀ (q : NNReal → Fin N → ℝ), (∀ (s : NNReal) (i : Fin N), q s i ∈ {0, 1}) → ∀ (i : innovationIndex N n T), ∫⁻ (s : NNReal) in Set.Ioc 0 E.horizon, if ↑(queryCutValue E (↑k) ω) < ↑s ∧ ↑s ≤ ↑(queryCutValue E (↑k) ω) + ↑(H k) ∧ ‖↑(x s) - ↑s0‖ ≤ ↑(range k) then ∑ j : J, ‖E.mind.amplitude (↑(x s), strictPastInput E.world.world (↑s) (hist s) ω, q s) (innovationRow i) j‖ₑ ^ 2 else 0 ∂MathFin.ItoIntegralL2.timeMeasure ≤ ENNReal.ofReal (G k i)) (hroom : ∀ (k : Fin M), errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) < room k) (LO : Fin M → ℝ) (hLO : ∀ (k : Fin M), 0 ≤ LO k) (hread : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))) (x : PhysicalState N n T Λ), ‖↑x - (R k ω).path t‖ ≤ room k → ∀ (i : Fin N), |(E.mind.reads.scores false) x i - referenceScore E (R k ω) t i| ≤ LO k * ‖↑x - (R k ω).path t‖) {C : Type u_5} (port : Fin M → Fin 2 ↪ Fin N) (cell : Fin M → C) (amount : Fin M → Ω → ℝ) (F : C → Ω → ℝ → ℝ) (Q : C → Ω → ℝ) (e : C → ℝ) (χ : Fin M → Ω → ℝ) (hχ : ∀ (k : Fin M) (ω : Ω), 0 < χ k ω) (hports : ∀ (k : Fin M) (i : Fin 2), E.mind.reads.outputs ((port k) i) = true) (hcontrast : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))), referenceScore E (R k ω) t ((port k) 0) - referenceScore E (R k ω) t ((port k) 1) = χ k ω * (Q (cell k) ω - F (cell k) ω (amount k ω))) (hband : ∀ (k : Fin M), ∀ ω ∈ A k, 2 * (LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k)) ≤ χ k ω * e (cell k)) (hdeadline : ∀ (k : Fin M), ∀ ω ∈ A k, E.mind.reads.actionBar ≤ max (referenceScore E (R k ω) ⟨↑(H k), ⋯⟩ ((port k) 0)) (referenceScore E (R k ω) ⟨↑(H k), ⋯⟩ ((port k) 1)) - LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k)) (hoffmenu : ∀ (k : Fin M), ∀ ω ∈ A k, ∀ (t : ↑(HorizonTime ↑(H k))) (i : Fin N), i ≠ (port k) 0 → i ≠ (port k) 1 → E.mind.reads.outputs i = true → referenceScore E (R k ω) t i + LO k * errorSize (d0 k) (b k) (residual k) (inputBill k) (L k) (H k) < E.mind.reads.actionBar) (heligible : ∀ (k : Fin M), queryPause E ↑k ≤ ↑(H k)) (B : Set Ω) (hB : MeasurableSet B) (εinstrument : ℝ) (hBprob : 1 - εinstrument ≤ E.ground.μ.real B) (decode : C → Ω → (Fin M → Fin N ⊕ Unit) → Option ℝ) (lo hi : C → Ω → ℝ) (grid tolerance : C → ℝ) (represented : C → Ω → Set ℝ) (point : C → Bool) (hleft : ∀ (k : Fin M) (ω : Ω), point (cell k) = false → amount k ω < lo (cell k) ω → F (cell k) ω (amount k ω) < Q (cell k) ω - e (cell k)) (hright : ∀ (k : Fin M) (ω : Ω), point (cell k) = false → hi (cell k) ω < amount k ω → Q (cell k) ω + e (cell k) < F (cell k) ω (amount k ω)) (hsound : ∀ ω ∈ B, ∀ (word : Fin M → Fin N ⊕ Unit) (c : C) (r : ℝ), decode c ω word = some r → ∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ (word a = Sum.inl ((port a) 0)) ≠ (word b = Sum.inl ((port b) 0)) ∧ amount b ω - amount a ω + tolerance c ≤ grid c ∧ r ∈ Set.Icc (amount a ω - tolerance c) (amount b ω + tolerance c) ∧ r ∈ represented c ω) (htotal : ∀ ω ∈ B, ∀ (word : Fin M → Fin N ⊕ Unit) (c : C), (∃ (a : Fin M) (b : Fin M), cell a = c ∧ cell b = c ∧ amount a ω ≤ amount b ω ∧ word a = Sum.inl ((port a) 0) ∧ word b = Sum.inl ((port b) 1)) → ∃ (r : ℝ), decode c ω word = some r) (sign : C → ℝ) (hsign : ∀ (c : C), |sign c| = 1) (root slope mean : C → Ω → ℝ) (seeking : C → Bool) (hdirection : ∀ (c : C) (ω : Ω), ∀ r ∈ Set.Icc (lo c ω - grid c) (hi c ω + grid c) ∩ represented c ω, (seeking c = true → mean c ω < sign c * r) ∧ (seeking c = false → sign c * r < mean c ω)) (Ilo Ihi : C → Ω → ℝ) (hpoint : ∀ (c : C) (ω : Ω), point c = true → lo c ω = root c ω - e c / slope c ω ∧ hi c ω = root c ω + e c / slope c ω) (hpointData : ∀ (c : C) (ω : Ω), point c = true → root c ω ∈ Set.Icc (Ilo c ω) (Ihi c ω) ∧ F c ω (root c ω) = Q c ω ∧ 0 < slope c ω ∧ 0 ≤ e c ∧ ContinuousOn (F c ω) (Set.Icc (Ilo c ω) (Ihi c ω)) ∧ DifferentiableOn ℝ (F c ω) (Set.Ioo (Ilo c ω) (Ihi c ω)) ∧ ∀ x ∈ Set.Ioo (Ilo c ω) (Ihi c ω), slope c ω ≤ deriv (F c ω) x) (hamount : ∀ (k : Fin M) (ω : Ω), point (cell k) = true → amount k ω ∈ Set.Icc (Ilo (cell k) ω) (Ihi (cell k) ω)) (fourCell : Bool → Bool → C) (hfourSign : ∀ (loss rare : Bool), sign (fourCell loss rare) = if loss = true then -1 else 1) (hfourSeeking : ∀ (loss rare : Bool), seeking (fourCell loss rare) = (loss ^^ rare)) (hbracket : ∀ (loss rare : Bool), ∀ ω ∈ B, ∃ (a : Fin M) (b : Fin M), cell a = fourCell loss rare ∧ cell b = fourCell loss rare ∧ amount a ω ≤ amount b ω ∧ F (fourCell loss rare) ω (amount a ω) < Q (fourCell loss rare) ω - e (fourCell loss rare) ∧ Q (fourCell loss rare) ω + e (fourCell loss rare) < F (fourCell loss rare) ω (amount b ω)) :
∃ (good : Set Ω), MeasurableSet good ∧ 1 - min 1 (∑ k : Fin M, min 1 (ε k + excursionBill (b k) (G k) (H k))) - εinstrument ≤ E.ground.μ.real good ∧ ∀ ω ∈ good, ∀ (loss rare : Bool), ∃ (r : ℝ), (decode (fourCell loss rare) ω fun (k : Fin M) => (E.supportRecord endTime false (↑k) ω).2) = some r ∧ r ∈ Set.Icc (lo (fourCell loss rare) ω - grid (fourCell loss rare)) (hi (fourCell loss rare) ω + grid (fourCell loss rare)) ∩ represented (fourCell loss rare) ω ∧ (if loss = true then if rare = true then -1 else 1 else if rare = true then 1 else -1) * ((if loss = true then -r else r) - mean (fourCell loss rare) ω) > 0

The four signs are inferred from the entire actual native catalog. The independently verified endpoint coverage gives a returned amount in all four cells; no point cash equivalent or native response is assumed.