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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SchemeModuleBaseCech.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.Algebra.Category.ModuleCat.Products |
| 8 | import Mathlib.Algebra.Category.ModuleCat.Limits |
| 9 | import Mathlib.Algebra.Homology.Linear |
| 10 | |
| 11 | /-! # Product Forget -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.ProductForget |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 18 | universe u |
| 19 | |
| 20 | abbrev moduleForget (R : Type u) [Ring R] := |
| 21 | forget₂ (ModuleCat.{u} R) AddCommGrpCat.{u} |
| 22 | |
| 23 | def discreteModuleForgetIso |
| 24 | (R : Type u) [Ring R] {I : Type u} (P : I → ModuleCat.{u} R) : |
| 25 | Discrete.functor P ⋙ moduleForget R ≅ |
| 26 | Discrete.functor (fun i => (moduleForget R).obj (P i)) := |
| 27 | Discrete.natIso fun x => eqToIso (show |
| 28 | (Discrete.functor P ⋙ moduleForget R).obj x = |
| 29 | (Discrete.functor fun i => (moduleForget R).obj (P i)).obj x |
| 30 | from rfl) |
| 31 | |
| 32 | theorem discreteModuleForgetIso_comp_hom_app |
| 33 | (R : Type u) [Ring R] {I : Type u} (P : I → ModuleCat.{u} R) |
| 34 | (i : I) : |
| 35 | (moduleForget R).map (Pi.π P i) ≫ |
| 36 | (discreteModuleForgetIso R P).hom.app (Discrete.mk i) = |
| 37 | (moduleForget R).map (Pi.π P i) := by |
| 38 | rfl |
| 39 | |
| 40 | /-- Forgetting the module structure commutes with products. -/ |
| 41 | noncomputable def modulePiForgetIso |
| 42 | (R : Type u) [Ring R] {I : Type u} (P : I → ModuleCat.{u} R) : |
| 43 | (moduleForget R).obj (∏ᶜ P) ≅ |
| 44 | ∏ᶜ fun i => (moduleForget R).obj (P i) := |
| 45 | preservesLimitIso (moduleForget R) (Discrete.functor P) ≪≫ |
| 46 | HasLimit.isoOfNatIso (discreteModuleForgetIso R P) |
| 47 | |
| 48 | /-- The comparison from a forgotten module product to the additive product |
| 49 | commutes with every product projection. -/ |
| 50 | @[reassoc] |
| 51 | theorem modulePiForgetIso_hom_π |
| 52 | (R : Type u) [Ring R] {I : Type u} |
| 53 | (P : I → ModuleCat.{u} R) (i : I) : |
| 54 | (modulePiForgetIso R P).hom ≫ |
| 55 | Pi.π (fun i => (moduleForget R).obj (P i)) i = |
| 56 | (moduleForget R).map |
| 57 | (Pi.π P i) := by |
| 58 | dsimp only [modulePiForgetIso] |
| 59 | rw [Iso.trans_hom] |
| 60 | change (preservesLimitIso (moduleForget R) (Discrete.functor P)).hom ≫ |
| 61 | ((HasLimit.isoOfNatIso (discreteModuleForgetIso R P)).hom ≫ |
| 62 | limit.π (Discrete.functor fun i => (moduleForget R).obj (P i)) |
| 63 | (Discrete.mk i)) = _ |
| 64 | rw [ |
| 65 | HasLimit.isoOfNatIso_hom_π |
| 66 | (discreteModuleForgetIso R P) (Discrete.mk i)] |
| 67 | rw [preservesLimitIso_hom_π_assoc] |
| 68 | exact discreteModuleForgetIso_comp_hom_app R P i |
| 69 | |
| 70 | theorem modulePiForgetIso_naturality |
| 71 | (R : Type u) [Ring R] {I J : Type u} |
| 72 | (P : I → ModuleCat.{u} R) (Q : J → ModuleCat.{u} R) |
| 73 | (f : J → I) (φ : ∀ j, P (f j) ⟶ Q j) : |
| 74 | (moduleForget R).map |
| 75 | (Pi.lift fun j => Pi.π P (f j) ≫ φ j) ≫ |
| 76 | (modulePiForgetIso R Q).hom = |
| 77 | (modulePiForgetIso R P).hom ≫ |
| 78 | Pi.lift (fun j => |
| 79 | Pi.π (fun i => (moduleForget R).obj (P i)) (f j) ≫ |
| 80 | (moduleForget R).map (φ j)) := by |
| 81 | apply Pi.hom_ext |
| 82 | intro j |
| 83 | simp only [Category.assoc, modulePiForgetIso_hom_π, |
| 84 | Pi.lift_comp_π, ← Functor.map_comp] |
| 85 | rw [modulePiForgetIso_hom_π_assoc, ← Functor.map_comp] |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.ProductForget |