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.PELModuli.CMPoints.HermitianDiagonalization |
| 2 | import OAI.AlgebraicGeometry.PELModuli.CMPoints.ZeroPeriod |
| 3 | import OAI.NumberTheory.ArithmeticGroups.Diagonal |
| 4 | |
| 5 | /-! # Rational Ball Point -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.CMPoints.RationalBallPoint |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A rational negative vector gives an actual point of the specified |
| 12 | ball chart, even when the component uses a different Hermitian matrix. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | open _root_.Module |
| 17 | |
| 18 | variable {E : Type} [Field E] [NumberField E] [Algebra ℚ E] |
| 19 | [NumberField.IsCMField E] {s : ℕ} (P : AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum E s) |
| 20 | |
| 21 | omit [NumberField E] [NumberField.IsCMField E] in |
| 22 | theorem negative_vector_last_ne_zero (w : Geometry.ComplexBall.PrescribedSignsB.Vec) |
| 23 | (hw : (AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ (Matrix.diagonal ![1, 1, P.b]) w w).re < 0) : |
| 24 | w 2 ≠ 0 := by |
| 25 | change (Geometry.ComplexBall.PrescribedSignsB.localB P.embeddings (Matrix.diagonal ![1, 1, P.b]) |
| 26 | P.distinguished w (star w)).re < 0 at hw |
| 27 | rw [NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.localB_diagonal_real] at hw |
| 28 | intro hz |
| 29 | simp only [hz, map_zero, mul_zero, add_zero] at hw |
| 30 | exact (not_lt_of_ge (add_nonneg (Complex.normSq_nonneg _) (Complex.normSq_nonneg _))) hw |
| 31 | |
| 32 | def normalizedBallChart (w : Geometry.ComplexBall.PrescribedSignsB.Vec) : Geometry.ComplexBall.PrescribedSignsB.BallChart := fun i => w i.castSucc / w 2 |
| 33 | |
| 34 | omit [NumberField E] [NumberField.IsCMField E] in |
| 35 | theorem normalizedBallChart_mem_domain (w : Geometry.ComplexBall.PrescribedSignsB.Vec) |
| 36 | (hw : (AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ (Matrix.diagonal ![1, 1, P.b]) w w).re < 0) : |
| 37 | normalizedBallChart w ∈ P.domain := by |
| 38 | have hz := negative_vector_last_ne_zero P w hw |
| 39 | have hp : 0 < Complex.normSq (w 2) := Complex.normSq_pos.mpr hz |
| 40 | change (Geometry.ComplexBall.PrescribedSignsB.localB P.embeddings (Matrix.diagonal ![1, 1, P.b]) |
| 41 | P.distinguished w (star w)).re < 0 at hw |
| 42 | rw [NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.localB_diagonal_real] at hw |
| 43 | change (Geometry.ComplexBall.PrescribedSignsB.localB P.embeddings (Matrix.diagonal ![1, 1, P.b]) |
| 44 | P.distinguished (Geometry.ComplexBall.PrescribedSignsB.lineVector _) (star (Geometry.ComplexBall.PrescribedSignsB.lineVector _))).re < 0 |
| 45 | rw [NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.localB_diagonal_real] |
| 46 | change Complex.normSq (w 0 / w 2) + Complex.normSq (w 1 / w 2) + |
| 47 | (P.embeddings P.distinguished P.b).re * Complex.normSq (1 : ℂ) < 0 |
| 48 | simp only [map_div₀, map_one, mul_one] |
| 49 | have heq : Complex.normSq (w 0) / Complex.normSq (w 2) + |
| 50 | Complex.normSq (w 1) / Complex.normSq (w 2) + (P.embeddings P.distinguished P.b).re = |
| 51 | (Complex.normSq (w 0) + Complex.normSq (w 1) + |
| 52 | (P.embeddings P.distinguished P.b).re * Complex.normSq (w 2)) / Complex.normSq (w 2) := by |
| 53 | field_simp |
| 54 | rw [heq] |
| 55 | exact div_neg_of_neg_of_pos hw hp |
| 56 | |
| 57 | theorem lineVector_normalizedBallChart (w : Geometry.ComplexBall.PrescribedSignsB.Vec) (hw : w 2 ≠ 0) : |
| 58 | Geometry.ComplexBall.PrescribedSignsB.lineVector (normalizedBallChart w) = (w 2)⁻¹ • w := by |
| 59 | ext i |
| 60 | fin_cases i <;> simp [Geometry.ComplexBall.PrescribedSignsB.lineVector, normalizedBallChart, hw, div_eq_mul_inv, mul_comm] |
| 61 | |
| 62 | theorem exists_rational_ball_line (hP : P.IsAdmissible) |
| 63 | (H : Matrix (Fin 3) (Fin 3) E) (e : Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) |
| 64 | (he : ∀ x y, AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ H (e x) (e y) = |
| 65 | AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ (Matrix.diagonal ![1, 1, P.b]) x y) : |
| 66 | ∃ (z : P.Domain) (v : Fin 3 → E) (a : ℂ), |
| 67 | v ≠ 0 ∧ a ≠ 0 ∧ |
| 68 | e (Geometry.ComplexBall.PrescribedSignsB.lineVector z.val) = a • (fun i => P.μ (v i)) ∧ |
| 69 | (AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ H (fun i => P.μ (v i)) |
| 70 | (fun i => P.μ (v i))).re < 0 := by |
| 71 | have hzero : (AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ H |
| 72 | (e (Geometry.ComplexBall.PrescribedSignsB.lineVector 0)) (e (Geometry.ComplexBall.PrescribedSignsB.lineVector 0))).re < 0 := by |
| 73 | rw [he] |
| 74 | exact ZeroPeriod.zero_mem_period_domain P hP |
| 75 | obtain ⟨v, hv0, hv⟩ := RationalNegativeLine.exists_rational_negative_vector |
| 76 | (P.embeddings P.distinguished) H (e (Geometry.ComplexBall.PrescribedSignsB.lineVector 0)) hzero |
| 77 | let w : Geometry.ComplexBall.PrescribedSignsB.Vec := e.symm (fun i => P.μ (v i)) |
| 78 | have hw : (AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ (Matrix.diagonal ![1, 1, P.b]) w w).re < 0 := by |
| 79 | rw [← he, LinearEquiv.apply_symm_apply] |
| 80 | exact hv |
| 81 | have hw2 := negative_vector_last_ne_zero P w hw |
| 82 | refine ⟨⟨normalizedBallChart w, normalizedBallChart_mem_domain P w hw⟩, |
| 83 | v, (w 2)⁻¹, hv0, inv_ne_zero hw2, ?_, hv⟩ |
| 84 | rw [lineVector_normalizedBallChart w hw2, map_smul] |
| 85 | exact congrArg ((w 2)⁻¹ • ·) (e.apply_symm_apply _) |
| 86 | |
| 87 | theorem exists_rational_ball_orthogonal_basis (hP : P.IsAdmissible) |
| 88 | (H : Matrix (Fin 3) (Fin 3) E) |
| 89 | (hH : ∀ i j, H i j = NumberField.IsCMField.complexConj E (H j i)) |
| 90 | (hani : ∀ x : Fin 3 → E, AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.matrixHermitian H x x = 0 → x = 0) |
| 91 | (e : Geometry.ComplexBall.PrescribedSignsB.Vec ≃ₗ[ℂ] Geometry.ComplexBall.PrescribedSignsB.Vec) |
| 92 | (he : ∀ x y, AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ H (e x) (e y) = |
| 93 | AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.complexMatrixHermitian P.μ (Matrix.diagonal ![1, 1, P.b]) x y) : |
| 94 | ∃ (z : P.Domain) (b : Basis (Fin 3) E (Fin 3 → E)) (a : ℂ), |
| 95 | a ≠ 0 ∧ e (Geometry.ComplexBall.PrescribedSignsB.lineVector z.val) = a • (fun i => P.μ (b 0 i)) ∧ |
| 96 | Pairwise (fun i j => AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum.matrixHermitian H (b i) (b j) = 0) := by |
| 97 | obtain ⟨z, v, a, hv, ha, heq, _⟩ := exists_rational_ball_line P hP H e he |
| 98 | obtain ⟨b, hb, ho⟩ := HermitianDiagonalization.exists_anisotropic_orthogonal_basis_with_first |
| 99 | (HermitianDiagonalization.matrixHermitianFirstLinear H) |
| 100 | (HermitianDiagonalization.matrixHermitian_orthogonal_symm H hH) hani v hv 2 (by simp) |
| 101 | exact ⟨z, b, a, ha, by simpa [hb] using heq, ho⟩ |
| 102 | |
| 103 | end |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.PELModuli.CMPoints.RationalBallPoint |