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.Grp |
| 2 | |
| 3 | /-! # Group Maps -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.GroupMaps.Construction |
| 6 | |
| 7 | /-! Pointwise criteria for the subgroup-scheme inclusion in IsogenyQuotient. -/ |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 10 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 11 | open scoped _root_.CategoryTheory.MonObj |
| 12 | |
| 13 | universe u v |
| 14 | |
| 15 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 16 | |
| 17 | /-- A map preserving the group law on all test-object points is a |
| 18 | homomorphism of group objects. -/ |
| 19 | theorem isMonHom_of_pointwise |
| 20 | {G H : C} [GrpObj G] [GrpObj H] (f : G ⟶ H) |
| 21 | (h_one : ∀ X : C, (1 : X ⟶ G) ≫ f = 1) |
| 22 | (h_mul : ∀ (X : C) (a b : X ⟶ G), |
| 23 | (a * b) ≫ f = (a ≫ f) * (b ≫ f)) : IsMonHom f := by |
| 24 | constructor |
| 25 | · have hunit : toUnit (𝟙_ C) = 𝟙 (𝟙_ C) := toUnit_unique _ _ |
| 26 | simpa only [Hom.one_def, hunit, Category.id_comp] using h_one (𝟙_ C) |
| 27 | · have h := h_mul (G ⊗ G) (fst G G) (snd G G) |
| 28 | have hpair : lift (fst G G ≫ f) (snd G G ≫ f) = f ⊗ₘ f := by |
| 29 | ext <;> simp |
| 30 | simpa only [Hom.mul_def, lift_fst_snd, Category.id_comp, hpair] using h |
| 31 | |
| 32 | /-- A natural group map between represented presheaves induces a group |
| 33 | homomorphism on the representing objects, with the prescribed underlying map. -/ |
| 34 | theorem represented_group_map_isMonHom |
| 35 | (F G : Cᵒᵖ ⥤ GrpCat.{v}) {X Y : C} |
| 36 | (eF : (F ⋙ forget GrpCat).RepresentableBy X) |
| 37 | (eG : (G ⋙ forget GrpCat).RepresentableBy Y) |
| 38 | (a : F ⟶ G) (f : X ⟶ Y) |
| 39 | (h : ∀ (T : C) (x : T ⟶ X), |
| 40 | eG.homEquiv (x ≫ f) = (a.app (op T)).hom (eF.homEquiv x)) : |
| 41 | letI := GrpObj.ofRepresentableBy X F eF |
| 42 | letI := GrpObj.ofRepresentableBy Y G eG |
| 43 | IsMonHom f := by |
| 44 | let _ := GrpObj.ofRepresentableBy X F eF |
| 45 | let _ := GrpObj.ofRepresentableBy Y G eG |
| 46 | let eX := yonedaGrpObjIsoOfRepresentableBy X F eF |
| 47 | let eY := yonedaGrpObjIsoOfRepresentableBy Y G eG |
| 48 | let pointMap (T : C) : (T ⟶ X) →* (T ⟶ Y) := |
| 49 | ((eY.inv.app (op T)).hom).comp |
| 50 | (((a.app (op T)).hom).comp ((eX.hom.app (op T)).hom)) |
| 51 | have hpoint (T : C) (x : T ⟶ X) : pointMap T x = x ≫ f := by |
| 52 | apply eG.homEquiv.injective |
| 53 | change eG.homEquiv (eG.homEquiv.symm ((a.app (op T)).hom (eF.homEquiv x))) = |
| 54 | eG.homEquiv (x ≫ f) |
| 55 | rw [Equiv.apply_symm_apply, h] |
| 56 | apply isMonHom_of_pointwise f |
| 57 | · intro T |
| 58 | rw [← hpoint] |
| 59 | exact (pointMap T).map_one |
| 60 | · intro T x y |
| 61 | rw [← hpoint, ← hpoint, ← hpoint] |
| 62 | exact (pointMap T).map_mul x y |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.GroupMaps.Construction |