Riemann hypothesis: the Lean proof, cleaned up together
The 2026 Lean proof of the Riemann hypothesis and GRH, machine-checked by others, not refereed, no word from Clay; cleaned up together: more readable, faster to build, the theorems unchanged

| 1 | module |
| 2 | |
| 3 | public import Mathlib.Probability.Kernel.Composition.MeasureCompProd |
| 4 | import Mathlib.Probability.Kernel.Deterministic |
| 5 | import TauCeti.Probability.Kernel.Randomization |
| 6 | public import Lib.General.Measure.QuadricDisintegration |
| 7 | public import Lib.DiscreteSeries.Bruhat.FloorGroups -- shake: keep (`open FloorGroups`) |
| 8 | import Lib.Adelic.QuotientMeasure.Basic |
| 9 | |
| 10 | /-! |
| 11 | # Solving the equation of a quadric in a block of coordinates |
| 12 | |
| 13 | Let a hermitian form T on A^κ be the orthogonal sum of an orthonormal block and of its complement. |
| 14 | On a quadric in a hyperbolic plane plus T the part w of a vector outside the block is free, and the |
| 15 | part in the block lies on a quadric of the block, whose value is that of the given quadric minus |
| 16 | h(w, w). The measure of the quadric is the volume in w times the measures of these quadrics of the |
| 17 | block. This holds at any place, for any s-finite kernel that disintegrates the volume of the block |
| 18 | along its form. |
| 19 | |
| 20 | ## Main definitions and results |
| 21 | * `New.Floors.Place.IsSolvedIn`: a measure is the volume in the coordinates outside a block times |
| 22 | an s-finite kernel of measures in the coordinates of the block, each of mass at most M on a box. |
| 23 | * `New.Floors.Place.IsDisintegration.lintegral_lintegral_comm`: on the orthogonal sum of two |
| 24 | spaces, each with an s-finite kernel that disintegrates its measure, the equation of a quadric |
| 25 | may be solved in either of them. |
| 26 | * `New.Floors.Place.IsDisintegration.isSolvedIn_quadricMeasure`: the measure of a quadric is solved |
| 27 | in an orthonormal block, given an s-finite kernel on the quadrics of the block that disintegrates |
| 28 | the volume and gives mass at most M to a box. |
| 29 | |
| 30 | Notions from other files: |
| 31 | * `New.Floors.Place`: a star ring A with Haar volume, an element τ of trace one, a skew unit δ and |
| 32 | a Haar measure ν on the skew elements. |
| 33 | * `New.Floors.Place.quadricMeasure`: the measure on the quadric h(y, y) = δ⁻¹ b in a hyperbolic |
| 34 | plane plus T, the image of a product measure under `New.Floors.Place.flatChart`. Here b, the |
| 35 | index of the quadric, is skew. |
| 36 | * `New.Floors.Place.IsDisintegration`: a family of measures on the quadrics of a form, continuous |
| 37 | in the index, whose integral over the index is a given measure. |
| 38 | |
| 39 | ## Relation to the literature |
| 40 | Elementary: Tonelli's theorem and the invariance of Haar measure. |
| 41 | -/ |
| 42 | |
| 43 | @[expose] public section |
| 44 | |
| 45 | noncomputable section |
| 46 | |
| 47 | namespace New.Floors |
| 48 | |
| 49 | open Matrix MeasureTheory Measure ProbabilityTheory ENNReal Fintype Set Sum Function FloorGroups |
| 50 | |
| 51 | variable {A : Type} [CommRing A] [StarRing A] [TopologicalSpace A] [MeasureSpace A] [P : Place A] |
| 52 | {B κ : Type} [Fintype B] [Fintype κ] {S : Set A} {M : ℝ≥0∞} |
| 53 | |
| 54 | /-- The vectors with all coordinates in S. -/ |
| 55 | abbrev coordinateBox (κ : Type) (S : Set A) : Set (κ → A) := {x : κ → A | ∀ i : κ, x i ∈ S} |
| 56 | |
| 57 | /-- The box of S in A^κ has volume vol(S)^(card κ). -/ |
| 58 | lemma volume_coordinateBox (κ : Type) [Fintype κ] (S : Set A) : |
| 59 | volume (coordinateBox κ S) = volume S ^ card κ := by |
| 60 | have h_box : coordinateBox κ S = univ.pi fun _ : κ ↦ S := Set.ext fun x ↦ by simp |
| 61 | rw [h_box, volume_pi_pi, Finset.prod_const, Finset.card_univ] |
| 62 | |
| 63 | /-- An injective map to a finite type κ extends to a bijection onto κ from the disjoint union of |
| 64 | its source with a finite type. -/ |
| 65 | lemma exists_equiv_comp_inr_eq {α κ : Type} [Finite κ] {j : α → κ} (hj : Injective j) : |
| 66 | ∃ (η : Type) (_ : Fintype η) (e : η ⊕ α ≃ κ), e ∘ inr = j := by |
| 67 | classical |
| 68 | -- The bijection is the inclusion off the range of `j`, and `j` itself on α. |
| 69 | let e : {k : κ // k ∉ range j} ⊕ α ≃ κ := (Equiv.sumComm _ α).trans |
| 70 | (((Equiv.ofInjective j hj).sumCongr (.refl _)).trans (.sumCompl (· ∈ range j))) |
| 71 | exact ⟨{k : κ // k ∉ range j}, .ofFinite _, e, funext fun _ ↦ rfl⟩ |
| 72 | |
| 73 | /-- The images of an s-finite measure under a measurable family of maps form an s-finite kernel. -/ |
| 74 | lemma exists_kernel_eq_map {X Y Z : Type*} [MeasurableSpace X] [MeasurableSpace Y] |
| 75 | [MeasurableSpace Z] (ζ : Measure Z) [SFinite ζ] {K : X × Z → Y} (hK : Measurable K) : |
| 76 | ∃ l : Kernel X Y, IsSFiniteKernel l ∧ ∀ x : X, l x = ζ.map fun z : Z ↦ K (x, z) := by |
| 77 | exact ⟨(Kernel.id ×ₖ Kernel.const X ζ).map K, inferInstance, |
| 78 | Kernel.map_id_prod_const_apply ζ K hK⟩ |
| 79 | |
| 80 | /-- Joining two vectors along a bijection of indices preserves the volume. -/ |
| 81 | lemma measurePreserving_sumElim_comp_symm {η : Type} [Fintype η] (e : η ⊕ B ≃ κ) : |
| 82 | MeasurePreserving (fun p : (η → A) × (B → A) ↦ (p.1 ⊕ᵥ p.2) ∘ e.symm) (volume.prod volume) := by |
| 83 | classical |
| 84 | exact (volume_measurePreserving_piCongrLeft (fun _ : η ⊕ B ↦ A) e.symm).symm.comp |
| 85 | measurePreserving_sumElim |
| 86 | |
| 87 | namespace Place |
| 88 | |
| 89 | /-- The measure ρ on A^κ is solved in the block of coordinates `blk`: it is the volume in the other |
| 90 | coordinates w times measures ζ(w) in the coordinates of the block. The ζ(w) form an s-finite kernel, |
| 91 | and each gives mass at most M to the box of S, the vectors with all coordinates in S. -/ |
| 92 | def IsSolvedIn (blk : B → κ) (ρ : Measure (κ → A)) (S : Set A) (M : ℝ≥0∞) : Prop := |
| 93 | ∃ (η : Type) (_ : Fintype η) (e : η ⊕ B ≃ κ) (ζ : Kernel (η → A) (B → A)), |
| 94 | e ∘ inr = blk ∧ IsSFiniteKernel ζ ∧ |
| 95 | MeasurePreserving (fun p : (η → A) × (B → A) ↦ (p.1 ⊕ᵥ p.2) ∘ e.symm) (volume ⊗ₘ ζ) ρ ∧ |
| 96 | ∀ w : η → A, ζ w (coordinateBox B S) ≤ M |
| 97 | |
| 98 | /-- The volume is solved in any block: it is the volume in the other coordinates times the volume in |
| 99 | the coordinates of the block. Any bound M for the volume of the box of S in A^B may be taken. -/ |
| 100 | lemma isSolvedIn_volume {blk : B → κ} (h_inj : Injective blk) (hM : volume S ^ card B ≤ M) : |
| 101 | IsSolvedIn blk (volume : Measure (κ → A)) S M := by |
| 102 | obtain ⟨η, _, e, he⟩ := exists_equiv_comp_inr_eq h_inj |
| 103 | let ζ : Kernel (η → A) (B → A) := .const _ volume |
| 104 | refine ⟨η, inferInstance, e, ζ, he, inferInstance, ?_, fun _ ↦ ?_⟩ |
| 105 | · rw [compProd_const] |
| 106 | exact measurePreserving_sumElim_comp_symm e |
| 107 | · rwa [Kernel.const_apply, volume_coordinateBox] |
| 108 | |
| 109 | /-- The index of the quadric h(x, x) = r: the skew element τδr − star (τδr), with τ of trace one and |
| 110 | δ the skew unit of the place. It is δr if r is hermitian. -/ |
| 111 | def quadricIndex (r : A) : skewAdjoint A := skewPart (P.element * P.skewUnit * r) |
| 112 | |
| 113 | /-- The index of the quadric h(x, x) = r is a measurable function of r. -/ |
| 114 | @[fun_prop] |
| 115 | lemma measurable_quadricIndex : Measurable (quadricIndex : A → skewAdjoint A) := by |
| 116 | unfold quadricIndex |
| 117 | fun_prop |
| 118 | |
| 119 | /-- For hermitian r the index `quadricIndex r` is δr, where δ is the skew unit of the place. -/ |
| 120 | lemma coe_quadricIndex {r : A} (hr : star r = r) : (quadricIndex r : A) = P.skewUnit * r := by |
| 121 | simp only [quadricIndex, star_mul', star_skewUnit, hr] |
| 122 | linear_combination P.skewUnit * r * P.element_add_star |
| 123 | |
| 124 | /-- Let the measures l(b) disintegrate μ along h(x, x) = x̄ᵀJx. Then ∫ G(index of h(x, x), x) dμ is |
| 125 | the double integral of G(b, x) against dl(b) and the Haar measure ν = `skewMeasure` of skew b. Here |
| 126 | the index of r is `quadricIndex r`, which is δr for hermitian r. -/ |
| 127 | lemma IsDisintegration.lintegral_quadricIndex {μ : Measure (κ → A)} {J : Matrix κ κ A} |
| 128 | {l : skewAdjoint A → Measure (κ → A)} (hl : IsDisintegration μ J l) |
| 129 | {G : skewAdjoint A × (κ → A) → ℝ≥0∞} (hG : Measurable G) : |
| 130 | ∫⁻ x : κ → A, G (quadricIndex (star x ⬝ᵥ J *ᵥ x), x) ∂μ = |
| 131 | ∫⁻ b : skewAdjoint A, ∫⁻ x : κ → A, G (b, x) ∂l b ∂skewMeasure := by |
| 132 | have h_index (b : skewAdjoint A) : quadricIndex (P.skewUnit⁻¹.val * b.val) = b := by |
| 133 | have h_hermitian : star (P.skewUnit⁻¹.val * b.val) = P.skewUnit⁻¹.val * b.val := by simp |
| 134 | ext |
| 135 | rw [coe_quadricIndex h_hermitian, Units.mul_inv_cancel_left] |
| 136 | simpa only [h_index] using |
| 137 | hl.lintegral_eq (fun p : A × (κ → A) ↦ G (quadricIndex p.1, p.2)) (by fun_prop) |
| 138 | |
| 139 | /-- Let the s-finite kernels l and l' disintegrate μ and μ' along the forms J and J', so that l(b) |
| 140 | lives on the vectors whose value under the form has index b (`quadricIndex`). On the quadric of |
| 141 | index β of the sum of the forms, one may let the first vector run freely and solve for the second, |
| 142 | or the reverse: the two iterated integrals agree. -/ |
| 143 | theorem IsDisintegration.lintegral_lintegral_comm {μ : Measure (κ → A)} {μ' : Measure (B → A)} |
| 144 | {J : Matrix κ κ A} {J' : Matrix B B A} {l : Kernel (skewAdjoint A) (κ → A)} |
| 145 | {l' : Kernel (skewAdjoint A) (B → A)} [IsSFiniteKernel l] [IsSFiniteKernel l'] |
| 146 | (hl : IsDisintegration μ J l) (hl' : IsDisintegration μ' J' l') (β : skewAdjoint A) |
| 147 | {f : (κ → A) × (B → A) → ℝ≥0∞} (hf : Measurable f) : |
| 148 | ∫⁻ y : κ → A, ∫⁻ z : B → A, f (y, z) ∂l' (β - quadricIndex (star y ⬝ᵥ J *ᵥ y)) ∂μ = |
| 149 | ∫⁻ z : B → A, ∫⁻ y : κ → A, f (y, z) ∂l (β - quadricIndex (star z ⬝ᵥ J' *ᵥ z)) ∂μ' := by |
| 150 | let k : Kernel (skewAdjoint A × (κ → A)) (B → A) := |
| 151 | l'.comap (fun p : skewAdjoint A × (κ → A) ↦ β - p.1) (by fun_prop) |
| 152 | let k' : Kernel (skewAdjoint A × (B → A)) (κ → A) := |
| 153 | l.comap (fun p : skewAdjoint A × (B → A) ↦ β - p.1) (by fun_prop) |
| 154 | have h_meas : Measurable fun p : skewAdjoint A × (κ → A) ↦ |
| 155 | ∫⁻ z : B → A, f (p.2, z) ∂l' (β - p.1) := |
| 156 | Measurable.lintegral_kernel_prod_right (κ := k) (by fun_prop) |
| 157 | have h_meas' : Measurable fun p : skewAdjoint A × (B → A) ↦ |
| 158 | ∫⁻ y : κ → A, f (y, p.2) ∂l (β - p.1) := |
| 159 | Measurable.lintegral_kernel_prod_right (κ := k') (by fun_prop) |
| 160 | calc |
| 161 | _ = ∫⁻ b : skewAdjoint A, ∫⁻ y : κ → A, ∫⁻ z : B → A, f (y, z) ∂l' (β - b) ∂l b ∂skewMeasure := |
| 162 | hl.lintegral_quadricIndex h_meas |
| 163 | _ = ∫⁻ b : skewAdjoint A, ∫⁻ y : κ → A, ∫⁻ z : B → A, f (y, z) ∂l' b ∂l (β - b) |
| 164 | ∂skewMeasure := by |
| 165 | rw [← lintegral_sub_left_eq_self _ β] |
| 166 | simp only [_root_.sub_sub_cancel] |
| 167 | _ = ∫⁻ b : skewAdjoint A, ∫⁻ z : B → A, ∫⁻ y : κ → A, f (y, z) ∂l (β - b) ∂l' b ∂skewMeasure := |
| 168 | lintegral_congr fun b ↦ lintegral_lintegral_swap (by fun_prop) |
| 169 | _ = _ := (hl'.lintegral_quadricIndex h_meas').symm |
| 170 | |
| 171 | omit [TopologicalSpace A] [MeasureSpace A] [Place A] [Fintype B] [Fintype κ] in |
| 172 | /-- Let T be hermitian and let e split κ into κ₂ and B so that the basis vectors indexed by B are |
| 173 | orthonormal and orthogonal to the others. Then T is block diagonal along e, with block 1 on B. -/ |
| 174 | lemma submatrix_eq_fromBlocks_one_of_orthonormal [DecidableEq B] [DecidableEq κ] {κ₂ : Type} |
| 175 | {T : Matrix κ κ A} (hT : Tᴴ = T) (e : κ₂ ⊕ B ≃ κ) |
| 176 | (h_orth : ∀ (i : B) (k : κ), T (e (inr i)) k = (1 : Matrix κ κ A) (e (inr i)) k) : |
| 177 | T.submatrix e e = fromBlocks (T.submatrix (e ∘ inl) (e ∘ inl)) 0 0 1 := by |
| 178 | have h_col (k : κ) (i : B) : T k (e (inr i)) = star ((1 : Matrix κ κ A) (e (inr i)) k) := by |
| 179 | rw [← hT, conjTranspose_apply] |
| 180 | exact congrArg star (h_orth i k) |
| 181 | ext (i | i) (j | j) |
| 182 | · rfl |
| 183 | · simp [h_col] |
| 184 | · simpa using h_orth i (e (inl j)) |
| 185 | · simpa [Matrix.one_apply] using h_orth i (e (inr j)) |
| 186 | |
| 187 | /-- Let T be block diagonal along e, with blocks T₂ and 1. In the flat chart of the quadric of index |
| 188 | β of a hyperbolic plane plus T, the part z in the second block is free, and the rest is the flat |
| 189 | chart of the quadric of index β − (index of h(z, z)) of the plane plus T₂. -/ |
| 190 | lemma flatChart_sumElim_comp_symm [DecidableEq B] {κ₂ : Type} [Fintype κ₂] |
| 191 | {T : Matrix κ κ A} {T₂ : Matrix κ₂ κ₂ A} {e : κ₂ ⊕ B ≃ κ} |
| 192 | (h_split : T.submatrix e e = fromBlocks T₂ 0 0 1) (β : skewAdjoint A) (t : A) (w : κ₂ → A) |
| 193 | (z : B → A) (a : skewAdjoint A) : |
| 194 | flatChart T β ((t, (w ⊕ᵥ z) ∘ e.symm), a) = |
| 195 | (flatChart T₂ (β - quadricIndex (star z ⬝ᵥ (1 : Matrix B B A) *ᵥ z)) ((t, w), a) ⊕ᵥ z) ∘ |
| 196 | ((Equiv.sumAssoc (Fin 2) κ₂ B).trans (.sumCongr (.refl (Fin 2)) e)).symm := by |
| 197 | have h_form : star ((w ⊕ᵥ z) ∘ e.symm) ⬝ᵥ T *ᵥ ((w ⊕ᵥ z) ∘ e.symm) = |
| 198 | star w ⬝ᵥ T₂ *ᵥ w + star z ⬝ᵥ z := by |
| 199 | refine (comp_equiv_symm_dotProduct (star (w ⊕ᵥ z)) _ e).trans ?_ |
| 200 | rw [← submatrix_mulVec_equiv, h_split] |
| 201 | simp [fromBlocks_mulVec, Function.star_sumElim, sumElim_dotProduct_sumElim] |
| 202 | have h_index : (quadricIndex (star z ⬝ᵥ z)).val = P.skewUnit * star z ⬝ᵥ z := |
| 203 | coe_quadricIndex (star_dotProduct z z).symm |
| 204 | funext k |
| 205 | obtain ⟨(i | i) | i, rfl⟩ := |
| 206 | ((Equiv.sumAssoc (Fin 2) κ₂ B).trans (.sumCongr (.refl _) e)).surjective k |
| 207 | · simp [flatChart, h_form, h_index, mul_sub, sub_sub, add_comm] |
| 208 | · simp [flatChart] |
| 209 | · simp [flatChart] |
| 210 | |
| 211 | /-- The volume in (z, (t, w), a) is carried to that in ((t, x), a), where x joins w and z along e |
| 212 | and a is skew. -/ |
| 213 | lemma measurePreserving_join_coordinates {κ₂ : Type} [Fintype κ₂] (e : κ₂ ⊕ B ≃ κ) : |
| 214 | MeasurePreserving |
| 215 | (fun p : (B → A) × (A × (κ₂ → A)) × skewAdjoint A ↦ |
| 216 | ((p.2.1.1, (p.2.1.2 ⊕ᵥ p.1) ∘ e.symm), p.2.2)) |
| 217 | (volume.prod (volume.prod skewMeasure)) (volume.prod skewMeasure) := |
| 218 | ((((MeasurePreserving.id volume).prod (measurePreserving_sumElim_comp_symm e)).comp |
| 219 | (volume_preserving_prodAssoc.comp measurePreserving_swap)).prod (.id skewMeasure)).comp |
| 220 | ((measurePreserving_prodAssoc volume volume skewMeasure).symm _) |
| 221 | |
| 222 | /-- Let `A` be a star ring with place structure, `l` an s-finite kernel disintegrating volume on |
| 223 | `A^B` along the unit form, and `T` a Hermitian form on `A^κ` split orthogonally by a bijection |
| 224 | `e : κ₂ ⊕ B ≃ κ` into a form `T₂` on `A^κ₂` and the unit block on `A^B`. For a skew index `β`, |
| 225 | define the kernel `ζ` sending `y` on `Fin 2 ⊕ κ₂` to `l` at `β` minus the quadric index of `y` for |
| 226 | the hyperbolic plane plus `T₂`, and let `join`, assumed measurable, recombine coordinates along the |
| 227 | induced bijection `ε : (Fin 2 ⊕ κ₂) ⊕ B ≃ Fin 2 ⊕ κ`. Then pushing forward `volume ⊗ₘ ζ` along |
| 228 | `join` gives `quadricMeasure T β`. -/ |
| 229 | private lemma IsDisintegration.map_compProd_quadricMeasure [DecidableEq B] [DecidableEq κ] |
| 230 | {κ₂ : Type} [Fintype κ₂] {l : Kernel (skewAdjoint A) (B → A)} [IsSFiniteKernel l] |
| 231 | (hl : IsDisintegration volume (1 : Matrix B B A) l) {T : Matrix κ κ A} (hT : Tᴴ = T) |
| 232 | (e : κ₂ ⊕ B ≃ κ) |
| 233 | (h_orth : ∀ (i : B) (k : κ), T (e (inr i)) k = (1 : Matrix κ κ A) (e (inr i)) k) |
| 234 | (β : skewAdjoint A) |
| 235 | (h_join : Measurable fun p : (Fin 2 ⊕ κ₂ → A) × (B → A) ↦ |
| 236 | (p.1 ⊕ᵥ p.2) ∘ ((Equiv.sumAssoc ..).trans (.sumCongr (.refl _) e)).symm) : |
| 237 | (volume ⊗ₘ l.comap |
| 238 | (fun y ↦ β - quadricIndex (star y ⬝ᵥ planeSumGram (T.submatrix (e ∘ inl) (e ∘ inl)) *ᵥ y)) |
| 239 | (by fun_prop)).map |
| 240 | (fun p : (Fin 2 ⊕ κ₂ → A) × (B → A) ↦ |
| 241 | (p.1 ⊕ᵥ p.2) ∘ ((Equiv.sumAssoc ..).trans (.sumCongr (.refl _) e)).symm) = |
| 242 | quadricMeasure T β := by |
| 243 | classical |
| 244 | let T₂ : Matrix κ₂ κ₂ A := T.submatrix (e ∘ inl) (e ∘ inl) |
| 245 | have hT₂ : T₂ᴴ = T₂ := by rw [conjTranspose_submatrix, hT] |
| 246 | have h_split : T.submatrix e e = fromBlocks T₂ 0 0 1 := |
| 247 | submatrix_eq_fromBlocks_one_of_orthonormal hT e h_orth |
| 248 | let ε : (Fin 2 ⊕ κ₂) ⊕ B ≃ Fin 2 ⊕ κ := (Equiv.sumAssoc ..).trans (.sumCongr (.refl _) e) |
| 249 | let join (p : (Fin 2 ⊕ κ₂ → A) × (B → A)) : Fin 2 ⊕ κ → A := (p.1 ⊕ᵥ p.2) ∘ ε.symm |
| 250 | have h_chart (t : A) (w : κ₂ → A) (z : B → A) (a : skewAdjoint A) : |
| 251 | flatChart T β ((t, (w ⊕ᵥ z) ∘ e.symm), a) = |
| 252 | join (flatChart T₂ (β - quadricIndex (star z ⬝ᵥ 1 *ᵥ z)) ((t, w), a), z) := |
| 253 | flatChart_sumElim_comp_symm h_split β t w z a |
| 254 | obtain ⟨q, _, hq⟩ : ∃ q : Kernel (skewAdjoint A) (Fin 2 ⊕ κ₂ → A), IsSFiniteKernel q ∧ |
| 255 | ∀ b : skewAdjoint A, q b = quadricMeasure T₂ b := |
| 256 | exists_kernel_eq_map (volume.prod skewMeasure) (measurable_flatChart (T := T₂)) |
| 257 | have h_dis : IsDisintegration volume (planeSumGram T₂) q := by |
| 258 | rw [funext hq] |
| 259 | exact isDisintegration_quadricMeasure hT₂ |
| 260 | let ζ : Kernel (Fin 2 ⊕ κ₂ → A) (B → A) := |
| 261 | l.comap (fun y ↦ β - quadricIndex (star y ⬝ᵥ planeSumGram T₂ *ᵥ y)) (by fun_prop) |
| 262 | refine ext_of_lintegral _ fun f hf ↦ ?_ |
| 263 | -- Join `z` in the block and `w` outside it to one vector of A^κ. |
| 264 | let coords (p : (B → A) × (A × (κ₂ → A)) × skewAdjoint A) : (A × (κ → A)) × skewAdjoint A := |
| 265 | ((p.2.1.1, (p.2.1.2 ⊕ᵥ p.1) ∘ e.symm), p.2.2) |
| 266 | have h_coords : MeasurePreserving coords |
| 267 | (volume.prod (volume.prod skewMeasure)) (volume.prod skewMeasure) := |
| 268 | measurePreserving_join_coordinates e |
| 269 | have h_meas : Measurable fun x : (A × (κ → A)) × skewAdjoint A ↦ f (flatChart T β x) := by |
| 270 | fun_prop |
| 271 | calc |
| 272 | ∫⁻ x, f x ∂(volume ⊗ₘ ζ).map join = ∫⁻ y, ∫⁻ z, f (join (y, z)) ∂ζ y ∂volume := by |
| 273 | rw [lintegral_map hf h_join, lintegral_compProd (f := fun p ↦ f (join p)) (hf.comp h_join)] |
| 274 | _ = ∫⁻ z, ∫⁻ y, f (join (y, z)) ∂q (β - quadricIndex (star z ⬝ᵥ 1 *ᵥ z)) ∂volume := |
| 275 | h_dis.lintegral_lintegral_comm hl β (hf.comp h_join) |
| 276 | _ = ∫⁻ z, ∫⁻ x, f (flatChart T β (coords (z, x))) ∂volume.prod skewMeasure ∂volume := by |
| 277 | refine lintegral_congr fun z ↦ ?_ |
| 278 | rw [hq, lintegral_map (by fun_prop) (by fun_prop)] |
| 279 | exact lintegral_congr fun ⟨⟨t, w⟩, a⟩ ↦ congrArg f (h_chart t w z a).symm |
| 280 | _ = ∫⁻ x, f x ∂quadricMeasure T β := by |
| 281 | have h_pullback : Measurable fun p ↦ f (flatChart T β (coords p)) := |
| 282 | h_meas.comp h_coords.measurable |
| 283 | rw [← lintegral_prod _ h_pullback.aemeasurable, h_coords.lintegral_comp h_meas, |
| 284 | lintegral_map hf (by fun_prop)] |
| 285 | |
| 286 | /-- Let the measures l(b) on A^B, for skew b, disintegrate the volume along x ↦ x*x, so l(b) is the |
| 287 | fibre measure on x*x = δ⁻¹b with δ the skew unit of the place, and let each give mass at most M to |
| 288 | the box of S (vectors with all coordinates in S). For a hermitian form T on A^κ, let `blk` inject B |
| 289 | into indices whose rows of T are those of the identity. Then `quadricMeasure T β`, the fibre measure |
| 290 | dv / dh(v, v) on the quadric h(v, v) = δ⁻¹β with h a hyperbolic plane plus T, is solved in this |
| 291 | block: it is the volume in the other coordinates times an s-finite kernel of block measures, each of |
| 292 | mass at most M on the box. -/ |
| 293 | theorem IsDisintegration.isSolvedIn_quadricMeasure [DecidableEq B] [DecidableEq κ] |
| 294 | {l : Kernel (skewAdjoint A) (B → A)} [IsSFiniteKernel l] |
| 295 | (hl : IsDisintegration volume (1 : Matrix B B A) l) |
| 296 | (h_mass : ∀ b : skewAdjoint A, l b (coordinateBox B S) ≤ M) {T : Matrix κ κ A} (hT : Tᴴ = T) |
| 297 | {blk : B → κ} (h_inj : Injective blk) |
| 298 | (h_orth : ∀ (i : B) (k : κ), T (blk i) k = (1 : Matrix κ κ A) (blk i) k) (β : skewAdjoint A) : |
| 299 | IsSolvedIn (inr ∘ blk) (quadricMeasure T β) S M := by |
| 300 | -- Split `T` as `T₂` plus the block. In `flatChart` the part `z` in the block is free, and the |
| 301 | -- rest lies on a quadric of the plane plus `T₂`. Exchange the roles of the two parts. |
| 302 | obtain ⟨κ₂, _, e, rfl⟩ := exists_equiv_comp_inr_eq h_inj |
| 303 | let T₂ : Matrix κ₂ κ₂ A := T.submatrix (e ∘ inl) (e ∘ inl) |
| 304 | let ε : (Fin 2 ⊕ κ₂) ⊕ B ≃ Fin 2 ⊕ κ := (Equiv.sumAssoc ..).trans (.sumCongr (.refl _) e) |
| 305 | let join (p : (Fin 2 ⊕ κ₂ → A) × (B → A)) : Fin 2 ⊕ κ → A := (p.1 ⊕ᵥ p.2) ∘ ε.symm |
| 306 | have h_join : Measurable join := (measurePreserving_sumElim_comp_symm ε).measurable |
| 307 | let ζ : Kernel (Fin 2 ⊕ κ₂ → A) (B → A) := |
| 308 | l.comap (fun y ↦ β - quadricIndex (star y ⬝ᵥ planeSumGram T₂ *ᵥ y)) (by fun_prop) |
| 309 | have h_map : (volume ⊗ₘ ζ).map join = quadricMeasure T β := |
| 310 | hl.map_compProd_quadricMeasure hT e h_orth β h_join |
| 311 | exact ⟨_, inferInstance, ε, ζ, rfl, inferInstance, ⟨h_join, h_map⟩, fun _ ↦ h_mass _⟩ |
| 312 | |
| 313 | end Place |
| 314 | |
| 315 | end New.Floors |