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.AlgebraicGeometry.AbelianModuli.ReferenceFamily.MatrixReflectionEmbedding |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.CMIntegralDenseCoefficients |
| 3 | |
| 4 | /-! # Nonisotropic Reflection Vector -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.NonisotropicReflectionVector |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A nonzero sesquilinear form with a nontrivial field involution has |
| 11 | a nonisotropic vector. Thus a nonzero original CM Hermitian matrix |
| 12 | supplies the fixed reflection vector required by the density construction. |
| 13 | -/ |
| 14 | |
| 15 | theorem exists_nonisotropic_of_nontrivial_scalar |
| 16 | {k V : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 17 | (σ : k →+* k) (B : V →ₗ[k] V →ₛₗ[σ] k) |
| 18 | (a : k) (ha : σ a ≠ a) (hB : ∃ x y, B x y ≠ 0) : |
| 19 | ∃ v, B v v ≠ 0 := by |
| 20 | classical |
| 21 | by_contra h |
| 22 | have hzero (v : V) : B v v = 0 := not_not.mp (fun hv => h ⟨v, hv⟩) |
| 23 | obtain ⟨x, y, hxy⟩ := hB |
| 24 | have hleft (c : k) (u v : V) : B (c • u) v = c * B u v := by |
| 25 | simp only [map_smul, LinearMap.smul_apply, smul_eq_mul] |
| 26 | have hright (c : k) (u v : V) : B u (c • v) = σ c * B u v := |
| 27 | (B u).map_smul' c v |
| 28 | have hsum := hzero (x + y) |
| 29 | simp only [map_add, LinearMap.add_apply] at hsum |
| 30 | rw [hzero x, hzero y] at hsum |
| 31 | have hsum' : B x y + B y x = 0 := by |
| 32 | simpa only [zero_add, add_zero, add_comm] using hsum |
| 33 | have hscaled := hzero (x + a • y) |
| 34 | simp only [map_add, LinearMap.add_apply, hleft, hright] at hscaled |
| 35 | rw [hzero x, hzero y] at hscaled |
| 36 | have hscaled' : σ a * B x y + a * B y x = 0 := by |
| 37 | simpa only [mul_zero, zero_add, add_zero, add_comm] using hscaled |
| 38 | have hm : (σ a - a) * B x y = 0 := by |
| 39 | calc |
| 40 | (σ a - a) * B x y = |
| 41 | (σ a * B x y + a * B y x) - a * (B x y + B y x) := by ring |
| 42 | _ = 0 := by rw [hscaled', hsum', mul_zero, sub_self] |
| 43 | exact hxy ((mul_eq_zero.mp hm).resolve_left (sub_ne_zero.mpr ha)) |
| 44 | |
| 45 | theorem exists_nonisotropic_cm_matrix_vector |
| 46 | {E : Type*} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 47 | (μ : E →+* ℂ) (H : Matrix (Fin 3) (Fin 3) E) (hH : H ≠ 0) : |
| 48 | ∃ v, MatrixReflectionEmbedding.matrixReflectionForm (NumberField.IsCMField.complexConj E).toRingHom H v v ≠ 0 := by |
| 49 | classical |
| 50 | let σ := (NumberField.IsCMField.complexConj E).toRingHom |
| 51 | obtain ⟨a, ha⟩ := CMIntegralDenseCoefficients.exists_integral_nonreal_coefficient μ |
| 52 | have haσ : σ (a : E) ≠ (a : E) := by |
| 53 | intro he |
| 54 | have hc : star (μ (a : E)) = μ (a : E) := |
| 55 | (NumberField.IsCMField.complexEmbedding_complexConj E μ (a : E)).symm.trans (congrArg μ he) |
| 56 | exact ha (Complex.conj_eq_iff_im.mp hc) |
| 57 | apply exists_nonisotropic_of_nontrivial_scalar σ (MatrixReflectionEmbedding.matrixReflectionForm σ H) (a : E) haσ |
| 58 | have hentry : ∃ i j, H i j ≠ 0 := by |
| 59 | by_contra h |
| 60 | apply hH |
| 61 | ext i j |
| 62 | exact not_not.mp (fun hij => h ⟨i, j, hij⟩) |
| 63 | obtain ⟨i, j, hij⟩ := hentry |
| 64 | refine ⟨Pi.single i 1, Pi.single j 1, ?_⟩ |
| 65 | change Matrix.toLinearMap₂'Aux (RingHom.id E) σ H (Pi.single i 1) (Pi.single j 1) ≠ 0 |
| 66 | rw [Matrix.toLinearMap₂'Aux_single] |
| 67 | exact hij |
| 68 | |
| 69 | theorem exists_nonisotropic_cm_matrix_vector_of_det |
| 70 | {E : Type*} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 71 | (μ : E →+* ℂ) (H : Matrix (Fin 3) (Fin 3) E) (hH : H.det ≠ 0) : |
| 72 | ∃ v, MatrixReflectionEmbedding.matrixReflectionForm (NumberField.IsCMField.complexConj E).toRingHom H v v ≠ 0 := by |
| 73 | apply exists_nonisotropic_cm_matrix_vector μ H |
| 74 | intro h |
| 75 | apply hH |
| 76 | rw [h, Matrix.det_zero] |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.NonisotropicReflectionVector |