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.Algebra.Category.ModuleCat.Basic |
| 2 | import Mathlib.CategoryTheory.Linear.FunctorCategory |
| 3 | import Mathlib.CategoryTheory.Limits.IsLimit |
| 4 | |
| 5 | /-! # Cone Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.ConeSections.ModuleConeSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # A module limit cone represents coefficient-linear sections -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] (R : Type w) [CommRing R] |
| 18 | {F : C ⥤ ModuleCat.{w} R} (t : Cone F) (ht : IsLimit t) |
| 19 | |
| 20 | def homLinearEquiv (M : ModuleCat.{w} R) : |
| 21 | (M ⟶ t.pt) ≃ₗ[R] ((Functor.const C).obj M ⟶ F) where |
| 22 | toEquiv := ht.homEquiv |
| 23 | map_add' f g := by |
| 24 | apply NatTrans.ext |
| 25 | funext Q |
| 26 | exact Preadditive.add_comp _ _ _ f g (t.π.app Q) |
| 27 | map_smul' r f := by |
| 28 | apply NatTrans.ext |
| 29 | funext Q |
| 30 | exact Linear.smul_comp _ _ _ r f (t.π.app Q) |
| 31 | |
| 32 | def sectionsEquiv : ((Functor.const C).obj (ModuleCat.of R R) ⟶ F) ≃ₗ[R] t.pt := |
| 33 | (ModuleConeSections.homLinearEquiv R t ht (ModuleCat.of R R)).symm.trans |
| 34 | ((ModuleCat.homLinearEquiv (R := R) (S := R)).trans (LinearMap.ringLmapEquivSelf R R t.pt)) |
| 35 | |
| 36 | theorem sectionsEquiv_eval (s : (Functor.const C).obj (ModuleCat.of R R) ⟶ F) (Q : C) : |
| 37 | t.π.app Q (sectionsEquiv R t ht s) = s.app Q (1 : R) := |
| 38 | ConcreteCategory.congr_hom (ht.homEquiv_symm_π_app s Q) (1 : R) |
| 39 | |
| 40 | theorem sectionsEquiv_symm_eval (x : t.pt) (Q : C) : |
| 41 | ((sectionsEquiv R t ht).symm x).app Q (1 : R) = t.π.app Q x := by |
| 42 | have h := sectionsEquiv_eval R t ht ((sectionsEquiv R t ht).symm x) Q |
| 43 | rw [LinearEquiv.apply_symm_apply] at h |
| 44 | exact h.symm |
| 45 | |
| 46 | include ht in |
| 47 | theorem ext {x y : t.pt} (h : ∀ Q, t.π.app Q x = t.π.app Q y) : x = y := by |
| 48 | let ex : ModuleCat.of R R ⟶ t.pt := ModuleCat.ofHom ((LinearMap.ringLmapEquivSelf R R t.pt).symm x) |
| 49 | let ey : ModuleCat.of R R ⟶ t.pt := ModuleCat.ofHom ((LinearMap.ringLmapEquivSelf R R t.pt).symm y) |
| 50 | have he : ex = ey := ht.hom_ext (by |
| 51 | intro Q |
| 52 | apply ModuleCat.hom_ext |
| 53 | apply LinearMap.ext |
| 54 | intro r |
| 55 | change t.π.app Q (r • x) = t.π.app Q (r • y) |
| 56 | rw [(t.π.app Q).hom.map_smul, (t.π.app Q).hom.map_smul, h Q]) |
| 57 | have h1 := ConcreteCategory.congr_hom he 1 |
| 58 | change (1 : R) • x = (1 : R) • y at h1 |
| 59 | simpa only [one_smul] using h1 |
| 60 | |
| 61 | variable {G : C ⥤ ModuleCat.{w} R} (s : Cone G) (hs : IsLimit s) |
| 62 | (f : F ⟶ G) (g : t.pt ⟶ s.pt) |
| 63 | (hg : ∀ Q, g ≫ s.π.app Q = t.π.app Q ≫ f.app Q) |
| 64 | |
| 65 | include hg in |
| 66 | theorem naturality (x : (Functor.const C).obj (ModuleCat.of R R) ⟶ F) : |
| 67 | sectionsEquiv R s hs (x ≫ f) = g (sectionsEquiv R t ht x) := by |
| 68 | apply ModuleConeSections.ext R s hs |
| 69 | intro Q |
| 70 | rw [sectionsEquiv_eval] |
| 71 | have h := ConcreteCategory.congr_hom (hg Q) (sectionsEquiv R t ht x) |
| 72 | change s.π.app Q (g (sectionsEquiv R t ht x)) = |
| 73 | f.app Q (t.π.app Q (sectionsEquiv R t ht x)) at h |
| 74 | rw [sectionsEquiv_eval] at h |
| 75 | exact h.symm |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Module.ConeSections.ModuleConeSections |