lemmasurvivingGreen_zero (a : ℝ) (ha : 0<a) (b : GDriver) (z : UpperPlane) :
survivingGreen a 0 b z.1=initialGreen a z :=by
proof · 3
lines
havehi : alive a b.10 z.1:= radialStop_actual a ha z.1 z.2 (z.1.im/2)
(byhave:= z.2; positivity) (byhave:= z.2; linarith) 0 b 0 bot_le
simp only [survivingGreen,ite_eq_left hi,actualState_zero ha b z.2,initialGreen]
lemmasurvivingKernel_restrict_alive (a : ℝ) (ha : 1/4<a) (b : GDriver) (s : ℝ≥0) :
(survivingKernel a ha s b).restrict {z : UpperPlane | alive a b.1 s z.1}=
survivingKernel a ha s b :=by
proof · 9
lines
havehD : MeasurableSet {z : UpperPlane | alive a b.1 s z.1} :=
(measurableSet_alive_joint a ha).preimage
(measurable_const.prodMk (measurable_const.prodMk measurable_id))
rw [survivingKernel_apply,restrict_withDensity hD,←withDensity_indicator hD]
congr 1
funext z
by_cases hz : alive a b.1 s z.1
· simp only [Set.indicator_apply,Set.mem_ofPred_eq,ite_eq_left hz]
· simp only [Set.indicator_apply,Set.mem_ofPred_eq,ite_eq_right hz,survivingGreen,ENNReal.ofReal_zero]
lemmarestartPush_initialGreen (a : ℝ) (ha : 1/4<a) (b : GDriver) (s : ℝ≥0) :
restartPush a (lt_trans (by norm_num) ha) b s (initialGreenMeasure a)=
survivingKernel a ha s b :=by
proof · 2
lines
have h := restartPush_survivingKernel a ha b s 0
rwa [survivingKernel_zero,add_zero,survivingKernel_restrict_alive] at h
lemmarestartPush_mean (a : ℝ) (ha : 1/4<a) (b : GDriver) (s : ℝ≥0)
(μ : KernelGDriverUpperPlane) (W : MeasureGDriver)
(hμ : μ ∘ₘ W=initialGreenMeasure a) {f : UpperPlane→ℝ≥0∞} (hf : Measurable f) :
(∫⁻c,∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha) b s (μ c)∂W)=
∫⁻z,f z∂survivingKernel a ha s b :=by
proof · 9
lines
have hJ := (continuous_inverseUpper a (lt_trans (by norm_num) ha) b s).measurable
havehg : Measurable (fun z => restartWeight a b s z*
f (inverseUpper a (lt_trans (by norm_num) ha) b s z)) :=
(restartWeight_measurable a ha b s).mul (hf.comp hJ)
simp_rw [restartPush_lintegral a ha b s _ hf]
rw [←Measure.lintegral_bind (m:=W) μ.aemeasurable hg.aemeasurable]
change (∫⁻z,restartWeight a b s z*f (inverseUpper a (lt_trans (by norm_num) ha) b s z)
∂μ ∘ₘ W)=_
rw [hμ,←restartPush_lintegral a ha b s _ hf,restartPush_initialGreen]
theoremrestartPush_stopped_terminal_mean (a : ℝ) (ha : 1/4<a)
(μ : KernelGDriverUpperPlane) [IsSFiniteKernel μ] (W : MeasureGDriver)
(hW : IsBrownianReal (fun t (b : GDriver) => b.1 t) W)
(hμ : μ ∘ₘ W=initialGreenMeasure a)
(S : GDriver→ℝ≥0∞) (hS : IsStoppingTime rawFiltration S)
{A : SetGDriver} (hA : MeasurableSet[hS.measurableSpace] A)
{f : UpperPlane→ℝ≥0∞} (hf : Measurable f) :
(∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha)
b (S b).toNNReal (μ (restartAt S b))∂W)=
∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂stoppedSurvivingKernel a ha S hS b∂W:=by
proof · 19
lines
letF : ((ℝ≥0×GDriver)×GDriver)→ℝ≥0∞:=fun p =>∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha) p.1.2 p.1.1 (μ p.2)
have h := lintegral_data_restartAt_on hW hS (stoppedData_raw_measurable hS) hA
(restartPush_test_joint_measurable a ha μ hf)
have he (b c : GDriver) : F (stoppedData S b,c)=
∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha) b (S b).toNNReal (μ c) :=by
simp only [F,restartPush,inverseUpper_stoppedData,
restartWeight_stoppedData a (lt_trans (by norm_num) ha)]
change (∫⁻b inA∩{b | S b≠∞},F (stoppedData S b,restartAt S b)∂W)=
∫⁻b inA∩{b | S b≠∞},∫⁻c,F (stoppedData S b,c)∂W∂W at h
simp_rw [he] at h
rw [h]
apply setLIntegral_congr_fun ((hS.measurableSpace_le A hA).inter
(hS.measurable' (measurableSet_singleton ∞)).compl)
intro b hb
dsimp only
rw [restartPush_mean a ha _ _ μ W hμ hf,stoppedSurvivingKernel_apply]
havehbfin : S b≠∞:= hb.2
simp only [stoppedSurvivingGreen,ite_eq_right hbfin,survivingKernel_apply]
apply Measure.measurable_of_measurable_coe
intro A hA
have h := restartPush_test_joint_measurable a ha μ
(measurable_const.indicator hA : Measurable (A.indicator (fun _ => (1:ℝ≥0∞))))
simpa only [lintegral_indicator hA,setLIntegral_one] using h
toFun b :=ifS b=∞then0else
restartPush a (lt_trans (by norm_num) ha) b (S b).toNNReal (μ (restartAt S b))
measurable' :=byhavehin : Measurable (fun b => (((S b).toNNReal,b),restartAt S b)) :=
((ENNReal.measurable_toNNReal.comp hS.measurable').prodMk measurable_id).prodMk
(measurable_restartAt hS)
have h := (restartPush_measure_joint_measurable a ha μ).comp hin
change Measurable (fun b => restartPush a (lt_trans (by norm_num) ha)
b (S b).toNNReal (μ (restartAt S b))) at h
exact Measurable.ite (hS.measurable' (measurableSet_singleton ∞)) measurable_const h
theoremrestartCandidateKernel_average_on (a : ℝ) (ha : 1/4<a)
(μ : KernelGDriverUpperPlane) [IsSFiniteKernel μ] (W : MeasureGDriver)
(hW : IsBrownianReal (fun t (b : GDriver) => b.1 t) W)
(hμ : μ ∘ₘ W=initialGreenMeasure a)
(S : GDriver→ℝ≥0∞) (hS : IsStoppingTime rawFiltration S)
{A : SetGDriver} (hA : MeasurableSet[hS.measurableSpace] A) :
restartCandidateKernel a ha μ S hS ∘ₘ (W.restrict A)=
stoppedSurvivingKernel a ha S hS ∘ₘ (W.restrict A) :=by
proof · 22
lines
havehfinite : MeasurableSet {b | S b≠∞} :=
(hS.measurable' (measurableSet_singleton ∞)).compl
ext B hB
rw [Measure.bind_apply hB (Kernel.aemeasurable _),Measure.bind_apply hB (Kernel.aemeasurable _)]
have he := restartPush_stopped_terminal_mean a ha μ W hW hμ S hS hA
(measurable_const.indicator hB : Measurable (B.indicator (fun _ => (1:ℝ≥0∞))))
simp only [lintegral_indicator hB,setLIntegral_one] at he
calc
_ = ∫⁻b inA∩{b | S b≠∞},
restartPush a (lt_trans (by norm_num) ha) b (S b).toNNReal (μ (restartAt S b)) B ∂W:=by
rw [inter_comm A {b | S b≠∞},←Measure.restrict_restrict hfinite,←lintegral_indicator hfinite]
apply lintegral_congr
intro b
by_cases hb : S b=∞ <;> simp [restartCandidateKernel_apply,hb]
_ = _ := he
_ = ∫⁻b inA,stoppedSurvivingKernel a ha S hS b B∂W:=by
rw [inter_comm A {b | S b≠∞},←Measure.restrict_restrict hfinite,←lintegral_indicator hfinite]
apply lintegral_congr
intro b
by_cases hb : S b=∞
· simp [hb,stoppedSurvivingKernel_apply,stoppedSurvivingGreen]
· simp [hb]
theoremrestartCandidateKernel_average_le_initial (a : ℝ) (ha : 1/4<a)
(μ : KernelGDriverUpperPlane) [IsSFiniteKernel μ] (W : MeasureGDriver)
(hW : IsBrownianReal (fun t (b : GDriver) => b.1 t) W)
(hμ : μ ∘ₘ W=initialGreenMeasure a)
(S : GDriver→ℝ≥0∞) (hS : IsStoppingTime rawFiltration S) :
restartCandidateKernel a ha μ S hS ∘ₘ W≤ initialGreenMeasure a :=by
proof · 5
lines
let:= hW.isGaussianProcess.isProbabilityMeasure
have h := restartCandidateKernel_average_on a ha μ W hW hμ S hS MeasurableSet.univ
rw [Measure.restrict_univ] at h
rw [h]
exact stoppedSurvivingKernel_average_le_initial a ha W hW S hS
theoremrestartCandidateKernel_compact_lintegral_lt_top (a : ℝ) (ha : 1/4<a)
(μ : KernelGDriverUpperPlane) [IsSFiniteKernel μ] (W : MeasureGDriver)
(hW : IsBrownianReal (fun t (b : GDriver) => b.1 t) W)
(hμ : μ ∘ₘ W=initialGreenMeasure a)
(S : GDriver→ℝ≥0∞) (hS : IsStoppingTime rawFiltration S)
{K : SetUpperPlane} (hK : IsCompactK) :
(∫⁻b,restartCandidateKernel a ha μ S hS b K∂W)<∞:=by
proof · 3
lines
rw [←Measure.bind_apply hK.measurableSet (Kernel.aemeasurable _)]
exact ((restartCandidateKernel_average_le_initial a ha μ W hW hμ S hS) K).trans_lt
hK.measure_lt_top
theoremrestartPush_conditional_kernel (a : ℝ) (ha : 1/4<a)
(KL : KernelGDriverUpperPlane) [IsSFiniteKernelK] [IsSFiniteKernelL]
{W : MeasureGDriver} (hW : IsBrownianReal (fun t (b : GDriver) => b.1 t) W)
{t : ℝ≥0}
(hcond : ∀H : GDriver×UpperPlane→ℝ≥0∞,
Measurable[(rawFiltration t).prod (inferInstance : MeasurableSpaceUpperPlane)] H→
(∫⁻c,∫⁻z,H (c,z)∂K c∂W)=(∫⁻c,∫⁻z,H (c,z)∂L c∂W)+
∫⁻c,∫⁻z,H (c,z)∂survivingKernel a ha t c∂W)
{S : GDriver→ℝ≥0∞} (hS : IsStoppingTime rawFiltration S)
{A : SetGDriver} (hA : MeasurableSet[(shiftStop_isStoppingTime hS t).measurableSpace] A)
{f : UpperPlane→ℝ≥0∞} (hf : Measurable f) :
(∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha)
b (S b).toNNReal (K (restartAt S b))∂W)=
(∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha)
b (S b).toNNReal (L (restartAt S b))∂W)+
∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂(survivingKernel a ha ((S b).toNNReal+t) b).restrict
{z : UpperPlane | alive a b.1 (S b).toNNReal z.1}∂W:=by
proof · 15
lines
letF : (ℝ≥0×GDriver)×UpperPlane→ℝ≥0∞:=fun p =>
restartWeight a p.1.2 p.1.1 p.2*
f (inverseUpper a (lt_trans (by norm_num) ha) p.1.2 p.1.1 p.2)
have h := restartAt_conditional_kernel KL (survivingKernel a ha t) hW hcond hS hA
(restartPullback_joint_measurable a ha hf)
have he (M : KernelGDriverUpperPlane) (b : GDriver) :
(∫⁻z,F (stoppedData S b,z)∂M (restartAt S b))=
∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha) b (S b).toNNReal (M (restartAt S b)) :=by
rw [restartPush_lintegral a ha _ _ _ hf]
simp only [F,inverseUpper_stoppedData,restartWeight_stoppedData a (lt_trans (by norm_num) ha)]
change (∫⁻b inA∩{b | S b≠∞},∫⁻z,F (stoppedData S b,z)∂K (restartAt S b)∂W)=
(∫⁻b inA∩{b | S b≠∞},∫⁻z,F (stoppedData S b,z)∂L (restartAt S b)∂W)+
∫⁻b inA∩{b | S b≠∞},∫⁻z,F (stoppedData S b,z)∂survivingKernel a ha t (restartAt S b)∂W at h
simp_rw [he] at h
simpa only [restartAt,restartPush_survivingKernel] using h
theoremrecoveredMass_restarted_potential (a : ℝ) (ha : 1/4<a)
(W : MeasureGDriver) (hW : IsBrownianReal (fun t (b : GDriver) => b.1 t) W)
(s : ℕ→Finsetℕ) (c : ℕ→ℕ→ℝ)
(hc : ∀k j,j∈s k→0≤c k j) (hs : ∀k j,j∈s k→k≤j)
(hsum : ∀k,∑j∈s k,c k j=1)
(hconv : ∀ᵐ b ∂W, ∀v : ℝ≥0∞, ∀g : C_c(UpperPlane,ℝ), Tendsto
(fun k =>∑j∈s k,c k j*∫z,g z∂actualUpperMass a
(Real.exp (-2*a*(j+1))) v b)
atTop (𝓝 (∫z,g z∂recoveredMass a ha s c hc v b)))
{S : GDriver→ℝ≥0∞} (hS : IsStoppingTime rawFiltration S)
{t : ℝ≥0} {A : SetGDriver}
(hA : MeasurableSet[(shiftStop_isStoppingTime hS t).measurableSpace] A)
{f : UpperPlane→ℝ≥0∞} (hf : Measurable f) :
let μ := recoveredMass a ha s c hc
proof · 31
lines
(∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha)
b (S b).toNNReal (μ ∞ (restartAt S b))∂W)=
(∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂restartPush a (lt_trans (by norm_num) ha)
b (S b).toNNReal (μ t (restartAt S b))∂W)+
∫⁻b inA∩{b | S b≠∞},∫⁻z,f z∂(survivingKernel a ha ((S b).toNNReal+t) b).restrict
{z : UpperPlane | alive a b.1 (S b).toNNReal z.1}∂W:=by
intro μ
let:= hW.isGaussianProcess.isProbabilityMeasure
letK : ℝ≥0∞→KernelGDriverUpperPlane:=fun v =>
⟨μ v,recoveredMass_measurable a ha s c hc v⟩
let (v : ℝ≥0∞) (b : GDriver) : IsFiniteMeasureOnCompacts (K v b) := radonLimit_finite _
have (v : ℝ≥0∞) : IsSFiniteKernel (K v) := isSFiniteKernel_of_locally_finite (K v)
have hcond (H : GDriver×UpperPlane→ℝ≥0∞)
(hH : Measurable[(rawFiltration t).prod (inferInstance : MeasurableSpaceUpperPlane)] H) :
(∫⁻b,∫⁻z,H (b,z)∂K∞ b∂W)=(∫⁻b,∫⁻z,H (b,z)∂K t b∂W)+
∫⁻b,∫⁻z,H (b,z)∂survivingKernel a ha t b∂W:=byhave hi := (recoveredMass_all_stopping a ha W hW s c hc hs hsum hconv
_ (isStoppingTime_const rawFiltration t)).2.2.2.2H
rw [IsStoppingTime.measurableSpace_const] at hi
havehn : MeasurableH:= hH.mono (prod_sigma_le (rawFiltration.le t) _) le_rfl
have he (b : GDriver) : (∫⁻z,H (b,z)∂survivingKernel a ha t b)=
∫⁻z,H (b,z)*ENNReal.ofReal (survivingGreen a t b z.1)∂upperArea :=by
rw [survivingKernel_apply]
exact (lintegral_withDensity_eq_lintegral_mul upperArea
(survivingGreen_spatial_measurable a ha t b).ennreal_ofReal
(hn.comp (measurable_const.prodMk measurable_id))).trans
(lintegral_congr fun _ => mul_comm _ _)
simp_rw [he]
simpa only [K,Kernel.coe_mk,μ,stoppedSurvivingGreen, ENNReal.some_eq_coe', ENNReal.coe_ne_top, ↓reduceIte,
ENNReal.toNNReal_coe] using hi hH
exact restartPush_conditional_kernel a ha (K∞) (K t) hW hcond hS hA hf
lemmafreshPast_eq (S : GDriver→ℝ≥0∞) (t : ℝ≥0) {b : GDriver} (hb : S b≠∞) :
freshPast S t b=pastDriver t (restartAt S b) :=by
proof · 9
lines
havehe : (shiftStop S t b).toNNReal=(S b).toNNReal+t :=by
rw [shiftStop,ENNReal.toNNReal_add hb ENNReal.coe_ne_top,ENNReal.toNNReal_coe]
apply Subtype.ext
ext u
change (restart (S b).toNNReal (pastDriver (shiftStop S t b).toNNReal b)).1 (min u t)=
(restart (S b).toNNReal b).1 (min u t)
simp only [restart_apply,he]
rw [pastDriver_eq _ b _ (add_le_add (le_refl (S b).toNNReal) (min_le_right u t)),
pastDriver_eq _ b _ (le_self_add)]
classical
have hD := (stoppedData_raw_measurable hS).mono (measurableSpace_le_shiftStop hS t) le_rfl
have hM := (restartPush_measure_joint_measurable a ha K).comp
(hD.prodMk (freshPast_raw_measurable hS t))
havehtop : MeasurableSet[(afterStopFiltration hS) t] {b | S b=∞} :=
(measurableSpace_le_shiftStop hS t) _ (hS.measurable (measurableSet_singleton ∞))
havehh : Measurable[(afterStopFiltration hS) t] (fun b =>ifS b=∞then (0:MeasureUpperPlane) else restartPush a (lt_trans (by norm_num) ha)
(stoppedData S b).2 (stoppedData S b).1 (K (freshPast S t b))) :=Measurable.ite htop measurable_const hM
convert hh using1
funext b
change (ifS b=∞then0else restartPush a _ b (S b).toNNReal (K (restartAt S b)))=
ifS b=∞then0else restartPush a _ (stoppedData S b).2 (stoppedData S b).1
(K (freshPast S t b))
by_cases hb : S b=∞
· simp only [hb,ite_true]
· simp only [ite_eq_right hb,freshPast_eq S t hb]
rw [raw_measure_congr hK (pastDriver_eq t (restartAt S b))]
simp only [restartPush,inverseUpper_stoppedData,
restartWeight_stoppedData a (lt_trans (by norm_num) ha)]
lemmarecoveredRestart_measurable (a : ℝ) (ha : 1/4<a)
(s : ℕ→Finsetℕ) (c : ℕ→ℕ→ℝ) (hc : ∀k j,j∈s k→0≤c k j)
{S : GDriver→ℝ≥0∞} (hS : IsStoppingTime rawFiltration S) (v : ℝ≥0∞) :
Measurable (recoveredRestart a ha s c hc S v) :=by
proof · 5
lines
letK : KernelGDriverUpperPlane:=
⟨recoveredMass a ha s c hc v,recoveredMass_measurable a ha s c hc v⟩
let (b : GDriver) : IsFiniteMeasureOnCompacts (K b) := radonLimit_finite _
have : IsSFiniteKernelK:= isSFiniteKernel_of_locally_finite K
exact (restartCandidateKernel a ha KS hS).measurable
lemmarecoveredRestart_compact_stronglyAdapted (a : ℝ) (ha : 1/4<a)
(s : ℕ→Finsetℕ) (c : ℕ→ℕ→ℝ) (hc : ∀k j,j∈s k→0≤c k j)
{S : GDriver→ℝ≥0∞} (hS : IsStoppingTime rawFiltration S) (f : C_c(UpperPlane,ℝ)) :
StronglyAdapted (afterStopFiltration hS)
(funt : ℝ≥0=>fun b =>∫z,f z∂recoveredRestart a ha s c hc S t b) :=by
proof · 11
lines
intro t
letK : KernelGDriverUpperPlane:=
⟨recoveredMass a ha s c hc t,recoveredMass_measurable a ha s c hc t⟩
let (b : GDriver) : IsFiniteMeasureOnCompacts (K b) := radonLimit_finite _
have : IsSFiniteKernelK:= isSFiniteKernel_of_locally_finite Khave hh := restartCandidateKernel_raw_measurable a ha K
(recoveredMass_raw_measurable a ha s c hc t) hS
let : MeasurableSpaceGDriver:= (afterStopFiltration hS) t
letL : @KernelGDriverUpperPlane ((afterStopFiltration hS) t) inferInstance :=
⟨recoveredRestart a ha s c hc S t,hh⟩
exact f.continuous.stronglyMeasurable.integral_kernel (κ:=L)