theorem
MindFormal.Transactions.FourHistoryAttenuation_groundProbability
{Ω : 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)
:
theorem
MindFormal.Transactions.FourHistoryAttenuation
{Ω : Type u_1}
[_inst : MeasurableSpace Ω]
{N n : ℕ}
{T : Type u_2}
{Λ : Type u_3}
{J : Type u_4}
[_inst_1 : Fintype T]
[_inst_2 : Fintype Λ]
[_inst_3 : Fintype J]
(E : Bool × Bool → StateExperiment Ω N n T Λ J)
{H : Bool × Bool → NNReal}
(_hH : ∀ (caseArg : Bool × Bool), H caseArg ≤ (E caseArg).horizon)
(y : Bool × Bool → Ω → C(NNReal, MindState (Fin N) n T Λ))
(_hadapt :
∀ (caseArg : Bool × Bool),
MeasureTheory.StronglyAdapted (E caseArg).ground.filtration fun (t : NNReal) (z : Ω) => (y caseArg z) t)
(g : Bool × Bool → Ω → ℝ → MindState (Fin N) n T Λ)
(hg : ∀ (caseArg : Bool × Bool) (z : Ω), IntervalIntegrable (g caseArg z) MeasureTheory.volume 0 ↑(H caseArg))
(v defect : (caseArg : Bool × Bool) → Ω → C(↑(HorizonTime ↑(H caseArg)), MindState (Fin N) n T Λ))
(f :
(caseArg : Bool × Bool) →
CoordinateIndex (Fin N) n T Λ →
J →
↥(MeasureTheory.Lp ℝ 2
(ItoFiltration.predMeasure (E caseArg).ground.filtration (E caseArg).ground.μ (E caseArg).horizon)))
(clearance : Bool × Bool → NNReal)
(b Q : Bool × Bool → CoordinateIndex (Fin N) n T Λ → ℝ)
{L entering mode comparison epsilon : Bool × Bool → ℝ}
(_hL : ∀ (caseArg : Bool × Bool), 0 ≤ L caseArg)
(_he : ∀ (caseArg : Bool × Bool), 0 ≤ entering caseArg)
(_hm : ∀ (caseArg : Bool × Bool), 0 ≤ mode caseArg)
(_hc : ∀ (caseArg : Bool × Bool), 0 ≤ comparison caseArg)
(_hQ : ∀ (caseArg : Bool × Bool) (c : CoordinateIndex (Fin N) n T Λ), 0 ≤ Q caseArg c)
(_hb : ∀ (caseArg : Bool × Bool) (c : CoordinateIndex (Fin N) n T Λ), 0 ≤ b caseArg c)
(_hpos : ∀ (caseArg : Bool × Bool) (c : CoordinateIndex (Fin N) n T Λ), Q caseArg c ≠ 0 → 0 < b caseArg c)
(cap : Bool × Bool → Set Ω)
(_hcapm : ∀ (caseArg : Bool × Bool), MeasurableSet (cap caseArg))
(_hcap : ∀ (caseArg : Bool × Bool), 1 - epsilon caseArg ≤ (E caseArg).ground.μ.real (cap caseArg))
(_budget :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ (c : CoordinateIndex (Fin N) n T Λ),
comparisonBracket (E caseArg) (coordinateRead c) (f caseArg c)
(comparisonExit (E caseArg) (y caseArg) (clearance caseArg)) (H caseArg) z ≤ ENNReal.ofReal (Q caseArg c))
(_href :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
reflectedForcing ⋯ mindFloor (g caseArg z) ⋯ ((y caseArg z) 0) (v caseArg z) = referenceRestriction (H caseArg) (y caseArg z))
(_hrefdriver :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ (t : ↑(HorizonTime ↑(H caseArg))) (c : CoordinateIndex (Fin N) n T Λ),
(v caseArg z) t c = ItoFiltration.itoVecCont (E caseArg).ground.brownian (E caseArg).horizon (f caseArg c) ⟨↑t, ⋯⟩ z + (defect caseArg z) t c)
(_hdefect :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg, ∀ (t : ↑(HorizonTime ↑(H caseArg))), ‖(defect caseArg z) t‖ ≤ comparison caseArg)
(_hstart :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg, ‖↑((E caseArg).supportHistory z).start - (y caseArg z) 0‖ ≤ entering caseArg)
(_hmodes :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
IntervalIntegrable
(fun (s : ℝ) =>
‖assembledDrift ((E caseArg).supportHistory z).data
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledInput s)
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledMode s)
((ContinuousMap.IccExtend ⋯ (referenceRestriction (H caseArg) (y caseArg z))) s) - g caseArg z s‖)
MeasureTheory.volume 0 ↑(H caseArg))
(_hmode :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ (t : ↑(HorizonTime ↑(H caseArg))),
∫ (s : ℝ) in 0..↑t, ‖assembledDrift ((E caseArg).supportHistory z).data
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledInput s)
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledMode s)
((ContinuousMap.IccExtend ⋯ (referenceRestriction (H caseArg) (y caseArg z))) s) - g caseArg z s‖ ≤ mode caseArg)
(_hlip :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ (t : ↑(HorizonTime ↑(H caseArg))) (x : MindState (Fin N) n T Λ),
PhysicalMindState x →
‖x - (referenceRestriction (H caseArg) (y caseArg z)) t‖ ≤ ↑(clearance caseArg) →
‖assembledDrift ((E caseArg).supportHistory z).data
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledInput ↑t)
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledMode ↑t) x - assembledDrift ((E caseArg).supportHistory z).data
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledInput ↑t)
((((E caseArg).supportHistory z).toFinite (H caseArg)).coupledMode ↑t)
((referenceRestriction (H caseArg) (y caseArg z)) t)‖ ≤ L caseArg * ‖x - (referenceRestriction (H caseArg) (y caseArg z)) t‖)
(_hclose :
∀ (caseArg : Bool × Bool),
transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg) (comparison caseArg) < ↑(clearance caseArg))
(hyphys : ∀ (caseArg : Bool × Bool) (z : Ω) (t : NNReal), PhysicalMindState ((y caseArg z) t))
(c : Bool × Bool → Bool)
(query : Bool × Bool → ℕ)
(guardMod scoreMod : Bool × Bool → Fin N → ℝ)
(_hgm : ∀ (caseArg : Bool × Bool) (j : Fin N), 0 ≤ guardMod caseArg j)
(_hsm : ∀ (caseArg : Bool × Bool) (j : Fin N), 0 ≤ scoreMod caseArg j)
(_guardLip :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ t ∈ Set.Icc 0 ↑(H caseArg),
∀ (x : PhysicalState N n T Λ),
‖↑x - (y caseArg z) t.toNNReal‖ ≤ ↑(clearance caseArg) →
∀ (j : Fin N),
|(((E caseArg).supportHistory z).reads.guards (c caseArg)) x j - (((E caseArg).supportHistory z).reads.guards (c caseArg)) ⟨(y caseArg z) t.toNNReal, ⋯⟩ j| ≤ guardMod caseArg j * ‖↑x - (y caseArg z) t.toNNReal‖)
(_scoreLip :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ t ∈ Set.Icc 0 ↑(H caseArg),
∀ (x : PhysicalState N n T Λ),
‖↑x - (y caseArg z) t.toNNReal‖ ≤ ↑(clearance caseArg) →
∀ (j : Fin N),
|(((E caseArg).supportHistory z).reads.scores (c caseArg)) x j - (((E caseArg).supportHistory z).reads.scores (c caseArg)) ⟨(y caseArg z) t.toNNReal, ⋯⟩ j| ≤ scoreMod caseArg j * ‖↑x - (y caseArg z) t.toNNReal‖)
(lo hi : Bool × Bool → Ω → ℕ → ℝ)
(winner : Bool × Bool → Ω → ℕ → Fin N)
(_htimes :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ k < query caseArg, 0 ≤ lo caseArg z k ∧ lo caseArg z k ≤ hi caseArg z k ∧ hi caseArg z k ≤ ↑(H caseArg))
(_hreleases :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ k < query caseArg,
windowRelease (hi caseArg z) (((E caseArg).supportHistory z).pause (c caseArg)) k ≤ hi caseArg z k)
(_before :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ k < query caseArg,
∀
t ∈
Set.Ico (windowRelease (lo caseArg z) (((E caseArg).supportHistory z).pause (c caseArg)) k)
(lo caseArg z k),
∀ (j : Fin N),
(((E caseArg).supportHistory z).reads.guards (c caseArg)) ⟨(y caseArg z) t.toNNReal, ⋯⟩ j + guardMod caseArg j * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg) < 0)
(_qualifies :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ k < query caseArg,
guardMod caseArg (winner caseArg z k) * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg) ≤ (((E caseArg).supportHistory z).reads.guards (c caseArg)) ⟨(y caseArg z) (hi caseArg z k).toNNReal, ⋯⟩
(winner caseArg z k))
(_dominates :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ k < query caseArg,
∀ t ∈ Set.Icc (lo caseArg z k) (hi caseArg z k),
∀ (j : Fin N),
j ≠ winner caseArg z k →
guardMod caseArg (winner caseArg z k) * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg) ≤ (((E caseArg).supportHistory z).reads.guards (c caseArg)) ⟨(y caseArg z) t.toNNReal, ⋯⟩
(winner caseArg z k) ∧ (((E caseArg).supportHistory z).reads.scores (c caseArg)) ⟨(y caseArg z) t.toNNReal, ⋯⟩ j + scoreMod caseArg j * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg) < (((E caseArg).supportHistory z).reads.scores (c caseArg)) ⟨(y caseArg z) t.toNNReal, ⋯⟩
(winner caseArg z k) - scoreMod caseArg (winner caseArg z k) * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg))
(release : (caseArg : Bool × Bool) → ↑(HorizonTime ↑(H caseArg)))
(good money : Bool × Bool → Fin N)
(_hne : ∀ (caseArg : Bool × Bool), good caseArg ≠ money caseArg)
(_initial : ∀ (caseArg : Bool × Bool), query caseArg = 0 → ↑(release caseArg) = 0)
(_after :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
query caseArg ≠ 0 →
lo caseArg z (query caseArg - 1) = hi caseArg z (query caseArg - 1) ∧ hi caseArg z (query caseArg - 1) + ((E caseArg).supportHistory z).pause (c caseArg) = ↑(release caseArg))
(_qGuard :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
guardMod caseArg (good caseArg) * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg) ≤ (((E caseArg).supportHistory z).reads.guards (c caseArg)) ⟨(y caseArg z) ⟨↑(release caseArg), ⋯⟩, ⋯⟩
(good caseArg) ∧ guardMod caseArg (money caseArg) * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg) ≤ (((E caseArg).supportHistory z).reads.guards (c caseArg)) ⟨(y caseArg z) ⟨↑(release caseArg), ⋯⟩, ⋯⟩
(money caseArg))
(_qOthers :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
∀ (j : Fin N),
j ≠ good caseArg →
j ≠ money caseArg →
(((E caseArg).supportHistory z).reads.guards (c caseArg)) ⟨(y caseArg z) ⟨↑(release caseArg), ⋯⟩, ⋯⟩ j + guardMod caseArg j * transactionError (↑(H caseArg)) (L caseArg) (entering caseArg) ‖b caseArg‖ (mode caseArg)
(comparison caseArg) < 0)
(fdet :
(caseArg : Bool × Bool) → J → ↥(MeasureTheory.Lp ℝ 2 (MeasureTheory.volume.restrict (Set.Ioc 0 ↑(release caseArg)))))
(mean : Bool × Bool → ℝ)
(_hvariance : ∀ (caseArg : Bool × Bool), 0 < ∑ j : J, ‖fdet caseArg j‖ ^ 2)
(_read_at_release :
∀ (caseArg : Bool × Bool),
∀ z ∈ cap caseArg,
(((E caseArg).supportHistory z).reads.scores (c caseArg)) ⟨(y caseArg z) ⟨↑(release caseArg), ⋯⟩, ⋯⟩
(good caseArg) - (((E caseArg).supportHistory z).reads.scores (c caseArg)) ⟨(y caseArg z) ⟨↑(release caseArg), ⋯⟩, ⋯⟩
(money caseArg) = deterministicReference (E caseArg) ⟨↑(release caseArg), ⋯⟩ (mean caseArg) (fdet caseArg) z)
(baseline spread duration : ℝ)
(amount rate : T × Fin n → ℝ)
(count : ℕ)
(_hs : 0 < spread)
(_hd : 0 < duration)
(_ha : ∀ (a : T × Fin n), 0 ≤ amount a)
(_hr : ∀ (a : T × Fin n), 0 < rate a)
(_hp : ∃ (a : T × Fin n), 0 < amount a)
(_hspread : ∀ (q : Bool × Bool), √(∑ j : J, ‖fdet q j‖ ^ 2) = spread)
(_hmean :
∀ (q : Bool × Bool),
mean q = baseline + (if q.2 = true then 1 else -1) * remainingPremium amount rate duration (if q.1 = true then count + 1 else count))
:
have prob := fun (q : Bool × Bool) =>
(E q).ground.μ.real {z : Ω | ((E q).supportRecord (H q) (c q) (query q) z).2 = Sum.inl (good q)};
have error := fun (q : Bool × Bool) =>
(scoreMod q (good q) + scoreMod q (money q)) * transactionError (↑(H q)) (L q) (entering q) ‖b q‖ (mode q) (comparison q);
have failure := fun (q : Bool × Bool) =>
min 1 (epsilon q + ∑ j : CoordinateIndex (Fin N) n T Λ, bracketPrice (b q j) (Q q j));
have bill := fun (q : Bool × Bool) => gaussianMarkBill (mean q) spread (error q) (failure q);
have oldPremium := remainingPremium amount rate duration count;
have newPremium := remainingPremium amount rate duration (count + 1);
(∀ (level : Bool),
|prob (level, true) - prob (level, false) - exchangeRead baseline spread (if level = true then newPremium else oldPremium)| ≤ bill (level, true) + bill (level, false)) ∧ exchangeRead baseline spread newPremium < exchangeRead baseline spread oldPremium ∧ (bill (false, true) + bill (false, false) + bill (true, true) + bill (true, false) < exchangeRead baseline spread oldPremium - exchangeRead baseline spread newPremium →
prob (true, true) - prob (true, false) < prob (false, true) - prob (false, false))
Full native application: the larger elaboration budget checks the complete dependent family.