module import Mathlib.Dynamics.Ergodic.Action.Regular import Mathlib.Topology.Algebra.ProperAction.Torsor import Mathlib.Topology.Separation.CompletelyRegular import TauCeti.MeasureTheory.Group.OrbitCutoff.OrbitSum public import Lib.Adelic.QuotientMeasure.Basic /-! # Unfolding over orbits and integration in Iwasawa coordinates This file proves integration formulas on a quotient `Γ \ G` by a discrete subgroup `Γ`. An integral over `Γ \ G` of a sum over translates is unfolded to an integral over the quotient by the subgroup that keeps a block, in particular by the stabiliser of a point. Integrals of functions invariant under a closed subgroup `N` are then written in Iwasawa coordinates `G = N · i(M) · K`. * `Γ.quotMeasure μ`: the measure on `G` that integrates left `Γ`-invariant functions over `Γ \ G`. * `N.FixesLeft F`: `F (γ * g) = F g` for all `γ ∈ N` and `g ∈ G`. ## Main definitions and results * `New.integral_tsum_eq_integral_tsum_block`: the integral over `Γ \ G` of the sum over all translates of a block `C` is the integral over `S \ G` of the sum over `C`, where `S` is the group that keeps `C`. `New.integral_tsum_block` adds integrability and termwise integration. * `New.integral_tsum_orbit_eq_integral_stabilizer`: the case of one orbit, with `S` the image of the stabiliser of a point. * `New.lintegral_iwasawa`: `dn dm dk` in the coordinates `i m * n * k` is a multiple of Haar measure. * `New.integral_quotMeasure_iwasawa`: the integral over `Γ \ G` of a function `F` invariant under `N` and `Γ` is a nonzero constant times the integral of `w m * F (i m * k)`, where conjugation by `i m` scales the Haar measure of `N` by `w m`. ## Relation to the literature Known result: The unfolding trick and the integration formula in Iwasawa coordinates on a quotient by a discrete subgroup. Weil's formula for invariant integration on a quotient is in `Lib.Adelic.QuotientMeasure.Basic`. -/ @[expose] public section /-! ## Unfolding a sum over an orbit The unfolding trick for sums over a countable set `Y` with an action of a group `Λ`, which `i` identifies with a discrete subgroup `Γ` of `G`. The summands `k y : G → ℂ` are measurable and equivariant: `k (γ • y) (i γ * x) = k y x`. -/ section OrbitUnfolding open MeasureTheory Measure MulAction ProbabilityTheory ENNReal Set variable {Λ G Y : Type*} [Group Λ] [Group G] [TopologicalSpace G] [MeasurableSpace G] [MulAction Λ Y] [Countable Y] {i : Λ →* G} omit [Group G] [TopologicalSpace G] in /-- If the `k y` are almost everywhere strongly measurable and `∑ ‖k y‖` has finite integral, then the integrals of the `k y` sum to the integral of `∑ k y`. -/ lemma New.hasSum_integral_of_lintegral_tsum_lt_top {k : Y → G → ℂ} {ν : Measure G} (h_fin : ∫⁻ x : G, ∑' y : Y, ‖k y x‖ₑ ∂ν < ∞) (h_meas : ∀ y : Y, AEStronglyMeasurable (k y) ν := by fun_prop) : HasSum (fun y : Y ↦ ∫ x : G, k y x ∂ν) (∫ x : G, ∑' y : Y, k y x ∂ν) := by rw [lintegral_tsum (by fun_prop)] at h_fin rw [integral_tsum h_meas h_fin.ne] have h_le : ∑' y : Y, ‖∫ x, k y x ∂ν‖ₑ ≤ ∑' y : Y, ∫⁻ x, ‖k y x‖ₑ ∂ν := tsum_le_tsum fun y ↦ eNorm_integral_le_lintegral_eNorm (k y) exact (Summable.of_eNorm (h_le.trans_lt h_fin).ne).hasSum /-- Transport the action, the description of the block and the equivariance of the summands along the isomorphism from `Λ` to its image. -/ private lemma New.exists_range_action_on_block {G Λ Y V : Type*} [Group G] [Group Λ] [MulAction Λ Y] {i : Λ →* G} (hi : Function.Injective i) {S : Subgroup G} {C D : Set Y} (hC : ∀ γ : Λ, ∀ y ∈ C, γ • y ∈ C ↔ i γ ∈ S) (hD : ∀ y : Y, y ∈ D ↔ ∃ γ : Λ, γ • y ∈ C) {k : Y → G → V} (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) : ∃ action : MulAction i.range Y, letI := action (∀ γ : i.range, ∀ y ∈ C, γ • y ∈ C ↔ (γ : G) ∈ S) ∧ (∀ y : Y, y ∈ D ↔ ∃ γ : i.range, γ • y ∈ C) ∧ (∀ (γ : i.range) (y : Y) (x : G), k (γ • y) ((γ : G) * x) = k y x) := by let e := MonoidHom.ofInjective hi refine ⟨MulAction.compHom Y e.symm.toMonoidHom, ?_, ?_, ?_⟩ · intro γ y hy change e.symm γ • y ∈ C ↔ (γ : G) ∈ S simpa only [e, MonoidHom.apply_ofInjective_symm] using hC (e.symm γ) y hy · intro y rw [hD] exact ⟨fun ⟨γ, hγ⟩ ↦ ⟨e γ, (show e.symm (e γ) • y ∈ C by simpa using hγ)⟩, fun ⟨γ, hγ⟩ ↦ ⟨e.symm γ, hγ⟩⟩ · intro γ y x change k (e.symm γ • y) ((γ : G) * x) = k y x simpa only [e, MonoidHom.apply_ofInjective_symm] using hk (e.symm γ) y x variable [IsTopologicalGroup G] [LocallyCompactSpace G] [SecondCountableTopology G] [T2Space G] [BorelSpace G] omit [Countable Y] in /-- The sum over a stable subset has the same distribution for either choice of cutoff. -/ private lemma New.identDistrib_tsum_cutoff {Γ S : Subgroup G} [DiscreteTopology S] [MulAction Γ Y] {μ : Measure G} [IsHaarMeasure μ] {T : Set Y} {E : Type*} [AddCommMonoid E] [TopologicalSpace E] [MeasurableSpace E] (hS : S ≤ Γ) (hT : ∀ (s : S) (y : Y), (Subgroup.inclusion hS s) • y ∈ T ↔ y ∈ T) {k : Y → G → E} (hm : Measurable fun x ↦ ∑' y : T, k y x) (hk : ∀ (γ : Γ) (y : Y) (x : G), k (γ • y) ((γ : G) * x) = k y x) : IdentDistrib (fun x ↦ ∑' y : T, k y x) (fun x ↦ ∑' y : T, k y x) (S.cutoffMeasure μ) (S.quotMeasure μ) := by classical have : Countable S := countable_of_Lindelof_of_discrete have hβ := isCutoff_chosenCutoff (count : Measure S) (X := G) refine IsOrbitCutoff.identDistrib_cutoffMeasure ⟨hβ.1, hβ.2⟩ hm fun s x ↦ ?_ let γ := Subgroup.inclusion hS s change ∑' y : T, k y ((γ : G) * x) = ∑' y : T, k y x rw [tsum_subtype T fun y ↦ k y ((γ : G) * x), ← (MulAction.toPerm γ).tsum_eq, tsum_subtype T fun y ↦ k y x] refine tsum_congr fun y ↦ ?_ have h_mem : γ • y ∈ T ↔ y ∈ T := hT s y simp only [toPerm_apply, indicator, h_mem, hk γ y x] omit [Countable Y] in /-- The block sum is invariant under its stabilizer, and the sum over all its translates is invariant under the entire group. Both sums therefore have the same law for either cutoff. -/ private lemma New.identDistrib_tsum_block {Γ S : Subgroup G} [DiscreteTopology Γ] [MulAction Γ Y] {μ : Measure G} [IsHaarMeasure μ] {C D : Set Y} (hS : S ≤ Γ) (hC : ∀ γ : Γ, ∀ y ∈ C, γ • y ∈ C ↔ (γ : G) ∈ S) (hD : ∀ y : Y, y ∈ D ↔ ∃ γ : Γ, γ • y ∈ C) {E : Type*} [AddCommMonoid E] [TopologicalSpace E] [MeasurableSpace E] {k : Y → G → E} (hm : ∀ T : Set Y, Measurable fun x ↦ ∑' y : T, k y x) (hk : ∀ (γ : Γ) (y : Y) (x : G), k (γ • y) ((γ : G) * x) = k y x) : IdentDistrib (fun x ↦ ∑' y : D, k y x) (fun x ↦ ∑' y : D, k y x) (Γ.cutoffMeasure μ) (Γ.quotMeasure μ) ∧ IdentDistrib (fun x ↦ ∑' y : C, k y x) (fun x ↦ ∑' y : C, k y x) (S.cutoffMeasure μ) (S.quotMeasure μ) := by have : DiscreteTopology S := .of_subset (s := (Γ : Set G)) inferInstance hS constructor · refine identDistrib_tsum_cutoff (le_refl Γ) (fun γ y ↦ ?_) (hm D) hk change γ • y ∈ D ↔ y ∈ D rw [hD, hD] exact ⟨fun ⟨δ, h⟩ ↦ ⟨δ * γ, by simpa [mul_smul] using h⟩, fun ⟨δ, h⟩ ↦ ⟨δ * γ⁻¹, by simpa [mul_smul] using h⟩⟩ · refine identDistrib_tsum_cutoff hS (fun s y ↦ ?_) (hm C) hk let γ := Subgroup.inclusion hS s refine ⟨fun hy ↦ ?_, fun hy ↦ (hC γ y hy).2 s.property⟩ simpa [γ] using (hC γ⁻¹ _ hy).2 (S.inv_mem s.property) /-- Unfolding of a sum over the translates of a block. The group `Λ` acts on `Y` and `i` maps it isomorphically onto the discrete subgroup `Γ` of `G`; the terms are measurable and satisfy `k (γ • y) (i γ * x) = k y x`. The block `C ⊆ Y` is such that `γ` carries a point of `C` into `C` exactly when `i γ` lies in `S ≤ Γ`, and `D` is the union of the translates of `C`. Suppose that `∑_D ‖k y‖` has finite integral over `Γ \ G` or that `∑_C ‖k y‖` has finite integral over `S \ G`. Then `∑_C k y` is integrable over `S \ G`. Its integral equals the integral of `∑_D k y` over `Γ \ G`. It also equals the sum over `D` of the integrals of `k y` against the measure of `Γ \ G`. -/ lemma New.integral_tsum_block (hi : Function.Injective i) {Γ S : Subgroup G} [DiscreteTopology Γ] (hΓ : i.range = Γ) {μ : Measure G} [IsHaarMeasure μ] {C D : Set Y} (hS : S ≤ Γ) (hC : ∀ γ : Λ, ∀ y ∈ C, γ • y ∈ C ↔ i γ ∈ S) (hD : ∀ y : Y, y ∈ D ↔ ∃ γ : Λ, γ • y ∈ C) {k : Y → G → ℂ} (hk_meas : ∀ y : Y, Measurable (k y)) (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) (h_fin : ∫⁻ x : G, ∑' y : D, ‖k y x‖ₑ ∂Γ.quotMeasure μ < ∞ ∨ ∫⁻ x : G, ∑' y : C, ‖k y x‖ₑ ∂S.quotMeasure μ < ∞) : Integrable (fun x : G ↦ ∑' y : C, k y x) (S.quotMeasure μ) ∧ ∫ x : G, ∑' y : D, k y x ∂Γ.quotMeasure μ = ∫ x : G, ∑' y : C, k y x ∂S.quotMeasure μ ∧ ∑' y : D, ∫ x : G, k y x ∂Γ.quotMeasure μ = ∫ x : G, ∑' y : C, k y x ∂S.quotMeasure μ := by subst Γ obtain ⟨action, hC, hD, hk⟩ := exists_range_action_on_block hi hC hD hk let := action obtain ⟨hD_norm, hC_norm⟩ := identDistrib_tsum_block (μ := μ) (k := fun y x ↦ ‖k y x‖ₑ) hS hC hD (fun T ↦ Measurable.tsum fun y : T ↦ (hk_meas y).eNorm) (fun γ y x ↦ congrArg eNorm (hk γ y x)) obtain ⟨h_left, h_right⟩ := identDistrib_tsum_block (μ := μ) (k := k) hS hC hD (fun T ↦ Measurable.tsum fun y : T ↦ hk_meas y) hk rw [← hD_norm.lintegral_eq, ← hC_norm.lintegral_eq] at h_fin obtain ⟨hD_fin, _, _, hC_int, h_eq⟩ := Subgroup.integral_tsum_block hS hC hD hk_meas hk h_fin rw [hD_norm.lintegral_eq] at hD_fin have h_integral := h_left.integral_eq.symm.trans (h_eq.trans h_right.integral_eq) exact ⟨h_right.integrable_iff.mp hC_int, h_integral, (hasSum_integral_of_lintegral_tsum_lt_top hD_fin (fun y : D ↦ (hk_meas y).aestronglyMeasurable)).tsum_eq.trans h_integral⟩ /-- Unfolding of the integral of a sum over the translates of a block. Let `i` map `Λ` isomorphically onto the discrete subgroup `Γ`, let `γ` carry a point of `C` into `C` exactly when `i γ` lies in `S ≤ Γ`, and let `D` be the union of the translates of `C`. Let the `k y` be measurable with `k (γ • y) (i γ * x) = k y x`. If `∑_C ‖k y‖` has finite integral over `S \ G`, then the integral of `∑_D k y` over `Γ \ G` is the integral of `∑_C k y` over `S \ G`. -/ lemma New.integral_tsum_eq_integral_tsum_block (hi : Function.Injective i) {Γ S : Subgroup G} [DiscreteTopology Γ] (hΓ : i.range = Γ) {μ : Measure G} [IsHaarMeasure μ] {C D : Set Y} (hS : S ≤ Γ) (hC : ∀ γ : Λ, ∀ y ∈ C, γ • y ∈ C ↔ i γ ∈ S) (hD : ∀ y : Y, y ∈ D ↔ ∃ γ : Λ, γ • y ∈ C) {k : Y → G → ℂ} (hk_meas : ∀ y : Y, Measurable (k y)) (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) (h_fin : ∫⁻ x : G, ∑' y : C, ‖k y x‖ₑ ∂S.quotMeasure μ < ∞) : ∫ x : G, ∑' y : D, k y x ∂Γ.quotMeasure μ = ∫ x : G, ∑' y : C, k y x ∂S.quotMeasure μ := (integral_tsum_block hi hΓ hS hC hD hk_meas hk (Or.inr h_fin)).2.1 /-- Unfolding of a sum of integrals over the translates of a block. Let `i` map `Λ` isomorphically onto the discrete subgroup `Γ`, let `γ` carry a point of `C` into `C` exactly when `i γ` lies in `S ≤ Γ`, and let `D` be the union of the translates of `C`. Let the `k y` be measurable with `k (γ • y) (i γ * x) = k y x`. If `∑_C ‖k y‖` has finite integral over `S \ G`, then the sum over `D` of the integrals of `k y` against the measure of `Γ \ G` is the integral of `∑_C k y` over `S \ G`. -/ lemma New.tsum_integral_eq_integral_tsum_block (hi : Function.Injective i) {Γ S : Subgroup G} [DiscreteTopology Γ] (hΓ : i.range = Γ) {μ : Measure G} [IsHaarMeasure μ] {C D : Set Y} (hS : S ≤ Γ) (hC : ∀ γ : Λ, ∀ y ∈ C, γ • y ∈ C ↔ i γ ∈ S) (hD : ∀ y : Y, y ∈ D ↔ ∃ γ : Λ, γ • y ∈ C) {k : Y → G → ℂ} (hk_meas : ∀ y : Y, Measurable (k y)) (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) (h_fin : ∫⁻ x : G, ∑' y : C, ‖k y x‖ₑ ∂S.quotMeasure μ < ∞) : ∑' y : D, ∫ x : G, k y x ∂Γ.quotMeasure μ = ∫ x : G, ∑' y : C, k y x ∂S.quotMeasure μ := (integral_tsum_block hi hΓ hS hC hD hk_meas hk (Or.inr h_fin)).2.2 omit [TopologicalSpace G] [IsTopologicalGroup G] [LocallyCompactSpace G] [SecondCountableTopology G] [T2Space G] [MeasurableSpace G] [BorelSpace G] [Countable Y] in /-- If `k (γ • y) (i γ * x) = k y x`, then the term `k y` is invariant on the left under the image `S` of the stabiliser of `y`. -/ lemma New.fixesLeft_map_stabilizer {S : Subgroup G} {k : Y → G → ℂ} (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) {y : Y} (h_stab : (stabilizer Λ y).map i = S) : S.FixesLeft (k y) := by subst h_stab rintro _ ⟨γ, hγ, rfl⟩ x rw [← hk γ y x, mem_stabilizer_iff.1 hγ] /-- Unfolding of a sum over an orbit. Let `i` be injective with discrete range `Γ`, let the terms `k z` be measurable and equivariant, and let `S` be the image under `i` of the stabiliser of `y`. Suppose that the sum of the `‖k z‖` over the orbit of `y` has finite integral over `Γ \ G`, or that `k y` is integrable over `S \ G`. Then `k y` is integrable over `S \ G`, and its integral equals the integral over `Γ \ G` of the sum of the `k z` over the orbit, and also the sum of their integrals. -/ lemma New.integral_tsum_orbit_eq_integral_stabilizer (hi : Function.Injective i) [DiscreteTopology i.range] {μ : Measure G} [IsHaarMeasure μ] {k : Y → G → ℂ} (hk_meas : ∀ y : Y, Measurable (k y)) (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) {y : Y} (h_fin : ∫⁻ x : G, ∑' z : orbit Λ y, ‖k z x‖ₑ ∂i.range.quotMeasure μ < ∞ ∨ Integrable (k y) (((stabilizer Λ y).map i).quotMeasure μ)) : Integrable (k y) (((stabilizer Λ y).map i).quotMeasure μ) ∧ ∫ x : G, ∑' z : orbit Λ y, k z x ∂i.range.quotMeasure μ = ∫ x : G, k y x ∂((stabilizer Λ y).map i).quotMeasure μ ∧ ∑' z : orbit Λ y, ∫ x : G, k z x ∂i.range.quotMeasure μ = ∫ x : G, k y x ∂((stabilizer Λ y).map i).quotMeasure μ := by -- The case `C = {y}` of `integral_tsum_block`: the orbit is the union of the translates of `{y}`. have hC : ∀ γ : Λ, ∀ z ∈ ({y} : Set Y), γ • z ∈ ({y} : Set Y) ↔ i γ ∈ (stabilizer Λ y).map i := by simp [Subgroup.mem_map_iff_mem hi] have hD (z : Y) : z ∈ orbit Λ y ↔ ∃ γ : Λ, γ • z ∈ ({y} : Set Y) := by simp [mem_orbit_symm (a₁ := z), mem_orbit_iff] have h_block : ∫⁻ x, ∑' z : orbit Λ y, ‖k z x‖ₑ ∂i.range.quotMeasure μ < ∞ ∨ ∫⁻ x, ∑' z : ({y} : Set Y), ‖k z x‖ₑ ∂((stabilizer Λ y).map i).quotMeasure μ < ∞ := h_fin.imp_right fun h_int ↦ by simpa [HasFiniteIntegral] using h_int.hasFiniteIntegral simpa using integral_tsum_block hi rfl ((stabilizer Λ y).map_le_range i) hC hD hk_meas hk h_block /-- Unfolding of a sum over an orbit, with the subgroups and the orbit given by equations: `Γ` is the discrete range of the injective map `i`, `S` the image of the stabiliser of `y`, and `D` the orbit of `y`. Here `Γ.quotMeasure μ` is the measure on `G` that computes integrals over `Γ \ G`: the Haar measure `μ` weighted by a cutoff for `Γ`, and likewise for `S`. The terms `k z` are measurable and equivariant. Suppose that `∑ ‖k z‖`, over all `z : Y`, has finite integral over `Γ \ G` or that `k y` is integrable over `S \ G`. Then `k y` is integrable over `S \ G`, and its integral equals the integral of `∑_D k z` over `Γ \ G` and also the sum over `D` of the integrals of `k z` against `Γ.quotMeasure μ`. -/ lemma New.integral_tsum_orbit_of_lt_top_or_integrable (hi : Function.Injective i) {Γ S : Subgroup G} [DiscreteTopology Γ] (hΓ : i.range = Γ) {μ : Measure G} [IsHaarMeasure μ] {D : Set Y} {k : Y → G → ℂ} (hk_meas : ∀ y : Y, Measurable (k y)) (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) {y : Y} (h_stab : (stabilizer Λ y).map i = S) (h_orbit : ∀ z : Y, z ∈ D ↔ y ∈ orbit Λ z) (h_fin : ∫⁻ x : G, ∑' z : Y, ‖k z x‖ₑ ∂Γ.quotMeasure μ < ∞ ∨ Integrable (k y) (S.quotMeasure μ)) : Integrable (k y) (S.quotMeasure μ) ∧ ∫ x : G, ∑' z : D, k z x ∂Γ.quotMeasure μ = ∫ x : G, k y x ∂S.quotMeasure μ ∧ ∑' z : D, ∫ x : G, k z x ∂Γ.quotMeasure μ = ∫ x : G, k y x ∂S.quotMeasure μ := by obtain rfl : D = orbit Λ y := Set.ext fun z ↦ (h_orbit z).trans mem_orbit_symm subst hΓ h_stab -- The sum over the orbit is at most the sum over all of `Y`. exact integral_tsum_orbit_eq_integral_stabilizer hi hk_meas hk <| h_fin.imp_left <| (lintegral_mono fun x ↦ tsum_comp_le_tsum_of_injective Subtype.val_injective _).trans_lt /-- Left invariance of `k y` and unfolding over the orbit `D` of `y`, as one statement. Here `i` maps `Λ` isomorphically onto the discrete subgroup `Γ`, `S` is the image under `i` of the stabiliser of `y`, and the `k z` are measurable and equivariant. The conclusion has two parts. The first says that `k y` is left `S`-invariant (`S.FixesLeft (k y)`). The second is the implication proved in `integral_tsum_orbit_of_lt_top_or_integrable`: if `∑ ‖k z‖` has finite integral over `Γ \ G` or `k y` is integrable over `S \ G`, then `k y` is integrable over `S \ G`, and its integral equals both the integral of `∑_D k z` over `Γ \ G` and the sum over `D` of the integrals of the `k z`. -/ lemma New.integral_tsum_orbit (hi : Function.Injective i) {Γ S : Subgroup G} [DiscreteTopology Γ] (hΓ : i.range = Γ) {μ : Measure G} [IsHaarMeasure μ] {D : Set Y} {k : Y → G → ℂ} (hk_meas : ∀ y : Y, Measurable (k y)) (hk : ∀ (γ : Λ) (y : Y) (x : G), k (γ • y) (i γ * x) = k y x) {y : Y} (h_stab : (stabilizer Λ y).map i = S) (h_orbit : ∀ z : Y, z ∈ D ↔ y ∈ orbit Λ z) : S.FixesLeft (k y) ∧ ((∫⁻ x : G, ∑' z : Y, ‖k z x‖ₑ ∂Γ.quotMeasure μ < ∞ ∨ Integrable (k y) (S.quotMeasure μ)) → Integrable (k y) (S.quotMeasure μ) ∧ ∫ x : G, ∑' z : D, k z x ∂Γ.quotMeasure μ = ∫ x : G, k y x ∂S.quotMeasure μ ∧ ∑' z : D, ∫ x : G, k z x ∂Γ.quotMeasure μ = ∫ x : G, k y x ∂S.quotMeasure μ) := ⟨fixesLeft_map_stabilizer hk h_stab, integral_tsum_orbit_of_lt_top_or_integrable hi hΓ hk_meas hk h_stab h_orbit⟩ end OrbitUnfolding /-! ## Iwasawa integration formula Integration in Iwasawa coordinates on a unimodular group `G = N · i(M) · K`, with `N` closed, `K` compact and `i : M →* G` continuous. It is used for constant terms along a unipotent radical `N`. -/ section IwasawaIntegration open MeasureTheory Measure ENNReal NeZero ProbabilityTheory Function /-- Let `J f x` be measurable in `x`, and let `J f x₀` be obtained from `J f y` by a finite nonzero factor that depends on `y` only. Then this factor can be absorbed into a measurable weight: for measurable `β` there is a measurable `g` with `g y * J f y = β y * J f x₀`. -/ lemma New.exists_measurable_mul_eq_of_scale {X : Type*} [MeasurableSpace X] {J : (X → ℝ≥0∞) → X → ℝ≥0∞} {x₀ : X} (hJ : ∀ f : X → ℝ≥0∞, Measurable f → Measurable (J f)) (h_scale : ∀ y : X, ∃ r : ℝ≥0∞, r ≠ 0 ∧ r ≠ ∞ ∧ ∀ f : X → ℝ≥0∞, Measurable f → r * J f y = J f x₀) {β : X → ℝ≥0∞} (hβ : Measurable β) : ∃ g : X → ℝ≥0∞, Measurable g ∧ ∀ (y : X) (f : X → ℝ≥0∞), Measurable f → g y * J f y = β y * J f x₀ := by by_cases! h_const : ∀ (y : X) (f : X → ℝ≥0∞), Measurable f → J f y = J f x₀ · exact ⟨β, hβ, fun y f hf ↦ by rw [h_const y f hf]⟩ -- Otherwise some `J f` is everywhere finite and nonzero; the factor at `x` is `J f x₀ / J f x`. obtain ⟨y₀, f, hf, h_ne⟩ := h_const obtain ⟨r, hr_zero, hr_top, hr⟩ := h_scale y₀ have h_zero : J f x₀ ≠ 0 := fun h ↦ h_ne (by simpa [h, hr_zero] using hr f hf) have h_top : J f x₀ ≠ ∞ := fun h ↦ h_ne (by simpa [h, hr_zero, hr_top, mul_eq_top] using hr f hf) refine ⟨fun x ↦ β x * (J f x₀ / J f x), hβ.mul (measurable_const.div (hJ f hf)), fun x φ hφ ↦ ?_⟩ obtain ⟨s, hs_zero, -, hs⟩ := h_scale x have hx_zero : J f x ≠ 0 := fun h ↦ h_zero (by rw [← hs f hf, h, mul_zero]) have hx_top : J f x ≠ ∞ := fun h ↦ h_top (by rw [← hs f hf, h, mul_top hs_zero]) have h_div : J f x₀ / J f x = s := by rw [← hs f hf, ENNReal.mul_div_cancel_right hx_zero hx_top] simp only [h_div, mul_assoc, hs φ hφ] /-- A function that is integrable for `∞ • q` vanishes `q`-almost everywhere. -/ lemma New.ae_eq_zero_of_integrable_top_smul {X : Type*} [MeasurableSpace X] {q : Measure X} {F : X → ℂ} (h_int : Integrable F (∞ • q)) : F =ᵐ[q] 0 := by have hF : AEStronglyMeasurable F q := h_int.aestronglyMeasurable.mono_ac (absolutelyContinuous_smul top_ne_zero) have h_lt : ∞ * ∫⁻ x, ‖F x‖ₑ ∂q < ∞ := by simpa [HasFiniteIntegral] using h_int.hasFiniteIntegral have h_norm : ∫⁻ x, ‖F x‖ₑ ∂q = 0 := by simpa [mul_lt_top_iff] using h_lt filter_upwards [(lintegral_eq_zero_iff' hF.eNorm).1 h_norm] with x hx using by simpa using hx /-- Division of an integral formula by a factor `c ∈ (0, ∞]` of the measure. For finite nonzero `V` there is `a ≠ 0` such that, if `F` is measurable and integrable for `c • q` with integral `V * I`, then `F` is integrable for `q` with integral `a * I`. -/ lemma New.exists_integral_eq_mul_of_smul_measure {X : Type*} [MeasurableSpace X] (q : Measure X) {c V : ℝ≥0∞} (hc : c ≠ 0) (hV_zero : V ≠ 0) (hV_top : V ≠ ∞) : ∃ a ≠ (0 : ℝ), ∀ (F : X → ℂ) (I : ℂ), Measurable F → Integrable F (c • q) → ∫ x : X, F x ∂(c • q) = V.toReal * I → Integrable F q ∧ ∫ x : X, F x ∂q = a * I := by have hV : V.toReal ≠ 0 := toReal_ne_zero.2 ⟨hV_zero, hV_top⟩ rcases eq_or_ne c ∞ with rfl | hc_top · -- For `c = ∞`, integrability forces `F = 0` almost everywhere, and both sides vanish. refine ⟨1, one_ne_zero, fun F I _ h_int h_eq ↦ ?_⟩ have hF_zero : F =ᵐ[q] 0 := ae_eq_zero_of_integrable_top_smul h_int obtain rfl : I = 0 := by simpa [hV] using h_eq exact ⟨(integrable_zero X ℂ q).congr hF_zero.symm, by simp [integral_eq_zero_of_ae hF_zero]⟩ · have hc_real : c.toReal ≠ 0 := toReal_ne_zero.2 ⟨hc, hc_top⟩ refine ⟨V.toReal / c.toReal, div_ne_zero hV hc_real, fun F I _ h_int h_eq ↦ ⟨(integrable_smul_measure hc hc_top).1 h_int, ?_⟩⟩ rw [integral_smul_measure, Complex.real_smul] at h_eq simp [div_mul_eq_mul_div, ← h_eq, hc_real] /-- Let `i a` lie in `N` only for `a = 1`, let `δ` be injective, and let `Γ` contain every `i (δ d)` and lie in the union of the `N · i (δ d)⁻¹`. Then every element of `Γ` is uniquely `i (δ d) * γ` with `γ ∈ Γ ∩ N`. -/ lemma New.exists_equiv_prod_subgroupOf {G M D : Type*} [Group G] [Group M] {N Γ : Subgroup G} {i : M →* G} (h_triv : ∀ a : M, i a ∈ N → a = 1) {δ : D → M} (hδ : δ.Injective) (hδ_mem : ∀ d : D, i (δ d) ∈ Γ) (hΓ : ∀ g ∈ Γ, ∃ d : D, g * i (δ d) ∈ N) : ∃ e : D × Γ.subgroupOf N ≃ Γ, ∀ (d : D) (γ : Γ.subgroupOf N), (e (d, γ) : G) = i (δ d) * (γ : N) := by let φ (p : D × Γ.subgroupOf N) : Γ := ⟨i (δ p.1) * (p.2 : N), mul_mem (hδ_mem p.1) (Subgroup.mem_subgroupOf.1 p.2.property)⟩ refine ⟨.ofBijective φ ⟨?_, fun g ↦ ?_⟩, fun d γ ↦ rfl⟩ · rintro ⟨d, γ⟩ ⟨d', γ'⟩ h have h_eq : i (δ d) * (γ : N) = i (δ d') * (γ' : N) := congrArg Subtype.val h have h_mem : i ((δ d)⁻¹ * δ d') ∈ N := by simpa [QuotientGroup.eq] using congrArg (QuotientGroup.mk : G → G ⧸ N) h_eq obtain rfl : d = d' := hδ (inv_mul_eq_one.1 (h_triv _ h_mem)) simpa using h_eq · obtain ⟨d, h_mem⟩ : ∃ d : D, (g : G)⁻¹ * i (δ d) ∈ N := hΓ _ (inv_mem g.property) let γ : Γ.subgroupOf N := ⟨⟨(g : G)⁻¹ * i (δ d), h_mem⟩, mul_mem (inv_mem g.property) (hδ_mem d)⟩ exact ⟨(d, γ⁻¹), by simp [φ, γ]⟩ variable {G M : Type*} [Group G] [Group M] [TopologicalSpace G] [IsTopologicalGroup G] [PolishSpace G] (w : M → ℝ) [MeasurableSpace G] [BorelSpace G] [TopologicalSpace M] [IsTopologicalGroup M] [MeasurableSpace M] [BorelSpace M] (μ : Measure G) [IsHaarMeasure μ] [IsMulRightInvariant μ] (ν : Measure M) [IsHaarMeasure ν] {N K Γ : Subgroup G} [IsMulRightInvariant ν] [CompactSpace K] (κ : Measure K) [IsHaarMeasure κ] {lam : Measure N} [IsHaarMeasure lam] (i : M →* G) omit [IsHaarMeasure ν] [IsHaarMeasure lam] in /-- Let `N` be unimodular, and let conjugation by `i m` multiply integrals over `N` by `w m`. The integral of `f (i a * u * (n * i m * k) * l⁻¹)` over `K × M × N`, times `w m`, is the integral of `f (i a * u * l⁻¹)`. -/ lemma New.ofReal_mul_lintegral_iwasawa_translate [IsMulRightInvariant lam] (h_conj : ∀ (m : M) (f : G → ℝ≥0∞), Measurable f → ∫⁻ n : N, f (i m * n * (i m)⁻¹) ∂lam = ENNReal.ofReal (w m) * ∫⁻ n : N, f n ∂lam) {f : G → ℝ≥0∞} (hf : Measurable f) (n : N) (m : M) (k : K) : ENNReal.ofReal (w m) * ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, f (i a * u * (n * i m * k) * l⁻¹) ∂lam ∂ν ∂κ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, f (i a * u * l⁻¹) ∂lam ∂ν ∂κ := by -- Absorb `n` into `u`, move `i m` past `u`, then absorb `m` into `a` and `k` into `l`. have h_move (x z : G) : ENNReal.ofReal (w m) * ∫⁻ u : N, f (x * u * (n * i m * k) * z) ∂lam = ∫⁻ u : N, f (x * i m * u * (k * z)) ∂lam := calc ENNReal.ofReal (w m) * ∫⁻ u : N, f (x * u * (n * i m * k) * z) ∂lam _ = ENNReal.ofReal (w m) * ∫⁻ u : N, f (x * u * i m * (k * z)) ∂lam := by rw [← lintegral_mul_right_eq_self (fun u : N ↦ f (x * u * i m * (k * z))) n] simp [mul_assoc] _ = ∫⁻ u : N, f (x * (i m * u * (i m)⁻¹) * i m * (k * z)) ∂lam := (h_conj m (fun y ↦ f (x * y * i m * (k * z))) (by fun_prop)).symm _ = ∫⁻ u : N, f (x * i m * u * (k * z)) ∂lam := by simp [mul_assoc] calc _ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, f (i (a * m) * u * (k * l⁻¹)) ∂lam ∂ν ∂κ := by simp only [← lintegral_const_mul' _ _ ofReal_ne_top, map_mul, ← h_move] _ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, f (i a * u * (k * l⁻¹)) ∂lam ∂ν ∂κ := lintegral_congr fun l ↦ lintegral_mul_right_eq_self (fun a : M ↦ ∫⁻ u : N, f (i a * u * (k * l⁻¹)) ∂lam) m _ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, f (i a * u * l⁻¹) ∂lam ∂ν ∂κ := by rw [← lintegral_mul_right_eq_self _ k] simp omit [PolishSpace G] [IsMulRightInvariant ν] [CompactSpace K] in /-- Suppose that conjugation by `i m` multiplies integrals over `N` by `w m`. The integral of `g ((i a * u)⁻¹ * (x * l))` over `K × M × N` is the same for `x = n * i m * k` as for `x = 1`. -/ lemma New.lintegral_iwasawa_inv_mul_translate (h_conj : ∀ (m : M) (f : G → ℝ≥0∞), Measurable f → ∫⁻ n : N, f (i m * n * (i m)⁻¹) ∂lam = ENNReal.ofReal (w m) * ∫⁻ n : N, f n ∂lam) {g : G → ℝ≥0∞} (hg : Measurable g) (n : N) (m : M) (k : K) : ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, g ((i a * u)⁻¹ * (n * i m * k * l)) ∂lam ∂ν ∂κ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, g ((i a * u)⁻¹ * l) ∂lam ∂ν ∂κ := by -- Move `(i a)⁻¹` past `u⁻¹` to absorb `n` into `u`; then absorb `m` into `a` and `k` into `l`. have h_absorb (a : M) (z : G) : ∫⁻ u : N, g ((i a * u)⁻¹ * (n * z)) ∂lam = ∫⁻ u : N, g ((i a * u)⁻¹ * z) ∂lam := by have h_move (y : G) : ∫⁻ u : N, g ((i a * u)⁻¹ * y) ∂lam = ENNReal.ofReal (w a) * ∫⁻ u : N, g ((i a)⁻¹ * ((u : G)⁻¹ * y)) ∂lam := by simpa [mul_assoc] using h_conj a (fun x ↦ g ((i a)⁻¹ * (x⁻¹ * y))) (by fun_prop) rw [h_move, h_move, ← lintegral_mul_left_eq_self _ n] simp [mul_assoc] calc _ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, g ((i a * u)⁻¹ * (i m * (k * l))) ∂lam ∂ν ∂κ := by simp only [mul_assoc, h_absorb] _ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, g ((i a * u)⁻¹ * (k * l)) ∂lam ∂ν ∂κ := by refine lintegral_congr fun l ↦ ?_ rw [← lintegral_mul_left_eq_self _ m] simp [mul_assoc] _ = ∫⁻ l : K, ∫⁻ a : M, ∫⁻ u : N, g ((i a * u)⁻¹ * l) ∂lam ∂ν ∂κ := lintegral_mul_left_eq_self (fun l : K ↦ ∫⁻ a : M, ∫⁻ u : N, g ((i a * u)⁻¹ * l) ∂lam ∂ν) k variable [LocallyCompactSpace G] /-- Iwasawa integration formula. Let `G`, `M` and the closed subgroup `N` be unimodular, `K` compact, `i : M →* G` continuous, and `w : M → ℝ`. Suppose that `G = N · i(M) · K` and that conjugation by `i m` multiplies integrals over `N` by `w m > 0`. Then the measure `dn dm dk` in the coordinates `i m * n * k` is `d` times the Haar measure `μ` on `G`, for some `d ∈ [0, ∞]` (`d` may be infinite, for instance if `i` has noncompact kernel). Here `lam`, `ν`, `κ` are Haar measures on `N`, `M`, `K`. -/ lemma New.lintegral_iwasawa [PolishSpace M] [LocallyCompactSpace M] (hN : IsClosed (N : Set G)) (hw_pos : ∀ m : M, 0 < w m) (hi : Continuous i) (h_dec : ∀ g : G, ∃ n : N, ∃ m : M, ∃ k : K, g = n * i m * k) (h_conj : ∀ (m : M) (f : G → ℝ≥0∞), Measurable f → ∫⁻ n : N, f (i m * n * (i m)⁻¹) ∂lam = ENNReal.ofReal (w m) * ∫⁻ n : N, f n ∂lam) [IsMulRightInvariant lam] : ∃ d : ℝ≥0∞, ∀ f : G → ℝ≥0∞, Measurable f → ∫⁻ k : K, ∫⁻ m : M, ∫⁻ n : N, f (i m * n * k) ∂lam ∂ν ∂κ = d * ∫⁻ g : G, f g ∂μ := by -- Let `J f y` be the integral of `f (i m * n * y * k⁻¹)`; the left side is `J f 1`. Moving `y` -- only divides `J f y` by `w`, so `J f 1 = ∫ g y * J f y` for a suitable weight `g`. After Fubini -- and a translation of `y`, this is `∫ d x * f x`, where `d x`, an integral of `g`, is constant. obtain ⟨β, hβ, hβ_int⟩ := (inferInstance : HasCutoff μ G).out have hβ_one : ∫⁻ x, β x ∂μ = 1 := by simpa using hβ_int 1 let π : Measure ((M × N) × K) := (ν.prod lam).prod κ let b (p : M × N) : G := i p.1 * p.2 have hπ (φ : G → K → ℝ≥0∞) (hφ : Measurable (uncurry φ)) : ∫⁻ h, φ (b h.1) h.2 ∂π = ∫⁻ k : K, ∫⁻ m : M, ∫⁻ n : N, φ (i m * n) k ∂lam ∂ν ∂κ := by rw [lintegral_prod_symm _ (by fun_prop)] exact lintegral_congr fun k ↦ lintegral_prod _ (by fun_prop) let J (f : G → ℝ≥0∞) (y : G) : ℝ≥0∞ := ∫⁻ h, f (b h.1 * y * h.2⁻¹) ∂π have hJ (f : G → ℝ≥0∞) (hf : Measurable f) (y : G) : J f y = ∫⁻ k : K, ∫⁻ m : M, ∫⁻ n : N, f (i m * n * y * k⁻¹) ∂lam ∂ν ∂κ := hπ (fun x k ↦ f (x * y * k⁻¹)) (by fun_prop) have h_scale (y : G) : ∃ r : ℝ≥0∞, r ≠ 0 ∧ r ≠ ∞ ∧ ∀ f : G → ℝ≥0∞, Measurable f → r * J f y = J f 1 := by obtain ⟨n, m, k, rfl⟩ := h_dec y refine ⟨.ofReal (w m), (ofReal_pos.2 (hw_pos m)).ne', ofReal_ne_top, fun f hf ↦ ?_⟩ simpa only [hJ f hf, mul_one] using ofReal_mul_lintegral_iwasawa_translate w ν κ i h_conj hf n m k -- The weight `g` satisfies `g y * J f y = β y * J f 1`. obtain ⟨g, hg, hgJ⟩ := exists_measurable_mul_eq_of_scale (fun f hf ↦ by fun_prop) h_scale hβ let d (x : G) : ℝ≥0∞ := ∫⁻ h, g ((b h.1)⁻¹ * (x * h.2)) ∂π have hd (x : G) : d x = d 1 := by obtain ⟨n, m, k, rfl⟩ := h_dec x have hd_eq (z : G) := hπ (fun y l ↦ g (y⁻¹ * (z * l))) (by fun_prop) simpa only [d, hd_eq, one_mul] using lintegral_iwasawa_inv_mul_translate w ν κ i h_conj hg n m k refine ⟨d 1, fun f hf ↦ ?_⟩ calc ∫⁻ k : K, ∫⁻ m : M, ∫⁻ n : N, f (i m * n * k) ∂lam ∂ν ∂κ _ = J f 1 := by rw [hJ f hf, ← lintegral_inv_eq_self] simp _ = ∫⁻ y, g y * J f y ∂μ := by simp [hgJ _ f hf, lintegral_mul_const _ hβ, hβ_one] _ = ∫⁻ h, ∫⁻ y, g y * f (b h.1 * y * h.2⁻¹) ∂μ ∂π := by simp (disch := fun_prop) only [J, ← lintegral_const_mul] exact lintegral_lintegral_swap (by fun_prop) _ = ∫⁻ h, ∫⁻ x, g ((b h.1)⁻¹ * (x * h.2)) * f x ∂μ ∂π := by congr with ⟨p, k⟩ rw [← lintegral_mul_left_eq_self _ (b p)⁻¹, ← lintegral_mul_right_eq_self _ (k : G)] simp [mul_assoc] _ = ∫⁻ x, ∫⁻ h, g ((b h.1)⁻¹ * (x * h.2)) * f x ∂π ∂μ := lintegral_lintegral_swap (by fun_prop) _ = ∫⁻ x, d x * f x ∂μ := lintegral_congr fun x ↦ lintegral_mul_const _ (by fun_prop) _ = d 1 * ∫⁻ x, f x ∂μ := by simp_rw [hd, lintegral_const_mul _ hf] omit [TopologicalSpace M] [IsTopologicalGroup M] [MeasurableSpace M] [BorelSpace M] in /-- Let `i a` lie in the closed unimodular subgroup `N` only for `a = 1`, let `δ` be injective, and let the discrete group `Γ` contain every `i (δ d)` and lie in the union of the `N · i (δ d)⁻¹`. Suppose that conjugation by `i m` multiplies integrals over `N` by `w m`. Then `w m` times the integral over `(Γ ∩ N) \ N` (that is, against `quotMeasure lam`) of a sum over `Γ` unfolds to a sum over `d` of integrals over `N` against the Haar measure `lam`. -/ lemma New.ofReal_mul_lintegral_quotMeasure_tsum (hN : IsClosed (N : Set G)) (h_conj : ∀ (m : M) (f : G → ℝ≥0∞), Measurable f → ∫⁻ n : N, f (i m * n * (i m)⁻¹) ∂lam = ENNReal.ofReal (w m) * ∫⁻ n : N, f n ∂lam) (h_triv : ∀ a : M, i a ∈ N → a = 1) {D : Type*} [Countable D] {δ : D → M} (hδ : δ.Injective) (hδ_mem : ∀ d : D, i (δ d) ∈ Γ) (hΓ : ∀ g ∈ Γ, ∃ d : D, g * i (δ d) ∈ N) [DiscreteTopology Γ] {f : G → ℝ≥0∞} (hf : Measurable f) (m : M) (k : G) : ENNReal.ofReal (w m) * ∫⁻ n : N, ∑' γ : Γ, f (γ * (n * (i m * k))) ∂(Γ.subgroupOf N).quotMeasure lam = ∑' d : D, ∫⁻ n : N, f (i (δ d * m) * n * k) ∂lam := by -- Write the elements of `Γ` as `i (δ d) * γ` with `γ ∈ Γ ∩ N`, unfold the quotient measure to -- `lam`, and move `i m` past `n`. obtain ⟨e, he⟩ := exists_equiv_prod_subgroupOf h_triv hδ hδ_mem hΓ simp only [← e.tsum_eq, tsum_prod', he] rw [lintegral_tsum (by fun_prop), ← ENNReal.tsum_mul_left] refine tsum_congr fun d ↦ ?_ calc ENNReal.ofReal (w m) * ∫⁻ n : N, ∑' γ : Γ.subgroupOf N, f (i (δ d) * (γ : N) * (n * (i m * k))) ∂(Γ.subgroupOf N).quotMeasure lam _ = ENNReal.ofReal (w m) * ∫⁻ n : N, f (i (δ d) * n * i m * k) ∂lam := by rw [← lintegral_orbitMeasure_lintegral (ν := (count : Measure (Γ.subgroupOf N))) (f := fun n : N ↦ f (i (δ d) * n * i m * k)) (by fun_prop)] simp [lintegral_count, Subgroup.smul_def, mul_assoc] _ = ∫⁻ n : N, f (i (δ d) * (i m * n * (i m)⁻¹) * i m * k) ∂lam := (h_conj m (fun y ↦ f (i (δ d) * y * i m * k)) (by fun_prop)).symm _ = ∫⁻ n : N, f (i (δ d * m) * n * k) ∂lam := by simp [mul_assoc] /-- Unfolding in Iwasawa coordinates. Let `μ`, `ν`, `κ`, `lam` be Haar measures on the unimodular group `G`, the unimodular group `M`, the compact subgroup `K` and the closed subgroup `N`, and let `i` and `w` be continuous. Suppose that `G = N · i(M) · K`, that conjugation by `i m` multiplies integrals over `N` by `w m > 0`, and that `i a` lies in `N` only for `a = 1`. Let `δ` be injective, and let `Γ` be discrete, contain every `i (δ d)` and lie in the union of the `N · i (δ d)⁻¹`, with `Γ ∩ N` cocompact in `N` (`IsCocompact`: every element of `N` has a left translate by `Γ ∩ N` in a fixed compact set). Let `α` be a measure on `M` that unfolds to `ν` along `δ`. There is `c ≠ 0` such that for measurable `F`, left invariant under `N` and `Γ` (`FixesLeft`): if `(m, k) ↦ w m * F (i m * k)` is integrable for `α × κ`, then `F` is integrable over `Γ \ G` (against `Γ.quotMeasure μ`), and its integral is `c` times the integral of `w m * F (i m * k)`. -/ lemma New.integral_quotMeasure_iwasawa [PolishSpace M] [LocallyCompactSpace M] (hN : IsClosed (N : Set G)) (hw : Continuous w) (hw_pos : ∀ m : M, 0 < w m) (hi : Continuous i) (h_dec : ∀ g : G, ∃ n : N, ∃ m : M, ∃ k : K, g = n * i m * k) (h_conj : ∀ (m : M) (f : G → ℝ≥0∞), Measurable f → ∫⁻ n : N, f (i m * n * (i m)⁻¹) ∂lam = ENNReal.ofReal (w m) * ∫⁻ n : N, f n ∂lam) (h_triv : ∀ a : M, i a ∈ N → a = 1) {D : Type*} [Countable D] {δ : D → M} (hδ : δ.Injective) (α : Measure M) [SFinite α] (hα : ∀ f : M → ℝ≥0∞, Measurable f → ∫⁻ m : M, f m ∂ν = ∫⁻ m : M, ∑' d : D, f (δ d * m) ∂α) (hδ_mem : ∀ d : D, i (δ d) ∈ Γ) (hΓ : ∀ g ∈ Γ, ∃ d : D, g * i (δ d) ∈ N) [DiscreteTopology Γ] (h_cocpt : (Γ.subgroupOf N).IsCocompact) : ∃ c ≠ (0 : ℝ), ∀ F : G → ℂ, Measurable F → N.FixesLeft F → Γ.FixesLeft F → Integrable (fun p : M × K ↦ (w p.1 : ℂ) * F (i p.1 * p.2)) (α.prod κ) → Integrable F (Γ.quotMeasure μ) ∧ ∫ g : G, F g ∂Γ.quotMeasure μ = c * ∫ p : M × K, (w p.1 : ℂ) * F (i p.1 * p.2) ∂α.prod κ := by -- The Iwasawa formula with factor `r`, unfolded along `Γ = {i (δ d) * γ}`, says that the measure -- `w · (α × κ) × (Γ ∩ N)\N` in the coordinates `n * i m * k` is the quotient of `r • μ` by `Γ`. -- The cocompact subgroup `Γ ∩ N` is a lattice in `N`, so `N` is unimodular. let lam' : Measure N := (Γ.subgroupOf N).quotMeasure lam have h_finite : IsFiniteMeasure lam' := isFiniteMeasure_quotMeasure_of_cocompact lam h_cocpt have : lam.IsMulRightInvariant := isMulRightInvariant_of_finite_covolume h_finite obtain ⟨r, h_iwa⟩ := lintegral_iwasawa (lam := lam) w μ ν κ i hN hw_pos hi h_dec h_conj -- For `f = 1` the left side of `h_iwa` is a product of nonzero total masses. have hr : r ≠ 0 := fun h ↦ by simpa [h, NeZero.ne] using h_iwa 1 measurable_one have hw_meas : Measurable fun p : M × K ↦ ENNReal.ofReal (w p.1) := by fun_prop let ρ : Measure (M × K) := (α.prod κ).withDensity fun p ↦ .ofReal (w p.1) let σ (p : M × K) : G := i p.1 * p.2 let τ (p : (M × K) × N) : G := p.2 * σ p.1 have h_unfold : MeasurePreserving (fun p : ((M × K) × N) × Γ ↦ p.2 • τ p.1) ((ρ.prod lam').prod count) (r • μ) := by refine ⟨by fun_prop, ext_of_lintegral _ fun f hf ↦ ?_⟩ calc _ = ∫⁻ p : M × K, ∫⁻ n : N, ∑' γ : Γ, f (γ * (n * (i p.1 * p.2))) ∂lam' ∂ρ := by simp (disch := fun_prop) only [lintegral_map, lintegral_prod, lintegral_count, Subgroup.smul_def, smul_eq_mul, τ, σ] _ = ∫⁻ k : K, ∫⁻ m : M, ∑' d : D, ∫⁻ n : N, f (i (δ d * m) * n * k) ∂lam ∂α ∂κ := by rw [lintegral_withDensity_eq_lintegral_mul _ hw_meas (by fun_prop), lintegral_prod_symm _ (by fun_prop)] simp only [Pi.mul_apply, lam', ofReal_mul_lintegral_quotMeasure_tsum w i hN h_conj h_triv hδ hδ_mem hΓ hf] _ = ∫⁻ k : K, ∫⁻ m : M, ∫⁻ n : N, f (i m * n * k) ∂lam ∂ν ∂κ := lintegral_congr fun k ↦ (hα (fun m ↦ ∫⁻ n : N, f (i m * n * k) ∂lam) (by fun_prop)).symm _ = ∫⁻ g, f g ∂(r • μ) := by rw [h_iwa f hf, lintegral_smul_measure, smul_eq_mul] obtain ⟨c, hc, h_div⟩ := exists_integral_eq_mul_of_smul_measure (Γ.quotMeasure μ) hr (NeZero.ne (lam' .univ)) (measure_ne_top lam' .univ) refine ⟨c, hc, fun F hF hFN hFΓ h_weighted ↦ ?_⟩ -- By `h_unfold`, `F` on `Γ \ G` has the law of `F ∘ τ`, and `F ∘ τ` does not depend on `n`. have hFτ (p : (M × K) × N) : F (τ p) = F (σ p.1) := hFN p.2 p.2.property (σ p.1) have h_law : IdentDistrib F (fun p : M × K ↦ F (σ p)) (r • Γ.quotMeasure μ) (lam' .univ • ρ) := by rw [← show Γ.quotMeasure (r • μ) = r • Γ.quotMeasure μ from withDensity_smul_measure r _] refine (identDistrib_orbitMeasure_of_unfold (T := τ) (.id (count : Measure Γ)) h_unfold hF (by fun_prop) fun γ x ↦ hFΓ γ γ.property x).trans ⟨by fun_prop, by fun_prop, ?_⟩ simp (disch := fun_prop) only [hFτ, ← map_fst_prod, map_map, comp_def] have h_int : Integrable (fun p : M × K ↦ F (σ p)) ρ := by simpa [ρ, integrable_withDensity_iff_integrable_smul' hw_meas, hw_pos, le_of_lt] using h_weighted refine h_div F _ hF (h_law.integrable_iff.2 (h_int.smul_measure (measure_ne_top lam' .univ))) ?_ rw [h_law.integral_eq, integral_smul_measure, integral_withDensity_eq_integral_toReal_smul hw_meas (by simp)] simp [σ, hw_pos, le_of_lt] end IwasawaIntegration