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 | /-! # Geometric Frame -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Adelic.GeometricFrame |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The displayed geometric Hodge frame is a linear embedding, with |
| 10 | its stated coordinate extraction as an actual left inverse. -/ |
| 11 | |
| 12 | open scoped Classical _root_.NumberField |
| 13 | |
| 14 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData OAI.RepresentationTheory.Theta.Adelic.BallNatural |
| 15 | open OAI.RepresentationTheory.Theta.Adelic.DeterminantCoordinates |
| 16 | |
| 17 | variable {F : Type} [Field F] [NumberField F] {d : F} {m : ℕ} |
| 18 | variable {H : (Matrix (Fin 3) (Fin 3) (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic F d))ˣ} |
| 19 | variable {K : (Matrix (Fin m) (Fin m) (Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic F d))ˣ} |
| 20 | variable (A : BallGeometryData.BallArithmeticData F d m H K) |
| 21 | |
| 22 | def geometricFrameLinear (z : BallNatural.Ball) : (BallGeometryData.FrameIndex A → ℂ) →ₗ[ℂ] BallGeometryData.ComplexPhase A where |
| 23 | toFun := BallGeometryData.geometricFrame A z |
| 24 | map_add' a b := by |
| 25 | funext v |
| 26 | apply Prod.ext <;> funext ij <;> dsimp [BallGeometryData.geometricFrame] |
| 27 | all_goals split_ifs <;> ring |
| 28 | map_smul' c a := by |
| 29 | funext v |
| 30 | apply Prod.ext <;> funext ij <;> dsimp [BallGeometryData.geometricFrame] |
| 31 | all_goals split_ifs <;> ring |
| 32 | |
| 33 | def geometricCoordinateLinear : BallGeometryData.ComplexPhase A →ₗ[ℂ] (BallGeometryData.FrameIndex A → ℂ) where |
| 34 | toFun := BallGeometryData.geometricCoordinates A |
| 35 | map_add' a b := by |
| 36 | funext i |
| 37 | dsimp [BallGeometryData.geometricCoordinates] |
| 38 | split_ifs <;> rfl |
| 39 | map_smul' c a := by |
| 40 | funext i |
| 41 | dsimp [BallGeometryData.geometricCoordinates] |
| 42 | split_ifs <;> rfl |
| 43 | |
| 44 | theorem geometric_coordinates_frame (z : BallNatural.Ball) (a : BallGeometryData.FrameIndex A → ℂ) : |
| 45 | BallGeometryData.geometricCoordinates A (BallGeometryData.geometricFrame A z a) = a := by |
| 46 | funext i |
| 47 | rcases i with ⟨v, i, j⟩ |
| 48 | by_cases hv : v = A.distinguished |
| 49 | · subst v |
| 50 | fin_cases i <;> simp [BallGeometryData.geometricCoordinates, BallGeometryData.geometricFrame, DeterminantCoordinates.lineVector, DeterminantCoordinates.annihilatorVector] |
| 51 | · by_cases hp : A.positive v j |
| 52 | · simp [BallGeometryData.geometricCoordinates, BallGeometryData.geometricFrame, hv, hp] |
| 53 | · simp [BallGeometryData.geometricCoordinates, BallGeometryData.geometricFrame, hv, hp] |
| 54 | |
| 55 | theorem geometricFrame_injective (z : BallNatural.Ball) : Function.Injective (BallGeometryData.geometricFrame A z) := by |
| 56 | intro a b h |
| 57 | have he := congrArg (BallGeometryData.geometricCoordinates A) h |
| 58 | simpa only [geometric_coordinates_frame] using he |
| 59 | |
| 60 | theorem geometricFrame_range (z : BallNatural.Ball) : |
| 61 | ((geometricFrameLinear A z).range : Set (BallGeometryData.ComplexPhase A)) = |
| 62 | {w : BallGeometryData.ComplexPhase A | BallGeometryData.geometricFrame A z (BallGeometryData.geometricCoordinates A w) = w} := by |
| 63 | ext w |
| 64 | constructor |
| 65 | · rintro ⟨a, rfl⟩ |
| 66 | exact congrArg (BallGeometryData.geometricFrame A z) (geometric_coordinates_frame A z a) |
| 67 | · intro hw |
| 68 | exact ⟨BallGeometryData.geometricCoordinates A w, hw⟩ |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.RepresentationTheory.Theta.Adelic.GeometricFrame |