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.Quotients.FiniteDescent.CubePicardFaces |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProductBaseAxes |
| 3 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 4 | |
| 5 | /-! # Cube Product Base -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductBase |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The three coordinate maps to the group on a product with two |
| 12 | modified factors and the original group as parameter. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace Construction.CubeProductCoordinates |
| 23 | |
| 24 | variable {K : Type u} [Field K] (A : Over (Spec (.of K))) [GrpObj A] [IsCommMonObj A] |
| 25 | variable {B C : Scheme.{u}} (b : B ⟶ Spec (.of K)) (c : C ⟶ Spec (.of K)) |
| 26 | |
| 27 | abbrev leftBase := pullback.snd b A.hom |
| 28 | abbrev rightBase := pullback.snd c A.hom |
| 29 | abbrev total := pullback (leftBase A b) (rightBase A c) |
| 30 | abbrev projection : total A b c ⟶ A.left := pullback.fst (leftBase A b) (rightBase A c) ≫ leftBase A b |
| 31 | abbrev ambient : Over (Spec (.of K)) := Over.mk (projection A b c ≫ A.hom) |
| 32 | abbrev leftOver : Over (Spec (.of K)) := Over.mk (leftBase A b ≫ A.hom) |
| 33 | abbrev rightOver : Over (Spec (.of K)) := Over.mk (rightBase A c ≫ A.hom) |
| 34 | |
| 35 | def first (u : B ⟶ A.left) (hu : u ≫ A.hom = b) : ambient A b c ⟶ A := |
| 36 | Over.homMk (pullback.fst (leftBase A b) (rightBase A c) ≫ pullback.fst b A.hom ≫ u) (by |
| 37 | change (_ ≫ _ ≫ u) ≫ A.hom = (_ ≫ leftBase A b) ≫ A.hom |
| 38 | simp only [Category.assoc, hu, pullback.condition] |
| 39 | exact pullback.condition_assoc (f := leftBase A b) (g := rightBase A c) A.hom) |
| 40 | |
| 41 | def second (v : C ⟶ A.left) (hv : v ≫ A.hom = c) : ambient A b c ⟶ A := |
| 42 | Over.homMk (pullback.snd (leftBase A b) (rightBase A c) ≫ pullback.fst c A.hom ≫ v) (by |
| 43 | change (_ ≫ _ ≫ v) ≫ A.hom = (_ ≫ leftBase A b) ≫ A.hom |
| 44 | simp only [Category.assoc, hv, pullback.condition]) |
| 45 | |
| 46 | def third : ambient A b c ⟶ A := Over.homMk (projection A b c) rfl |
| 47 | |
| 48 | def familyPoint (d : B ⟶ Spec (.of K)) (s : Spec (.of K) ⟶ B) (hs : s ≫ d = 𝟙 _) : |
| 49 | A.left ⟶ pullback d A.hom := |
| 50 | pullback.lift (A.hom ≫ s) (𝟙 _) (by simp [Category.assoc, hs]) |
| 51 | |
| 52 | omit [GrpObj A] [IsCommMonObj A] in |
| 53 | theorem familyPoint_over (d : B ⟶ Spec (.of K)) (s : Spec (.of K) ⟶ B) (hs : s ≫ d = 𝟙 _) : |
| 54 | familyPoint A d s hs ≫ pullback.snd d A.hom = 𝟙 _ := pullback.lift_snd _ _ _ |
| 55 | |
| 56 | def leftAxis (s : Spec (.of K) ⟶ C) (hs : s ≫ c = 𝟙 _) : leftOver A b ⟶ ambient A b c := |
| 57 | Over.homMk |
| 58 | (ProductBaseAxes.Construction.ProductBaseChangeAxes.left (leftBase A b) (rightBase A c) |
| 59 | (familyPoint A c s hs) (familyPoint_over A c s hs)) (by |
| 60 | change _ ≫ (projection A b c ≫ A.hom) = leftBase A b ≫ A.hom |
| 61 | rw [← Category.assoc, ProductBaseAxes.Construction.ProductBaseChangeAxes.left_over]) |
| 62 | |
| 63 | def rightAxis (s : Spec (.of K) ⟶ B) (hs : s ≫ b = 𝟙 _) : rightOver A c ⟶ ambient A b c := |
| 64 | Over.homMk |
| 65 | (ProductBaseAxes.Construction.ProductBaseChangeAxes.right (leftBase A b) (rightBase A c) |
| 66 | (familyPoint A b s hs) (familyPoint_over A b s hs)) (by |
| 67 | change _ ≫ (projection A b c ≫ A.hom) = rightBase A c ≫ A.hom |
| 68 | rw [← Category.assoc, ProductBaseAxes.Construction.ProductBaseChangeAxes.right_over]) |
| 69 | |
| 70 | theorem left_second (v : C ⟶ A.left) (hv : v ≫ A.hom = c) |
| 71 | (s : Spec (.of K) ⟶ C) (hs : s ≫ c = 𝟙 _) |
| 72 | (hzero : s ≫ v = (MonObj.one (X := A)).left) : |
| 73 | leftAxis A b c s hs ≫ second A b c v hv = 1 := by |
| 74 | apply Over.OverMorphism.ext |
| 75 | change ProductBaseAxes.Construction.ProductBaseChangeAxes.left (leftBase A b) (rightBase A c) |
| 76 | (familyPoint A c s hs) (familyPoint_over A c s hs) ≫ |
| 77 | pullback.snd (leftBase A b) (rightBase A c) ≫ pullback.fst c A.hom ≫ v = |
| 78 | (leftBase A b ≫ A.hom) ≫ (MonObj.one (X := A)).left |
| 79 | simp only [ProductBaseAxes.Construction.ProductBaseChangeAxes.left, pullback.lift_snd_assoc, familyPoint, |
| 80 | Category.assoc, pullback.lift_fst_assoc, hzero] |
| 81 | |
| 82 | theorem right_first (u : B ⟶ A.left) (hu : u ≫ A.hom = b) |
| 83 | (s : Spec (.of K) ⟶ B) (hs : s ≫ b = 𝟙 _) |
| 84 | (hzero : s ≫ u = (MonObj.one (X := A)).left) : |
| 85 | rightAxis A b c s hs ≫ first A b c u hu = 1 := by |
| 86 | apply Over.OverMorphism.ext |
| 87 | change ProductBaseAxes.Construction.ProductBaseChangeAxes.right (leftBase A b) (rightBase A c) |
| 88 | (familyPoint A b s hs) (familyPoint_over A b s hs) ≫ |
| 89 | pullback.fst (leftBase A b) (rightBase A c) ≫ pullback.fst b A.hom ≫ u = |
| 90 | (rightBase A c ≫ A.hom) ≫ (MonObj.one (X := A)).left |
| 91 | simp only [ProductBaseAxes.Construction.ProductBaseChangeAxes.right, pullback.lift_fst_assoc, familyPoint, |
| 92 | Category.assoc, hzero] |
| 93 | |
| 94 | end Construction.CubeProductCoordinates |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductBase |