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 Mathlib.CategoryTheory.Monoidal.Cartesian.Basic |
| 2 | |
| 3 | /-! # Rectangular Coordinates -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.RectangularCoordinates |
| 6 | |
| 7 | /-! |
| 8 | # Coordinates for descent through a product of two quotient maps |
| 9 | -/ |
| 10 | |
| 11 | open _root_.CategoryTheory |
| 12 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 17 | {A B X Y : C} (f : A ⟶ B) (g : X ⟶ Y) |
| 18 | |
| 19 | /-- The horizontal relation changes only the first coordinate, within one quotient fiber. -/ |
| 20 | def Horizontal {T : C} (a b : T ⟶ A ⊗ X) : Prop := |
| 21 | a ≫ fst A X ≫ f = b ≫ fst A X ≫ f ∧ a ≫ snd A X = b ≫ snd A X |
| 22 | |
| 23 | /-- The vertical relation changes only the second coordinate, within one quotient fiber. -/ |
| 24 | def Vertical {T : C} (a b : T ⟶ A ⊗ X) : Prop := |
| 25 | a ≫ fst A X = b ≫ fst A X ∧ a ≫ snd A X ≫ g = b ≫ snd A X ≫ g |
| 26 | |
| 27 | /-- First move horizontally from the source, then vertically to the target. -/ |
| 28 | def middle {T : C} (a b : T ⟶ A ⊗ X) : T ⟶ A ⊗ X := lift (b ≫ fst A X) (a ≫ snd A X) |
| 29 | |
| 30 | @[simp] |
| 31 | theorem middle_fst {T : C} (a b : T ⟶ A ⊗ X) : middle a b ≫ fst A X = b ≫ fst A X := |
| 32 | lift_fst _ _ |
| 33 | |
| 34 | @[simp] |
| 35 | theorem middle_snd {T : C} (a b : T ⟶ A ⊗ X) : middle a b ≫ snd A X = a ≫ snd A X := |
| 36 | lift_snd _ _ |
| 37 | |
| 38 | @[simp] |
| 39 | theorem middle_self {T : C} (a : T ⟶ A ⊗ X) : middle a a = a := lift_comp_fst_snd a |
| 40 | |
| 41 | /-- The middle point commutes with arbitrary changes of test object. -/ |
| 42 | theorem middle_naturality {T T' : C} (t : T' ⟶ T) (a b : T ⟶ A ⊗ X) |
| 43 | (a' b' : T' ⟶ A ⊗ X) (ha : t ≫ a = a') (hb : t ≫ b = b') : |
| 44 | t ≫ middle a b = middle a' b' := by |
| 45 | dsimp only [middle] |
| 46 | rw [comp_lift, ← Category.assoc, ← Category.assoc, ha, hb] |
| 47 | |
| 48 | /-- Equality after the product quotient gives equality after its first-coordinate quotient. -/ |
| 49 | theorem relation_fst {T : C} (a b : T ⟶ A ⊗ X) (h : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) : |
| 50 | a ≫ fst A X ≫ f = b ≫ fst A X ≫ f := by |
| 51 | have he := congrArg (fun t => t ≫ fst B Y) h |
| 52 | simpa only [Category.assoc, tensorHom_fst] using he |
| 53 | |
| 54 | /-- Equality after the product quotient gives equality after its second-coordinate quotient. -/ |
| 55 | theorem relation_snd {T : C} (a b : T ⟶ A ⊗ X) (h : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) : |
| 56 | a ≫ snd A X ≫ g = b ≫ snd A X ≫ g := by |
| 57 | have he := congrArg (fun t => t ≫ snd B Y) h |
| 58 | simpa only [Category.assoc, tensorHom_snd] using he |
| 59 | |
| 60 | /-- The first half of the canonical rectangular path is horizontal. -/ |
| 61 | theorem horizontal_middle {T : C} (a b : T ⟶ A ⊗ X) (h : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) : |
| 62 | Horizontal f a (middle a b) := by |
| 63 | constructor |
| 64 | · simpa only [← Category.assoc, middle_fst] using relation_fst f g a b h |
| 65 | · exact (middle_snd a b).symm |
| 66 | |
| 67 | /-- The second half of the canonical rectangular path is vertical. -/ |
| 68 | theorem vertical_middle {T : C} (a b : T ⟶ A ⊗ X) (h : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) : |
| 69 | Vertical g (middle a b) b := by |
| 70 | constructor |
| 71 | · exact middle_fst a b |
| 72 | · simpa only [← Category.assoc, middle_snd] using relation_snd f g a b h |
| 73 | |
| 74 | /-- Horizontal movement between the two top middle points comes from the second quotient relation. -/ |
| 75 | theorem horizontal_middles {T : C} (a b c : T ⟶ A ⊗ X) |
| 76 | (h : b ≫ (f ⊗ₘ g) = c ≫ (f ⊗ₘ g)) : Horizontal f (middle a b) (middle a c) := by |
| 77 | constructor |
| 78 | · simpa only [← Category.assoc, middle_fst] using relation_fst f g b c h |
| 79 | · rw [middle_snd, middle_snd] |
| 80 | |
| 81 | /-- Vertical movement between the two right middle points comes from the first quotient relation. -/ |
| 82 | theorem vertical_middles {T : C} (a b c : T ⟶ A ⊗ X) |
| 83 | (h : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) : Vertical g (middle a c) (middle b c) := by |
| 84 | constructor |
| 85 | · rw [middle_fst, middle_fst] |
| 86 | · simpa only [← Category.assoc, middle_snd] using relation_snd f g a b h |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.RectangularCoordinates |