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.Isogenies.NeighborCounting.PoincareNormalization |
| 2 | |
| 3 | /-! # Product Test Factors -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ProductTestFactors |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An arbitrary test map into a product family factors through a graph |
| 10 | and a map of product families. Equal image maps use the same graph. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S : Scheme.{u}} (P : Over S) {T B V : Over S} |
| 18 | |
| 19 | theorem graph_factor (e : V ⟶ T ⊗ P) : |
| 20 | lift (𝟙 V) (e ≫ snd T P) ≫ ((e ≫ fst T P) ▷ P) = e := by |
| 21 | apply CartesianMonoidalCategory.hom_ext |
| 22 | · simp only [Category.assoc, whiskerRight_fst, lift_fst_assoc, Category.id_comp] |
| 23 | · simp only [Category.assoc, whiskerRight_snd, lift_snd] |
| 24 | |
| 25 | variable {Z : Scheme.{u}} |
| 26 | |
| 27 | def testObject (p : Z ⟶ (B ⊗ P).left) : Over S := Over.mk (p ≫ (B ⊗ P).hom) |
| 28 | |
| 29 | def targetLift (p : Z ⟶ (B ⊗ P).left) : testObject P p ⟶ B ⊗ P := Over.homMk p rfl |
| 30 | |
| 31 | def testLift (t : T ⟶ B) (p : Z ⟶ (B ⊗ P).left) (x : Z ⟶ (T ⊗ P).left) |
| 32 | (hx : x ≫ (t ▷ P).left = p) : testObject P p ⟶ T ⊗ P := |
| 33 | Over.homMk x (by |
| 34 | change x ≫ (T ⊗ P).hom = p ≫ (B ⊗ P).hom |
| 35 | rw [← Over.w (t ▷ P), ← Category.assoc, hx]) |
| 36 | |
| 37 | theorem testLift_comp (t : T ⟶ B) (p : Z ⟶ (B ⊗ P).left) (x : Z ⟶ (T ⊗ P).left) |
| 38 | (hx : x ≫ (t ▷ P).left = p) : testLift P t p x hx ≫ (t ▷ P) = targetLift P p := by |
| 39 | apply Over.OverMorphism.ext |
| 40 | exact hx |
| 41 | |
| 42 | def baseMap (t : T ⟶ B) (p : Z ⟶ (B ⊗ P).left) (x : Z ⟶ (T ⊗ P).left) |
| 43 | (hx : x ≫ (t ▷ P).left = p) : testObject P p ⟶ T := |
| 44 | testLift P t p x hx ≫ fst T P |
| 45 | |
| 46 | def baseTarget (p : Z ⟶ (B ⊗ P).left) : testObject P p ⟶ B := targetLift P p ≫ fst B P |
| 47 | |
| 48 | def graph (p : Z ⟶ (B ⊗ P).left) : testObject P p ⟶ testObject P p ⊗ P := |
| 49 | lift (𝟙 _) (targetLift P p ≫ snd B P) |
| 50 | |
| 51 | theorem baseMap_comp (t : T ⟶ B) (p : Z ⟶ (B ⊗ P).left) (x : Z ⟶ (T ⊗ P).left) |
| 52 | (hx : x ≫ (t ▷ P).left = p) : baseMap P t p x hx ≫ t = baseTarget P p := by |
| 53 | unfold baseMap baseTarget |
| 54 | rw [Category.assoc, ← whiskerRight_fst, ← Category.assoc, testLift_comp] |
| 55 | |
| 56 | theorem testLift_snd (t : T ⟶ B) (p : Z ⟶ (B ⊗ P).left) (x : Z ⟶ (T ⊗ P).left) |
| 57 | (hx : x ≫ (t ▷ P).left = p) : |
| 58 | testLift P t p x hx ≫ snd T P = targetLift P p ≫ snd B P := by |
| 59 | rw [← whiskerRight_snd t P, ← Category.assoc, testLift_comp] |
| 60 | |
| 61 | theorem graph_to_test (t : T ⟶ B) (p : Z ⟶ (B ⊗ P).left) (x : Z ⟶ (T ⊗ P).left) |
| 62 | (hx : x ≫ (t ▷ P).left = p) : |
| 63 | (graph P p).left ≫ (baseMap P t p x hx ▷ P).left = x := by |
| 64 | have h := graph_factor P (testLift P t p x hx) |
| 65 | rw [testLift_snd] at h |
| 66 | exact congrArg Over.Hom.left h |
| 67 | |
| 68 | theorem graph_to_target (p : Z ⟶ (B ⊗ P).left) : |
| 69 | (graph P p).left ≫ (baseTarget P p ▷ P).left = p := |
| 70 | congrArg Over.Hom.left (graph_factor P (targetLift P p)) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ProductTestFactors |