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.Analysis.SpecialFunctions.Complex.Circle |
| 4 | import Mathlib.Algebra.Order.Star.Int |
| 5 | import Mathlib.Topology.Separation.CompletelyRegular |
| 6 | import TauCeti.LinearAlgebra.Matrix.Triangular |
| 7 | import TauCeti.Topology.Algebra.Group.Units |
| 8 | import TauCeti.Topology.Instances.Matrix |
| 9 | public import Lib.DiscreteSeries.FlenstedJensen.Defs |
| 10 | import Lib.DiscreteSeries.FlenstedJensen.PsiKTypes |
| 11 | import Lib.DiscreteSeries.FlenstedJensen.SquareIntegrability |
| 12 | import Lib.DiscreteSeries.Holomorphic.HighestVectorExtension |
| 13 | import Lib.DiscreteSeries.Holomorphic.MaximalCompactMinors |
| 14 | import Lib.General.Analysis.MeanValueAndTaylor |
| 15 | import Lib.General.LinearAlgebra.PolarDecomposition |
| 16 | |
| 17 | /-! |
| 18 | # The holomorphic model function and discrete series coefficients in the holomorphic chamber |
| 19 | |
| 20 | For signs `ε` on the indices and weights `u τ`, the model function `New.holMinorsPi ε u` is a |
| 21 | product over τ of quotients of products of principal minors `New.weightMinors` with weights |
| 22 | `u τ + c τ` and `c τ`. Here `c τ` is a large constant on the indices of sign `1` and zero elsewhere. |
| 23 | In the main results the order `o` puts the signs `1` first and each weight `u τ` is K-dominant for |
| 24 | it. With the indices numbered `1, …, n` along `o` and `u τ (n + 1) = 0`, each quotient is then the |
| 25 | product of the leading minors of size `i` to the powers `u τ i - u τ (i + 1)`, and the model |
| 26 | function is holomorphic of weight `u` (`New.IsHolOfWeight`). Let `w` be a K-dominant weight that |
| 27 | jumps up by at least `γ > 500 n³ + A + n + 1` from the first block to the second, where `n` stands |
| 28 | for the number of indices and `A` is a given natural number. Then the discrete series coefficient of |
| 29 | the parameter `2 w + 2 ρ` (`New.twoRho`) is the model function `New.holMinors ε w`. |
| 30 | |
| 31 | ## Main definitions and results |
| 32 | |
| 33 | * `New.isHolOfWeight_holMinorsPi`: `New.holMinorsPi ε u` is holomorphic of weight `u`. |
| 34 | * `New.IsHolOfWeight.circle_mean_holMinorsPi`: for `F` holomorphic of weight `u`, the mean over |
| 35 | `|s| = 1` of `F (diag (s ^ o) * h)` divided by the character of weight `u` is |
| 36 | `New.holMinorsPi ε u h * F 1`. |
| 37 | * `New.IsHolOfWeight.integral_mul_conj_holMinorsPi`: the reproducing formula |
| 38 | `∫ F * conj m = (∫ |m|²) * F 1` for `m = New.holMinorsPi ε u`, if `F * conj m` is integrable. |
| 39 | * `New.IsHolOfWeight.eq_holMinorsPi_mul`: if `F g⁻¹ = conj (F g)`, then `F` is `F 1` times the model |
| 40 | function. |
| 41 | * `New.dsCoeff_eq_holMinors`: for `w` as above, the parameter `2 w + 2 ρ` has gap `500 n³ + A`, and |
| 42 | its coefficient `New.HCParam.dsCoeff` equals `New.holMinors ε w` on the unitary group. For the |
| 43 | proof write a `g` near `1` as `x' * a * x` with `a` block diagonal and `x' - 1`, `x - 1` in the |
| 44 | corner blocks; neither side sees `x'` and `x`, both agree at `a`, and both are analytic. |
| 45 | |
| 46 | Notions from other files: |
| 47 | * `New.USign`: For a vector of signs ε, the unitary group U(J) of the diagonal matrix J = diag(ε). |
| 48 | * `New.IsHolOfWeight`: The function F on U(diag ε)^Φ extends analytically to products h b with b |
| 49 | invertible and triangular for the order o, and the extension is the character of weight u at b |
| 50 | times F(h). Optional signs ε' restrict h and b to block diagonal matrices; the default ε' = 1 is |
| 51 | no restriction. |
| 52 | * `New.IsPosFirstOrder`, `New.IsKDominant`: The order o has distinct values and puts the signs +1 |
| 53 | first; the weight w satisfies w_j ≤ w_i whenever ε_i = ε_j and o_i < o_j. |
| 54 | |
| 55 | ## Relation to the literature |
| 56 | |
| 57 | Known; see `Lib.DiscreteSeries.Holomorphic.HighestVectorExtension` for sources. |
| 58 | -/ |
| 59 | |
| 60 | @[expose] public section |
| 61 | |
| 62 | namespace New |
| 63 | |
| 64 | /-! ## Holomorphy of the model function, circle mean and reproducing formula -/ |
| 65 | |
| 66 | section HolomorphicMinor |
| 67 | |
| 68 | open Finset DiscreteSeries Int MeasureTheory ComplexConjugate Complex Circle |
| 69 | |
| 70 | variable {n : Type} [Fintype n] [DecidableEq n] {ε : n → ℤˣ} {o : n → ℤ} {Φ : Type} |
| 71 | {F : (Φ → USign ε) → ℂ} [Fintype Φ] {u : Φ → n → ℤ} |
| 72 | |
| 73 | /-- For the weight that is `a` on the indices of sign `1` and `b ≥ a` elsewhere, the quotient of |
| 74 | minors `New.holMinors` is `det ^ b` divided by the `(b - a)`-th power of the principal minor on |
| 75 | the indices of sign `1`. -/ |
| 76 | theorem holMinors_ite_sign {a b : ℤ} (hab : a ≤ b) (g : USign ε) : |
| 77 | holMinors ε (fun i : n ↦ if ε i = 1 then a else b) g = |
| 78 | (g : Matrix n n ℂ).det ^ b / principalMinor g (fun i : n ↦ ε i = 1) ^ (b - a) := by |
| 79 | -- Let `c` be the shift in `holMinors`; both sides of the cross-multiplication equal |
| 80 | -- `weightMinors` of the weight `b + c` on sign `1` and `b` elsewhere. |
| 81 | let w (i : n) : ℤ := if ε i = 1 then a else b |
| 82 | let c : ℤ := 2 * ∑ j : n, |w j| |
| 83 | have hc : 0 ≤ c := by positivity |
| 84 | have hg : (g : Matrix n n ℂ).det ≠ 0 := by simp [Matrix.GeneralLinearGroup.det_ne_zero] |
| 85 | have h_top (i j : n) (hi : ε i = 1) (hj : ¬ε j = 1) : |
| 86 | (w j + if ε j = 1 then c else 0) ≤ w i + if ε i = 1 then c else 0 := by |
| 87 | grind [neg_sum_abs_le_and_le_sum_abs w i, neg_sum_abs_le_and_le_sum_abs w j] |
| 88 | have h_den : weightMinors (fun i : n ↦ if ε i = 1 then c else 0) (g : Matrix n n ℂ) ≠ 0 := by |
| 89 | simp [weightMinors_ite_eq_zpow hg hc, zpow_ne_zero] |
| 90 | rw [holMinors, div_eq_div_iff h_den (by simp [zpow_ne_zero]), |
| 91 | ← weightMinors_add_ite hg (sub_nonneg.2 hab) h_top, |
| 92 | show (fun i : n ↦ (w i + if ε i = 1 then c else 0) + if ε i = 1 then b - a else 0) = |
| 93 | fun i : n ↦ b + if ε i = 1 then c else 0 by grind, |
| 94 | weightMinors_add_ite hg hc (by simp), weightMinors_const hg, weightMinors_ite_eq_zpow hg hc] |
| 95 | |
| 96 | @[simp] |
| 97 | theorem holMinorsPi_one : holMinorsPi ε u 1 = 1 := by simp [holMinorsPi, holMinors] |
| 98 | |
| 99 | /-- `New.holMinorsPi ε u` is the quotient of the products over τ of the minors of weights |
| 100 | `u τ + c τ` and `c τ`, where `c τ` is `2 * ∑ j, |u τ j|` on the indices of sign `1` and zero |
| 101 | elsewhere. -/ |
| 102 | theorem holMinorsPi_eq_div (u : Φ → n → ℤ) (h : Φ → USign ε) : |
| 103 | let c (τ : Φ) (i : n) : ℤ := if ε i = 1 then 2 * ∑ j : n, |u τ j| else 0 |
| 104 | holMinorsPi ε u h = |
| 105 | (∏ τ : Φ, weightMinors (u τ + c τ) (h τ)) / ∏ τ : Φ, weightMinors (c τ) (h τ) := by |
| 106 | simp [holMinorsPi, holMinors, Pi.add_def] |
| 107 | /-- Left translation by `diag t`, with `|t i| = 1`, multiplies `New.holMinorsPi ε u` (a product of |
| 108 | quotients of principal minors of weights `u τ`) by the character of weight `u` at `t`. -/ |
| 109 | theorem holMinorsPi_diagTorus_mul (t : n → Circle) (h : Φ → USign ε) : |
| 110 | holMinorsPi ε u ((fun _ : Φ ↦ diagTorus ε t) * h) = |
| 111 | (∏ τ : Φ, ∏ i : n, (t i : ℂ) ^ u τ i) * holMinorsPi ε u h := by |
| 112 | have h_minors (w : n → ℤ) (g : USign ε) : |
| 113 | weightMinors w ((diagTorus ε t * g : USign ε) : Matrix n n ℂ) = |
| 114 | (∏ i : n, (t i : ℂ) ^ w i) * weightMinors w g := by |
| 115 | simp [diagTorus, Matrix.GeneralLinearGroup.det_ne_zero] |
| 116 | simp only [holMinorsPi, ← prod_mul_distrib] |
| 117 | refine prod_congr rfl fun τ _ ↦ ?_ |
| 118 | -- the characters of the numerator and of the denominator differ by that of weight `u τ` |
| 119 | let c (i : n) : ℤ := if ε i = 1 then 2 * ∑ j : n, |u τ j| else 0 |
| 120 | have h_char : ∏ i : n, (t i : ℂ) ^ (u τ i + c i) = |
| 121 | (∏ i : n, (t i : ℂ) ^ u τ i) * ∏ i : n, (t i : ℂ) ^ c i := by |
| 122 | simp [zpow_add₀, prod_mul_distrib] |
| 123 | have h_ne : ∏ i : n, (t i : ℂ) ^ c i ≠ 0 := by simp [prod_ne_zero_iff, zpow_ne_zero] |
| 124 | simp only [c] at h_char h_ne |
| 125 | simp only [Pi.mul_apply, holMinors, h_minors, h_char] |
| 126 | field_simp |
| 127 | |
| 128 | omit [DecidableEq n] [Fintype Φ] in |
| 129 | /-- Let the order `o` be injective with the signs `1` first and each `u τ` be K-dominant, that is, |
| 130 | decrease weakly along `o` within the indices of each sign. Let `c` be `2 * ∑ j, |u τ j|` on the |
| 131 | indices of sign `1` and zero elsewhere. Then the weights `u τ + c` and `c` of the numerator and |
| 132 | the denominator of `New.holMinors` both decrease weakly along the whole order `o`. -/ |
| 133 | theorem IsPosFirstOrder.isKDominant_shift (ho : IsPosFirstOrder ε o) |
| 134 | (hu : ∀ τ : Φ, IsKDominant ε o (u τ)) (τ : Φ) : |
| 135 | (IsKDominant 1 o fun i : n ↦ u τ i + if ε i = 1 then 2 * ∑ j : n, |u τ j| else 0) ∧ |
| 136 | IsKDominant 1 o fun i : n ↦ if ε i = 1 then 2 * ∑ j : n, |u τ j| else 0 := by |
| 137 | -- Sign `1` comes first, so two indices in order lie in one block or go from `1` to `-1`. |
| 138 | have h_signs {i j : n} (hij : o i < o j) : ε i = ε j ∨ ε i = 1 ∧ ε j = -1 := by |
| 139 | grind [IsPosFirstOrder, units_eq_one_or (ε i), units_eq_one_or (ε j)] |
| 140 | -- The shift is at least the difference of any two entries of `u τ`. |
| 141 | have h_diff (i j : n) : u τ j ≤ u τ i + 2 * ∑ k : n, |u τ k| := by |
| 142 | linarith [(neg_sum_abs_le_and_le_sum_abs (u τ) i).1, (neg_sum_abs_le_and_le_sum_abs (u τ) j).2] |
| 143 | refine ⟨fun i j _ hij ↦ ?_, fun i j _ hij ↦ ?_⟩ <;> obtain h_same | ⟨hi, hj⟩ := h_signs hij |
| 144 | · simpa [h_same] using hu τ i j h_same hij |
| 145 | · simpa [hi, hj] using h_diff i j |
| 146 | · simp [h_same] |
| 147 | · simp [hi, hj, sum_nonneg] |
| 148 | |
| 149 | private theorem shiftMinors_ne_zero (u : Φ → n → ℤ) (h : Φ → USign ε) : |
| 150 | let c (τ : Φ) (i : n) : ℤ := if ε i = 1 then 2 * ∑ j : n, |u τ j| else 0 |
| 151 | ∏ τ : Φ, weightMinors (c τ) (h τ) ≠ 0 := by |
| 152 | simp [Matrix.GeneralLinearGroup.det_ne_zero, sum_nonneg, weightMinors_ite_eq_zpow, |
| 153 | prod_ne_zero_iff, zpow_ne_zero] |
| 154 | |
| 155 | open scoped Matrix.Norms.L2Operator in |
| 156 | /-- If the order o is injective with the indices of sign +1 first, and every u^τ is K-dominant |
| 157 | for o (decreases weakly within the indices of each sign), then `New.holMinorsPi ε u`, the product |
| 158 | of the quotients of principal minors of weights u^τ on U(diag ε)^Φ, is holomorphic of weight u: |
| 159 | it extends analytically with the character of weight u as factor under triangular matrices. -/ |
| 160 | theorem isHolOfWeight_holMinorsPi (ho : IsPosFirstOrder ε o) |
| 161 | (hu : ∀ τ : Φ, IsKDominant ε o (u τ)) : IsHolOfWeight ε o u (holMinorsPi ε u) := by |
| 162 | -- `holMinorsPi` is a quotient of two products of minors with dominant weights `u + c` and `c`, |
| 163 | -- where `c` is constant on the indices of sign `1` and zero elsewhere; |
| 164 | -- `isHolOfWeight_weightMinors` gives analytic extensions `G₁` and `G₂` of the two. |
| 165 | let c (τ : Φ) (i : n) : ℤ := if ε i = 1 then 2 * ∑ j : n, |u τ j| else 0 |
| 166 | obtain ⟨G₁, hG₁⟩ : |
| 167 | IsHolOfWeight ε o (u + c) fun g ↦ ∏ τ : Φ, weightMinors (u τ + c τ) (g τ) := by |
| 168 | simpa only [one_mul, c, Pi.add_def] using |
| 169 | isHolOfWeight_weightMinors ho.1 1 (fun τ ↦ (ho.isKDominant_shift hu τ).1) (by simp) |
| 170 | obtain ⟨G₂, hG₂⟩ : IsHolOfWeight ε o c fun g ↦ ∏ τ : Φ, weightMinors (c τ) (g τ) := by |
| 171 | simpa only [one_mul] using |
| 172 | isHolOfWeight_weightMinors ho.1 1 (fun τ ↦ (ho.isKDominant_shift hu τ).2) (by simp) |
| 173 | refine ⟨G₁ / G₂, fun h b hb h_block ↦ ?_⟩ |
| 174 | let z (τ : Φ) : Matrix n n ℂ := h τ * b τ |
| 175 | obtain ⟨h_an₁, h_eq₁⟩ : AnalyticAt ℂ G₁ z ∧ |
| 176 | G₁ z = (∏ τ : Φ, diagChar ((u + c) τ) (b τ)) * ∏ τ : Φ, weightMinors (u τ + c τ) (h τ) := |
| 177 | hG₁ h b hb h_block |
| 178 | obtain ⟨h_an₂, h_eq₂⟩ : AnalyticAt ℂ G₂ z ∧ |
| 179 | G₂ z = (∏ τ : Φ, diagChar (c τ) (b τ)) * ∏ τ : Φ, weightMinors (c τ) (h τ) := |
| 180 | hG₂ h b hb h_block |
| 181 | -- Both factors of the denominator `G₂ (h * b)` are nonzero. |
| 182 | have h_char_ne : ∏ τ : Φ, diagChar (c τ) (b τ) ≠ 0 := |
| 183 | prod_ne_zero_iff.2 fun τ _ ↦ diagChar_ne_zero _ ((hb τ).diag_ne_zero ho.1) |
| 184 | -- The characters of weights `u + c` and `c` divide to the character of weight `u`. |
| 185 | have h_char : ∏ τ : Φ, diagChar ((u + c) τ) (b τ) = |
| 186 | (∏ τ : Φ, diagChar (u τ) (b τ)) * ∏ τ : Φ, diagChar (c τ) (b τ) := by |
| 187 | simp only [Pi.add_apply, diagChar_add _ _ ((hb _).diag_ne_zero ho.1), prod_mul_distrib] |
| 188 | refine ⟨h_an₁.div h_an₂ (h_eq₂.trans_ne (mul_ne_zero h_char_ne (shiftMinors_ne_zero u h))), ?_⟩ |
| 189 | rw [Pi.div_apply, h_eq₁, h_eq₂, h_char, holMinorsPi_eq_div u h] |
| 190 | field_simp |
| 191 | rfl |
| 192 | |
| 193 | /-- Let `o` put the signs `1` first, let each `u τ` be K-dominant for `o` (decreasing weakly within |
| 194 | the indices of each sign), and let `F` be holomorphic of weight `u` (`New.IsHolOfWeight`: |
| 195 | analytically extensible with the character of weight `u` as factor under triangular matrices). |
| 196 | Translate `h` on the left by the diagonal matrix with entries `s ^ o i` and divide `F` by the |
| 197 | character of weight `u`. The mean over `s` in the unit circle is `holMinorsPi ε u h * F 1`, where |
| 198 | `holMinorsPi` is the product of the quotients of principal minors of weights `u τ`. -/ |
| 199 | theorem IsHolOfWeight.circle_mean_holMinorsPi (ho : IsPosFirstOrder ε o) |
| 200 | (hu : ∀ τ : Φ, IsKDominant ε o (u τ)) (hF : IsHolOfWeight ε o u F) (h : Φ → USign ε) : |
| 201 | ∫ θ : UnitAddCircle, F ((fun _ : Φ ↦ diagTorus ε fun i : n ↦ θ.toCircle ^ o i) * h) * |
| 202 | ∏ τ : Φ, ∏ i : n, ((((θ.toCircle ^ o i) ^ u τ i)⁻¹ : Circle) : ℂ) = |
| 203 | holMinorsPi ε u h * F 1 := by |
| 204 | -- Multiply `F` by the denominator of `holMinorsPi`, of weight `c`: the product has the weight |
| 205 | -- `u + c`, dominant for the whole order, so `IsHolOfWeight.circle_mean_weightMinors` applies. |
| 206 | let c (τ : Φ) (i : n) : ℤ := if ε i = 1 then 2 * ∑ j : n, |u τ j| else 0 |
| 207 | have h_den : IsHolOfWeight ε o c fun g ↦ ∏ τ : Φ, weightMinors (c τ) (g τ) := by |
| 208 | simpa only [one_mul] using |
| 209 | isHolOfWeight_weightMinors ho.1 1 (fun τ ↦ (ho.isKDominant_shift hu τ).2) (by simp) |
| 210 | have h_dom (τ : Φ) : IsKDominant 1 o ((u + c) τ) := (ho.isKDominant_shift hu τ).1 |
| 211 | let r (θ : UnitAddCircle) : Φ → USign ε := fun _ ↦ diagTorus ε fun i : n ↦ θ.toCircle ^ o i |
| 212 | let χ (w : Φ → n → ℤ) (θ : UnitAddCircle) : ℂ := ∏ τ, ∏ i, ((θ.toCircle : ℂ) ^ o i) ^ w τ i |
| 213 | have h_mean : ∫ θ : UnitAddCircle, |
| 214 | F (r θ * h) * (∏ τ : Φ, weightMinors (c τ) ((r θ * h) τ)) * (χ (u + c) θ)⁻¹ = |
| 215 | (∏ τ : Φ, weightMinors (u τ + c τ) (h τ)) * F 1 := by |
| 216 | -- `circle_mean_weightMinors` allows a block restriction `ε'` and an analytic factor `q`; |
| 217 | -- it is applied to `F` times the denominator with both of these equal to `1`. |
| 218 | simpa [r, Pi.add_def, Pi.mul_def] using |
| 219 | (hF.mul ho.1 h_den).circle_mean_weightMinors (g := h) ho.1 (.inl rfl) h_dom (by simp) 1 |
| 220 | analyticOnNhd_const |
| 221 | -- Under rotation the denominator changes by its own character, which cancels. |
| 222 | have h_rot (θ : UnitAddCircle) : ∏ τ : Φ, weightMinors (c τ) ((r θ * h) τ) = |
| 223 | χ c θ * ∏ τ : Φ, weightMinors (c τ) (h τ) := by |
| 224 | simp [r, χ, prod_mul_distrib, diagTorus, Matrix.GeneralLinearGroup.det_ne_zero, zpow_ne_zero] |
| 225 | have h_cancel (θ : UnitAddCircle) : χ c θ * (χ (u + c) θ)⁻¹ = (χ u θ)⁻¹ := by |
| 226 | have h_ne : χ c θ ≠ 0 := by simp [χ, prod_ne_zero_iff, zpow_ne_zero] |
| 227 | rw [show χ (u + c) θ = χ u θ * χ c θ by simp [χ, prod_mul_distrib, zpow_ne_zero, zpow_add₀]] |
| 228 | field_simp |
| 229 | rw [holMinorsPi_eq_div u h, div_mul_eq_mul_div, eq_div_iff (shiftMinors_ne_zero u h), ← h_mean, |
| 230 | ← integral_mul_const] |
| 231 | refine integral_congr_ae (.of_forall fun θ ↦ ?_) |
| 232 | have h_coe : ∏ τ : Φ, ∏ i : n, ((((θ.toCircle ^ o i) ^ u τ i)⁻¹ : Circle) : ℂ) = (χ u θ)⁻¹ := by |
| 233 | simp [χ] |
| 234 | simp only [h_rot, h_coe, ← h_cancel] |
| 235 | ring |
| 236 | |
| 237 | /-- The reproducing formula. Let `o` put the signs `1` first, let each `u τ` be K-dominant for `o` |
| 238 | (decreasing weakly within the indices of each sign), and let `F` be holomorphic of weight `u` on |
| 239 | U(diag ε)^Φ (analytically extensible with the character of weight `u` under triangular matrices). |
| 240 | If `F * conj m` is integrable for the invariant measure, where `m = holMinorsPi ε u` is the |
| 241 | product of quotients of principal minors of weight `u`, then its integral is `F 1` times the |
| 242 | integral of `|m|²`. -/ |
| 243 | theorem IsHolOfWeight.integral_mul_conj_holMinorsPi (ho : IsPosFirstOrder ε o) |
| 244 | (hu : ∀ τ : Φ, IsKDominant ε o (u τ)) (hF : IsHolOfWeight ε o u F) |
| 245 | (hi : Integrable fun h : Φ → USign ε ↦ F h * conj (holMinorsPi ε u h)) : |
| 246 | ∫ h : Φ → USign ε, F h * conj (holMinorsPi ε u h) = |
| 247 | (∫ h : Φ → USign ε, ‖holMinorsPi ε u h‖ ^ 2 : ℝ) * F 1 := by |
| 248 | -- Average the integrand over the rotations, which preserve the measure. Under them `holMinorsPi` |
| 249 | -- moves by a character, whose conjugate is the factor in `circle_mean_holMinorsPi`. |
| 250 | rw [← integral_complex_ofReal, ← integral_mul_const] |
| 251 | let r (θ : UnitAddCircle) : Φ → USign ε := fun _ ↦ diagTorus ε fun i : n ↦ θ.toCircle ^ o i |
| 252 | refine integral_eq_of_probability_mean (ν := volume) (T := fun θ h ↦ r θ * h) |
| 253 | (Continuous.measurable (by fun_prop)) (fun θ ↦ measurePreserving_mul_left _ (r θ)) hi fun h ↦ ?_ |
| 254 | have h_rot (t : n → Circle) : conj (holMinorsPi ε u ((fun _ : Φ ↦ diagTorus ε t) * h)) = |
| 255 | (∏ τ : Φ, ∏ i : n, (((t i ^ u τ i)⁻¹ : Circle) : ℂ)) * conj (holMinorsPi ε u h) := by |
| 256 | simp [holMinorsPi_diagTorus_mul, ← coe_inv_eq_conj] |
| 257 | calc ∫ θ : UnitAddCircle, F (r θ * h) * conj (holMinorsPi ε u (r θ * h)) |
| 258 | = (∫ θ : UnitAddCircle, F (r θ * h) * |
| 259 | ∏ τ : Φ, ∏ i : n, ((((θ.toCircle ^ o i) ^ u τ i)⁻¹ : Circle) : ℂ)) * |
| 260 | conj (holMinorsPi ε u h) := by |
| 261 | simp only [r, h_rot, ← mul_assoc, integral_mul_const] |
| 262 | _ = holMinorsPi ε u h * F 1 * conj (holMinorsPi ε u h) := by |
| 263 | rw [hF.circle_mean_holMinorsPi ho hu] |
| 264 | _ = ((‖holMinorsPi ε u h‖ ^ 2 : ℝ) : ℂ) * F 1 := by |
| 265 | rw [mul_right_comm, mul_conj', ofReal_pow] |
| 266 | |
| 267 | /-- Let the order `o` be injective with signs `1` first, each `u τ` K-dominant (decreasing weakly |
| 268 | within the indices of each sign), and `F` holomorphic of weight `u` on U(diag ε)^Φ (analytically |
| 269 | extensible with the character of weight `u` under triangular matrices) with `F g⁻¹ = conj (F g)`. |
| 270 | Then `F` is `F 1` times `New.holMinorsPi ε u`, the product of quotients of principal minors. -/ |
| 271 | theorem IsHolOfWeight.eq_holMinorsPi_mul (ho : IsPosFirstOrder ε o) |
| 272 | (hu : ∀ τ : Φ, IsKDominant ε o (u τ)) (hF : IsHolOfWeight ε o u F) |
| 273 | (hF_inv : ∀ g : Φ → USign ε, F g⁻¹ = conj (F g)) |
| 274 | (h : Φ → USign ε) : F h = holMinorsPi ε u h * F 1 := by |
| 275 | -- conjugating the law for right translation by the torus gives the law for left translation |
| 276 | have h_left (t : n → Circle) (y : Φ → USign ε) : |
| 277 | F ((fun _ ↦ diagTorus ε t)⁻¹ * y) = |
| 278 | (∏ τ : Φ, ∏ i : n, (((t i ^ u τ i)⁻¹ : Circle) : ℂ)) * F y := by |
| 279 | simpa [← hF_inv, ← coe_inv_eq_conj, ← coe_zpow] using |
| 280 | congrArg conj (hF.apply_mul_diagTorus y⁻¹ t) |
| 281 | -- so the integrand of the circle mean is the constant `F h` |
| 282 | have h_const (t : n → Circle) : |
| 283 | F ((fun _ ↦ diagTorus ε t) * h) * ∏ τ : Φ, ∏ i : n, (((t i ^ u τ i)⁻¹ : Circle) : ℂ) = |
| 284 | F h := by |
| 285 | rw [mul_comm, ← h_left, inv_mul_cancel_left] |
| 286 | calc F h = ∫ _ : UnitAddCircle, F h := by simp [Measure.real] |
| 287 | _ = ∫ θ : UnitAddCircle, F ((fun _ : Φ ↦ diagTorus ε fun i : n ↦ θ.toCircle ^ o i) * h) * |
| 288 | ∏ τ : Φ, ∏ i : n, ((((θ.toCircle ^ o i) ^ u τ i)⁻¹ : Circle) : ℂ) := by |
| 289 | simp only [h_const] |
| 290 | _ = holMinorsPi ε u h * F 1 := hF.circle_mean_holMinorsPi ho hu h |
| 291 | |
| 292 | end HolomorphicMinor |
| 293 | |
| 294 | /-! |
| 295 | ## Discrete series coefficients in the holomorphic chamber |
| 296 | |
| 297 | Parameters are doubled, `l = 2 λ`. |
| 298 | -/ |
| 299 | |
| 300 | section HolomorphicChamber |
| 301 | |
| 302 | open Matrix Finset Fintype Int Filter Topology ComplexOrder DiscreteSeries |
| 303 | |
| 304 | section |
| 305 | |
| 306 | variable {n : Type} [Fintype n] [DecidableEq n] {ε : n → ℤˣ} {o : n → ℤ} |
| 307 | |
| 308 | /-! ### Matrices in a corner block -/ |
| 309 | |
| 310 | /-- The matrix `y` lies in the corner block with rows of sign `s` and columns of sign `-s`: all |
| 311 | other entries vanish. If the signs `1` come first, this is the upper right block for `s = 1` and the |
| 312 | lower left block for `s = -1`. -/ |
| 313 | def IsInCornerBlock (ε : n → ℤˣ) (s : ℤˣ) (y : Matrix n n ℂ) : Prop := |
| 314 | ∀ i j : n, ¬(ε i = s ∧ ε j = -s) → y i j = 0 |
| 315 | |
| 316 | /-- A corner block is stable under multiplication by block diagonal matrices on both sides. -/ |
| 317 | theorem IsInCornerBlock.mul_mul {s : ℤˣ} {y p q : Matrix n n ℂ} (hy : IsInCornerBlock ε s y) |
| 318 | (hp : p ∈ blockDiagAlg ε) (hq : q ∈ blockDiagAlg ε) : IsInCornerBlock ε s (p * y * q) := by |
| 319 | intro i j hij |
| 320 | have h_term (a b : n) : p i a * y a b * q b j = 0 := by |
| 321 | by_cases h_row : ε i = ε a |
| 322 | · by_cases h_col : ε b = ε j |
| 323 | · simp [hy a b (by rwa [← h_row, h_col])] |
| 324 | · simp [mem_blockDiagAlg.1 hq b j h_col] |
| 325 | · simp [mem_blockDiagAlg.1 hp i a h_row] |
| 326 | simp only [Matrix.mul_apply, sum_mul, h_term, sum_const_zero] |
| 327 | |
| 328 | /-- If `x - 1` lies in a corner block, then so does `kᴴ * x * k - 1` for `k` in |
| 329 | `K = U(diag ε) ∩ U(n)`. -/ |
| 330 | theorem IsInCornerBlock.conj_sub_one {s : ℤˣ} {x : Matrix n n ℂ} |
| 331 | (hx : IsInCornerBlock ε s (x - 1)) (k : maxCompactU ε) : |
| 332 | IsInCornerBlock ε s ((k : Matrix n n ℂ)ᴴ * x * k - 1) := by |
| 333 | have hk_mem : (k : Matrix n n ℂ) ∈ blockDiagAlg ε := mem_maxCompactU.1 k.property |
| 334 | have h_conj : (k : Matrix n n ℂ)ᴴ * x * k - 1 = (k : Matrix n n ℂ)⁻¹ * (x - 1) * k := by |
| 335 | simp [mul_sub, sub_mul, ← maxCompactU.coe_inv, GeneralLinearGroup.det_ne_zero] |
| 336 | simpa only [h_conj] using hx.mul_mul (blockDiagAlg.inv_mem hk_mem) hk_mem |
| 337 | |
| 338 | /-- Let `x - 1` lie in the corner block with rows of sign `s`, and let the injective order `o` put |
| 339 | the signs `s` before the signs `-s`. Then `x` is upper unipotent for `o`: it is invertible and upper |
| 340 | triangular (`New.IsBorelMatrix`), and every character `diagChar w x = ∏ i, x i i ^ w i` of the |
| 341 | diagonal is `1`. -/ |
| 342 | theorem IsInCornerBlock.isBorelMatrix_and_diagChar_eq_one {s : ℤˣ} {x : Matrix n n ℂ} |
| 343 | (hx : IsInCornerBlock ε s (x - 1)) (ho : o.Injective) |
| 344 | (h_first : ∀ i j : n, ε i = s → ε j = -s → o i < o j) : |
| 345 | IsBorelMatrix o x ∧ ∀ w : n → ℤ, diagChar w x = 1 := by |
| 346 | have h_diag (i : n) : x i i = 1 := by |
| 347 | simpa [sub_eq_zero] using hx i i fun ⟨hi, hj⟩ ↦ (h_first i i hi hj).false |
| 348 | have h_tri : x.BlockTriangular o := fun i j hij ↦ by |
| 349 | have h_ne : i ≠ j := fun h_eq ↦ hij.ne (congrArg o h_eq.symm) |
| 350 | simpa [h_ne] using hx i j fun ⟨hi, hj⟩ ↦ (h_first i j hi hj).not_gt hij |
| 351 | exact ⟨⟨h_tri, by simp [h_tri.det_eq_prod_diag ho, h_diag]⟩, |
| 352 | fun w ↦ by simp [diagChar, h_diag]⟩ |
| 353 | |
| 354 | /-- A block diagonal matrix that is invertible and upper triangular for the order `o` |
| 355 | (`New.IsBorelMatrix`) is so for every order `o'` whose strict inequalities inside the blocks hold |
| 356 | for `o` too. -/ |
| 357 | theorem IsBorelMatrix.of_mem_blockDiagAlg {o' : n → ℤ} {b : Matrix n n ℂ} (hb : IsBorelMatrix o b) |
| 358 | (hb_mem : b ∈ blockDiagAlg ε) (h_order : ∀ i j : n, ε i = ε j → o' j < o' i → o j < o i) : |
| 359 | IsBorelMatrix o' b := by |
| 360 | refine ⟨fun i j hij ↦ ?_, hb.2⟩ |
| 361 | by_cases h_sign : ε i = ε j |
| 362 | · exact hb.1 (h_order i j h_sign hij) |
| 363 | · exact mem_blockDiagAlg.1 hb_mem i j h_sign |
| 364 | |
| 365 | /-! ### Factorisations near the identity -/ |
| 366 | |
| 367 | open Norms.L2Operator in |
| 368 | /-- Each block diagonal matrix `y` near `1` is `(1 + z) * b`, where `z` is block diagonal and |
| 369 | strictly lower triangular for the order `o`, and `b` is block diagonal, invertible and upper |
| 370 | triangular. Both factors lie in a given neighbourhood `P` of `1`. The order `o` may have ties. -/ |
| 371 | theorem eventually_exists_eq_lower_mul_borel (ε : n → ℤˣ) (o : n → ℤ) |
| 372 | {P : Set (Matrix n n ℂ)} (hP : P ∈ 𝓝 1) : |
| 373 | ∀ᶠ y : Matrix n n ℂ in 𝓝 1, y ∈ blockDiagAlg ε → ∃ z b : Matrix n n ℂ, |
| 374 | (∀ i j : n, ¬(o j < o i ∧ ε i = ε j) → z i j = 0) ∧ |
| 375 | b ∈ blockDiagAlg ε ∧ |
| 376 | IsBorelMatrix o b ∧ |
| 377 | 1 + z ∈ P ∧ |
| 378 | b ∈ P ∧ |
| 379 | y = (1 + z) * b := by |
| 380 | have h_lower : (fun Z : Matrix n n ℂ ↦ 1 + lowerMask ε o Z) ⁻¹' P ∈ 𝓝 0 := |
| 381 | (continuousAt_const.add (lowerMask ε o).continuous.continuousAt).preimage_mem_nhds |
| 382 | (by simpa only [Pi.add_apply, map_zero, add_zero] using hP) |
| 383 | filter_upwards [eventually_exists_lowerMask_mul_borel ε o h_lower hP] with y hy hy_mem |
| 384 | obtain ⟨Z, hZ, b, hb, -, hb_mem, hb_tri, hy_eq⟩ := hy hy_mem |
| 385 | exact ⟨lowerMask ε o Z, b, fun i j hij ↦ by simp [hij], hb_mem, hb_tri, hZ, hb, hy_eq⟩ |
| 386 | |
| 387 | /-- Each matrix `g` near `1` is `x' * a * x` with `a` block diagonal and in a given neighbourhood |
| 388 | `P` of `1`, with `x - 1` in the upper right block (rows of sign `1`, columns of sign `-1`) and |
| 389 | `x' - 1` in the lower left block. -/ |
| 390 | theorem eventually_exists_eq_corner_mul_mul_corner (ε : n → ℤˣ) {P : Set (Matrix n n ℂ)} |
| 391 | (hP : P ∈ 𝓝 1) : |
| 392 | ∀ᶠ g : Matrix n n ℂ in 𝓝 1, ∃ x' a x : Matrix n n ℂ, |
| 393 | IsInCornerBlock ε (-1) (x' - 1) ∧ |
| 394 | a ∈ blockDiagAlg ε ∧ |
| 395 | a ∈ P ∧ |
| 396 | IsInCornerBlock ε 1 (x - 1) ∧ |
| 397 | g = x' * a * x := by |
| 398 | -- Factor `g = (1 + z) * b` for the two-level order `-ε` (for the constant signs `1` every matrix |
| 399 | -- is block diagonal). Take `a` the block diagonal part of `b`, `x' = 1 + z` and `x = a⁻¹ * b`. |
| 400 | have h_part : ∀ᶠ b : Matrix n n ℂ in 𝓝 1, |
| 401 | blockDiagPart ε b ∈ P ∧ (blockDiagPart ε b).det ≠ 0 := |
| 402 | (blockDiagPart ε).continuous.tendsto' 1 1 (blockDiagPart_of_mem (one_mem _)) |
| 403 | (Eventually.and hP (ContinuousAt.eventually_ne (by fun_prop) (by simp))) |
| 404 | filter_upwards [eventually_exists_eq_lower_mul_borel 1 (fun i ↦ -(ε i : ℤ)) h_part] with g hg |
| 405 | obtain ⟨z, b, hz, -, hb, -, ⟨ha_near, ha_det⟩, rfl⟩ := hg mem_blockDiagAlg_one |
| 406 | set a : Matrix n n ℂ := blockDiagPart ε b with ha |
| 407 | have ha_mem : a ∈ blockDiagAlg ε := blockDiagPart_mem b |
| 408 | have h_level (s t : ℤˣ) : -(t : ℤ) < -(s : ℤ) ↔ s = -1 ∧ t = 1 := by |
| 409 | rcases units_eq_one_or s with rfl | rfl <;> rcases units_eq_one_or t with rfl | rfl <;> simp |
| 410 | have h_lower : IsInCornerBlock ε (-1) z := |
| 411 | fun i j hij ↦ hz i j fun h_below ↦ hij ((h_level (ε i) (ε j)).1 h_below.1) |
| 412 | have h_upper : IsInCornerBlock ε 1 (b - a) := by |
| 413 | intro i j hij |
| 414 | by_cases h_sign : ε i = ε j |
| 415 | · simp [ha, blockDiagPart, h_sign] |
| 416 | · -- Entries off the blocks and outside the upper right one lie in the lower left one. |
| 417 | have h_signs : ε i = -1 ∧ ε j = 1 := by |
| 418 | grind [units_eq_one_or (ε i), units_eq_one_or (ε j)] |
| 419 | simp [ha, blockDiagPart, h_sign, hb.1 ((h_level (ε i) (ε j)).2 h_signs)] |
| 420 | have h_sub : a⁻¹ * b - 1 = a⁻¹ * (b - a) * 1 := by |
| 421 | rw [mul_one, mul_sub, nonsing_inv_mul a ha_det.isUnit] |
| 422 | refine ⟨1 + z, a, a⁻¹ * b, by rwa [add_sub_cancel_left], ha_mem, ha_near, ?_, |
| 423 | by rw [mul_assoc, mul_nonsing_inv_cancel_left a b ha_det.isUnit]⟩ |
| 424 | rw [h_sub] |
| 425 | exact h_upper.mul_mul (blockDiagAlg.inv_mem ha_mem) (one_mem _) |
| 426 | |
| 427 | /-- For a weight that decreases weakly along the injective order `o`, multiplying by an invertible |
| 428 | lower triangular `b'` on the left and an upper triangular `b` on the right multiplies |
| 429 | `weightMinors v` (the product of the leading minors of size `i` along `o` to the powers |
| 430 | `v i - v (i + 1)`, with `v (n + 1) = 0`) by the characters of the two diagonals. -/ |
| 431 | theorem IsKDominant.weightMinors_mul_mul_of_isBorelMatrix {v : n → ℤ} (ho : o.Injective) |
| 432 | (hv : IsKDominant 1 o v) {b' y b : Matrix n n ℂ} (hb' : IsBorelMatrix (-o) b') |
| 433 | (hy : y.det ≠ 0) (hb : IsBorelMatrix o b) : |
| 434 | weightMinors v (b' * y * b) = diagChar v b' * diagChar v b * weightMinors v y := by |
| 435 | rw [hv.weightMinors_mul_borel ho ((det_mul b' y).trans_ne (mul_ne_zero hb'.2 hy)) |
| 436 | mem_blockDiagAlg_one hb, |
| 437 | hv.weightMinors_oppBorel_mul ho hy mem_blockDiagAlg_one hb', mul_right_comm] |
| 438 | |
| 439 | /-! ### The model function -/ |
| 440 | |
| 441 | /-- Let the order `o` put the signs `1` first and let `w` decrease weakly within each block. For |
| 442 | invertible `b'`, `y`, `b` with `b'` lower and `b` upper triangular for `o`, the model function |
| 443 | `holMinors ε w` at `b' * y * b` is its value at `y` times `∏ i, b' i i ^ w i` and |
| 444 | `∏ i, b i i ^ w i`. -/ |
| 445 | theorem holMinors_oppBorel_mul_mul_borel (ho : IsPosFirstOrder ε o) {w : n → ℤ} |
| 446 | (hw : IsKDominant ε o w) {b' y b : Matrix n n ℂ} (hb' : IsBorelMatrix (-o) b') |
| 447 | (hy : y.det ≠ 0) (hb : IsBorelMatrix o b) : |
| 448 | holMinors ε w (b' * y * b) = diagChar w b' * diagChar w b * holMinors ε w y := by |
| 449 | -- Numerator and denominator obey this rule, with the weights `w + c` and `c`. |
| 450 | let c (i : n) : ℤ := if ε i = 1 then 2 * ∑ j : n, |w j| else 0 |
| 451 | obtain ⟨h_num, h_den⟩ : IsKDominant 1 o (w + c) ∧ IsKDominant 1 o c := |
| 452 | ho.isKDominant_shift (u := fun _ : Unit ↦ w) (fun _ ↦ hw) () |
| 453 | have hb'_diag : ∀ i : n, b' i i ≠ 0 := hb'.diag_ne_zero (neg_injective.comp ho.1) |
| 454 | have hb_diag : ∀ i : n, b i i ≠ 0 := hb.diag_ne_zero ho.1 |
| 455 | change weightMinors (w + c) (b' * y * b) / weightMinors c (b' * y * b) = |
| 456 | diagChar w b' * diagChar w b * (weightMinors (w + c) y / weightMinors c y) |
| 457 | rw [h_num.weightMinors_mul_mul_of_isBorelMatrix ho.1 hb' hy hb, |
| 458 | h_den.weightMinors_mul_mul_of_isBorelMatrix ho.1 hb' hy hb, |
| 459 | diagChar_add w c hb'_diag, diagChar_add w c hb_diag] |
| 460 | field_simp [diagChar_ne_zero c hb'_diag, diagChar_ne_zero c hb_diag] |
| 461 | |
| 462 | open Norms.L2Operator in |
| 463 | /-- With `c = 2 * ∑ j, |w j|` on the indices of sign `1` and zero elsewhere, `holMinors ε w` is the |
| 464 | quotient of the products of principal minors of weights `w + c` and `c`. It is analytic at each |
| 465 | point of `U(diag ε)`, for every weight `w`. -/ |
| 466 | theorem analyticAt_holMinors (w : n → ℤ) (g : USign ε) : AnalyticAt ℂ (holMinors ε w) g := by |
| 467 | -- The denominator is a power of the principal minor on the signs `1`, nonzero on the group. |
| 468 | have hg : (g : Matrix n n ℂ).det ≠ 0 := GeneralLinearGroup.det_ne_zero _ |
| 469 | refine (analyticAt_weightMinors hg).div (analyticAt_weightMinors hg) ?_ |
| 470 | rw [weightMinors_ite_eq_zpow hg (by positivity)] |
| 471 | exact zpow_ne_zero _ (U.principalMinor_sign_ne_zero 1 g) |
| 472 | |
| 473 | open Norms.L2Operator in |
| 474 | /-- Let `f` and `f'` be functions of a matrix that are analytic at each point of `U(diag ε)`. If |
| 475 | they agree on a neighbourhood of `1` in the group, they agree on the whole group. -/ |
| 476 | theorem USign.eq_of_analyticAt_of_eventually_eq {f f' : Matrix n n ℂ → ℂ} |
| 477 | (hf : ∀ g : USign ε, AnalyticAt ℂ f g) (hf' : ∀ g : USign ε, AnalyticAt ℂ f' g) |
| 478 | (h_near : ∀ᶠ g : USign ε in 𝓝 1, f g = f' g) (g : USign ε) : f g = f' g := by |
| 479 | -- Restrict both functions to an analytic path from `1` to `g`. |
| 480 | obtain ⟨c, hc_zero, rfl, hc, -⟩ : ∃ c : ℝ → USign ε, c 0 = 1 ∧ c 1 = g ∧ |
| 481 | (∀ t : ℝ, AnalyticAt ℝ (fun s : ℝ ↦ (c s : Matrix n n ℂ)) t) ∧ |
| 482 | ∀ t : ℝ, (c t : Matrix n n ℂ) ∈ blockDiagAlg 1 := |
| 483 | exists_analytic_path (ε' := 1) (.inl rfl) g mem_blockDiagAlg_one |
| 484 | have hc_cont : Continuous c := |
| 485 | continuous_U_iff_matrix.2 (continuous_iff_continuousAt.2 fun t ↦ (hc t).continuousAt) |
| 486 | have h_comp {q : Matrix n n ℂ → ℂ} (hq : ∀ g : USign ε, AnalyticAt ℂ q g) : |
| 487 | AnalyticOnNhd ℝ (fun t : ℝ ↦ q (c t)) Set.univ := |
| 488 | fun t _ ↦ (hq (c t)).restrictScalars.comp_of_eq (hc t) rfl |
| 489 | have h_path : (fun t : ℝ ↦ f (c t)) = fun t : ℝ ↦ f' (c t) := |
| 490 | (h_comp hf).eq_of_eventuallyEq (h_comp hf') ((hc_cont.tendsto' 0 1 hc_zero).eventually h_near) |
| 491 | exact congrFun h_path 1 |
| 492 | |
| 493 | /-! ### The coefficient in the holomorphic chamber -/ |
| 494 | |
| 495 | variable {l : HCParam ε} {h : ℕ} |
| 496 | |
| 497 | omit [DecidableEq n] in |
| 498 | /-- If the parameter `l`, of some gap `h` (its entries are distinct, of the parity of `n - 1`, and |
| 499 | those of `l / 2` at opposite signs are at least `h` apart), decreases along the order `o` within |
| 500 | each block of equal signs, then the highest weight `l.lowestKType` of its lowest `K`-type decreases |
| 501 | weakly along `o` in each block. -/ |
| 502 | theorem HCParam.HasGap.isKDominant_lowestKType_of_order (hl : l.HasGap h) |
| 503 | (h_same : ∀ i j : n, ε i = ε j → o i < o j → l j < l i) : IsKDominant ε o l.lowestKType := |
| 504 | fun i j h_sign hij ↦ hl.isKDominant_lowestKType i j h_sign (neg_lt_neg (h_same i j h_sign hij)) |
| 505 | |
| 506 | /-- Let `l` be a parameter of some gap `h` (in particular with distinct entries) whose entries at |
| 507 | the signs `1` lie below those at the signs `-1`. Let `a` be invertible, `x' - 1` in the lower left |
| 508 | and `x - 1` in the upper right block. Then Flensted-Jensen's integral `l.flenstedJensen 1` (an |
| 509 | integral over `k` in `K` whose integrand has denominator |
| 510 | `weightMinors (-paramAddRho l) (kᴴ * g * k)`), based at the identity, has the same value at |
| 511 | `x' * a * x` and at `a`. -/ |
| 512 | theorem flenstedJensen_corner_mul_mul_corner (hl : l.HasGap h) |
| 513 | (h_cross : ∀ i j : n, ε i = 1 → ε j = -1 → l i < l j) {x' a x : Matrix n n ℂ} |
| 514 | (hx' : IsInCornerBlock ε (-1) (x' - 1)) (ha : a.det ≠ 0) (hx : IsInCornerBlock ε 1 (x - 1)) : |
| 515 | l.flenstedJensen 1 (x' * a * x) = l.flenstedJensen 1 a := by |
| 516 | -- In the order of decreasing `l` the signs `-1` come first, so the conjugates of `x'` by `K` are |
| 517 | -- upper and those of `x` are lower unipotent. They do not change the denominator of the |
| 518 | -- integrand, a product of minors of weight `-(λ + ρ)`, which increases in that order. |
| 519 | have h_dom : IsKDominant 1 l (-paramAddRho l) := hl.isKDominant_neg_paramAddRho |
| 520 | have h_denom (k : maxCompactU ε) : |
| 521 | weightMinors (-paramAddRho l) ((k : Matrix n n ℂ)ᴴ * (x' * a * x) * k) = |
| 522 | weightMinors (-paramAddRho l) ((k : Matrix n n ℂ)ᴴ * a * k) := by |
| 523 | obtain ⟨h_left, h_left_char⟩ : IsBorelMatrix (-l) ((k : Matrix n n ℂ)ᴴ * x' * k) ∧ |
| 524 | ∀ w : n → ℤ, diagChar w ((k : Matrix n n ℂ)ᴴ * x' * k) = 1 := |
| 525 | (hx'.conj_sub_one k).isBorelMatrix_and_diagChar_eq_one hl.neg.injective |
| 526 | fun i j hi hj ↦ neg_lt_neg (h_cross j i hj hi) |
| 527 | obtain ⟨h_right, h_right_char⟩ : IsBorelMatrix l ((k : Matrix n n ℂ)ᴴ * x * k) ∧ |
| 528 | ∀ w : n → ℤ, diagChar w ((k : Matrix n n ℂ)ᴴ * x * k) = 1 := |
| 529 | (hx.conj_sub_one k).isBorelMatrix_and_diagChar_eq_one hl.injective h_cross |
| 530 | have h_split : (k : Matrix n n ℂ)ᴴ * (x' * a * x) * k = |
| 531 | (k : Matrix n n ℂ)ᴴ * x' * k * ((k : Matrix n n ℂ)ᴴ * a * k) * |
| 532 | ((k : Matrix n n ℂ)ᴴ * x * k) := by |
| 533 | simp [← maxCompactU.coe_inv, mul_assoc] |
| 534 | rw [h_split, h_dom.weightMinors_mul_mul_of_isBorelMatrix hl.injective h_left |
| 535 | (by simp [ha, GeneralLinearGroup.det_ne_zero]) h_right, h_left_char, h_right_char, |
| 536 | one_mul, one_mul] |
| 537 | simp only [flenstedJensen, h_denom] |
| 538 | |
| 539 | /-- Let the order `o` put the signs `1` first, and let the parameter `l` decrease along `o` within |
| 540 | each block. It has some gap `h`: its entries are distinct, of the parity of `n - 1`, and those of |
| 541 | `l / 2` at opposite signs are at least `h` apart. On block diagonal matrices `a` near `1`, |
| 542 | Flensted-Jensen's integral `l.flenstedJensen 1 a` (based at the identity; an integral over `k` in |
| 543 | `K` with denominator `weightMinors (-paramAddRho l) (kᴴ * a * k)`) is the model function |
| 544 | `holMinors`, a quotient of products of principal minors, for the highest weight `l.lowestKType` of |
| 545 | the lowest `K`-type. -/ |
| 546 | theorem eventually_flenstedJensen_eq_holMinors_of_mem_blockDiagAlg (hl : l.HasGap h) |
| 547 | (ho : IsPosFirstOrder ε o) (h_same : ∀ i j : n, ε i = ε j → o i < o j → l j < l i) : |
| 548 | ∀ᶠ a : Matrix n n ℂ in 𝓝 1, |
| 549 | a ∈ blockDiagAlg ε → l.flenstedJensen 1 a = holMinors ε l.lowestKType a := by |
| 550 | -- Write `a = b' * b` with `b' = 1 + z` lower and `b` upper triangular, both block diagonal. Such |
| 551 | -- factors multiply both sides by the same characters, and both sides are `1` at `1`. |
| 552 | have h_acc : {z : Matrix n n ℂ | z.IsAccretive} ∈ 𝓝 1 := PosDef.one.isAccretive.setOf_mem_nhds |
| 553 | have h_dom : IsKDominant ε o l.lowestKType := hl.isKDominant_lowestKType_of_order h_same |
| 554 | have h_order {i j : n} (h_sign : ε i = ε j) (hij : l j < l i) : o i < o j := by |
| 555 | grind [ho.1.eq_iff (a := i) (b := j)] |
| 556 | filter_upwards [eventually_exists_eq_lower_mul_borel ε o h_acc, h_acc] with a ha ha_acc ha_mem |
| 557 | obtain ⟨z, b, hz, hb_mem, hb, (hb'_acc : (1 + z).IsAccretive), -, rfl⟩ := ha ha_mem |
| 558 | have hb'_mem : 1 + z ∈ blockDiagAlg ε := |
| 559 | add_mem (one_mem _) (mem_blockDiagAlg.2 fun i j h_sign ↦ hz i j fun hij ↦ h_sign hij.2) |
| 560 | have hb' : IsBorelMatrix (-o) (1 + z) := ⟨blockTriangular_one.add fun i j hij ↦ |
| 561 | hz i j fun h_lt ↦ h_lt.1.not_gt (neg_lt_neg_iff.1 hij), hb'_acc.det_ne_zero⟩ |
| 562 | -- Inside the blocks the order `o` is the order of decreasing `l`. |
| 563 | have hb'_param : IsBorelMatrix l (1 + z) := |
| 564 | hb'.of_mem_blockDiagAlg hb'_mem fun i j h_sign hij ↦ neg_lt_neg (h_order h_sign hij) |
| 565 | have hb_param : IsBorelMatrix (-l) b := |
| 566 | hb.of_mem_blockDiagAlg hb_mem fun i j h_sign hij ↦ h_order h_sign.symm (neg_lt_neg_iff.1 hij) |
| 567 | have h_one : l.flenstedJensen 1 1 = holMinors ε l.lowestKType 1 := by |
| 568 | simpa [dsCoeff, holMinors] using dsCoeff_one (l := l) |
| 569 | calc l.flenstedJensen 1 ((1 + z) * b) |
| 570 | = diagChar l.lowestKType (1 + z) * diagChar l.lowestKType b * l.flenstedJensen 1 1 := by |
| 571 | simpa only [mul_one] using flenstedJensen_triangular_mul_mul_triangular hl hb'_mem hb'_param |
| 572 | hb_mem hb_param PosDef.one.isAccretive (by rwa [mul_one]) |
| 573 | _ = holMinors ε l.lowestKType ((1 + z) * b) := by |
| 574 | rw [h_one, ← holMinors_oppBorel_mul_mul_borel ho h_dom hb' (by simp) hb, mul_one] |
| 575 | |
| 576 | /-- Let the order `o` put the signs `1` first. Let the parameter `l` (distinct entries of the parity |
| 577 | of `n - 1`, with some gap `h` between opposite signs) decrease along `o` within each block, and let |
| 578 | its entries at the signs `1` lie below those at the signs `-1`. Then the coefficient `l.dsCoeff`, |
| 579 | the normalised integral of Flensted-Jensen, equals on `U(diag ε)` the model function `holMinors`, |
| 580 | a quotient of products of principal minors, for the highest weight `l.lowestKType` of the lowest |
| 581 | `K`-type. -/ |
| 582 | theorem dsCoeff_eq_holMinors_lowestKType (hl : l.HasGap h) (ho : IsPosFirstOrder ε o) |
| 583 | (h_same : ∀ i j : n, ε i = ε j → o i < o j → l j < l i) |
| 584 | (h_cross : ∀ i j : n, ε i = 1 → ε j = -1 → l i < l j) (g : USign ε) : |
| 585 | l.dsCoeff g = holMinors ε l.lowestKType g := by |
| 586 | -- Both sides are analytic on the group, so it is enough to treat `g = x' * a * x` near `1`. |
| 587 | refine USign.eq_of_analyticAt_of_eventually_eq l.analyticAt_dsCoeff |
| 588 | (analyticAt_holMinors l.lowestKType) ?_ g |
| 589 | have h_acc : ∀ᶠ z : Matrix n n ℂ in 𝓝 1, z.IsAccretive := PosDef.one.isAccretive.setOf_mem_nhds |
| 590 | have h_coe : Tendsto (fun g : USign ε ↦ (g : Matrix n n ℂ)) (𝓝 1) (𝓝 1) := |
| 591 | Continuous.tendsto' (by fun_prop) 1 1 rfl |
| 592 | filter_upwards [h_coe.eventually (h_acc.and (eventually_exists_eq_corner_mul_mul_corner ε |
| 593 | (h_acc.and (eventually_flenstedJensen_eq_holMinors_of_mem_blockDiagAlg hl ho h_same))))] |
| 594 | with g ⟨hg_acc, x', a, x, hx', ha_mem, ⟨ha_acc, ha_eq⟩, hx, hg_eq⟩ |
| 595 | -- In the order `o` the factors `x'` and `x` are lower and upper unipotent. |
| 596 | obtain ⟨h_lower, h_lower_char⟩ := hx'.isBorelMatrix_and_diagChar_eq_one (neg_injective.comp ho.1) |
| 597 | fun i j hi hj ↦ neg_lt_neg (ho.2 j i hj hi) |
| 598 | obtain ⟨h_upper, h_upper_char⟩ := hx.isBorelMatrix_and_diagChar_eq_one ho.1 ho.2 |
| 599 | rw [dsCoeff_eq_flenstedJensen hl (one_mem _) (by simpa using hg_acc), inv_one, one_mul, hg_eq, |
| 600 | flenstedJensen_corner_mul_mul_corner hl h_cross hx' ha_acc.det_ne_zero hx, ha_eq ha_mem, |
| 601 | holMinors_oppBorel_mul_mul_borel ho (hl.isKDominant_lowestKType_of_order h_same) h_lower |
| 602 | ha_acc.det_ne_zero h_upper, h_lower_char, h_upper_char, one_mul, one_mul] |
| 603 | |
| 604 | end |
| 605 | |
| 606 | /-- The holomorphic chamber. Let the order `o` on the `n` indices put the signs `1` first. Let `w` |
| 607 | decrease weakly along `o` within each block of equal signs, and let `w i + γ ≤ w j` for `ε i = 1`, |
| 608 | `ε j = -1`, where `γ > 500 n³ + A + n + 1`. Let `l = 2 w + 2 ρ`, where |
| 609 | `2 ρ a = #{j | o a < o j} - #{j | o j < o a}`; so `l = 2 λ` with `λ a = w a + (n + 1) / 2 - r` for |
| 610 | `r = 1, …, n` the rank of `a` in `o`. Then (a) `l` satisfies `HCParam.HasLargeGap A`, i.e. it is a |
| 611 | parameter for the signs `ε` with gap `500 n³ + A`; (b) for every `g` in the unitary group |
| 612 | `U(diag ε)`, the coefficient `New.HCParam.dsCoeff l g` equals `New.holMinors ε w g`. |
| 613 | |
| 614 | Here `dsCoeff` is the normalised integral of Flensted-Jensen and `holMinors` the quotient of |
| 615 | principal minors of weight `w`. -/ |
| 616 | theorem dsCoeff_eq_holMinors {n : Type} [Fintype n] [DecidableEq n] {ε : n → ℤˣ} {o : n → ℤ} |
| 617 | (ho : IsPosFirstOrder ε o) (A γ : ℕ) (w : n → ℤ) (hw_dom : IsKDominant ε o w) |
| 618 | (hw_gap : HasHolGap ε w γ) (hγ : 500 * Fintype.card n ^ 3 + A + Fintype.card n + 1 < γ) : |
| 619 | let l : HCParam ε := 2 * w + twoRho (-o) ⊤ |
| 620 | l.HasLargeGap A ∧ ∀ g : USign ε, l.dsCoeff g = holMinors ε w g := by |
| 621 | -- Compute the gap and the lowest `K`-type; then `dsCoeff_eq_holMinors_lowestKType` applies. |
| 622 | intro l |
| 623 | have h_inj : o.Injective := ho.1 |
| 624 | have hl_eq (a : n) : l a = 2 * w a + (#{j | o a < o j} - #{j | o j < o a} : ℤ) := by |
| 625 | simp [l, twoRho] |
| 626 | -- From here only `hl_eq` is used; `grind` would otherwise unfold `l`. |
| 627 | clear_value l |
| 628 | -- Along `o`, `l` decreases inside a block and jumps up by at least `2 (γ - n)` across the blocks. |
| 629 | have h_same (a b : n) (h_sign : ε a = ε b) (hab : o a < o b) : l b < l a := by |
| 630 | have h_rho : twoRho o ⊤ a < twoRho o ⊤ b := twoRho_lt_twoRho hab |
| 631 | simp only [twoRho, Pi.top_apply, Prop.top_eq_true, true_and] at h_rho |
| 632 | grind [hw_dom a b h_sign hab] |
| 633 | have h_jump (a b : n) (h_sign : ε a ≠ ε b) (hab : o a < o b) : |
| 634 | 2 * (γ - card n : ℤ) ≤ l b - l a := by |
| 635 | obtain ⟨ha, hb⟩ : ε a = 1 ∧ ε b = -1 := by |
| 636 | grind [IsPosFirstOrder, units_eq_one_or (ε a), units_eq_one_or (ε b)] |
| 637 | -- Each of the two counts in `hl_eq` is less than `card n`. |
| 638 | grind [hw_gap a b ha hb, card_lt_add_card_gt_add_one h_inj a, |
| 639 | card_lt_add_card_gt_add_one h_inj b] |
| 640 | have h_cross (a b : n) (ha : ε a = 1) (hb : ε b = -1) : l a < l b := by |
| 641 | grind [h_jump a b (by simp [ha, hb]) (ho.2 a b ha hb)] |
| 642 | have hl_gap : l.HasLargeGap A := by |
| 643 | have h_distinct : Function.Injective l := fun a b ↦ by |
| 644 | -- By `h_same` within a block and by `h_jump` across the blocks. |
| 645 | grind [(o a).lt_or_le (o b), eq_or_ne (ε a) (ε b)] |
| 646 | have h_parity (a : n) : Even (l a + card n - 1) := by |
| 647 | -- The two counts in `hl_eq` add up to `card n - 1`. |
| 648 | grind [card_lt_add_card_gt_add_one h_inj a] |
| 649 | have h_apart (a b : n) (h_sign : ε a ≠ ε b) : 2 * (gapThreshold n A : ℤ) ≤ |l a - l b| := by |
| 650 | -- By `h_jump` and `hγ`. |
| 651 | rw [gapThreshold] |
| 652 | grind |
| 653 | exact ⟨h_distinct, h_parity, h_apart⟩ |
| 654 | -- We have `2 * l.lowestKType = l + 2ρ_n - 2ρ_c`, with the sums of the noncompact and the compact |
| 655 | -- roots positive for `l`. As `l` orders equal signs like `-o` and unequal signs like `o`, these |
| 656 | -- sums cancel the summand `2ρ` of `l` termwise, which leaves `2 w`. |
| 657 | have h_cancel (i : n) : (#{j | o i < o j} - #{j | o j < o i} : ℤ) + |
| 658 | twoRho l (fun a b ↦ ε a ≠ ε b) i - twoRho l (fun a b ↦ ε a = ε b) i = 0 := by |
| 659 | simp only [twoRho, ← sum_boole, ← sum_sub_distrib, ← sum_add_distrib] |
| 660 | refine sum_eq_zero fun j _ ↦ ?_ |
| 661 | -- Termwise: by `h_same` and `h_jump`, `o i < o j` gives `l j < l i` exactly for equal signs. |
| 662 | grind |
| 663 | have h_type : l.lowestKType = w := by |
| 664 | ext i |
| 665 | linarith [two_mul_lowestKType hl_gap i, hl_eq i, h_cancel i] |
| 666 | refine ⟨hl_gap, fun g ↦ ?_⟩ |
| 667 | rw [dsCoeff_eq_holMinors_lowestKType hl_gap ho h_same h_cross, h_type] |
| 668 | |
| 669 | end HolomorphicChamber |
| 670 | |
| 671 | end New |