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.Theta.Adelic.BallGeometryData |
| 2 | |
| 3 | /-! # Totally Real Data -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Adelic.TotallyRealData |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The arithmetic ball data imply that the base number field is |
| 10 | totally real and that its degree is the number of displayed real places. -/ |
| 11 | |
| 12 | open scoped Classical _root_.NumberField |
| 13 | |
| 14 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData _root_.NumberField |
| 15 | |
| 16 | variable {F : Type} [Field F] [NumberField F] {d : F} {m : ℕ} |
| 17 | variable {H : (Matrix (Fin 3) (Fin 3) (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic F d))ˣ} |
| 18 | variable {K : (Matrix (Fin m) (Fin m) (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic F d))ˣ} |
| 19 | variable (A : BallGeometryData.BallArithmeticData F d m H K) |
| 20 | |
| 21 | theorem displayed_place_real (i : Fin A.places) : (A.enumerate i).IsReal := by |
| 22 | by_contra hi |
| 23 | let e := InfinitePlace.Completion.ringEquivComplexOfIsComplex |
| 24 | (InfinitePlace.not_isReal_iff_isComplex.mp hi) |
| 25 | let f : ℂ ≃+* ℝ := e.symm.trans (A.real i) |
| 26 | have h : f Complex.I * f Complex.I = -1 := by |
| 27 | rw [← map_mul, Complex.I_mul_I, map_neg, map_one] |
| 28 | nlinarith [sq_nonneg (f Complex.I)] |
| 29 | |
| 30 | include A in |
| 31 | theorem arithmetic_totally_real : NumberField.IsTotallyReal F := by |
| 32 | constructor |
| 33 | intro v |
| 34 | obtain ⟨i, rfl⟩ := A.enumerate.surjective v |
| 35 | exact displayed_place_real A i |
| 36 | |
| 37 | theorem degree_eq_places : Module.finrank ℚ F = A.places := by |
| 38 | let : NumberField.IsTotallyReal F := arithmetic_totally_real A |
| 39 | have hc := InfinitePlace.card_eq_nrRealPlaces_add_nrComplexPlaces (K := F) |
| 40 | rw [NumberField.IsTotallyReal.nrComplexPlaces_eq_zero, add_zero] at hc |
| 41 | have he := Fintype.card_congr A.enumerate |
| 42 | rw [Fintype.card_fin] at he |
| 43 | exact (NumberField.IsTotallyReal.finrank (K := F)).trans (hc.symm.trans he.symm) |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.RepresentationTheory.Theta.Adelic.TotallyRealData |