module import TauCeti.MeasureTheory.Measure.FiberMeasure public import Lib.Speed /-! # Measures below a fibre measure Let `π : X → B` be a map, `μ` a measure on `X` and `ν` a measure on `B`. For a submersion of manifolds with smooth positive measures, the fibre measures `dμ / dν` on the fibres of `π` are determined by two properties: integrating over the fibres and then against `ν` is integrating against `μ`, and the fibre integrals of a continuous function of compact support are continuous on `B`. This file does not construct them. It defines the relation of being at most the fibre measure over a point and proves that it is kept by the usual operations on measures and maps. * `New.LeFibreMeasure`: a measure `l` is at most the fibre measure over a point `b`. * `New.LeFibreMeasure.of_coordinates`: a parametrisation `ψ t p` of a part of `X` with `π (ψ t p) = t` and a weight `w t p`, both continuous at `t = b` and dominated by `μ`, give such a measure. * `New.LeFibreMeasure.trans`: the relation for a pair of maps follows from the relations for the two steps, the second map being continuous. * `New.LeFibreMeasure.map_prod`: the relation is kept by a family of maps that respect `π`. ## Relation to the literature Fibre measures: Weil, Sur la formule de Siegel dans la théorie des groupes classiques, no. 6. -/ @[expose] public section namespace New open MeasureTheory Measure Filter Topology Set ENNReal variable {X X' B B' P : Type*} [TopologicalSpace X] [MeasurableSpace X] [TopologicalSpace X'] [MeasurableSpace X'] [TopologicalSpace B] [MeasurableSpace B] [TopologicalSpace B'] [MeasurableSpace B'] [MeasurableSpace P] /-- The measure `l` is at most the fibre measure `dμ / dν` of the map `π : X → B` over the point `b`: for a lower semicontinuous `K ≥ 0`, a bound `∫_{π ∈ S} K dμ ≤ C ν(S)` for all open sets `S` contained in some fixed neighbourhood of `b` gives `∫ K dl ≤ C`. -/ def LeFibreMeasure (μ : Measure X) (ν : Measure B) (π : X → B) (b : B) (l : Measure X) : Prop := ∀ K : X → ℝ≥0∞, LowerSemicontinuous K → ∀ C : ℝ≥0∞, (∀ᶠ S : Set B in (𝓝 b).smallSets, IsOpen S → ∫⁻ x : X in π ⁻¹' S, K x ∂μ ≤ C * ν S) → ∫⁻ x : X, K x ∂l ≤ C namespace LeFibreMeasure variable {μ μ' l l' : Measure X} {ν : Measure B} {ν' : Measure B'} {π π' : X → B} {b : B} /-- Let `(t, p) ↦ ψ t p`, for `t` in a neighbourhood `V` of `b`, parametrise a part of `X` so that `π (ψ t p) = t` for almost every `p` with `w t p ≠ 0` and `μ` is at least `w t p dν(t) dρ(p)` there. If `ψ` and `w` are continuous in `t` at `b` for almost every `p`, then the image of `w b p dρ(p)` under `ψ b` is at most the fibre measure `dμ / dν` of `π` over `b`, in the sense of `LeFibreMeasure`: a bound `C ν(S)` on the integrals over small `π ⁻¹' S` of a lower semicontinuous `K ≥ 0` bounds its integral for this image by `C`. -/ theorem of_coordinates [OpensMeasurableSpace X] [OpensMeasurableSpace B] [FirstCountableTopology B] [ν.IsOpenPosMeasure] [IsLocallyFiniteMeasure ν] {ρ : Measure P} {ψ : B → P → X} {w : B → P → ℝ≥0∞} {V : Set B} (hπ : Measurable π) (hψ : Measurable ψ.uncurry) (hw : Measurable w.uncurry) (hV : V ∈ 𝓝 b) (h_fibre : ∀ t ∈ V, ∀ᵐ p : P ∂ρ, w t p ≠ 0 → π (ψ t p) = t) (h_cont : ∀ᵐ p : P ∂ρ, ContinuousAt (ψ · p) b ∧ ContinuousAt (w · p) b) (h_le : ∀ K : X → ℝ≥0∞, Measurable K → ∫⁻ t : B in V, ∫⁻ p : P, w t p * K (ψ t p) ∂ρ ∂ν ≤ ∫⁻ x : X, K x ∂μ) : LeFibreMeasure μ ν π b ((ρ.withDensity (w b)).map (ψ b)) := TauCeti.isLeFiberMeasure_iff.1 <| hπ.isLeFiberMeasure_of_coordinates (ν.finiteAt_nhds b) (fun _ ↦ hψ.of_uncurry_left) (fun _ ↦ hw.of_uncurry_left) hV h_fibre (h_cont.mono fun _ ⟨hψ_c, hw_c⟩ ↦ ⟨hψ_c, hw_c.lowerSemicontinuousAt⟩) h_le /-- If `μ` is the image of `ν × ρ` under a map `φ`, continuous in the first variable at `b`, with `π (φ (t, p)) = t`, then the image of `ρ` under `φ (b, ·)` is at most the fibre measure `dμ / dν` of `π` over `b`, in the sense of `LeFibreMeasure`: a bound `C ν(S)` on the integrals over small `π ⁻¹' S` of a lower semicontinuous `K ≥ 0` bounds its integral for this image by `C`. -/ theorem of_measurePreserving [OpensMeasurableSpace X] [OpensMeasurableSpace B] [FirstCountableTopology B] [ν.IsOpenPosMeasure] [IsLocallyFiniteMeasure ν] {ρ : Measure P} [SFinite ρ] {φ : B × P → X} (hφ : MeasurePreserving φ (ν.prod ρ) μ) (hπ : Measurable π) (h_fibre : ∀ (t : B) (p : P), π (φ (t, p)) = t) (h_cont : ∀ p : P, ContinuousAt (fun t : B ↦ φ (t, p)) b) : LeFibreMeasure μ ν π b (ρ.map fun p : P ↦ φ (b, p)) := TauCeti.isLeFiberMeasure_iff.1 <| hφ.isLeFiberMeasure hπ (ν.finiteAt_nhds b) (fun t ↦ .of_forall (h_fibre t)) (.of_forall h_cont) /-- The relation `LeFibreMeasure`, of being at most the fibre measure, is kept when `π` is changed on a `μ`-null set. -/ theorem congr (hl : LeFibreMeasure μ ν π b l) (hπ : π =ᵐ[μ] π') : LeFibreMeasure μ ν π' b l := TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).congr hπ) /-- If `l` is at most the fibre measure `dμ / dν` of `π` over `b` (see `LeFibreMeasure`) and the homeomorphism `e` of the base carries `ν` to `ν'`, then `l` is at most the fibre measure `dμ / dν'` of `e ∘ π` over `e b`. -/ theorem comp_homeomorph [BorelSpace B] [BorelSpace B'] (hl : LeFibreMeasure μ ν π b l) (e : B ≃ₜ B') (he : MeasurePreserving e ν ν') : LeFibreMeasure μ ν' (e ∘ π) (e b) l := TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).comp_homeomorph e he) /-- Fibre measures in two steps. If `l` is at most the fibre measure `dμ / dν` of `π` over `b`, and `l'` is at most the fibre measure `dl / dν'` of a continuous map `π₂` over `b'`, then `l'` is at most the fibre measure `dμ / d(ν × ν')` of `(π, π₂)` over `(b, b')` (see `LeFibreMeasure`). -/ theorem trans {π₂ : X → B'} {b' : B'} [SFinite ν'] [OpensMeasurableSpace X] (hl : LeFibreMeasure μ ν π b l) (hl' : LeFibreMeasure l ν' π₂ b' l') (hπ₂ : Continuous π₂) : LeFibreMeasure μ (ν.prod ν') (fun x : X ↦ (π x, π₂ x)) (b, b') l' := TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).trans (TauCeti.isLeFiberMeasure_iff.2 hl') hπ₂) /-- Let `x ↦ φ (p, x)` be a measurable family of continuous maps `X → X'` with `π₀ (φ (p, x)) = π x`. If `l` is at most the fibre measure of `π` for `μ` over `b` (see `LeFibreMeasure`), then the image of `ρ × l` under `φ` is at most the fibre measure of `π₀` for the image of `ρ × μ` over `b`. -/ theorem map_prod [OpensMeasurableSpace X'] [OpensMeasurableSpace B] [FirstCountableTopology X] [SFinite μ] [SFinite l] {ρ : Measure P} [SFinite ρ] {φ : P × X → X'} {π₀ : X' → B} (hl : LeFibreMeasure μ ν π b l) (hφ : Measurable φ) (h_cont : ∀ p : P, Continuous fun x : X ↦ φ (p, x)) (hπ₀ : Measurable π₀) (h_comm : ∀ (p : P) (x : X), π₀ (φ (p, x)) = π x) : LeFibreMeasure ((ρ.prod μ).map φ) ν π₀ b ((ρ.prod l).map φ) := TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).map_prod hφ (.of_forall h_cont) hπ₀ h_comm) /-- If `l` is at most the fibre measure of `π₀ ∘ φ` for `μ` over `b` (see `LeFibreMeasure`), with `φ` continuous, then the image of `l` under `φ` is at most the fibre measure of `π₀` for the image of `μ` over `b`. -/ theorem map [OpensMeasurableSpace X'] [OpensMeasurableSpace B] {φ : X → X'} {π₀ : X' → B} (hl : LeFibreMeasure μ ν (π₀ ∘ φ) b l) (hφ : Measurable φ) (h_cont : Continuous φ) (hπ₀ : Measurable π₀) : LeFibreMeasure (μ.map φ) ν π₀ b (l.map φ) := TauCeti.isLeFiberMeasure_iff.1 ((TauCeti.isLeFiberMeasure_iff.2 hl).map hφ h_cont hπ₀) end LeFibreMeasure end New