module import Mathlib.Analysis.LocallyConvex.AbsConvexOpen import Mathlib.MeasureTheory.Order.Group.Lattice import Mathlib.Probability.Kernel.WithDensity import TauCeti.MeasureTheory.Integral.Dilation public import Lib.DiscreteSeries.Bruhat.ComplexPlace import Lib.DiscreteSeries.Bruhat.QuadricBlocks import Lib.DiscreteSeries.Haar.TotalMass /-! # The spheres of ℂ^κ as fibres of the standard form * `New.Floors.exists_isDisintegration_le_sphereDensity`: in rank at least two, the volume of ℂ^κ disintegrates along y ↦ y* y into a measurable family of measures on the spheres, whose mass on a box is bounded. Notions from other files: * `New.Floors.Place.IsDisintegration`: a family of measures, indexed by the skew scalars, whose integrals of compactly supported continuous functions are finite and continuous in the index and which integrates over the index to a given measure, the index recording the value of a form. * `New.Floors.lintegral_eq_polar`: polar coordinates on ℂ^κ by the unitary group. The squared norm r has density `sphereDensity k r / 2`, where `sphereDensity k r` = 2 π^k r^(k-1) / (k-1)!. ## Relation to the literature Elementary: polar coordinates. -/ @[expose] public section namespace New.Floors open MeasureTheory Measure ProbabilityTheory Matrix Real Fintype Set RealPlace /-- If the entries of a vector of ℂ^κ have modulus at most R, then its squared norm is at most |κ| R². -/ lemma re_star_dotProduct_self_le {κ : Type} [Fintype κ] {y : κ → ℂ} {R : ℝ} (h_le : ∀ i : κ, ‖y i‖ ≤ R) : (star y ⬝ᵥ y).re ≤ card κ * R ^ 2 := calc (star y ⬝ᵥ y).re = ∑ i : κ, ‖y i‖ ^ 2 := by simp [dotProduct, Complex.conj_mul', ← Complex.ofReal_pow] _ ≤ ∑ _ : κ, R ^ 2 := by gcongr with i exact h_le i _ = card κ * R ^ 2 := by simp /-- A unitary multiple of `√r • Pi.single i₀ 1` has standard Hermitian form `r` for `0 ≤ r`. -/ private lemma star_unitary_mulVec_single_dotProduct {κ : Type} [Fintype κ] [DecidableEq κ] (i₀ : κ) {r : ℝ} (hr : 0 ≤ r) (h : U (1 : Matrix κ κ ℂ)) : star (h.val.val *ᵥ √r • Pi.single i₀ 1) ⬝ᵥ (1 : Matrix κ κ ℂ) *ᵥ (h.val.val *ᵥ √r • Pi.single i₀ 1) = r := by rw [U.form_mulVec_mulVec] simp [star_trivial √r, ← Complex.ofReal_mul, mul_self_sqrt hr] /-- Polar-coordinate disintegration of the volume on `κ → ℂ` into invariant sphere measures indexed by `β : skewAdjoint ℂ` with squared radius `2 * β.val.im`. -/ private lemma lintegral_eq_lintegral_sphereMass {κ : Type} [Fintype κ] [DecidableEq κ] (hκ : 1 < card κ) (i₀ : κ) {f : ℂ × (κ → ℂ) → ENNReal} (hf : Measurable f) : ∫⁻ y : κ → ℂ, f (star y ⬝ᵥ (1 : Matrix κ κ ℂ) *ᵥ y, y) = ∫⁻ β : skewAdjoint ℂ, ENNReal.ofReal (sphereDensity (card κ) (2 * β.val.im)⁺) * (∫⁻ h : U (1 : Matrix κ κ ℂ), f (complexPlace.skewUnit⁻¹.val * β.val, h.val.val *ᵥ √(2 * β.val.im) • Pi.single i₀ 1)) ∂complexPlace.skewMeasure := by let point (r : ℝ) (h : U (1 : Matrix κ κ ℂ)) : κ → ℂ := h.val.val *ᵥ √r • Pi.single i₀ 1 let mass (r : ℝ) : ENNReal := .ofReal (sphereDensity (card κ) r⁺) have h_zero {r : ℝ} (hr : r ≤ 0) : mass r = 0 := by simp [mass, sphereDensity, posPart_eq_zero.2 hr, Nat.sub_ne_zero_of_lt hκ] -- polar coordinates, then the substitution `r = 2 t` let rhs (r : ℝ) : ENNReal := mass r * ∫⁻ h : U (1 : Matrix κ κ ℂ), f (r, point r h) have h_im (t : ℝ) : ((t : ℂ) * Complex.I).im = t := by simp have h_level (t : ℝ) : complexPlace.skewUnit⁻¹.val * (t * Complex.I) = (2 * t : ℝ) := by simp [field] rw [lintegral_eq_polar i₀ (by fun_prop), ← lintegral_indicator measurableSet_Ioi, complexPlace_skewMeasure, lintegral_map (by fun_prop) (by fun_prop)] simp_rw [h_im, h_level] change _ = ∫⁻ t : ℝ, rhs ((2 : ℝ) • t) rw [Measure.lintegral_comp_smul volume rhs two_ne_zero, ← lintegral_const_mul' _ _ ENNReal.ofReal_ne_top] refine lintegral_congr fun r ↦ ?_ obtain hr | hr := le_or_gt r 0 · simp [rhs, indicator_of_notMem (notMem_Ioi.2 hr), h_zero hr] · have h_half : ENNReal.ofReal |((2 : ℝ) ^ Module.finrank ℝ ℝ)⁻¹| * mass r = .ofReal (sphereDensity (card κ) r / 2) := by rw [ENNReal.ofReal_div_of_pos two_pos, ENNReal.ofReal_ofNat, div_eq_mul_inv, mul_comm (ENNReal.ofReal (sphereDensity (card κ) r)) 2⁻¹] simp [mass, posPart_eq_self.2 hr.le] simp only [rhs, indicator_of_mem (mem_Ioi.2 hr), ← mul_assoc, h_half] exact congrArg _ (lintegral_congr fun h ↦ by rw [star_unitary_mulVec_single_dotProduct i₀ hr.le h]) /-- The `sphereDensity`-weighted invariant sphere measure at level `β` gives the coordinate box `{y | ∀ i, ‖y i‖ ≤ R}` mass at most `sphereDensity (card κ) (card κ * R ^ 2)`. -/ private lemma sphereMass_box_le {κ : Type} [Fintype κ] [DecidableEq κ] (hκ : 1 < card κ) (i₀ : κ) (β : skewAdjoint ℂ) (R : ℝ) : ENNReal.ofReal (sphereDensity (card κ) (2 * β.val.im)⁺) * volume ((fun h : U (1 : Matrix κ κ ℂ) ↦ h.val.val *ᵥ √(2 * β.val.im) • Pi.single i₀ 1) ⁻¹' {y : κ → ℂ | ∀ i : κ, ‖y i‖ ≤ R}) ≤ ENNReal.ofReal (sphereDensity (card κ) (card κ * R ^ 2)) := by let point (r : ℝ) (h : U (1 : Matrix κ κ ℂ)) : κ → ℂ := h.val.val *ᵥ √r • Pi.single i₀ 1 -- if the box meets the sphere of squared radius `2 * β.val.im`, that is at most `card κ * R²` obtain h_empty | ⟨h, hh⟩ := (point (2 * β.val.im) ⁻¹' {y : κ → ℂ | ∀ i : κ, ‖y i‖ ≤ R}).eq_empty_or_nonempty · simp [point] at h_empty simp [h_empty] obtain hr | hr := le_total (2 * β.val.im) 0 · simp [sphereDensity, posPart_eq_zero.2 hr, Nat.sub_ne_zero_of_lt hκ] have h_le : 2 * β.val.im ≤ card κ * R ^ 2 := by have h_norm : star (point (2 * β.val.im) h) ⬝ᵥ point (2 * β.val.im) h = (2 * β.val.im : ℝ) := by rw [← star_unitary_mulVec_single_dotProduct i₀ hr h, one_mulVec] simpa [h_norm] using re_star_dotProduct_self_le hh grw [prob_le_one, mul_one] simp only [sphereDensity, posPart_eq_self.2 hr] gcongr /-- Let κ have k ≥ 2 elements. Over the complex place the volume of ℂ^κ disintegrates along the standard form y ↦ y* y into an s-finite kernel l from the skew (purely imaginary) numbers β to ℂ^κ: the integral of f (y* y, y) over the volume is the iterated integral of f (-2 i β, y) against l β and then β, and for continuous compactly supported g ≥ 0 the integral of g against l β is finite and continuous in β. Moreover the mass that l β gives to the vectors with entries of modulus at most R is at most `sphereDensity k (k R²)`, where `sphereDensity k r` = 2 π^k r^(k-1) / (k-1)!. -/ theorem exists_isDisintegration_le_sphereDensity {κ : Type} [Fintype κ] [DecidableEq κ] (hκ : 1 < card κ) : ∃ l : Kernel (skewAdjoint ℂ) (κ → ℂ), IsSFiniteKernel l ∧ complexPlace.IsDisintegration volume (1 : Matrix κ κ ℂ) l ∧ ∀ (β : skewAdjoint ℂ) (R : ℝ), l β {y : κ → ℂ | ∀ i : κ, ‖y i‖ ≤ R} ≤ ENNReal.ofReal (sphereDensity (card κ) (card κ * R ^ 2)) := by -- For `β = t i` the sphere of squared radius `r = 2 t ≥ 0` is the orbit of `√r` times a basis -- vector. It gets the invariant measure of mass `sphereDensity (card κ) r`, the mass being zero -- for `r < 0`, and by polar coordinates these measures integrate to the volume. have h_card_pos : 0 < card κ := by lia obtain ⟨i₀⟩ : Nonempty κ := card_pos_iff.1 h_card_pos let point (r : ℝ) (h : U (1 : Matrix κ κ ℂ)) : κ → ℂ := h.val.val *ᵥ √r • Pi.single i₀ 1 let mass (r : ℝ) : ENNReal := .ofReal (sphereDensity (card κ) r⁺) obtain ⟨l, _, hl⟩ : ∃ l : Kernel (skewAdjoint ℂ) (κ → ℂ), IsSFiniteKernel l ∧ ∀ β : skewAdjoint ℂ, l β = volume.map (point (2 * β.val.im)) := exists_kernel_eq_map volume (K := fun p : skewAdjoint ℂ × U 1 ↦ point (2 * p.1.val.im) p.2) (by fun_prop) have h_lintegral (β : skewAdjoint ℂ) {F : (κ → ℂ) → ENNReal} (hF : Measurable F) : ∫⁻ x : κ → ℂ, F x ∂l.withDensity (fun β _ ↦ mass (2 * β.val.im)) β = mass (2 * β.val.im) * ∫⁻ h : U (1 : Matrix κ κ ℂ), F (point (2 * β.val.im) h) := by rw [Kernel.withDensity_apply _ (by fun_prop), withDensity_const, hl, lintegral_smul_measure, lintegral_map hF (by fun_prop), smul_eq_mul] refine ⟨l.withDensity fun β _ ↦ mass (2 * β.val.im), Kernel.IsSFiniteKernel.withDensity l fun _ _ ↦ ENNReal.ofReal_ne_top, ⟨fun {g} hg _ ↦ ?_, fun f hf ↦ ?_⟩, fun β R ↦ ?_⟩ · -- the integrands are continuous on the compact unitary group let integrand (β : skewAdjoint ℂ) (h : U (1 : Matrix κ κ ℂ)) : NNReal := (sphereDensity (card κ) (2 * β.val.im)⁺).toNNReal * g (point (2 * β.val.im) h) have h_integral (β : skewAdjoint ℂ) : ∫⁻ x : κ → ℂ, g x ∂l.withDensity (fun β _ ↦ mass (2 * β.val.im)) β = ∫⁻ h : U (1 : Matrix κ κ ℂ), integrand β h := by rw [h_lintegral β (by fun_prop), ← lintegral_const_mul _ (by fun_prop)] rfl simp only [h_integral] exact continuous_lintegral_and_lt_top isCompact_univ (F := integrand) (by fun_prop) fun β h _ ↦ mem_univ h · simp (disch := fun_prop) only [h_lintegral] exact lintegral_eq_lintegral_sphereMass hκ i₀ hf · rw [Kernel.withDensity_apply _ (by fun_prop), withDensity_const, hl, smul_apply, smul_eq_mul, Measure.map_apply (by fun_prop) (by measurability)] exact sphereMass_box_le hκ i₀ β R end New.Floors