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 | import Mathlib.LinearAlgebra.Matrix.Rank |
| 4 | import Mathlib.LinearAlgebra.Matrix.NonsingularInverse |
| 5 | import Mathlib.RingTheory.Coalgebra.IsFrobenius |
| 6 | import Mathlib.RingTheory.HopfAlgebra.Basic |
| 7 | import Mathlib.RingTheory.PiTensorProduct |
| 8 | import Mathlib.Tactic.Linter.Style |
| 9 | import Mathlib.Topology.Sheaves.Presheaf |
| 10 | public import New.Appendix.DiscreteSeries.SteepParameters |
| 11 | public import Lib.General.LinearAlgebra.IntegralLattices |
| 12 | |
| 13 | /-! |
| 14 | # Positions of a smaller unitary group, and the two traces |
| 15 | |
| 16 | A position of `U(η)` in `U(ε)` consists of independent vectors `v₁, …, v_{j₀}` and an isometry `i₀` |
| 17 | into their orthogonal complement. It is stationary for two weights `μ`, `μ'` if `μ` moves `v_j` to |
| 18 | `v_{j + 1}` for `j < j₀` and compresses to `μ'` on the image of `i₀`, and `i₀` is the identity on |
| 19 | the common coordinates `X`. For a matrix `Y` that lowers the flag of the `v_j` together with its |
| 20 | adjoint, and induces `Y'` on the image of `i₀`, we compute `tr Y - tr Y'` and `tr μ Y - tr μ' Y'`. |
| 21 | |
| 22 | Notions from other files: |
| 23 | * `signMatrix ε` is the diagonal matrix of the signs `ε i = ±1`, and `USign ε` its unitary group. |
| 24 | * `HCParam ε` consists of the integer vectors on `n`, used as doubled Harish-Chandra parameters |
| 25 | `l = 2 λ`; `l.lowestKType` is the weight of the lowest `K`-type and `intDiagonal w` the diagonal |
| 26 | matrix of a weight `w`. |
| 27 | * `l.phase k (Y, Y')` is `tr μ Y - tr μ' Y'` for the weights `μ`, `μ'` of the lowest `K`-types of |
| 28 | `l` and `k`. |
| 29 | -/ |
| 30 | |
| 31 | @[expose] public section |
| 32 | |
| 33 | noncomputable section |
| 34 | |
| 35 | open Finset Matrix ComplexConjugate |
| 36 | |
| 37 | namespace New.DiscreteSeries |
| 38 | |
| 39 | variable {n m X : Type} [Fintype n] [DecidableEq n] [Fintype m] [DecidableEq m] |
| 40 | |
| 41 | /-- The adjoint `A†` of `A : (ℂ^m, η) → (ℂ^n, ε)` for the two hermitian forms. -/ |
| 42 | def formAdjoint (ε : n → ℤˣ) (η : m → ℤˣ) (A : Matrix n m ℂ) : Matrix m n ℂ := |
| 43 | signMatrix η * Aᴴ * signMatrix ε |
| 44 | |
| 45 | /-- The columns `v₁, …, v_{j₀ - 1}` of `v = (v₁, …, v_{j₀})`, where `j₀ = d + 1`. -/ |
| 46 | def initCols {d : ℕ} (v : Matrix n (Fin (d + 1)) ℂ) : Matrix n (Fin d) ℂ := |
| 47 | v.submatrix id Fin.castSucc |
| 48 | |
| 49 | /-- A position of `U(η)` in `U(ε)`, where the ranks differ by `2 j₀ - 1` and `j₀ = d + 1`. It |
| 50 | consists of independent vectors `v₁, …, v_{j₀}`, the columns of `v`, whose pairings for the form |
| 51 | `ε` vanish except that the pairing of `v_{j₀}` with itself is `±1`, and of an isometry `i₀` into |
| 52 | their orthogonal complement. -/ |
| 53 | structure IsPosition (ε : n → ℤˣ) (η : m → ℤˣ) (d : ℕ) (v : Matrix n (Fin (d + 1)) ℂ) |
| 54 | (i₀ : Matrix n m ℂ) : Prop where |
| 55 | /-- The ranks differ by `2 j₀ - 1`. -/ |
| 56 | card_eq : Fintype.card n = Fintype.card m + 2 * d + 1 |
| 57 | /-- The vectors `v₁, …, v_{j₀}` are independent. -/ |
| 58 | independent : LinearIndependent ℂ v.col |
| 59 | /-- The product of `v_i` and `v_j` vanishes unless `i = j = j₀`. -/ |
| 60 | gram_eq_zero (a b : Fin (d + 1)) : |
| 61 | a ≠ Fin.last d ∨ b ≠ Fin.last d → (vᴴ * signMatrix ε * v) a b = 0 |
| 62 | /-- The pairing of `v_{j₀}` with itself, which can be negative, is `±1`. -/ |
| 63 | gram_last_eq_sign : (vᴴ * signMatrix ε * v) (Fin.last d) (Fin.last d) = 1 ∨ |
| 64 | (vᴴ * signMatrix ε * v) (Fin.last d) (Fin.last d) = -1 |
| 65 | /-- The map `i₀` is an isometry. -/ |
| 66 | isometry : i₀ᴴ * signMatrix ε * i₀ = signMatrix η |
| 67 | /-- The image of `i₀` is orthogonal to `v₁, …, v_{j₀}`. -/ |
| 68 | orthogonal : i₀ᴴ * signMatrix ε * v = 0 |
| 69 | |
| 70 | /-- Let `A_{≤ j}` be the span of the columns `v₁, …, v_j` of `v`. Then `Y` maps `A_{≤ j}` into |
| 71 | `A_{≤ j - 1}` for `j ≤ j₀ = d + 1`, and `σ` is the sum of the coefficients of `v_j` in |
| 72 | `Y v_{j + 1}` over `j < j₀`, which is determined by `Y` if the `v_j` are independent. -/ |
| 73 | def LowersFlag (d : ℕ) (v : Matrix n (Fin (d + 1)) ℂ) (Y : Matrix n n ℂ) (σ : ℂ) : Prop := |
| 74 | ∃ N : Matrix (Fin d) (Fin (d + 1)) ℂ, |
| 75 | (∀ (a : Fin d) (b : Fin (d + 1)), b.val ≤ a.val → N a b = 0) ∧ |
| 76 | Y * v = initCols v * N ∧ |
| 77 | ∑ a : Fin d, N a a.succ = σ |
| 78 | |
| 79 | /-- `Y` acts by `Y'` on the image of `i₀`, modulo the span `A_{≤ j₀ - 1}` of `v₁, …, v_{j₀ - 1}`. -/ |
| 80 | def InducesOn (d : ℕ) (v : Matrix n (Fin (d + 1)) ℂ) (i₀ : Matrix n m ℂ) (Y : Matrix n n ℂ) |
| 81 | (Y' : Matrix m m ℂ) : Prop := |
| 82 | ∃ C : Matrix (Fin d) m ℂ, Y * i₀ = i₀ * Y' + initCols v * C |
| 83 | |
| 84 | /-- A stationary position. Let `μ`, `μ'` be the weights of the lowest `K`-types of `l`, `k`, as |
| 85 | diagonal matrices. Then `μ` moves `v_j` to `v_{j + 1}` for `j < j₀` and compresses to `μ'`, and `i₀` |
| 86 | is the identity on `ℂ^X`, where `e` and `e'` place `X` among the coordinates `n` and `m`. -/ |
| 87 | structure IsStationary {ε : n → ℤˣ} {η : m → ℤˣ} (l : HCParam ε) (k : HCParam η) {L L' : ℕ} |
| 88 | (e : X ⊕ Fin L ≃ n) (e' : X ⊕ Fin L' ≃ m) (d : ℕ) (v : Matrix n (Fin (d + 1)) ℂ) |
| 89 | (i₀ : Matrix n m ℂ) : Prop extends IsPosition ε η d v i₀ where |
| 90 | /-- `μ v_j = v_{j + 1}` for `j < j₀`. -/ |
| 91 | shift : intDiagonal l.lowestKType * initCols v = v.submatrix id Fin.succ |
| 92 | /-- `i₀† μ i₀ = μ'`. -/ |
| 93 | adjoint_weight_mul_eq : formAdjoint ε η i₀ * intDiagonal l.lowestKType * i₀ = intDiagonal |
| 94 | k.lowestKType |
| 95 | /-- `i₀ = 1` on `ℂ^X`. -/ |
| 96 | apply_inl (i : n) (x : X) : i₀ i (e' (Sum.inl x)) = if i = e (Sum.inl x) then 1 else 0 |
| 97 | |
| 98 | variable {ε : n → ℤˣ} {η : m → ℤˣ} {d : ℕ} {v : Matrix n (Fin (d + 1)) ℂ} {i₀ : Matrix n m ℂ} |
| 99 | |
| 100 | section Adjoint |
| 101 | |
| 102 | /-- The adjoint for the forms reverses products: `(A A')† = A'† A†`. -/ |
| 103 | lemma formAdjoint_mul {p : Type} [Fintype p] {κ : p → ℤˣ} [DecidableEq p] (A : Matrix n m ℂ) |
| 104 | (A' : Matrix m p ℂ) : formAdjoint ε κ (A * A') = formAdjoint η κ A' * formAdjoint ε η A := by |
| 105 | simp only [formAdjoint, conjTranspose_mul, Matrix.mul_assoc] |
| 106 | rw [← Matrix.mul_assoc (signMatrix η) (signMatrix η), signMatrix_mul_self, Matrix.one_mul] |
| 107 | |
| 108 | lemma formAdjoint_sub (A A' : Matrix n m ℂ) : |
| 109 | formAdjoint ε η (A - A') = formAdjoint ε η A - formAdjoint ε η A' := by |
| 110 | simp only [formAdjoint, conjTranspose_sub, Matrix.mul_sub, Matrix.sub_mul] |
| 111 | |
| 112 | lemma formAdjoint_formAdjoint (A : Matrix n m ℂ) : formAdjoint η ε (formAdjoint ε η A) = A := by |
| 113 | simp [formAdjoint, conjTranspose_mul, IsHermitianInvolution.isHermitian.eq, Matrix.mul_assoc, |
| 114 | signMatrix_mul_self, ← Matrix.mul_assoc (signMatrix ε) (signMatrix ε)] |
| 115 | |
| 116 | lemma trace_formAdjoint (Y : Matrix n n ℂ) : (formAdjoint ε ε Y).trace = conj Y.trace := by |
| 117 | rw [formAdjoint, trace_mul_cycle, signMatrix_mul_self, Matrix.one_mul, trace_conjTranspose, |
| 118 | starRingEnd_apply] |
| 119 | |
| 120 | /-- An integer diagonal matrix `intDiagonal w` is fixed by |
| 121 | `formAdjoint ε ε`. -/ |
| 122 | lemma formAdjoint_intDiagonal (w : n → ℤ) : formAdjoint ε ε (intDiagonal w) = intDiagonal w := by |
| 123 | have h_comm : signMatrix ε * (intDiagonal w)ᴴ = intDiagonal w * signMatrix ε := by |
| 124 | simp [signMatrix, diagonal_conjTranspose, mul_comm] |
| 125 | rw [formAdjoint, h_comm, Matrix.mul_assoc, signMatrix_mul_self, Matrix.mul_one] |
| 126 | |
| 127 | /-- Applying `formAdjoint ε ε` to the identity matrix gives `1`. -/ |
| 128 | lemma formAdjoint_one : formAdjoint ε ε (1 : Matrix n n ℂ) = 1 := by |
| 129 | rw [formAdjoint, conjTranspose_one, Matrix.mul_one, signMatrix_mul_self] |
| 130 | |
| 131 | /-- On the group `U(ε)` the adjoint for the form is the inverse. -/ |
| 132 | lemma formAdjoint_val (g : USign ε) : |
| 133 | formAdjoint ε ε ((g : GL n ℂ) : Matrix n n ℂ) = ((g⁻¹ : USign ε) : Matrix n n ℂ) := |
| 134 | (U.coe_inv IsHermitianInvolution.mul_self g).symm |
| 135 | |
| 136 | /-- For `g` in `U(ε)` the adjoint of `g - 1` is `g⁻¹ - 1`. -/ |
| 137 | lemma formAdjoint_sub_one (g : USign ε) : |
| 138 | formAdjoint ε ε (((g : GL n ℂ) : Matrix n n ℂ) - 1) = |
| 139 | ((g⁻¹ : USign ε) : Matrix n n ℂ) - 1 := by |
| 140 | rw [formAdjoint_sub, formAdjoint_val, formAdjoint_one] |
| 141 | |
| 142 | /-- A map `A` with `A† A = 1` is an isometry. -/ |
| 143 | lemma isometry_of_formAdjoint_mul_self {A : Matrix n m ℂ} (hA : formAdjoint ε η A * A = 1) : |
| 144 | Aᴴ * signMatrix ε * A = signMatrix η := by |
| 145 | simpa [formAdjoint, ← Matrix.mul_assoc, signMatrix_mul_self] using |
| 146 | congrArg (signMatrix η * ·) hA |
| 147 | |
| 148 | /-- Let `τ` take values among the coordinates of sign `+1`. Then the adjoint for the forms `ε` and |
| 149 | `1` of the matrix with columns the standard vectors at `τ x` is its usual adjoint. -/ |
| 150 | lemma formAdjoint_inclMatrix [Fintype X] [DecidableEq X] {τ : X → n} (hτ : ∀ x : X, ε (τ x) = 1) : |
| 151 | formAdjoint ε 1 (inclMatrix ℂ τ) = (inclMatrix ℂ τ)ᴴ := by |
| 152 | ext x i |
| 153 | rcases eq_or_ne i (τ x) with rfl | hi |
| 154 | · simp [formAdjoint, signMatrix, inclMatrix, Matrix.one_apply, hτ] |
| 155 | · simp [formAdjoint, signMatrix, inclMatrix, hi, hi.symm] |
| 156 | |
| 157 | end Adjoint |
| 158 | |
| 159 | namespace IsPosition |
| 160 | |
| 161 | /-- In a position, the adjoint `i₀†` of the isometry `i₀` satisfies `i₀† i₀ = 1`. -/ |
| 162 | lemma formAdjoint_mul_self (hP : IsPosition ε η d v i₀) : formAdjoint ε η i₀ * i₀ = 1 := by |
| 163 | simpa [formAdjoint, Matrix.mul_assoc, signMatrix_mul_self] using |
| 164 | congrArg (signMatrix η * ·) hP.isometry |
| 165 | |
| 166 | /-- In a position, the adjoint `i₀†` of `i₀` kills the columns of `v`: `i₀† v = 0`. -/ |
| 167 | lemma formAdjoint_mul_vec (hP : IsPosition ε η d v i₀) : formAdjoint ε η i₀ * v = 0 := by |
| 168 | simpa [formAdjoint, Matrix.mul_assoc] using congrArg (signMatrix η * ·) hP.orthogonal |
| 169 | |
| 170 | /-- In a position, the columns of `v` are orthogonal to the image of `i₀` for the form `ε`: |
| 171 | `vᴴ * signMatrix ε * i₀ = 0`. -/ |
| 172 | lemma vec_orthogonal (hP : IsPosition ε η d v i₀) : vᴴ * signMatrix ε * i₀ = 0 := |
| 173 | orthogonal_symm IsHermitianInvolution.isHermitian.eq hP.orthogonal |
| 174 | |
| 175 | /-- In a position, the first `d` columns `initCols v` of `v` are orthogonal to the image of `i₀` |
| 176 | for the form `ε`. -/ |
| 177 | lemma initCols_orthogonal (hP : IsPosition ε η d v i₀) : (initCols v)ᴴ * signMatrix ε * i₀ = 0 := |
| 178 | show (vᴴ * signMatrix ε * i₀).submatrix Fin.castSucc id = 0 by simp [hP.vec_orthogonal] |
| 179 | |
| 180 | /-- In a position (`hP : IsPosition ε η d v i₀`), the span of all the columns of `v` is orthogonal, |
| 181 | for the form `ε`, to the span of its first `d` columns `initCols v`: |
| 182 | `vᴴ * signMatrix ε * initCols v = 0`. -/ |
| 183 | lemma orthogonal_initCols (hP : IsPosition ε η d v i₀) : vᴴ * signMatrix ε * initCols v = 0 := |
| 184 | Matrix.ext fun a b ↦ hP.gram_eq_zero a b.castSucc (Or.inr b.castSucc_ne_last) |
| 185 | |
| 186 | /-- In a position (`hP : IsPosition ε η d v i₀`), the span of the first `d` columns `initCols v` of |
| 187 | `v` is orthogonal, for the form `ε`, to the span of all the columns of `v`: |
| 188 | `(initCols v)ᴴ * signMatrix ε * v = 0`. -/ |
| 189 | lemma initCols_isotropic (hP : IsPosition ε η d v i₀) : (initCols v)ᴴ * signMatrix ε * v = 0 := |
| 190 | Matrix.ext fun a b ↦ hP.gram_eq_zero a.castSucc b (Or.inl a.castSucc_ne_last) |
| 191 | |
| 192 | /-- Let `(v, i₀)` be a position (`IsPosition`): the columns `v₁, …, v_{j₀}` of `v`, where |
| 193 | `j₀ = d + 1`, are independent, and `i₀` is an isometry into their orthogonal complement for the |
| 194 | forms with signs `η` and `ε`. Then some matrix `Z` gives coordinates along all the `v_j` and |
| 195 | vanishes on the image of `i₀`: it satisfies `Z i₀ = 0` and `Z v = 1`. -/ |
| 196 | lemma exists_mul_eq_zero_and_mul_eq_one (hP : IsPosition ε η d v i₀) : |
| 197 | ∃ Z : Matrix (Fin (d + 1)) n ℂ, Z * i₀ = 0 ∧ Z * v = 1 := by |
| 198 | obtain ⟨T, hT⟩ := vecMul_surjective_iff_exists_left_inverse.mp hP.independent.vecMul_surjective |
| 199 | -- Project away from the image of `i₀` first. |
| 200 | refine ⟨T * (1 - i₀ * formAdjoint ε η i₀), ?_, ?_⟩ |
| 201 | · simp [Matrix.mul_assoc, Matrix.sub_mul, hP.formAdjoint_mul_self] |
| 202 | · simp [Matrix.mul_assoc, Matrix.sub_mul, hP.formAdjoint_mul_vec, hT] |
| 203 | |
| 204 | /-- Let `(v, i₀)` be a position (`IsPosition`): the columns `v₁, …, v_{j₀}` of `v`, where |
| 205 | `j₀ = d + 1`, are independent, and `i₀` is an isometry into their orthogonal complement for the |
| 206 | forms with signs `η` and `ε`. Then some matrix `Z` gives coordinates along the first `j₀ - 1` of |
| 207 | these vectors, the columns of `initCols v`, and vanishes on the image of `i₀`. -/ |
| 208 | lemma exists_mul_eq_zero_and_mul_initCols_eq_one (hP : IsPosition ε η d v i₀) : |
| 209 | ∃ Z : Matrix (Fin d) n ℂ, Z * i₀ = 0 ∧ Z * initCols v = 1 := by |
| 210 | obtain ⟨Z, hZ_zero, hZ_one⟩ := hP.exists_mul_eq_zero_and_mul_eq_one |
| 211 | refine ⟨Z.submatrix Fin.castSucc id, congrArg (·.submatrix Fin.castSucc id) hZ_zero, ?_⟩ |
| 212 | change (Z * v).submatrix Fin.castSucc Fin.castSucc = 1 |
| 213 | rw [hZ_one, submatrix_one _ (Fin.castSucc_injective d)] |
| 214 | |
| 215 | /-- The columns of `i₀` and the vectors `v₁, …, v_{j₀}` of a position are independent. -/ |
| 216 | lemma hasLeftInv (hP : IsPosition ε η d v i₀) : HasLeftInv (fromCols i₀ v) := by |
| 217 | obtain ⟨Z, hZ_zero, hZ_one⟩ := hP.exists_mul_eq_zero_and_mul_eq_one |
| 218 | exact ⟨fromRows (formAdjoint ε η i₀) Z, by |
| 219 | simp [hP.formAdjoint_mul_self, hP.formAdjoint_mul_vec, hZ_zero, hZ_one]⟩ |
| 220 | |
| 221 | /-- Let `(v, i₀)` be a position of `U(η)` in `U(ε)` (`IsPosition`): the columns `v₁, …, v_{j₀}` of |
| 222 | `v`, where `j₀ = d + 1`, are independent, their pairings for the form with signs `ε` vanish except |
| 223 | that of `v_{j₀}` with itself, which is `±1`, and `i₀` is an isometry into their orthogonal |
| 224 | complement. Let `A` be the span of `v₁, …, v_{j₀ - 1}`, the columns of `initCols v`. If the columns |
| 225 | of `M` are orthogonal to `A`, then they are linear combinations, with coefficient matrix `T`, of |
| 226 | the columns of `i₀` and of `v`. -/ |
| 227 | lemma exists_eq_of_orthogonal (hP : IsPosition ε η d v i₀) {p : Type} {M : Matrix n p ℂ} |
| 228 | (hM : (initCols v)ᴴ * signMatrix ε * M = 0) : |
| 229 | ∃ T : Matrix (m ⊕ Fin (d + 1)) p ℂ, M = fromCols i₀ v * T := by |
| 230 | -- The span of the columns lies in the kernel of the pairing with `A`, and the dimensions agree. |
| 231 | obtain ⟨Z, -, hZ⟩ := hP.exists_mul_eq_zero_and_mul_initCols_eq_one |
| 232 | set combination := (fromCols i₀ v).mulVecLin |
| 233 | set pairing := ((initCols v)ᴴ * signMatrix ε).mulVecLin |
| 234 | have h_inj : Function.Injective combination := hP.hasLeftInv.injective_mulVec |
| 235 | have h_surj : Function.Surjective pairing := |
| 236 | Function.RightInverse.surjective (g := (signMatrix ε * Zᴴ).mulVec) fun x ↦ by |
| 237 | rw [mulVecLin_apply, mulVec_mulVec, Matrix.mul_assoc, ← Matrix.mul_assoc (signMatrix ε), |
| 238 | signMatrix_mul_self, Matrix.one_mul, ← conjTranspose_mul, hZ, conjTranspose_one, |
| 239 | one_mulVec] |
| 240 | have h_eq : LinearMap.range combination = LinearMap.ker pairing := by |
| 241 | refine Submodule.eq_of_le_of_finrank_eq ?_ ?_ |
| 242 | · rw [LinearMap.range_le_ker_iff, ← mulVecLin_mul, mul_fromCols, hP.initCols_orthogonal, |
| 243 | hP.initCols_isotropic, fromCols_zero, mulVecLin_zero] |
| 244 | · have h_rk := pairing.finrank_range_add_finrank_ker |
| 245 | rw [LinearMap.range_eq_top.2 h_surj, finrank_top, Module.finrank_fin_fun] at h_rk |
| 246 | simp [LinearMap.finrank_range_of_inj h_inj, hP.card_eq] at h_rk ⊢ |
| 247 | omega |
| 248 | choose T hT using fun j : p ↦ show ∃ x, combination x = Mᵀ j by |
| 249 | rw [← LinearMap.mem_range, h_eq, LinearMap.mem_ker] |
| 250 | exact funext fun a ↦ congrFun₂ hM a j |
| 251 | exact ⟨(of T)ᵀ, Matrix.ext fun i j ↦ (congrFun (hT j) i).symm⟩ |
| 252 | |
| 253 | /-- Let `(v, i₀)` be a position (`IsPosition`): the columns `v₁, …, v_{j₀}` of `v`, where |
| 254 | `j₀ = d + 1`, are independent with vanishing pairings for the form with signs `ε`, except that of |
| 255 | `v_{j₀}` with itself, and `i₀` is an isometry into their orthogonal complement. Let `Y` map the |
| 256 | span of the `v_j` into `A`, the span of the first `j₀ - 1` of them (the columns of `initCols v`), |
| 257 | with matrix `N`, and let it act by `Y'` on the image of `i₀` modulo `A` (`InducesOn`). If `M` |
| 258 | vanishes on `A` and has its image in the orthogonal complement of `A`, then |
| 259 | `tr M Y = tr (i₀† M i₀) Y'`, with `i₀†` the adjoint for the two forms. -/ |
| 260 | lemma trace_mul_eq_of_mul_initCols_eq_zero (hP : IsPosition ε η d v i₀) {M Y : Matrix n n ℂ} |
| 261 | {Y' : Matrix m m ℂ} {N : Matrix (Fin d) (Fin (d + 1)) ℂ} (hN : Y * v = initCols v * N) |
| 262 | (hY' : InducesOn d v i₀ Y Y') (h_ker : M * initCols v = 0) |
| 263 | (h_range : (initCols v)ᴴ * signMatrix ε * M = 0) : |
| 264 | (M * Y).trace = (formAdjoint ε η i₀ * M * i₀ * Y').trace := by |
| 265 | obtain ⟨C, hC⟩ : ∃ C : Matrix (Fin d) m ℂ, Y * i₀ = i₀ * Y' + initCols v * C := hY' |
| 266 | obtain ⟨W, hW⟩ := hP.hasLeftInv |
| 267 | -- `T` gives the coordinates of the columns of `M` along `i₀` and `v₁, …, v_{j₀}`. |
| 268 | obtain ⟨T, rfl⟩ : ∃ T : Matrix (m ⊕ Fin (d + 1)) n ℂ, M = fromCols i₀ v * T := |
| 269 | hP.exists_eq_of_orthogonal h_range |
| 270 | have hT_coord : T = W * (fromCols i₀ v * T) := by rw [← Matrix.mul_assoc, hW, Matrix.one_mul] |
| 271 | have hT_ker : T * initCols v = 0 := by |
| 272 | rw [hT_coord, Matrix.mul_assoc, h_ker, Matrix.mul_zero] |
| 273 | have hT_top : formAdjoint ε η i₀ * (fromCols i₀ v * T) = toRows₁ T := by |
| 274 | rw [← Matrix.mul_assoc, mul_fromCols, hP.formAdjoint_mul_self, hP.formAdjoint_mul_vec, |
| 275 | ← fromRows_toRows T, fromCols_mul_fromRows] |
| 276 | simp |
| 277 | have h_blocks : T * (Y * fromCols i₀ v) = fromCols (T * i₀ * Y') 0 := by |
| 278 | rw [mul_fromCols, hN, hC, mul_fromCols] |
| 279 | simp [Matrix.mul_add, ← Matrix.mul_assoc, hT_ker] |
| 280 | calc (fromCols i₀ v * T * Y).trace = (T * (Y * fromCols i₀ v)).trace := by |
| 281 | rw [Matrix.mul_assoc, trace_mul_comm, Matrix.mul_assoc] |
| 282 | _ = (toRows₁ T * i₀ * Y').trace := by |
| 283 | rw [h_blocks] |
| 284 | simp [trace, Fintype.sum_sum_type, Matrix.mul_apply] |
| 285 | _ = (formAdjoint ε η i₀ * (fromCols i₀ v * T) * i₀ * Y').trace := by rw [hT_top] |
| 286 | |
| 287 | /-- Let `(v, i₀)` be a position, let `μ` be self-adjoint for the form with signs `ε` and send each |
| 288 | `v_j`, `j < d + 1`, to `v_{t j}`, and let `Y` map the span of the `v_j` into the span `A` of the |
| 289 | first `d` of them by `N` and act by `Y'` on the image of `i₀` modulo `A`. Let `Z` vanish on the |
| 290 | image of `i₀` with `Z * initCols v = 1`, put `μ₁ = μ * initCols v * Z`, and write `†` for |
| 291 | `formAdjoint`. Then `tr ((μ - μ₁ - μ₁†) Y) = tr (i₀† μ i₀ Y')`. -/ |
| 292 | private lemma trace_rest_mul_eq (hP : IsPosition ε η d v i₀) {μ Y : Matrix n n ℂ} |
| 293 | {Y' : Matrix m m ℂ} {t : Fin d → Fin (d + 1)} {N : Matrix (Fin d) (Fin (d + 1)) ℂ} |
| 294 | {Z : Matrix (Fin d) n ℂ} (hμ : formAdjoint ε ε μ = μ) |
| 295 | (ht : μ * initCols v = v.submatrix id t) (hZ_zero : Z * i₀ = 0) |
| 296 | (hZ_one : Z * initCols v = 1) (hY' : InducesOn d v i₀ Y Y') |
| 297 | (hN : Y * v = initCols v * N) : |
| 298 | ((μ - μ * initCols v * Z - formAdjoint ε ε (μ * initCols v * Z)) * Y).trace = |
| 299 | (formAdjoint ε η i₀ * μ * i₀ * Y').trace := by |
| 300 | set μ₁ : Matrix n n ℂ := μ * initCols v * Z with hμ₁ |
| 301 | have h_on_flag : μ₁ * initCols v = μ * initCols v := by simp [hμ₁, Matrix.mul_assoc, hZ_one] |
| 302 | have h_on_range : μ₁ * i₀ = 0 := by simp [hμ₁, Matrix.mul_assoc, hZ_zero] |
| 303 | -- The image of `μ₁` lies in `A_{≤ j₀}`, so `μ₁†` vanishes on `A` and on the image of `i₀`. |
| 304 | have h_adj_zero {p : Type} {A : Matrix n p ℂ} (hA : vᴴ * signMatrix ε * A = 0) : |
| 305 | formAdjoint ε ε μ₁ * A = 0 := by |
| 306 | have h_zero : (v.submatrix id t)ᴴ * signMatrix ε * A = 0 := congrArg (·.submatrix t id) hA |
| 307 | simp only [Matrix.mul_assoc] at h_zero |
| 308 | simp only [formAdjoint, hμ₁, ht, conjTranspose_mul, Matrix.mul_assoc, h_zero, Matrix.mul_zero] |
| 309 | have h_adj_flag : formAdjoint ε ε μ₁ * initCols v = 0 := h_adj_zero hP.orthogonal_initCols |
| 310 | have h_adj_range : formAdjoint ε ε μ₁ * i₀ = 0 := h_adj_zero hP.vec_orthogonal |
| 311 | -- The rest is self-adjoint and vanishes on `A`, so its image is orthogonal to `A`. |
| 312 | set M : Matrix n n ℂ := μ - μ₁ - formAdjoint ε ε μ₁ with hM |
| 313 | have hM_adj : formAdjoint ε ε M = M := by |
| 314 | rw [hM, formAdjoint_sub, formAdjoint_sub, formAdjoint_formAdjoint, hμ, sub_right_comm] |
| 315 | have hM_ker : M * initCols v = 0 := by simp [hM, Matrix.sub_mul, h_on_flag, h_adj_flag] |
| 316 | have hM_range : (initCols v)ᴴ * signMatrix ε * M = 0 := by |
| 317 | rw [← hM_adj, formAdjoint, ← Matrix.mul_assoc, ← Matrix.mul_assoc, |
| 318 | Matrix.mul_assoc _ (signMatrix ε) (signMatrix ε), signMatrix_mul_self] |
| 319 | simp [← conjTranspose_mul, hM_ker] |
| 320 | have hM_on_range : M * i₀ = μ * i₀ := by simp [hM, Matrix.sub_mul, h_on_range, h_adj_range] |
| 321 | rw [hP.trace_mul_eq_of_mul_initCols_eq_zero hN hY' hM_ker hM_range, Matrix.mul_assoc _ M, |
| 322 | hM_on_range, ← Matrix.mul_assoc] |
| 323 | |
| 324 | /-- Let `(v, i₀)` be a position (`IsPosition`): the columns `v₁, …, v_{j₀}` of `v`, where |
| 325 | `j₀ = d + 1`, are independent with vanishing pairings for the form with signs `ε`, except that of |
| 326 | `v_{j₀}` with itself, and `i₀` is an isometry into their orthogonal complement. Let `i₀†` be its |
| 327 | adjoint for the two forms, and let `μ` be self-adjoint and send each `v_j`, for `j < j₀`, to |
| 328 | `v_{t j}`, where `t` is any map of indices. Let `Y` and its adjoint `Y†` map the span of all the |
| 329 | `v_j` into the span `A` of the first `j₀ - 1` of them, with the matrices `N` and `N'`, and let |
| 330 | `Y` act by `Y'` on the image of `i₀` modulo `A` (`InducesOn`). Then |
| 331 | `tr μ Y = tr (i₀† μ i₀) Y' + ∑ N j (t j) + conj (∑ N' j (t j))`. The terms come from a split of |
| 332 | `μ` into a self-adjoint rest that vanishes on `A`, its part `μ₁` on `A`, and the adjoint of |
| 333 | `μ₁`. -/ |
| 334 | lemma trace_mul_eq_trace_add_sum_of_inducesOn (hP : IsPosition ε η d v i₀) {μ Y : Matrix n n ℂ} |
| 335 | {Y' : Matrix m m ℂ} {t : Fin d → Fin (d + 1)} {N N' : Matrix (Fin d) (Fin (d + 1)) ℂ} |
| 336 | (hμ : formAdjoint ε ε μ = μ) (ht : μ * initCols v = v.submatrix id t) |
| 337 | (hY' : InducesOn d v i₀ Y Y') (hN : Y * v = initCols v * N) |
| 338 | (hN' : formAdjoint ε ε Y * v = initCols v * N') : |
| 339 | (μ * Y).trace = (formAdjoint ε η i₀ * μ * i₀ * Y').trace + ∑ a : Fin d, N a (t a) + |
| 340 | conj (∑ a : Fin d, N' a (t a)) := by |
| 341 | obtain ⟨Z, hZ_zero, hZ_one⟩ : ∃ Z : Matrix (Fin d) n ℂ, Z * i₀ = 0 ∧ Z * initCols v = 1 := |
| 342 | hP.exists_mul_eq_zero_and_mul_initCols_eq_one |
| 343 | -- `μ₁` is `μ` on `A` and `0` on a complement of `A` that contains the image of `i₀`. |
| 344 | set μ₁ : Matrix n n ℂ := μ * initCols v * Z with hμ₁ |
| 345 | -- The rest is self-adjoint and vanishes on `A`; its trace is that of `i₀† μ i₀`. |
| 346 | have h_middle : ((μ - μ₁ - formAdjoint ε ε μ₁) * Y).trace = |
| 347 | (formAdjoint ε η i₀ * μ * i₀ * Y').trace := |
| 348 | hP.trace_rest_mul_eq hμ ht hZ_zero hZ_one hY' hN |
| 349 | -- `Y μ₁` sends `v_j` to `Y v_{t j}` and vanishes on the complement. |
| 350 | have h_trace_μ₁_mul {Y₀ : Matrix n n ℂ} {N₀ : Matrix (Fin d) (Fin (d + 1)) ℂ} |
| 351 | (hN₀ : Y₀ * v = initCols v * N₀) : (μ₁ * Y₀).trace = ∑ a : Fin d, N₀ a (t a) := by |
| 352 | have h_cols : Y₀ * v.submatrix id t = initCols v * N₀.submatrix id t := |
| 353 | congrArg (·.submatrix id t) hN₀ |
| 354 | calc (μ₁ * Y₀).trace = (initCols v * N₀.submatrix id t * Z).trace := by |
| 355 | rw [trace_mul_comm, hμ₁, ht, ← Matrix.mul_assoc, h_cols] |
| 356 | _ = (N₀.submatrix id t).trace := by rw [trace_mul_cycle, hZ_one, Matrix.one_mul] |
| 357 | _ = ∑ a : Fin d, N₀ a (t a) := rfl |
| 358 | have h_trace_adjoint_mul : |
| 359 | (formAdjoint ε ε μ₁ * Y).trace = conj (∑ a : Fin d, N' a (t a)) := by |
| 360 | rw [← h_trace_μ₁_mul hN', ← trace_formAdjoint (ε := ε), formAdjoint_mul (η := ε), |
| 361 | formAdjoint_formAdjoint, trace_mul_comm] |
| 362 | rw [← h_middle, ← h_trace_μ₁_mul hN, ← h_trace_adjoint_mul, Matrix.sub_mul, Matrix.sub_mul, |
| 363 | trace_sub, trace_sub] |
| 364 | ring |
| 365 | |
| 366 | /-- Let `(v, i₀)` be a position (`IsPosition`); only the independence of the columns |
| 367 | `v₁, …, v_{j₀}` of `v`, where `j₀ = d + 1`, matters here. Let `Y` lower their flag |
| 368 | (`LowersFlag`): it sends `v₁` to `0` and each `v_{j + 1}` into the span of `v₁, …, v_j`. Then the |
| 369 | sum `σ` of the coefficients of `v_j` in `Y v_{j + 1}` is determined by `Y`. -/ |
| 370 | lemma lowersFlag_unique (hP : IsPosition ε η d v i₀) {Y : Matrix n n ℂ} {σ σ' : ℂ} |
| 371 | (hσ : LowersFlag d v Y σ) (hσ' : LowersFlag d v Y σ') : σ = σ' := by |
| 372 | obtain ⟨N, -, hN, rfl⟩ := hσ |
| 373 | obtain ⟨N', -, hN', rfl⟩ := hσ' |
| 374 | obtain ⟨Z, -, hZ⟩ := hP.exists_mul_eq_zero_and_mul_initCols_eq_one |
| 375 | have h_eq : N = N' := |
| 376 | calc N = Z * (initCols v * N) := by rw [← Matrix.mul_assoc, hZ, Matrix.one_mul] |
| 377 | _ = Z * (initCols v * N') := by rw [← hN, hN'] |
| 378 | _ = N' := by rw [← Matrix.mul_assoc, hZ, Matrix.one_mul] |
| 379 | rw [h_eq] |
| 380 | |
| 381 | end IsPosition |
| 382 | |
| 383 | /-- Let `g₁ - 1` and `g₂ - 1` lower the flag of the columns `v₁, …, v_{d + 1}` of `v` |
| 384 | (`LowersFlag`): they send `v₁` to `0` and each `v_{j + 1}` into the span of `v₁, …, v_j`, and the |
| 385 | coefficients of `v_j` in the images of the `v_{j + 1}` add up to `σ₁` and to `σ₂`. Then |
| 386 | `g₁ g₂ - 1` lowers the flag with sum `σ₁ + σ₂`, as `(g₁ - 1) (g₂ - 1)` lowers it by two steps. -/ |
| 387 | lemma LowersFlag.mul {g₁ g₂ : Matrix n n ℂ} {σ₁ σ₂ : ℂ} (h₁ : LowersFlag d v (g₁ - 1) σ₁) |
| 388 | (h₂ : LowersFlag d v (g₂ - 1) σ₂) : LowersFlag d v (g₁ * g₂ - 1) (σ₁ + σ₂) := by |
| 389 | have h_prod : g₁ * g₂ - 1 = g₁ - 1 + (g₂ - 1) + (g₁ - 1) * (g₂ - 1) := by noncomm_ring |
| 390 | rw [h_prod] |
| 391 | generalize g₁ - 1 = Y₁, g₂ - 1 = Y₂ at h₁ h₂ ⊢ |
| 392 | obtain ⟨N₁, hN₁_tri, hN₁, rfl⟩ := h₁ |
| 393 | obtain ⟨N₂, hN₂_tri, hN₂, rfl⟩ := h₂ |
| 394 | have h_two_steps (a : Fin d) (b : Fin (d + 1)) (hba : b.val ≤ a.val + 1) : |
| 395 | (N₁.submatrix id Fin.castSucc * N₂) a b = 0 := by |
| 396 | rw [Matrix.mul_apply] |
| 397 | refine sum_eq_zero fun (t : Fin d) _ ↦ mul_eq_zero.2 ?_ |
| 398 | exact (le_or_gt t.val a.val).imp (hN₁_tri a t.castSucc) fun hat ↦ hN₂_tri t b (by omega) |
| 399 | have hN₁_init : Y₁ * initCols v = initCols v * N₁.submatrix id Fin.castSucc := |
| 400 | congrArg (·.submatrix id Fin.castSucc) hN₁ |
| 401 | refine ⟨N₁ + N₂ + N₁.submatrix id Fin.castSucc * N₂, fun a b hba ↦ ?_, ?_, ?_⟩ |
| 402 | · simp [hN₁_tri a b hba, hN₂_tri a b hba, h_two_steps a b (by omega)] |
| 403 | · show (Y₁ + Y₂ + Y₁ * Y₂) * v = |
| 404 | initCols v * (N₁ + N₂ + N₁.submatrix id Fin.castSucc * N₂) |
| 405 | simp only [Matrix.add_mul, Matrix.mul_add, Matrix.mul_assoc, hN₁, hN₂] |
| 406 | rw [← Matrix.mul_assoc, hN₁_init, Matrix.mul_assoc] |
| 407 | · -- The product term vanishes next to the diagonal. |
| 408 | simp [sum_add_distrib, h_two_steps] |
| 409 | |
| 410 | variable {l : HCParam ε} {k : HCParam η} {L L' : ℕ} {e : X ⊕ Fin L ≃ n} {e' : X ⊕ Fin L' ≃ m} |
| 411 | |
| 412 | /-- In a stationary position `(v, i₀)` for the parameters `l` and `k` let `μ` be the weight of the |
| 413 | lowest `K`-type of `l`, as a diagonal matrix. Then `μ ^ a v₁ = v_{a + 1}` for `a < j₀ = d + 1`. -/ |
| 414 | lemma IsStationary.pow_mulVec_col_zero (hP : IsStationary l k e e' d v i₀) (a : Fin (d + 1)) : |
| 415 | intDiagonal l.lowestKType ^ a.val *ᵥ v.col 0 = v.col a := by |
| 416 | induction a using Fin.induction with |
| 417 | | zero => simp |
| 418 | | succ a ih => |
| 419 | rw [Fin.val_succ, pow_succ', ← mulVec_mulVec, ← Fin.val_castSucc, ih] |
| 420 | exact congrArg (·.col a) hP.shift |
| 421 | |
| 422 | /-- Let `μ`, `μ'` be the weights of the lowest `K`-types of the parameters `l` of `U(ε)` and `k` of |
| 423 | `U(η)`, as diagonal matrices. Let `(v, i₀)` be a stationary position (`IsStationary`): a position in |
| 424 | which `μ v_j = v_{j + 1}` for `j < j₀ = d + 1`, and `i₀† μ i₀ = μ'`. If `a + b ≤ 2 d`, the pairing |
| 425 | of `μ ^ a v₁` and `μ ^ b v₁` for the hermitian form with signs `ε` is the pairing of `v_{j₀}` with |
| 426 | itself (which is `±1`) if `a + b = 2 d`, and `0` otherwise. -/ |
| 427 | lemma IsStationary.gram_pow_mulVec (hP : IsStationary l k e e' d v i₀) {a b : ℕ} |
| 428 | (hab : a + b ≤ 2 * d) : |
| 429 | star (intDiagonal l.lowestKType ^ a *ᵥ v.col 0) ⬝ᵥ |
| 430 | signMatrix ε *ᵥ intDiagonal l.lowestKType ^ b *ᵥ v.col 0 = |
| 431 | if a + b = 2 * d then (vᴴ * signMatrix ε * v) (Fin.last d) (Fin.last d) else 0 := by |
| 432 | -- As `μ` is self-adjoint, the product depends only on `a + b`. |
| 433 | set μ : Matrix n n ℂ := intDiagonal l.lowestKType with hμ |
| 434 | have h_gram_eq_pow_add (a b : ℕ) : |
| 435 | star (μ ^ a *ᵥ v.col 0) ⬝ᵥ signMatrix ε *ᵥ μ ^ b *ᵥ v.col 0 = |
| 436 | star (v.col 0) ⬝ᵥ (signMatrix ε * μ ^ (a + b)) *ᵥ v.col 0 := by |
| 437 | have h_adj : (μ ^ a)ᴴ * signMatrix ε = signMatrix ε * μ ^ a := by |
| 438 | simp [hμ, signMatrix, diagonal_pow, diagonal_conjTranspose, mul_comm] |
| 439 | rw [star_mulVec, ← dotProduct_mulVec, mulVec_mulVec, mulVec_mulVec, h_adj, pow_add, |
| 440 | Matrix.mul_assoc] |
| 441 | -- Write `a + b = a' + b'` with `a', b' ≤ d`; then the product is that of two of the `v_j`. |
| 442 | obtain ⟨a', b', h_split⟩ : ∃ a' b' : Fin (d + 1), a + b = a'.val + b'.val := |
| 443 | ⟨⟨min (a + b) d, by omega⟩, ⟨a + b - min (a + b) d, by omega⟩, by simp⟩ |
| 444 | have h_gram : star (v.col a') ⬝ᵥ signMatrix ε *ᵥ v.col b' = (vᴴ * signMatrix ε * v) a' b' := |
| 445 | (congrFun₂ (Matrix.mul_assoc vᴴ (signMatrix ε) v) a' b').symm |
| 446 | rw [h_gram_eq_pow_add, h_split, ← h_gram_eq_pow_add, hP.pow_mulVec_col_zero, |
| 447 | hP.pow_mulVec_col_zero, h_gram] |
| 448 | split_ifs with h_eq |
| 449 | · rw [Fin.eq_last_of_not_lt (i := a') (by omega), Fin.eq_last_of_not_lt (i := b') (by omega)] |
| 450 | · exact hP.gram_eq_zero a' b' (by grind) |
| 451 | |
| 452 | /-- Let `(v, i₀)` be a position of `U(η)` in `U(ε)` (`IsPosition`): the columns `v₁, …, v_{j₀}` of |
| 453 | `v`, where `j₀ = d + 1`, are independent with vanishing pairings for the form with signs `ε`, |
| 454 | except that of `v_{j₀}` with itself, and `i₀` is an isometry into their orthogonal complement. Let |
| 455 | `Y` and its adjoint `Y†` for the form lower the flag of the `v_j` (`LowersFlag`: each `v_j` goes |
| 456 | into the span of the earlier ones), and let `Y` act by `Y'` on the image of `i₀` modulo the span of |
| 457 | `v₁, …, v_{j₀ - 1}` (`InducesOn`). Then `tr Y = tr Y'`. -/ |
| 458 | lemma IsPosition.trace_eq (hP : IsPosition ε η d v i₀) {Y : Matrix n n ℂ} {Y' : Matrix m m ℂ} |
| 459 | {σ σ' : ℂ} (hY : LowersFlag d v Y σ) (hY' : InducesOn d v i₀ Y Y') |
| 460 | (hYadj : LowersFlag d v (formAdjoint ε ε Y) σ') : Y.trace = Y'.trace := by |
| 461 | obtain ⟨N, hN_tri, hN, -⟩ := hY |
| 462 | obtain ⟨N', hN'_tri, hN', -⟩ := hYadj |
| 463 | -- Split the identity, which keeps each `v_j`: the three terms are the traces of `Y` on `A^⊥ / A`, |
| 464 | -- on `A = A_{≤ j₀ - 1}` and on `ℂ^n / A^⊥`. The last two vanish, as `Y`, `Y†` lower the flag. |
| 465 | have h_split : ((1 : Matrix n n ℂ) * Y).trace = |
| 466 | (formAdjoint ε η i₀ * (1 : Matrix n n ℂ) * i₀ * Y').trace + |
| 467 | ∑ a : Fin d, N a a.castSucc + conj (∑ a : Fin d, N' a a.castSucc) := |
| 468 | hP.trace_mul_eq_trace_add_sum_of_inducesOn formAdjoint_one (Matrix.one_mul (initCols v)) hY' hN |
| 469 | hN' |
| 470 | have hN_diag (a : Fin d) : N a a.castSucc = 0 := hN_tri a a.castSucc le_rfl |
| 471 | have hN'_diag (a : Fin d) : N' a a.castSucc = 0 := hN'_tri a a.castSucc le_rfl |
| 472 | simpa [hP.formAdjoint_mul_self, hN_diag, hN'_diag] using h_split |
| 473 | |
| 474 | /-- Let `μ`, `μ'` be the weights of the lowest `K`-types of the parameters `l` of `U(ε)` and `k` of |
| 475 | `U(η)`, as diagonal matrices. Let `(v, i₀)` be a stationary position (`IsStationary`): a position in |
| 476 | which `μ v_j = v_{j + 1}` for `j < j₀ = d + 1`, and `i₀† μ i₀ = μ'`. Let `Y` and its adjoint `Y†` |
| 477 | lower the flag of the `v_j` (`LowersFlag`), with sums `σ` and `σ'` of the coefficients next to the |
| 478 | diagonal, and let `Y` act by `Y'` on the image of `i₀` modulo the span of `v₁, …, v_{j₀ - 1}` |
| 479 | (`InducesOn`). Then the phase `l.phase k (Y, Y') = tr μ Y - tr μ' Y'` equals `σ + conj σ'`. -/ |
| 480 | lemma IsStationary.phase_eq (hP : IsStationary l k e e' d v i₀) {Y : Matrix n n ℂ} |
| 481 | {Y' : Matrix m m ℂ} {σ σ' : ℂ} (hY : LowersFlag d v Y σ) (hY' : InducesOn d v i₀ Y Y') |
| 482 | (hYadj : LowersFlag d v (formAdjoint ε ε Y) σ') : l.phase k (Y, Y') = σ + conj σ' := by |
| 483 | obtain ⟨N, -, hN, hσ⟩ := hY |
| 484 | obtain ⟨N', -, hN', hσ'⟩ := hYadj |
| 485 | -- The weight moves `v_j` to `v_{j + 1}`. |
| 486 | have h_split : (intDiagonal l.lowestKType * Y).trace = |
| 487 | (formAdjoint ε η i₀ * intDiagonal l.lowestKType * i₀ * Y').trace + |
| 488 | ∑ a : Fin d, N a a.succ + conj (∑ a : Fin d, N' a a.succ) := |
| 489 | hP.trace_mul_eq_trace_add_sum_of_inducesOn (formAdjoint_intDiagonal l.lowestKType) hP.shift hY' |
| 490 | hN hN' |
| 491 | rw [HCParam.phase, h_split, hP.adjoint_weight_mul_eq, hσ, hσ'] |
| 492 | ring |
| 493 | |
| 494 | end New.DiscreteSeries |
| 495 | |
| 496 | end |