Kyprianou_Ch08_BorelRestartLaw
DefinitionDefinition code
import Definitions.Def_Kyprianou_Ch08_StrongMarkovLaw
import Definitions.Def_Kyprianou_Ch08_StoppingTimeLevels
open MeasureTheory ProbabilityTheory Set Filter Topology
open Kyprianou.Ch08 Kyprianou.Ch08.StageB
open scoped NNReal ENNReal
set_option autoImplicit false
namespace Kyprianou.Ch08.StageB
/-- **The Borel σ-algebra of the product topology on the path space `ℝ≥0 → ℝ`.**
The published `StrongMarkovRestartLaw` measures the path functional `f a` with respect to
*the instance* measurable space on `ℝ≥0 → ℝ`. That instance is `MeasurableSpace.pi`, the
**cylinder** σ-algebra generated by the coordinate projections: its members are exactly the
sets that depend on countably many coordinates. The last-exit functional does not depend on
countably many coordinates (the set of its negative times is an uncountable union), so it is
*not* measurable for the cylinder σ-algebra, and the side condition of `StrongMarkovRestartLaw`
cannot be discharged for it.
The Borel σ-algebra of the product topology is the natural fix: it contains the cylinder
σ-algebra, and the last-exit functional *is* measurable for it, because
* `{g | lastNegativeVisit g ≤ c} = ⋂ {u | c < u} {g | g u ≥ 0}` is closed (each `{g | g u ≥ 0}`
is closed, since `u ↦ (g ↦ g u)` is continuous), and
* `{g | lastNegativeVisit g = ⊤} = ⋂ n, ⋃ {u | n < u} {g | g u < 0}` is a `G_delta`.
Mathlib's `Pi.borelSpace` instance for the product topology requires a **countable** index
type, and `ℝ≥0` is uncountable, so the Borel structure of the product topology is *not*
available as an instance on `ℝ≥0 → ℝ`: it has to be named, as it is here. -/
def pathBorelSpace : MeasurableSpace (ℝ≥0 → ℝ) :=
borel (ℝ≥0 → ℝ)
/-- **Measurability against the Borel structure of the product topology on the path space.**
`PathBorelMeasurable f` says that `f : (ℝ≥0 → ℝ) → ℝ` sends Borel sets of `ℝ` to Borel sets of
the path space, where the path space carries `pathBorelSpace`, the Borel σ-algebra of the
product topology.
This is the usual `Measurable` predicate with *both* σ-algebras named explicitly:
```lean
@Measurable : {α : Type u_1} → {β : Type u_2} → [MeasurableSpace α] → [MeasurableSpace β] →
(α → β) → Prop
```
(probe output at rev `0df444a3`). The domain structure is therefore an *argument* of
`Measurable`, not only the ambient instance — but the ambient instance is what the published
`StrongMarkovRestartLaw` uses, and that ambient instance is the cylinder σ-algebra
`MeasurableSpace.pi`, which is exactly why the published side condition is unsatisfiable
(§1.2 of `notes.md`). Naming `pathBorelSpace` here is the repair. -/
def PathBorelMeasurable (f : (ℝ≥0 → ℝ) → ℝ) : Prop :=
@Measurable (ℝ≥0 → ℝ) ℝ pathBorelSpace (borel ℝ) f
/-- **Measurability of the last-exit path functional.**
`LastExitFunctionalBorelMeasurable q` says that the map
`g ↦ discountedAt q (lastNegativeVisit (fun s _ => g s) ())` from the path space to `ℝ` is
measurable for `pathBorelSpace`, i.e. for the Borel σ-algebra of the product topology on the
path space. This is the hypothesis that `StrongMarkovRestartLaw` cannot supply, because that
law measures the functional against the cylinder σ-algebra `MeasurableSpace.pi`. -/
def LastExitFunctionalBorelMeasurable (q : ℝ) : Prop :=
∀ a : ℝ, PathBorelMeasurable (fun g : ℝ≥0 → ℝ =>
discountedAt q (lastNegativeVisit (fun s (_ : Unit) => g s) ()))
/-- **The strong Markov restart law, with the path functional measured against the Borel
σ-algebra of the product topology on the path space.**
This is `StrongMarkovRestartLaw` with exactly one change: the side condition
`∀ a, Measurable (f a)` is now taken with respect to `pathBorelSpace` rather than with respect
to the cylinder σ-algebra `MeasurableSpace.pi`. Everything else — the bound `τ ω ≤ T`, the
measurability of the level `c` and of the weight `w` at time `t ≤ T`, the restarted path
`c ω + X (τ ω + s) ω - X (τ ω) ω` on the left and the fresh copy `c ω + X s η` on the right —
is unchanged. -/
def StrongMarkovRestartLawBorel {Ω : Type*} [mΩ : MeasurableSpace Ω]
(P : Measure Ω) (𝓕 : Filtration ℝ≥0 mΩ)
(X : ℝ≥0 → Ω → ℝ) (τ : Ω → ℝ≥0) (T : ℝ≥0) : Prop :=
(∀ ω, τ ω ≤ T) ∧
∀ (c w : Ω → ℝ) (f : ℝ → (ℝ≥0 → ℝ) → ℝ),
(∀ a : ℝ, PathBorelMeasurable (f a)) →
(∀ ω, 0 ≤ w ω) →
∀ (t : ℝ≥0) (A : Set Ω),
t ≤ T →
@MeasurableSet Ω (𝓕 t) A →
@Measurable Ω ℝ (𝓕 t) inferInstance c →
@Measurable Ω ℝ (𝓕 t) inferInstance w →
(∫ ω, w ω * f (c ω)
(fun s : ℝ≥0 => c ω + X (τ ω + s) ω - X (τ ω) ω) ∂P.restrict A) =
(P A).toReal *
(∫ ω, (∫ η, w ω * f (c ω) (fun s : ℝ≥0 => c ω + X s η) ∂P) ∂P)
end Kyprianou.Ch08.StageB