File size: 4,408 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | import OAI.Probability.FreeIsing.Estimates.ProgressivePrimitive
namespace OAI
noncomputable section
open MeasureTheory ProbabilityTheory Set Filter
open scoped NNReal Topology
namespace Problem367.StoppedTimePrimitive
def stopDensity {Ξ© : Type*} (a : ββ₯0 β Ξ© β β) (Ο : Ξ© β WithTop ββ₯0)
(t : ββ₯0) (Ο : Ξ©) : β :=
if (t : WithTop ββ₯0) β€ Ο Ο then a t Ο else 0
theorem integral_indicator_min (a : β β β) (t u : ββ₯0) :
(β« r in (0 : β)..(t : β), if r β€ u then a r else 0) =
β« r in (0 : β)..(min t u : ββ₯0), a r := by
rcases le_total t u with h | h
Β· rw [min_eq_left h]
apply intervalIntegral.integral_congr
intro r hr
rw [Set.uIcc_of_le t.coe_nonneg] at hr
exact ite_eq_left (hr.2.trans h)
Β· rw [min_eq_right h]
exact intervalIntegral.integral_indicator β¨u.coe_nonneg, hβ©
theorem stoppedProcess_primitive {Ξ© : Type*} (a : ββ₯0 β Ξ© β β)
(Ο : Ξ© β WithTop ββ₯0) (t : ββ₯0) (Ο : Ξ©) :
stoppedProcess (nnrealTimePrimitive a) Ο t Ο =
nnrealTimePrimitive (stopDensity a Ο) t Ο := by
cases hΟ : Ο Ο with
| top => simp only [stoppedProcess, nnrealTimePrimitive, stopDensity, hΟ, min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe, le_top, ite_true]
| coe u =>
simp only [stoppedProcess, hΟ, β WithTop.coe_min, WithTop.untopA,
WithTop.untopD_coe, nnrealTimePrimitive, stopDensity, WithTop.coe_le_coe,
Real.toNNReal_le_iff_le_coe]
exact (integral_indicator_min (fun r => a r.toNNReal Ο) t u).symm
theorem continuous_stoppedProcess {Ξ© E : Type*} [TopologicalSpace E]
{X : ββ₯0 β Ξ© β E} {Ο : Ξ©} (hX : Continuous (fun t => X t Ο))
(Ο : Ξ© β WithTop ββ₯0) : Continuous (fun t => stoppedProcess X Ο t Ο) := by
cases hΟ : Ο Ο with
| top => simpa only [stoppedProcess, hΟ, min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe] using hX
| coe u =>
simpa only [stoppedProcess, hΟ, β WithTop.coe_min, WithTop.untopA,
WithTop.untopD_coe, Function.comp_def, id_eq] using hX.comp (continuous_id.min continuous_const)
theorem monotone_stoppedProcess {Ξ© E : Type*} [Preorder E]
{X : ββ₯0 β Ξ© β E} {Ο : Ξ©} (hX : Monotone (fun t => X t Ο))
(Ο : Ξ© β WithTop ββ₯0) : Monotone (fun t => stoppedProcess X Ο t Ο) := by
cases hΟ : Ο Ο with
| top => simpa only [stoppedProcess, hΟ, min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe] using hX
| coe u =>
simpa only [stoppedProcess, hΟ, β WithTop.coe_min, WithTop.untopA,
WithTop.untopD_coe, Function.comp_def, id_eq] using hX.comp (monotone_id.min monotone_const)
theorem stopTime_eq_iff_le {Ξ© : Type*} (Ο : Ξ© β WithTop ββ₯0) (t : ββ₯0) (Ο : Ξ©) :
(min (t : WithTop ββ₯0) (Ο Ο)).untopA = t β (t : WithTop ββ₯0) β€ Ο Ο := by
cases hΟ : Ο Ο with
| top => simp only [min_eq_left le_top, WithTop.untopA, WithTop.untopD_coe, le_top]
| coe u => simp only [β WithTop.coe_min, WithTop.untopA, WithTop.untopD_coe, min_eq_left_iff, WithTop.coe_le_coe]
theorem isStronglyProgressive_stopDensity {Ξ© : Type*} [mΞ© : MeasurableSpace Ξ©]
{F : Filtration ββ₯0 mΞ©} {a : ββ₯0 β Ξ© β β} {Ο : Ξ© β WithTop ββ₯0}
(ha : IsStronglyProgressive F a) (hΟ : IsStoppingTime F Ο) :
IsStronglyProgressive F (stopDensity a Ο) := by
intro T
let : MeasurableSpace Ξ© := F T
have hs : MeasurableSet {p : Iic T Γ Ξ© | ((p.1 : ββ₯0) : WithTop ββ₯0) β€ Ο p.2} := by
simp only [β stopTime_eq_iff_le]
exact measurableSet_eq_fun (isStronglyProgressive_min_stopping_time hΟ T).measurable
measurable_fst.subtype_val
exact (ha T).piecewise hs stronglyMeasurable_const
theorem stoppedProcess_weighted_primitive {Ξ© E : Type*}
(X : ββ₯0 β Ξ© β E) (f : E β β) (a : ββ₯0 β Ξ© β β)
(Ο : Ξ© β WithTop ββ₯0) (t : ββ₯0) (Ο : Ξ©) :
stoppedProcess (nnrealTimePrimitive (fun s Ο => f (X s Ο) * a s Ο)) Ο t Ο =
nnrealTimePrimitive (fun s Ο => f (stoppedProcess X Ο s Ο) * stopDensity a Ο s Ο) t Ο := by
rw [stoppedProcess_primitive]
congr 1
funext s Ο
by_cases h : (s : WithTop ββ₯0) β€ Ο Ο
Β· simp only [stopDensity, h, ite_true, stoppedProcess_eq_of_le h]
Β· simp only [stopDensity, h, ite_false, mul_zero]
end Problem367.StoppedTimePrimitive
end
end OAI
|