Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.RepresentationTheory.Weil.AdelicSplitting.UnitaryBase |
| 2 | |
| 3 | /-! # Unitary Algebra -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.UnitaryAlgebra.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The open cell `g - 1` invertible generates a rational unitary group. |
| 12 | An explicit infinite family in the norm-one scalar torus avoids the finite |
| 13 | set of eigenvalues of any given matrix. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | |
| 17 | section QuadraticField |
| 18 | variable {F : Type*} [Field F] [CharZero F] (d : F) |
| 19 | [Fact (∀ r : F, r ^ 2 ≠ d + 0 * r)] |
| 20 | |
| 21 | def cayleyScalar (t : F) : UnitaryBase.Construction.Quadratic F d := |
| 22 | (⟨t, 1⟩ : UnitaryBase.Construction.Quadratic F d) / star (⟨t, 1⟩ : UnitaryBase.Construction.Quadratic F d) |
| 23 | |
| 24 | omit [Fact (∀ r : F, r ^ 2 ≠ d + 0 * r)] in |
| 25 | theorem cayleyNumerator_ne_zero (t : F) : (⟨t, 1⟩ : UnitaryBase.Construction.Quadratic F d) ≠ 0 := by |
| 26 | intro h |
| 27 | have hi := congrArg QuadraticAlgebra.im h |
| 28 | exact one_ne_zero hi |
| 29 | |
| 30 | theorem cayleyScalar_ne_zero (t : F) : cayleyScalar d t ≠ 0 := |
| 31 | div_ne_zero (cayleyNumerator_ne_zero d t) |
| 32 | (star_ne_zero.mpr (cayleyNumerator_ne_zero d t)) |
| 33 | |
| 34 | theorem cayleyScalar_unitary (t : F) : star (cayleyScalar d t) * cayleyScalar d t = 1 := by |
| 35 | unfold cayleyScalar |
| 36 | rw [star_div₀, star_star] |
| 37 | rw [div_mul_div_cancel₀ (cayleyNumerator_ne_zero d t), |
| 38 | div_self (star_ne_zero.mpr (cayleyNumerator_ne_zero d t))] |
| 39 | |
| 40 | theorem cayleyScalar_injective : Function.Injective (cayleyScalar d) := by |
| 41 | intro s t h |
| 42 | have hn (r : F) := star_ne_zero.mpr (cayleyNumerator_ne_zero d r) |
| 43 | have he := (div_eq_div_iff (hn s) (hn t)).mp h |
| 44 | have hi := congrArg QuadraticAlgebra.im he |
| 45 | simp only [QuadraticAlgebra.im_mul, QuadraticAlgebra.re_star, |
| 46 | QuadraticAlgebra.im_star, mul_neg, mul_one, one_mul, add_zero] at hi |
| 47 | have htwo : (2 : F) * (s - t) = 0 := by linear_combination -hi |
| 48 | exact sub_eq_zero.mp ((mul_eq_zero.mp htwo).resolve_left (by norm_num)) |
| 49 | |
| 50 | end QuadraticField |
| 51 | |
| 52 | section ScalarMatrices |
| 53 | variable {E : Type*} [Field E] [StarRing E] |
| 54 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 55 | |
| 56 | def scalarUnitary (H : Matrix ι ι E) (z : Eˣ) |
| 57 | (hz : star (z : E) * z = 1) : UnitaryBase.Construction.Unitary H := by |
| 58 | refine ⟨Units.map (Matrix.scalar ι).toMonoidHom z, ?_⟩ |
| 59 | change (Matrix.scalar ι (z : E)).conjTranspose * H * Matrix.scalar ι (z : E) = H |
| 60 | rw [Matrix.scalar_apply, Matrix.diagonal_conjTranspose] |
| 61 | ext i j |
| 62 | rw [Matrix.mul_diagonal, Matrix.diagonal_mul] |
| 63 | change star (z : E) * H i j * z = H i j |
| 64 | calc |
| 65 | star (z : E) * H i j * z = (star (z : E) * z) * H i j := by ring |
| 66 | _ = H i j := by rw [hz, one_mul] |
| 67 | |
| 68 | theorem scalarUnitary_open (H : Matrix ι ι E) (z : Eˣ) |
| 69 | (hz : star (z : E) * z = 1) (hne : (z : E) ≠ 1) : |
| 70 | IsUnit ((scalarUnitary H z hz).val.val - 1) := by |
| 71 | change IsUnit (Matrix.scalar ι (z : E) - 1) |
| 72 | rw [← map_one (Matrix.scalar ι), ← map_sub] |
| 73 | exact (isUnit_iff_ne_zero.mpr (sub_ne_zero.mpr hne)).map (Matrix.scalar ι) |
| 74 | |
| 75 | theorem unitary_open_factorization |
| 76 | (H : Matrix ι ι E) (g : UnitaryBase.Construction.Unitary H) |
| 77 | (hzs : Set.Infinite {z : E | star z * z = 1}) : |
| 78 | ∃ a b : UnitaryBase.Construction.Unitary H, g = a * b ∧ |
| 79 | IsUnit (a.val.val - 1) ∧ IsUnit (b.val.val - 1) := by |
| 80 | have hp : g.val.val.charpoly ≠ 0 := Matrix.charpoly_monic _ |>.ne_zero |
| 81 | have hf : Set.Finite ({z : E | Polynomial.IsRoot g.val.val.charpoly z} ∪ {1}) := |
| 82 | (Polynomial.finite_setOfPred_isRoot hp).union (Set.finite_singleton 1) |
| 83 | obtain ⟨z, hz, havoid⟩ := hzs.exists_notMem_finite hf |
| 84 | have hne : z ≠ 1 := fun h => havoid (Or.inr h) |
| 85 | have hz0 : z ≠ 0 := by |
| 86 | intro h |
| 87 | simp [h] at hz |
| 88 | let u : Eˣ := Units.mk0 z hz0 |
| 89 | let b := scalarUnitary H u hz |
| 90 | refine ⟨g * b⁻¹, b, by simp, ?_, scalarUnitary_open H u hz hne⟩ |
| 91 | have he : (Matrix.scalar ι z - g.val.val).det ≠ 0 := by |
| 92 | rw [← Matrix.eval_charpoly] |
| 93 | exact fun h => havoid (Or.inl h) |
| 94 | have hu : IsUnit (g.val.val - b.val.val) := by |
| 95 | have h := (Matrix.isUnit_iff_isUnit_det _).mpr (isUnit_iff_ne_zero.mpr he) |
| 96 | change IsUnit (g.val.val - Matrix.scalar ι z) |
| 97 | simpa only [neg_sub] using h.neg |
| 98 | have heq : (g * b⁻¹).val.val - 1 = (g.val.val - b.val.val) * (b⁻¹).val.val := by |
| 99 | change g.val.val * (b⁻¹).val.val - 1 = _ |
| 100 | rw [sub_mul] |
| 101 | have hb : b.val.val * (b⁻¹).val.val = 1 := b.val.val_inv |
| 102 | rw [hb] |
| 103 | rw [heq] |
| 104 | exact hu.mul (b⁻¹).val.isUnit |
| 105 | |
| 106 | end ScalarMatrices |
| 107 | |
| 108 | theorem rational_unitary_open_factorization |
| 109 | {F : Type*} [Field F] [CharZero F] (d : F) (hd : ¬ IsSquare d) |
| 110 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 111 | (H : Matrix ι ι (UnitaryBase.Construction.Quadratic F d)) (g : UnitaryBase.Construction.Unitary H) : |
| 112 | ∃ a b : UnitaryBase.Construction.Unitary H, g = a * b ∧ |
| 113 | IsUnit (a.val.val - 1) ∧ IsUnit (b.val.val - 1) := by |
| 114 | let : Fact (∀ r : F, r ^ 2 ≠ d + 0 * r) := ⟨by |
| 115 | intro r hr |
| 116 | apply hd |
| 117 | refine ⟨r, ?_⟩ |
| 118 | simpa [sq] using hr.symm⟩ |
| 119 | apply unitary_open_factorization |
| 120 | have h : Set.Infinite (Set.range (cayleyScalar d)) := |
| 121 | Set.infinite_range_of_injective (cayleyScalar_injective d) |
| 122 | apply h.mono |
| 123 | rintro _ ⟨t, rfl⟩ |
| 124 | exact cayleyScalar_unitary d t |
| 125 | |
| 126 | end |
| 127 | |
| 128 | section |
| 129 | |
| 130 | /-! Algebra generated by unitary matrices. The finite-dimensional inverse |
| 131 | lemma supports the Cayley construction without an analytic limiting argument. -/ |
| 132 | |
| 133 | open scoped Classical |
| 134 | |
| 135 | theorem subalgebra_unit_inverse_mem |
| 136 | {F A : Type*} [Field F] [Ring A] [Algebra F A] [FiniteDimensional F A] |
| 137 | (S : Subalgebra F A) (u : Aˣ) (hu : (u : A) ∈ S) : ((u⁻¹ : Aˣ) : A) ∈ S := by |
| 138 | let a : S := ⟨u, hu⟩ |
| 139 | let L : S →ₗ[F] S := LinearMap.mulLeft F a |
| 140 | have hi : Function.Injective L := by |
| 141 | intro x y h |
| 142 | apply Subtype.ext |
| 143 | have h' : (u : A) * (x : A) = (u : A) * (y : A) := congrArg Subtype.val h |
| 144 | have h'' := congrArg (fun z : A => ((u⁻¹ : Aˣ) : A) * z) h' |
| 145 | simpa only [← mul_assoc, Units.inv_mul, one_mul] using h'' |
| 146 | obtain ⟨v, hv⟩ := LinearMap.surjective_of_injective hi (1 : S) |
| 147 | have he : (u : A) * (v : A) = 1 := congrArg Subtype.val hv |
| 148 | have hv' : (v : A) = ((u⁻¹ : Aˣ) : A) := by |
| 149 | have h := congrArg (fun z : A => ((u⁻¹ : Aˣ) : A) * z) he |
| 150 | simpa only [← mul_assoc, Units.inv_mul, one_mul, mul_one] using h |
| 151 | exact hv' ▸ v.property |
| 152 | |
| 153 | variable {F E : Type*} [Field F] [Field E] [Algebra F E] [StarRing E] |
| 154 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 155 | |
| 156 | /-- Equal Gram matrices give a unitary quotient. -/ |
| 157 | def unitaryOfGramEquality (H : Matrix ι ι E) |
| 158 | (u v : (Matrix ι ι E)ˣ) |
| 159 | (h : (u : Matrix ι ι E).conjTranspose * H * u = |
| 160 | (v : Matrix ι ι E).conjTranspose * H * v) : UnitaryBase.Construction.Unitary H := by |
| 161 | refine ⟨u * v⁻¹, ?_⟩ |
| 162 | change ((u : Matrix ι ι E) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E)).conjTranspose * H * |
| 163 | ((u : Matrix ι ι E) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E)) = H |
| 164 | rw [Matrix.conjTranspose_mul] |
| 165 | calc |
| 166 | _ = ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E).conjTranspose * |
| 167 | ((u : Matrix ι ι E).conjTranspose * H * u) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by |
| 168 | simp only [mul_assoc] |
| 169 | _ = _ := by |
| 170 | rw [h] |
| 171 | have hv : ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E).conjTranspose * |
| 172 | (v : Matrix ι ι E).conjTranspose = 1 := by |
| 173 | rw [← Matrix.conjTranspose_mul, Units.mul_inv, Matrix.conjTranspose_one] |
| 174 | calc |
| 175 | _ = (((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E).conjTranspose * |
| 176 | (v : Matrix ι ι E).conjTranspose) * H * |
| 177 | ((v : Matrix ι ι E) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E)) := by |
| 178 | simp only [mul_assoc] |
| 179 | _ = H := by rw [hv, Units.mul_inv, one_mul, mul_one] |
| 180 | |
| 181 | theorem cayley_gram_equality (H A : Matrix ι ι E) (s : E) (hs : star s = s) |
| 182 | (hA : A.conjTranspose * H = -(H * A)) : |
| 183 | (Matrix.scalar ι s + A).conjTranspose * H * (Matrix.scalar ι s + A) = |
| 184 | (Matrix.scalar ι s - A).conjTranspose * H * (Matrix.scalar ι s - A) := by |
| 185 | have hscalar : (Matrix.scalar ι s).conjTranspose = Matrix.scalar ι s := by |
| 186 | simp [Matrix.scalar_apply, Matrix.diagonal_conjTranspose, hs] |
| 187 | rw [Matrix.conjTranspose_add, Matrix.conjTranspose_sub, hscalar] |
| 188 | simp only [add_mul, mul_add, sub_mul, mul_sub, hA, neg_mul] |
| 189 | have hc : Matrix.scalar ι s * H * A = H * A * Matrix.scalar ι s := by |
| 190 | simpa only [mul_assoc] using! (Algebra.commutes s (H * A)) |
| 191 | rw [hc] |
| 192 | abel |
| 193 | |
| 194 | end |
| 195 | |
| 196 | section |
| 197 | |
| 198 | /-! Cayley transforms place every infinitesimal unitary matrix in the |
| 199 | finite-dimensional algebra generated by the actual unitary group. -/ |
| 200 | |
| 201 | open scoped Classical |
| 202 | |
| 203 | section Scalars |
| 204 | variable {F E : Type*} [Field F] [Infinite F] [Field E] [Algebra F E] |
| 205 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 206 | |
| 207 | theorem exists_scalar_units_add_sub (A : Matrix ι ι E) : |
| 208 | ∃ s : F, s ≠ 0 ∧ IsUnit (algebraMap F (Matrix ι ι E) s + A) ∧ |
| 209 | IsUnit (algebraMap F (Matrix ι ι E) s - A) := by |
| 210 | have hi : Set.Infinite (Set.range (algebraMap F E)) := |
| 211 | Set.infinite_range_of_injective (algebraMap F E).injective |
| 212 | have hf : Set.Finite ({z : E | Polynomial.IsRoot A.charpoly z} ∪ |
| 213 | {z : E | Polynomial.IsRoot (-A).charpoly z} ∪ {0}) := |
| 214 | ((Polynomial.finite_setOfPred_isRoot (Matrix.charpoly_monic A).ne_zero).union |
| 215 | (Polynomial.finite_setOfPred_isRoot (Matrix.charpoly_monic (-A)).ne_zero)).union |
| 216 | (Set.finite_singleton 0) |
| 217 | obtain ⟨z, ⟨s, rfl⟩, hz⟩ := hi.exists_notMem_finite hf |
| 218 | have hs : s ≠ 0 := by |
| 219 | intro hs |
| 220 | apply hz |
| 221 | exact Or.inr (by simp [hs]) |
| 222 | have hminus : IsUnit (Matrix.scalar ι (algebraMap F E s) - A) := by |
| 223 | apply (Matrix.isUnit_iff_isUnit_det _).mpr |
| 224 | apply isUnit_iff_ne_zero.mpr |
| 225 | rw [← Matrix.eval_charpoly] |
| 226 | exact fun h => hz (Or.inl (Or.inl h)) |
| 227 | have hplus : IsUnit (Matrix.scalar ι (algebraMap F E s) - (-A)) := by |
| 228 | apply (Matrix.isUnit_iff_isUnit_det _).mpr |
| 229 | apply isUnit_iff_ne_zero.mpr |
| 230 | rw [← Matrix.eval_charpoly] |
| 231 | exact fun h => hz (Or.inl (Or.inr h)) |
| 232 | refine ⟨s, hs, ?_, hminus⟩ |
| 233 | simpa only [sub_neg_eq_add] using! hplus |
| 234 | |
| 235 | end Scalars |
| 236 | |
| 237 | variable {F E : Type*} [Field F] [CharZero F] [Field E] [Algebra F E] |
| 238 | [FiniteDimensional F E] [StarRing E] |
| 239 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 240 | |
| 241 | theorem subalgebra_contains_skew_adjoint |
| 242 | (hF : ∀ s : F, star (algebraMap F E s) = algebraMap F E s) |
| 243 | (H A : Matrix ι ι E) (hA : A.conjTranspose * H = -(H * A)) |
| 244 | (S : Subalgebra F (Matrix ι ι E)) |
| 245 | (hS : ∀ g : UnitaryBase.Construction.Unitary H, g.val.val ∈ S) : A ∈ S := by |
| 246 | obtain ⟨s, hs, ⟨u, hu⟩, ⟨v, hv⟩⟩ := exists_scalar_units_add_sub (F := F) A |
| 247 | let q : Matrix ι ι E := algebraMap F (Matrix ι ι E) s |
| 248 | have hGram : (u : Matrix ι ι E).conjTranspose * H * u = |
| 249 | (v : Matrix ι ι E).conjTranspose * H * v := by |
| 250 | rw [hu, hv] |
| 251 | exact cayley_gram_equality H A (algebraMap F E s) (hF s) hA |
| 252 | let g := unitaryOfGramEquality H u v hGram |
| 253 | have hg : g.val.val = (u : Matrix ι ι E) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := rfl |
| 254 | have hplus : g.val.val + 1 = (q + q) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by |
| 255 | calc |
| 256 | _ = ((u : Matrix ι ι E) + v) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by |
| 257 | rw [add_mul, Units.mul_inv, hg] |
| 258 | _ = _ := by rw [hu, hv]; congr 1; dsimp only [q]; abel |
| 259 | have hminus : g.val.val - 1 = (A + A) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by |
| 260 | calc |
| 261 | _ = ((u : Matrix ι ι E) - v) * ((v⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by |
| 262 | rw [sub_mul, Units.mul_inv, hg] |
| 263 | _ = _ := by rw [hu, hv]; congr 1; abel |
| 264 | have hsum : s + s ≠ 0 := by |
| 265 | rw [← two_mul] |
| 266 | exact mul_ne_zero (by norm_num) hs |
| 267 | have hunit : IsUnit (g.val.val + 1) := by |
| 268 | rw [hplus] |
| 269 | have hq : IsUnit (q + q) := by |
| 270 | change IsUnit (algebraMap F (Matrix ι ι E) s + algebraMap F (Matrix ι ι E) s) |
| 271 | rw [← map_add] |
| 272 | exact (isUnit_iff_ne_zero.mpr hsum).map (algebraMap F (Matrix ι ι E)) |
| 273 | exact hq.mul (v⁻¹).isUnit |
| 274 | obtain ⟨w, hw⟩ := hunit |
| 275 | have hwmem : (w : Matrix ι ι E) ∈ S := hw ▸ S.add_mem (hS g) S.one_mem |
| 276 | have hwinv := subalgebra_unit_inverse_mem S w hwmem |
| 277 | have hrel : A * (g.val.val + 1) = q * (g.val.val - 1) := by |
| 278 | rw [hplus, hminus, ← mul_assoc, ← mul_assoc] |
| 279 | congr 1 |
| 280 | have hqA : A * q = q * A := (Algebra.commutes s A).symm |
| 281 | simp only [mul_add, hqA] |
| 282 | have hEq : A = (q * (g.val.val - 1)) * ((w⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by |
| 283 | calc |
| 284 | _ = (A * (w : Matrix ι ι E)) * ((w⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by |
| 285 | rw [mul_assoc, Units.mul_inv, mul_one] |
| 286 | _ = _ := by rw [hw, hrel] |
| 287 | rw [hEq] |
| 288 | exact S.mul_mem (S.mul_mem (S.algebraMap_mem s) (S.sub_mem (hS g) S.one_mem)) hwinv |
| 289 | |
| 290 | end |
| 291 | |
| 292 | section |
| 293 | |
| 294 | /-! A nondegenerate Hermitian unitary group generates the full matrix |
| 295 | algebra over a characteristic-zero fixed subfield. -/ |
| 296 | |
| 297 | open scoped Classical |
| 298 | |
| 299 | section Adjoint |
| 300 | variable {E : Type*} [Field E] [StarRing E] |
| 301 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 302 | |
| 303 | theorem hermitian_unit_inverse (H : (Matrix ι ι E)ˣ) |
| 304 | (hH : (H : Matrix ι ι E).conjTranspose = H) : |
| 305 | ((H⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E).conjTranspose = H⁻¹ := by |
| 306 | have h : ((H⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E).conjTranspose * (H : Matrix ι ι E) = 1 := by |
| 307 | rw [← hH, ← Matrix.conjTranspose_mul, Units.mul_inv, Matrix.conjTranspose_one] |
| 308 | calc |
| 309 | _ = (((H⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E).conjTranspose * (H : Matrix ι ι E)) * |
| 310 | ((H⁻¹ : (Matrix ι ι E)ˣ) : Matrix ι ι E) := by rw [mul_assoc, Units.mul_inv, mul_one] |
| 311 | _ = _ := by rw [h, one_mul] |
| 312 | |
| 313 | def matrixFormAdjoint (H : (Matrix ι ι E)ˣ) (A : Matrix ι ι E) : Matrix ι ι E := |
| 314 | (H⁻¹ : (Matrix ι ι E)ˣ) * A.conjTranspose * H |
| 315 | |
| 316 | theorem matrixFormAdjoint_left (H : (Matrix ι ι E)ˣ) (A : Matrix ι ι E) : |
| 317 | (H : Matrix ι ι E) * matrixFormAdjoint H A = A.conjTranspose * H := by |
| 318 | rw [matrixFormAdjoint, ← mul_assoc, ← mul_assoc, Units.mul_inv, one_mul] |
| 319 | |
| 320 | theorem matrixFormAdjoint_right (H : (Matrix ι ι E)ˣ) |
| 321 | (hH : (H : Matrix ι ι E).conjTranspose = H) (A : Matrix ι ι E) : |
| 322 | (matrixFormAdjoint H A).conjTranspose * H = (H : Matrix ι ι E) * A := by |
| 323 | rw [matrixFormAdjoint, Matrix.conjTranspose_mul, Matrix.conjTranspose_mul, |
| 324 | hH, hermitian_unit_inverse H hH, Matrix.conjTranspose_conjTranspose] |
| 325 | rw [mul_assoc, mul_assoc, Units.inv_mul, mul_one] |
| 326 | |
| 327 | theorem matrix_sub_formAdjoint_skew (H : (Matrix ι ι E)ˣ) |
| 328 | (hH : (H : Matrix ι ι E).conjTranspose = H) (A : Matrix ι ι E) : |
| 329 | (A - matrixFormAdjoint H A).conjTranspose * H = |
| 330 | -((H : Matrix ι ι E) * (A - matrixFormAdjoint H A)) := by |
| 331 | rw [Matrix.conjTranspose_sub, sub_mul, matrixFormAdjoint_right H hH, |
| 332 | mul_sub, matrixFormAdjoint_left] |
| 333 | abel |
| 334 | |
| 335 | theorem imaginary_matrix_add_formAdjoint_skew (H : (Matrix ι ι E)ˣ) |
| 336 | (hH : (H : Matrix ι ι E).conjTranspose = H) (A : Matrix ι ι E) |
| 337 | (δ : E) (hδ : star δ = -δ) : |
| 338 | (δ • (A + matrixFormAdjoint H A)).conjTranspose * H = |
| 339 | -((H : Matrix ι ι E) * (δ • (A + matrixFormAdjoint H A))) := by |
| 340 | rw [Matrix.conjTranspose_smul, hδ, Matrix.conjTranspose_add, |
| 341 | smul_mul_assoc, add_mul, matrixFormAdjoint_right H hH, |
| 342 | mul_smul_comm, mul_add, matrixFormAdjoint_left] |
| 343 | simp only [neg_smul] |
| 344 | congr 2 |
| 345 | exact add_comm _ _ |
| 346 | |
| 347 | end Adjoint |
| 348 | |
| 349 | variable {F E : Type*} [Field F] [CharZero F] [Field E] [Algebra F E] |
| 350 | [FiniteDimensional F E] [StarRing E] |
| 351 | {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 352 | |
| 353 | theorem unitary_subalgebra_eq_top |
| 354 | (hF : ∀ s : F, star (algebraMap F E s) = algebraMap F E s) |
| 355 | (δ : E) (hδ : star δ = -δ) (hδ0 : δ ≠ 0) |
| 356 | (H : (Matrix ι ι E)ˣ) (hH : (H : Matrix ι ι E).conjTranspose = H) |
| 357 | (S : Subalgebra F (Matrix ι ι E)) |
| 358 | (hS : ∀ g : UnitaryBase.Construction.Unitary (H : Matrix ι ι E), g.val.val ∈ S) : S = ⊤ := by |
| 359 | have hskew (A : Matrix ι ι E) (hA : A.conjTranspose * H = -((H : Matrix ι ι E) * A)) : A ∈ S := |
| 360 | subalgebra_contains_skew_adjoint (F := F) (E := E) hF (H : Matrix ι ι E) A hA S hS |
| 361 | have hδmem : Matrix.scalar ι δ ∈ S := by |
| 362 | apply hskew |
| 363 | have hstar : (Matrix.scalar ι δ).conjTranspose = -(Matrix.scalar ι δ) := by |
| 364 | simp [Matrix.scalar_apply, Matrix.diagonal_conjTranspose, hδ] |
| 365 | rw [hstar, neg_mul] |
| 366 | congr 1 |
| 367 | exact (Algebra.commutes δ (H : Matrix ι ι E)) |
| 368 | let u : (Matrix ι ι E)ˣ := Units.map (Matrix.scalar ι).toMonoidHom (Units.mk0 δ hδ0) |
| 369 | have hu : (u : Matrix ι ι E) ∈ S := hδmem |
| 370 | have hδinv : Matrix.scalar ι δ⁻¹ ∈ S := subalgebra_unit_inverse_mem S u hu |
| 371 | apply top_unique |
| 372 | intro A _ |
| 373 | have ha := hskew (A - matrixFormAdjoint H A) (matrix_sub_formAdjoint_skew H hH A) |
| 374 | have hb := hskew (δ • (A + matrixFormAdjoint H A)) |
| 375 | (imaginary_matrix_add_formAdjoint_skew H hH A δ hδ) |
| 376 | have hb' : A + matrixFormAdjoint H A ∈ S := by |
| 377 | have h := S.mul_mem hδinv hb |
| 378 | have he : Matrix.scalar ι δ⁻¹ * (δ • (A + matrixFormAdjoint H A)) = |
| 379 | A + matrixFormAdjoint H A := by |
| 380 | change (algebraMap E (Matrix ι ι E) δ⁻¹) * (δ • (A + matrixFormAdjoint H A)) = _ |
| 381 | rw [← Algebra.smul_def, smul_smul, inv_mul_cancel₀ hδ0, one_smul] |
| 382 | rwa [he] at h |
| 383 | have hsum : A + A ∈ S := by |
| 384 | have h := S.add_mem ha hb' |
| 385 | convert h using 1; abel |
| 386 | have h := S.smul_mem hsum (2 : F)⁻¹ |
| 387 | rw [← two_smul F A, smul_smul, inv_mul_cancel₀ (by norm_num : (2 : F) ≠ 0), one_smul] at h |
| 388 | exact h |
| 389 | |
| 390 | theorem skew_unitary_subalgebra_eq_top |
| 391 | (hF : ∀ s : F, star (algebraMap F E s) = algebraMap F E s) |
| 392 | (δ : E) (hδ : star δ = -δ) (hδ0 : δ ≠ 0) |
| 393 | (K : (Matrix ι ι E)ˣ) (hK : (K : Matrix ι ι E).conjTranspose = -K) |
| 394 | (S : Subalgebra F (Matrix ι ι E)) |
| 395 | (hS : ∀ g : UnitaryBase.Construction.Unitary (K : Matrix ι ι E), g.val.val ∈ S) : S = ⊤ := by |
| 396 | let u : (Matrix ι ι E)ˣ := Units.map (Matrix.scalar ι).toMonoidHom (Units.mk0 δ hδ0) |
| 397 | let H : (Matrix ι ι E)ˣ := u * K |
| 398 | have hval : (H : Matrix ι ι E) = δ • (K : Matrix ι ι E) := by |
| 399 | change Matrix.scalar ι δ * (K : Matrix ι ι E) = δ • (K : Matrix ι ι E) |
| 400 | exact (Algebra.smul_def δ (K : Matrix ι ι E)).symm |
| 401 | have hH : (H : Matrix ι ι E).conjTranspose = H := by |
| 402 | rw [hval, Matrix.conjTranspose_smul, hδ, hK] |
| 403 | simp |
| 404 | apply unitary_subalgebra_eq_top hF δ hδ hδ0 H hH S |
| 405 | intro g |
| 406 | have hg : g.val.val.conjTranspose * (K : Matrix ι ι E) * g.val.val = K := by |
| 407 | have h := g.property |
| 408 | change g.val.val.conjTranspose * (H : Matrix ι ι E) * g.val.val = H at h |
| 409 | simpa only [hval, mul_smul_comm, smul_mul_assoc, smul_right_inj hδ0] using h |
| 410 | exact hS ⟨g.val, hg⟩ |
| 411 | |
| 412 | end |
| 413 | |
| 414 | /-! Algebraic irreducibility of the tensor representation of the full |
| 415 | unitary pair, obtained from its two matrix algebras. -/ |
| 416 | |
| 417 | open scoped Classical Kronecker |
| 418 | |
| 419 | section Tensor |
| 420 | variable {F E : Type*} [Field F] [Field E] [Algebra F E] |
| 421 | {I J : Type*} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] |
| 422 | |
| 423 | def matrixTensorFirst : Matrix I I E →ₐ[F] Matrix (I × J) (I × J) E where |
| 424 | toFun A := A ⊗ₖ (1 : Matrix J J E) |
| 425 | map_one' := Matrix.one_kronecker_one |
| 426 | map_zero' := Matrix.zero_kronecker _ |
| 427 | map_add' A B := Matrix.add_kronecker A B _ |
| 428 | map_mul' A B := by rw [← Matrix.mul_kronecker_mul, one_mul] |
| 429 | commutes' s := by |
| 430 | simp only [Algebra.algebraMap_eq_smul_one, Matrix.smul_kronecker, Matrix.one_kronecker_one] |
| 431 | |
| 432 | def matrixTensorSecond : Matrix J J E →ₐ[F] Matrix (I × J) (I × J) E where |
| 433 | toFun A := (1 : Matrix I I E) ⊗ₖ A |
| 434 | map_one' := Matrix.one_kronecker_one |
| 435 | map_zero' := Matrix.kronecker_zero _ |
| 436 | map_add' A B := Matrix.kronecker_add _ A B |
| 437 | map_mul' A B := by rw [← Matrix.mul_kronecker_mul, one_mul] |
| 438 | commutes' s := by |
| 439 | simp only [Algebra.algebraMap_eq_smul_one, Matrix.kronecker_smul, Matrix.one_kronecker_one] |
| 440 | |
| 441 | theorem matrix_subalgebra_eq_top_of_tensor_factors |
| 442 | (S : Subalgebra F (Matrix (I × J) (I × J) E)) |
| 443 | (h₁ : ∀ A : Matrix I I E, A ⊗ₖ (1 : Matrix J J E) ∈ S) |
| 444 | (h₂ : ∀ B : Matrix J J E, (1 : Matrix I I E) ⊗ₖ B ∈ S) : S = ⊤ := by |
| 445 | have ht (A : Matrix I I E) (B : Matrix J J E) : A ⊗ₖ B ∈ S := by |
| 446 | have h := S.mul_mem (h₁ A) (h₂ B) |
| 447 | simpa only [← Matrix.mul_kronecker_mul, mul_one, one_mul] using h |
| 448 | apply top_unique |
| 449 | intro M _ |
| 450 | rw [Matrix.matrix_eq_sum_single M] |
| 451 | apply S.sum_mem |
| 452 | rintro ⟨i, j⟩ _ |
| 453 | apply S.sum_mem |
| 454 | rintro ⟨i', j'⟩ _ |
| 455 | have h := ht (Matrix.single i i' (M (i, j) (i', j'))) (Matrix.single j j' 1) |
| 456 | simpa only [Matrix.single_kronecker_single, mul_one] using h |
| 457 | |
| 458 | end Tensor |
| 459 | |
| 460 | section UnitaryTensor |
| 461 | variable {F E : Type*} [Field F] [CharZero F] [Field E] [Algebra F E] |
| 462 | [FiniteDimensional F E] [StarRing E] |
| 463 | {I J : Type*} [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] |
| 464 | |
| 465 | theorem unitary_tensor_subalgebra_eq_top |
| 466 | (hF : ∀ s : F, star (algebraMap F E s) = algebraMap F E s) |
| 467 | (δ : E) (hδ : star δ = -δ) (hδ0 : δ ≠ 0) |
| 468 | (H : (Matrix I I E)ˣ) (hH : (H : Matrix I I E).conjTranspose = H) |
| 469 | (K : (Matrix J J E)ˣ) (hK : (K : Matrix J J E).conjTranspose = -K) |
| 470 | (S : Subalgebra F (Matrix (I × J) (I × J) E)) |
| 471 | (hS : ∀ g : UnitaryBase.Construction.Unitary (H : Matrix I I E) × UnitaryBase.Construction.Unitary (K : Matrix J J E), |
| 472 | g.1.val.val ⊗ₖ g.2.val.val ∈ S) : S = ⊤ := by |
| 473 | have h₁ : S.comap (matrixTensorFirst (F := F) (E := E) (I := I) (J := J)) = ⊤ := by |
| 474 | apply unitary_subalgebra_eq_top hF δ hδ hδ0 H hH |
| 475 | intro g |
| 476 | exact hS (g, 1) |
| 477 | have h₂ : S.comap (matrixTensorSecond (F := F) (E := E) (I := I) (J := J)) = ⊤ := by |
| 478 | apply skew_unitary_subalgebra_eq_top hF δ hδ hδ0 K hK |
| 479 | intro g |
| 480 | exact hS (1, g) |
| 481 | apply matrix_subalgebra_eq_top_of_tensor_factors S |
| 482 | · intro A |
| 483 | exact show A ∈ S.comap matrixTensorFirst from h₁ ▸ (show A ∈ (⊤ : Subalgebra F (Matrix I I E)) from trivial) |
| 484 | · intro B |
| 485 | exact show B ∈ S.comap matrixTensorSecond from h₂ ▸ (show B ∈ (⊤ : Subalgebra F (Matrix J J E)) from trivial) |
| 486 | |
| 487 | end UnitaryTensor |
| 488 | |
| 489 | variable {F E : Type*} [Field F] [Field E] [Algebra F E] |
| 490 | {I : Type*} [Fintype I] [DecidableEq I] |
| 491 | |
| 492 | def matrixSubmoduleStabilizer (L : Submodule F (I → E)) : Subalgebra F (Matrix I I E) where |
| 493 | carrier := {A | ∀ x ∈ L, A.mulVec x ∈ L} |
| 494 | zero_mem' := by intro x _; simp |
| 495 | one_mem' := by intro x hx; simpa using hx |
| 496 | add_mem' := by intro A B hA hB x hx; simpa only [Matrix.add_mulVec] using L.add_mem (hA x hx) (hB x hx) |
| 497 | mul_mem' := by intro A B hA hB x hx; simpa only [Matrix.mulVec_mulVec] using hA (B.mulVec x) (hB x hx) |
| 498 | algebraMap_mem' s := by |
| 499 | intro x hx |
| 500 | simpa only [Algebra.algebraMap_eq_smul_one, Matrix.smul_mulVec, Matrix.one_mulVec] using L.smul_mem s hx |
| 501 | |
| 502 | theorem eq_bot_or_top_of_matrix_stabilizer_top (L : Submodule F (I → E)) |
| 503 | (hL : matrixSubmoduleStabilizer L = ⊤) : L = ⊥ ∨ L = ⊤ := by |
| 504 | by_cases hzero : L = ⊥ |
| 505 | · exact Or.inl hzero |
| 506 | right |
| 507 | have hex : ∃ x ∈ L, x ≠ 0 := by |
| 508 | by_contra! h |
| 509 | apply hzero |
| 510 | apply bot_unique |
| 511 | intro x hx |
| 512 | exact h x hx |
| 513 | obtain ⟨x, hx, hxn⟩ := hex |
| 514 | have hi : ∃ i, x i ≠ 0 := by |
| 515 | by_contra! h |
| 516 | exact hxn (funext h) |
| 517 | obtain ⟨i, hi⟩ := hi |
| 518 | apply top_unique |
| 519 | intro y _ |
| 520 | let A : Matrix I I E := fun j k => if k = i then y j * (x i)⁻¹ else 0 |
| 521 | have hA : A ∈ matrixSubmoduleStabilizer L := hL ▸ (show A ∈ (⊤ : Subalgebra F (Matrix I I E)) from trivial) |
| 522 | have he : A.mulVec x = y := by |
| 523 | ext j |
| 524 | simp [A, Matrix.mulVec, dotProduct, hi] |
| 525 | simpa only [he] using hA x hx |
| 526 | |
| 527 | end |
| 528 | |
| 529 | end OAI.RepresentationTheory.Weil.AdelicSplitting.UnitaryAlgebra.Construction |