Quelle LocalProperty.lean
Sprache: Lean
|
|
/-
Copyright (c) 2026 Rémy Degenne, Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Kexing Ying
-/
module
public import Mathlib.Probability.Process.Stopping
/-! # Local properties of processes
This file defines local and stable properties of stochastic processes with respect to a filtration.
This is notably useful for local martingales.
## Main definitions
* `IsPreLocalizingSequence`: A pre-localizing sequence is a sequence of stopping
times which tends almost surely to infinity.
* `IsLocalizingSequence`: A localizing sequence is a pre-localizing sequence
which is almost surely non-decreasing.
* `Locally`: A stochastic process `X` is said to satisfy a property `p` locally
with respect to a filtration `` if there exists a localizing sequence `(τ n)` such that for all
`n`, the stopped process `X^{τ n} I_{τ n > ⊥}` satisfies `p`.
* `IsStable`: A property of stochastic processes is said to be stable if it is
preserved under taking the stopped process `X^{τ} I_{τ > ⊥}` by a stopping time `τ`.
## Main results
* `IsStable.isStable_locally`: If a property `p` is stable, then the property
"satisfies `p` locally" is also stable.
* `IsPreLocalizingSequence.isLocalizingSequence_biInf`: Given a
pre-localizing sequence `(τ n)`, the sequence `⊓ j ≥ n, τ j` is a localizing sequence.
* `IsStable.locally_of_isPreLocalizingSequence`: If a property `p` is stable, then
to prove that `X` satisfies `p` locally, one can replace the localizing sequence in the definition
of "locally" by a pre-localizing sequence.
* `IsStable.locally_locally`: For stable properties, locally is idempotent.
* `IsStable.locally_induction`: If `q` is a stable property, and `p` implies
locally `q`, then locally `p` implies locally `q`.
### Tags
localizing sequence, local property, stable property
-/
@[expose] public section
open MeasureTheory Filter Filtration CompleteLattice
open scoped ENNReal Topology
namespace ProbabilityTheory
variable {ι Ω E : Type*} {mΩ : MeasurableSpace Ω} {P : Measure Ω}
/-- A pre-localizing sequence is a sequence of stopping times that tends almost surely to
infinity. -/
structure IsPreLocalizingSequence [Preorder ι] [TopologicalSpace ι] [OrderTopology ι]
( : Filtration ι mΩ) (τ : ℕ → Ω → WithTop ι) (P : Measure Ω := by volume_tac) :
Prop where
isStoppingTime : ∀ n, IsStoppingTime (τ n)
tendsto_top : ∀ᵐ ω ∂P, Tendsto (τ · ω) atTop ( ⊤)
/-- A localizing sequence is a sequence of stopping times that is almost surely increasing and
tends almost surely to infinity. -/
structure IsLocalizingSequence [Preorder ι] [TopologicalSpace ι] [OrderTopology ι]
( : Filtration ι mΩ) (τ : ℕ → Ω → WithTop ι)
(P : Measure Ω := by volume_tac) extends IsPreLocalizingSequence τ P where
mono : ∀ᵐ ω ∂P, Monotone (τ · ω)
lemma isLocalizingSequence_const_top [Preorder ι] [TopologicalSpace ι] [OrderTopology ι]
( : Filtration ι mΩ) (P : Measure Ω) : IsLocalizingSequence (fun _ _ ↦ ⊤) P where
isStoppingTime n := by simp [IsStoppingTime]
mono := ae_of_all _ fun _ _ _ _ ↦ by simp
tendsto_top := ae_of_all _ fun _ ↦ tendsto_const_nhds
section LinearOrder
variable [LinearOrder ι] { : Filtration ι mΩ} {X : ι → Ω → E} {p q : (ι → Ω → E) → Prop}
protected lemma IsLocalizingSequence.min [TopologicalSpace ι] [OrderTopology ι]
{τ σ : ℕ → Ω → WithTop ι}
(hτ : IsLocalizingSequence τ P) (hσ : IsLocalizingSequence σ P) :
IsLocalizingSequence (min τ σ) P where
isStoppingTime n := (hτ.isStoppingTime n).min (hσ.isStoppingTime n)
mono := by filter_upwards [hτ.mono, hσ.mono] with ω hτω hσω using hτω.min hσω
tendsto_top := by
filter_upwards [hτ.tendsto_top, hσ.tendsto_top] with ω hτω hσω using hτω.min hσω
variable [OrderBot ι]
/-- A stochastic process `X` is said to satisfy a property `p` locally with respect to a
filtration `` if there exists a localizing sequence `(τ_n)` such that for all `n`, the stopped
process `fun i ↦ {ω | ⊥ < τ n ω}.indicator (X i)` satisfies `p`. -/
def Locally [TopologicalSpace ι] [OrderTopology ι] [Zero E]
(p : (ι → Ω → E) → Prop) ( : Filtration ι mΩ)
(X : ι → Ω → E) (P : Measure Ω := by volume_tac) : Prop :=
∃ τ : ℕ → Ω → WithTop ι, IsLocalizingSequence τ P ∧
∀ n, p (stoppedProcess (fun i ↦ {ω | ⊥ < τ n ω}.indicator (X i)) (τ n))
namespace Locally
variable [TopologicalSpace ι] [OrderTopology ι]
/-- A localizing sequence, witness of the local property of the stochastic process. -/
noncomputable
def localSeq [Zero E] (hX : Locally p X P) :
ℕ → Ω → WithTop ι :=
hX.choose
lemma isLocalizingSequence_localSeq [Zero E] (hX : Locally p X P) :
IsLocalizingSequence hX.localSeq P :=
hX.choose_spec.1
lemma stoppedProcess_localSeq [Zero E] (hX : Locally p X P) (n : ℕ) :
p (stoppedProcess (fun i ↦ {ω | ⊥ < hX.localSeq n ω}.indicator (X i)) (hX.localSeq n)) :=
hX.choose_spec.2 n
lemma of_prop [Zero E] (hp : p X) : Locally p X P :=
⟨fun n _ ↦ ⊤, isLocalizingSequence_const_top _ _, by simpa⟩
lemma mono [Zero E] (hpq : ∀ X, p X → q X) (hpX : Locally p X P) :
Locally q X P :=
⟨hpX.localSeq, hpX.isLocalizingSequence_localSeq, fun n ↦ hpq _ <| hpX.stoppedProcess_localSeq n⟩
lemma of_and [Zero E] (hX : Locally (fun Y ↦ p Y ∧ q Y) X P) :
Locally p X P ∧ Locally q X P :=
⟨hX.mono <| fun _ ↦ And.left, hX.mono <| fun _ ↦ And.right⟩
lemma left [Zero E] (hX : Locally (fun Y ↦ p Y ∧ q Y) X P) :
Locally p X P :=
hX.of_and.left
lemma right [Zero E] (hX : Locally (fun Y ↦ p Y ∧ q Y) X P) :
Locally q X P :=
hX.of_and.right
end Locally
variable [Zero E]
/-- A property of stochastic processes is said to be stable if it is preserved under taking
the stopped process by a stopping time. -/
def IsStable
( : Filtration ι mΩ) (p : (ι → Ω → E) → Prop) : Prop :=
∀ X : ι → Ω → E, p X → ∀ τ : Ω → WithTop ι, IsStoppingTime τ →
p (stoppedProcess (fun i ↦ {ω | ⊥ < τ ω}.indicator (X i)) τ)
protected lemma IsStable.and (hp : IsStable p) (hq : IsStable q) :
IsStable (fun X ↦ p X ∧ q X) :=
fun _ hX τ hτ ↦ ⟨hp _ hX.left τ hτ, hq _ hX.right τ hτ⟩
variable [TopologicalSpace ι] [OrderTopology ι]
lemma IsStable.locally (hp : IsStable p) :
IsStable (fun Y ↦ Locally p Y P) := by
refine fun X hX τ hτ ↦ ⟨hX.localSeq, hX.isLocalizingSequence_localSeq, fun n ↦ ?_⟩
simp_rw [← stoppedProcess_indicator_comm', Set.indicator_indicator, Set.inter_comm,
← Set.indicator_indicator, stoppedProcess_stoppedProcess, inf_comm,
stoppedProcess_indicator_comm', ← stoppedProcess_stoppedProcess]
exact hp _ (hX.stoppedProcess_localSeq n) τ hτ
lemma IsStable.locally_and_iff (hp : IsStable p) (hq : IsStable q) :
Locally (fun Y ↦ p Y ∧ q Y) X P ↔ Locally p X P ∧ Locally q X P := by
refine ⟨Locally.of_and, fun ⟨hpX, hqX⟩ ↦
⟨_, hpX.isLocalizingSequence_localSeq.min hqX.isLocalizingSequence_localSeq, fun n ↦ ?_⟩⟩
suffices ∀ (p q : (ι → Ω → E) → Prop) (hp : IsStable p) (hq : IsStable q)
(hpX : Locally p X P) (hqX : Locally q X P),
p (stoppedProcess (fun i ↦ {ω | ⊥ < (hpX.localSeq ⊓ hqX.localSeq) n ω}.indicator (X i))
((hpX.localSeq ⊓ hqX.localSeq) n)) by
refine ⟨this p q hp hq hpX hqX, ?_⟩
simp_rw [inf_comm hpX.localSeq]
exact this q p hq hp hqX hpX
intro p q hp hq hpX hqX
convert
hp _ (hpX.stoppedProcess_localSeq n) _ <|
hqX.isLocalizingSequence_localSeq.isStoppingTime n using 1
ext i ω
simp_rw [stoppedProcess_indicator_comm, Pi.inf_apply, lt_inf_iff, inf_comm (hpX.localSeq n)]
rw [← stoppedProcess_stoppedProcess, ← stoppedProcess_indicator_comm, Set.ofPred_and,
Set.inter_comm]
simp_rw [← Set.indicator_indicator]
rfl
end LinearOrder
section ConditionallyCompleteLinearOrderBot
variable [ConditionallyCompleteLinearOrderBot ι] [TopologicalSpace ι] [OrderTopology ι]
{ : Filtration ι mΩ} {X : ι → Ω → E} {p q : (ι → Ω → E) → Prop}
lemma IsPreLocalizingSequence.isLocalizingSequence_biInf
[DenselyOrdered ι] [FirstCountableTopology ι] [NoMaxOrder ι]
{τ : ℕ → Ω → WithTop ι} [IsRightContinuous ] (hτ : IsPreLocalizingSequence τ P) :
IsLocalizingSequence (fun i ω ↦ ⨅ j ≥ i, τ j ω) P where
isStoppingTime n := IsStoppingTime.biInf (Set.to_countable {j | j ≥ n})
(fun j _ ↦ hτ.isStoppingTime j)
mono := ae_of_all _ <| fun ω n m hnm ↦
iInf_le_iInf_of_subset (s := {j | j ≥ m}) (t := {j | j ≥ n}) fun k hk ↦ hnm.trans hk
tendsto_top := by
filter_upwards [hτ.tendsto_top] with ω hω
replace hω := hω.liminf_eq
rw [liminf_eq_iSup_iInf_of_nat] at hω
rw [← hω]
refine tendsto_atTop_iSup fun n m hnm ↦ ?_
simp [iInf_le_iff]
grind
/-- A process `X` satisfies a stable property `p` locally if there exists a pre-localizing
sequence `τ` for which the stopped processes of `fun i ↦ {ω | ⊥ < τ n ω}.indicator (X i)` satisfy
`p`. -/
lemma IsStable.locally_of_isPreLocalizingSequence
[Zero E] [DenselyOrdered ι] [FirstCountableTopology ι] [NoMaxOrder ι] {τ : ℕ → Ω → WithTop ι}
(hp : IsStable p) [IsRightContinuous ] (hτ : IsPreLocalizingSequence τ P)
(hpτ : ∀ n, p (stoppedProcess (fun i ↦ {ω | ⊥ < τ n ω}.indicator (X i)) (τ n))) :
Locally p X P := by
refine ⟨_, hτ.isLocalizingSequence_biInf, fun n ↦ ?_⟩
rw [stoppedProcess_indicator_comm', ← stoppedProcess_stoppedProcess_of_le_right
(τ := fun ω ↦ τ n ω) (fun _ ↦ (iInf_le _ n).trans <| iInf_le _ le_rfl),
← stoppedProcess_indicator_comm']
convert
hp _ (hpτ n) (fun ω ↦ ⨅ j ≥ n, τ j ω) <| hτ.isLocalizingSequence_biInf.isStoppingTime n using 2
ext i ω
rw [stoppedProcess_indicator_comm', Set.indicator_indicator]
congr with ω
exact ⟨fun h ↦ ⟨h, lt_of_lt_of_le h <| (iInf_le _ n).trans (iInf_le _ le_rfl)⟩, fun h ↦ h.1⟩
section
variable [SecondCountableTopology ι] [IsFiniteMeasure P]
private lemma isPreLocalizingSequence_of_isLocalizingSequence_aux'
{τ : ℕ → Ω → WithTop ι} {σ : ℕ → ℕ → Ω → WithTop ι}
(hτ : IsLocalizingSequence τ P) (hσ : ∀ n, IsLocalizingSequence (σ n) P) :
∃ T : ℕ → ι, Tendsto T atTop atTop ∧
∀ n, ∃ k, P {ω | σ n k ω < min (τ n ω) (T n)} ≤ (1 / 2) ^ n := by
obtain ⟨T, -, hT⟩ := Filter.exists_seq_monotone_tendsto_atTop_atTop ι
refine ⟨T, hT, fun n ↦ ?_⟩
by_contra! hn
suffices (1 / 2) ^ n ≤ P (⋂ k : ℕ, {ω | σ n k ω < min (τ n ω) (T n)}) by
refine (by simp : ¬ (1 / 2 : ℝ≥0∞) ^ n ≤ 0) <| this.trans <| nonpos_iff_eq_zero.2 ?_
rw [measure_eq_zero_iff_ae_notMem]
filter_upwards [(hσ n).tendsto_top] with ω hTop hmem
simp_rw [WithTop.tendsto_nhds_top_iff, eventually_atTop] at hTop
simp only [Set.mem_iInter, Set.mem_ofPred_eq] at hmem
obtain ⟨N, hN⟩ := hTop (T n)
specialize hN N le_rfl
grind
rw [measure_iInter_of_ae_antitone, le_iInf_iff]
· exact fun k ↦ (hn k).le
· filter_upwards [(hσ n).mono] with ω hω
intros i j hij
specialize hω hij
simp at *
grind
· refine fun i ↦ .nullMeasurableSet ?_
simp_rw [lt_inf_iff, Set.ofPred_and]
exact MeasurableSet.inter
(measurableSet_lt ((hσ n).isStoppingTime i).measurable' (hτ.isStoppingTime n).measurable')
<| measurableSet_lt ((hσ n).isStoppingTime i).measurable' measurable_const
· exact ⟨0, measure_ne_top P _⟩
/-- Auxiliary definition for `isPreLocalizingSequence_of_isLocalizingSequence` which constructs a
strictly increasing sequence from a given sequence. -/
private def mkStrictMonoAux (x : ℕ → ℕ) : ℕ → ℕ
| 0 => x 0
| n + 1 => max (x (n + 1)) (mkStrictMonoAux x n) + 1
private lemma mkStrictMonoAux_strictMono (x : ℕ → ℕ) : StrictMono (mkStrictMonoAux x) :=
strictMono_nat_of_lt_succ <| fun n ↦ by grind [mkStrictMonoAux]
private lemma le_mkStrictMonoAux (x : ℕ → ℕ) : ∀ n, x n ≤ mkStrictMonoAux x n
| 0 => by simp [mkStrictMonoAux]
| n + 1 => by grind [mkStrictMonoAux]
private lemma isPreLocalizingSequence_of_isLocalizingSequence_aux
{τ : ℕ → Ω → WithTop ι} {σ : ℕ → ℕ → Ω → WithTop ι}
(hτ : IsLocalizingSequence τ P) (hσ : ∀ n, IsLocalizingSequence (σ n) P) :
∃ (nk : ℕ → ℕ) (T : ℕ → ι), StrictMono nk ∧ Tendsto T atTop atTop ∧
∀ n, P {ω | σ n (nk n) ω < min (τ n ω) (T n)} ≤ (1 / 2) ^ n := by
obtain ⟨T, hT, h⟩ := isPreLocalizingSequence_of_isLocalizingSequence_aux' hτ hσ
choose nk hnk using h
refine ⟨mkStrictMonoAux nk, T, mkStrictMonoAux_strictMono nk, hT,
fun n ↦ le_trans (EventuallySubset.measure_le ?_) (hnk n)⟩
filter_upwards [(hσ n).mono] with ω hω
specialize hω (le_mkStrictMonoAux nk n)
simp
grind
lemma IsLocalizingSequence.isPrelocalizingSequence_inf_extraction
[NoMaxOrder ι] {τ : ℕ → Ω → WithTop ι} {σ : ℕ → ℕ → Ω → WithTop ι}
(hτ : IsLocalizingSequence τ P) (hσ : ∀ n, IsLocalizingSequence (σ n) P) :
∃ nk : ℕ → ℕ, StrictMono nk ∧
IsPreLocalizingSequence (fun i ω ↦ (τ i ω) ⊓ (σ i (nk i) ω)) P := by
obtain ⟨nk, T, hnk, hT, hP⟩ := isPreLocalizingSequence_of_isLocalizingSequence_aux hτ hσ
refine ⟨nk, hnk, fun n ↦ (hτ.isStoppingTime n).min ((hσ _).isStoppingTime _), ?_⟩
have : ∑' n, P {ω | σ n (nk n) ω < min (τ n ω) (T n)} < ∞ :=
lt_of_le_of_lt (summable.tsum_mono summable hP)
(tsum_geometric_lt_top.2 <| by simp)
filter_upwards [ae_eventually_notMem this.ne, hτ.tendsto_top] with ω hω hωτ
exact hωτ.min <| tendsto_of_tendsto_of_tendsto_of_le_of_le'
(hωτ.min <| WithTop.tendsto_coe_atTop.comp hT) tendsto_const_nhds (by grind) (by simp)
variable [DenselyOrdered ι] [NoMaxOrder ι] [Zero E]
/-- A stable property holding locally is idempotent. -/
@[simp]
lemma IsStable.locally_locally_iff [IsRightContinuous ] (hp : IsStable p) :
Locally (fun Y ↦ Locally p Y P) X P ↔ Locally p X P := by
refine ⟨fun hL ↦ ?_, fun hL ↦ ⟨hL.localSeq, hL.isLocalizingSequence_localSeq,
fun n ↦ .of_prop <| hL.stoppedProcess_localSeq n⟩⟩
choose τ hτ₁ hτ₂ using hL.stoppedProcess_localSeq
obtain ⟨nk, hnk, hpre⟩ :=
hL.isLocalizingSequence_localSeq.isPrelocalizingSequence_inf_extraction hτ₁
refine locally_of_isPreLocalizingSequence hp hpre <| fun n ↦ ?_
convert hτ₂ n (nk n) using 1 with
ext i ω
rw [stoppedProcess_indicator_comm', stoppedProcess_indicator_comm',
stoppedProcess_stoppedProcess, stoppedProcess_indicator_comm']
simp only [lt_inf_iff, Set.indicator_indicator]
congr 1
· ext; grind
· simp_rw [inf_comm]
rfl
/-- If `q` is a stable property and `p` implies `q` locally, then `p` locally implies
`q` locally. -/
lemma IsStable.locally_induction [IsRightContinuous ]
(hq : IsStable q) (hpq : ∀ Y, p Y → Locally q Y P) (hpX : Locally p X P) :
Locally q X P :=
hq.locally_locally_iff.1 <| hpX.mono hpq
/-- If `p, q, r` are stable properties and `r` and `p` implies locally `q`, then `r` locally
and `p` locally imply `q` locally. -/
lemma IsStable.locally_induction₂ {r : (ι → Ω → E) → Prop} [IsRightContinuous ]
(hrpq : ∀ Y, r Y → p Y → Locally q Y P)
(hr : IsStable r) (hp : IsStable p) (hq : IsStable q)
(hrX : Locally r X P) (hpX : Locally p X P) :
Locally q X P :=
hq.locally_induction (p := fun Y ↦ r Y ∧ p Y) (and_imp.2 <| hrpq ·) <|
(hr.locally_and_iff hp).2 ⟨hrX, hpX⟩
end
end ConditionallyCompleteLinearOrderBot
end ProbabilityTheory
¤ Dauer der Verarbeitung: 0.2 Sekunden
(vorverarbeitet am 2026-11-24)
¤
*© Formatika GbR, Deutschland
|
|
2026-11-24
|