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.Picard.PoincareBundle.RectangularCoordinates |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.PullHom |
| 3 | |
| 4 | /-! # Rectangular Transport -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.RectangularTransport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Commuting coordinate transports give descent through a product quotient |
| 12 | |
| 13 | Only the separate horizontal and vertical cocycles are input. The full product cocycle and the |
| 14 | ordinary descent datum are constructed from their commuting squares. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory Opposite |
| 18 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 19 | open _root_.CategoryTheory.Pseudofunctor.LocallyDiscreteOpToCat |
| 20 | |
| 21 | universe u v u' v' |
| 22 | |
| 23 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.RectangularCoordinates |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 26 | {A B X Y : C} (f : A ⟶ B) (g : X ⟶ Y) |
| 27 | (F : Pseudofunctor (LocallyDiscrete Cᵒᵖ) Cat.{v', u'}) (L : F.obj (.mk (op (A ⊗ X)))) |
| 28 | |
| 29 | /-- The actual pseudofunctor fiber at a test point of the product. -/ |
| 30 | abbrev pointObject {T : C} (a : T ⟶ A ⊗ X) : F.obj (.mk (op T)) := |
| 31 | (F.map a.op.toLoc).toFunctor.obj L |
| 32 | |
| 33 | /-- Separate coordinate transport laws, before imposing any interchange condition. -/ |
| 34 | structure AxisData where |
| 35 | horizontal {T : C} (a b : T ⟶ A ⊗ X) (h : RectangularCoordinates.Horizontal f a b) : |
| 36 | pointObject F L a ⟶ pointObject F L b |
| 37 | vertical {T : C} (a b : T ⟶ A ⊗ X) (h : RectangularCoordinates.Vertical g a b) : |
| 38 | pointObject F L a ⟶ pointObject F L b |
| 39 | horizontal_self {T : C} (a : T ⟶ A ⊗ X) (h : RectangularCoordinates.Horizontal f a a) : horizontal a a h = 𝟙 _ |
| 40 | vertical_self {T : C} (a : T ⟶ A ⊗ X) (h : RectangularCoordinates.Vertical g a a) : vertical a a h = 𝟙 _ |
| 41 | horizontal_comp {T : C} (a b c : T ⟶ A ⊗ X) |
| 42 | (hab : RectangularCoordinates.Horizontal f a b) (hbc : RectangularCoordinates.Horizontal f b c) (hac : RectangularCoordinates.Horizontal f a c) : |
| 43 | horizontal a b hab ≫ horizontal b c hbc = horizontal a c hac |
| 44 | vertical_comp {T : C} (a b c : T ⟶ A ⊗ X) |
| 45 | (hab : RectangularCoordinates.Vertical g a b) (hbc : RectangularCoordinates.Vertical g b c) (hac : RectangularCoordinates.Vertical g a c) : |
| 46 | vertical a b hab ≫ vertical b c hbc = vertical a c hac |
| 47 | horizontal_pullback {T T' : C} (t : T' ⟶ T) (a b : T ⟶ A ⊗ X) (h : RectangularCoordinates.Horizontal f a b) |
| 48 | (a' b' : T' ⟶ A ⊗ X) (h' : RectangularCoordinates.Horizontal f a' b') (ha : t ≫ a = a') (hb : t ≫ b = b') : |
| 49 | pullHom (horizontal a b h) t a' b' ha hb = horizontal a' b' h' |
| 50 | vertical_pullback {T T' : C} (t : T' ⟶ T) (a b : T ⟶ A ⊗ X) (h : RectangularCoordinates.Vertical g a b) |
| 51 | (a' b' : T' ⟶ A ⊗ X) (h' : RectangularCoordinates.Vertical g a' b') (ha : t ≫ a = a') (hb : t ≫ b = b') : |
| 52 | pullHom (vertical a b h) t a' b' ha hb = vertical a' b' h' |
| 53 | |
| 54 | variable (D : AxisData f g F L) |
| 55 | |
| 56 | /-- The two already-defined coordinate transports commute around every actual rectangle. -/ |
| 57 | def Commutes : Prop := ∀ (T : C) (a b c d : T ⟶ A ⊗ X) |
| 58 | (hab : RectangularCoordinates.Horizontal f a b) (hac : RectangularCoordinates.Vertical g a c) (hbd : RectangularCoordinates.Vertical g b d) (hcd : RectangularCoordinates.Horizontal f c d), |
| 59 | D.horizontal a b hab ≫ D.vertical b d hbd = D.vertical a c hac ≫ D.horizontal c d hcd |
| 60 | |
| 61 | /-- The canonical product transport first changes the first coordinate, then the second. -/ |
| 62 | def total {T : C} (a b : T ⟶ A ⊗ X) (h : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) : |
| 63 | pointObject F L a ⟶ pointObject F L b := |
| 64 | D.horizontal a (RectangularCoordinates.middle a b) (RectangularCoordinates.horizontal_middle f g a b h) ≫ |
| 65 | D.vertical (RectangularCoordinates.middle a b) b (RectangularCoordinates.vertical_middle f g a b h) |
| 66 | |
| 67 | /-- The derived product transport satisfies its unit law. -/ |
| 68 | theorem total_self {T : C} (a : T ⟶ A ⊗ X) (h : a ≫ (f ⊗ₘ g) = a ≫ (f ⊗ₘ g)) : |
| 69 | total f g F L D a a h = 𝟙 _ := by |
| 70 | have he (m : T ⟶ A ⊗ X) (hm : m = a) (hh : RectangularCoordinates.Horizontal f a m) (hv : RectangularCoordinates.Vertical g m a) : |
| 71 | D.horizontal a m hh ≫ D.vertical m a hv = 𝟙 _ := by |
| 72 | subst m |
| 73 | rw [D.horizontal_self, D.vertical_self, Category.id_comp] |
| 74 | exact he (RectangularCoordinates.middle a a) (RectangularCoordinates.middle_self a) _ _ |
| 75 | |
| 76 | variable (hc : Commutes f g F L D) |
| 77 | |
| 78 | include hc in |
| 79 | /-- A commuting rectangle combines the two separate cocycles into the full product cocycle. -/ |
| 80 | theorem total_comp {T : C} (a b c : T ⟶ A ⊗ X) |
| 81 | (hab : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) (hbc : b ≫ (f ⊗ₘ g) = c ≫ (f ⊗ₘ g)) |
| 82 | (hac : a ≫ (f ⊗ₘ g) = c ≫ (f ⊗ₘ g)) : |
| 83 | total f g F L D a b hab ≫ total f g F L D b c hbc = total f g F L D a c hac := by |
| 84 | have hs := hc T (RectangularCoordinates.middle a b) (RectangularCoordinates.middle a c) b (RectangularCoordinates.middle b c) |
| 85 | (RectangularCoordinates.horizontal_middles f g a b c hbc) (RectangularCoordinates.vertical_middle f g a b hab) |
| 86 | (RectangularCoordinates.vertical_middles f g a b c hab) (RectangularCoordinates.horizontal_middle f g b c hbc) |
| 87 | unfold total |
| 88 | simp only [Category.assoc] |
| 89 | slice_lhs 2 3 => exact hs.symm |
| 90 | slice_lhs 1 2 => |
| 91 | exact D.horizontal_comp a (RectangularCoordinates.middle a b) (RectangularCoordinates.middle a c) |
| 92 | (RectangularCoordinates.horizontal_middle f g a b hab) (RectangularCoordinates.horizontal_middles f g a b c hbc) |
| 93 | (RectangularCoordinates.horizontal_middle f g a c hac) |
| 94 | rw [Category.assoc, D.vertical_comp] |
| 95 | |
| 96 | /-- Both coordinate transports and the chosen middle point commute with change of test object. -/ |
| 97 | theorem total_pullback {T T' : C} (t : T' ⟶ T) (a b : T ⟶ A ⊗ X) |
| 98 | (h : a ≫ (f ⊗ₘ g) = b ≫ (f ⊗ₘ g)) (a' b' : T' ⟶ A ⊗ X) |
| 99 | (h' : a' ≫ (f ⊗ₘ g) = b' ≫ (f ⊗ₘ g)) (ha : t ≫ a = a') (hb : t ≫ b = b') : |
| 100 | pullHom (total f g F L D a b h) t a' b' ha hb = total f g F L D a' b' h' := by |
| 101 | have hm := RectangularCoordinates.middle_naturality t a b a' b' ha hb |
| 102 | unfold total |
| 103 | rw [PullHom.pullHom_comp _ _ t a' (RectangularCoordinates.middle a' b') b' ha hm hb, |
| 104 | D.horizontal_pullback t a (RectangularCoordinates.middle a b) _ a' (RectangularCoordinates.middle a' b') |
| 105 | (RectangularCoordinates.horizontal_middle f g a' b' h') ha hm, |
| 106 | D.vertical_pullback t (RectangularCoordinates.middle a b) b _ (RectangularCoordinates.middle a' b') b' |
| 107 | (RectangularCoordinates.vertical_middle f g a' b' h') hm hb] |
| 108 | |
| 109 | /-- The derived transport supplies ordinary descent data for the actual product quotient. -/ |
| 110 | def toDescentData : F.DescentData (fun (_ : PUnit.{1}) => f ⊗ₘ g) where |
| 111 | obj _ := L |
| 112 | hom _T _q _i _j a b ha hb := total f g F L D a b (ha.trans hb.symm) |
| 113 | pullHom_hom _T' _T t _q _q' _hq _i _j a b ha hb a' b' hta htb := |
| 114 | total_pullback f g F L D t a b (ha.trans hb.symm) a' b' _ hta htb |
| 115 | hom_self _T _q _i a ha := total_self f g F L D a (ha.trans ha.symm) |
| 116 | hom_comp _T _q _i _j _k a b c ha hb hcc := |
| 117 | total_comp f g F L D hc a b c (ha.trans hb.symm) (hb.trans hcc.symm) (ha.trans hcc.symm) |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.RectangularTransport |