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.Sheaf.Quasicoherent |
| 2 | |
| 3 | /-! # Presentations -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.Presentations |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Finite presentations of the structure module and their transport. These give |
| 11 | the local algebra needed to apply the affine quasi-coherent sheaf API to the |
| 12 | line bundles used in HilbertConstruction. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Limits |
| 16 | |
| 17 | universe u v v' w w' |
| 18 | |
| 19 | section Presentation |
| 20 | |
| 21 | variable {C : Type w} [Category.{v} C] {J : GrothendieckTopology C} |
| 22 | (R : Sheaf J RingCat.{u}) [HasSheafify J AddCommGrpCat.{u}] |
| 23 | [J.WEqualsLocallyBijective AddCommGrpCat.{u}] |
| 24 | |
| 25 | /-- The structure module is the free module on one generator. -/ |
| 26 | def freeSingletonUnitIso : SheafOfModules.free (R := R) PUnit.{u + 1} ≅ |
| 27 | SheafOfModules.unit R := |
| 28 | coproductUniqueIso (fun _ : PUnit.{u + 1} => SheafOfModules.unit R) |
| 29 | |
| 30 | /-- An explicit presentation with one generator and no relations. -/ |
| 31 | def unitFinitePresentation : (SheafOfModules.unit R).Presentation := |
| 32 | SheafOfModules.presentationOfIsCokernelFree |
| 33 | (0 : SheafOfModules.free (R := R) PEmpty.{u + 1} ⟶ |
| 34 | SheafOfModules.free (R := R) PUnit.{u + 1}) |
| 35 | (freeSingletonUnitIso R).hom zero_comp <| |
| 36 | CokernelCofork.IsColimit.ofπ _ zero_comp |
| 37 | (fun g _ => (freeSingletonUnitIso R).inv ≫ g) |
| 38 | (fun g _ => by simp) |
| 39 | (fun g _ m hm => by rw [← hm]; simp) |
| 40 | |
| 41 | instance unitFinitePresentation_isFinite : (unitFinitePresentation R).IsFinite where |
| 42 | isFiniteType_generators := ⟨inferInstanceAs (Finite PUnit.{u + 1})⟩ |
| 43 | isFiniteType_relations := ⟨inferInstanceAs (Finite PEmpty.{u + 1})⟩ |
| 44 | |
| 45 | variable {D : Type w'} [Category.{v'} D] {K : GrothendieckTopology D} |
| 46 | {S : Sheaf K RingCat.{u}} [HasSheafify K AddCommGrpCat.{u}] |
| 47 | [K.WEqualsLocallyBijective AddCommGrpCat.{u}] |
| 48 | |
| 49 | /-- Colimit-preserving transport with a structure-module comparison preserves |
| 50 | the finiteness of both the generator and relation families. -/ |
| 51 | theorem finitePresentation_map {M : SheafOfModules.{u} R} |
| 52 | (P : M.Presentation) [P.IsFinite] |
| 53 | (F : SheafOfModules.{u} R ⥤ SheafOfModules.{u} S) |
| 54 | [PreservesColimitsOfSize.{u, u} F] |
| 55 | (e : SheafOfModules.unit S ≅ F.obj (SheafOfModules.unit R)) : |
| 56 | (P.map F e).IsFinite where |
| 57 | isFiniteType_generators := ⟨by |
| 58 | rw [SheafOfModules.Presentation.map_generators_I] |
| 59 | exact SheafOfModules.GeneratingSections.IsFiniteType.finite⟩ |
| 60 | isFiniteType_relations := ⟨by |
| 61 | rw [SheafOfModules.Presentation.map_relations_I] |
| 62 | exact SheafOfModules.GeneratingSections.IsFiniteType.finite⟩ |
| 63 | |
| 64 | end Presentation |
| 65 | |
| 66 | variable {C : Type w} [Category.{v} C] [HasBinaryProducts C] |
| 67 | {J : GrothendieckTopology C} {R : Sheaf J RingCat.{u}} |
| 68 | [HasSheafify J AddCommGrpCat.{u}] |
| 69 | [J.WEqualsLocallyBijective AddCommGrpCat.{u}] |
| 70 | [∀ X, HasSheafify (J.over X) AddCommGrpCat.{u}] |
| 71 | [∀ X, (J.over X).WEqualsLocallyBijective AddCommGrpCat.{u}] |
| 72 | |
| 73 | /-- A finite global presentation is also a finite local presentation. -/ |
| 74 | theorem finitePresentation_quasicoherentData {M : SheafOfModules.{u} R} |
| 75 | (P : M.Presentation) [P.IsFinite] : P.quasicoherentData.IsFinitePresentation where |
| 76 | isFinite_presentation X := by |
| 77 | constructor |
| 78 | · constructor |
| 79 | change Finite P.generators.I |
| 80 | exact SheafOfModules.GeneratingSections.IsFiniteType.finite |
| 81 | · constructor |
| 82 | change Finite P.relations.I |
| 83 | exact SheafOfModules.GeneratingSections.IsFiniteType.finite |
| 84 | |
| 85 | /-- Global finite presentations imply the usual sheaf-theoretic property. -/ |
| 86 | theorem isFinitePresentation_of_presentation {M : SheafOfModules.{u} R} |
| 87 | (P : M.Presentation) [P.IsFinite] : M.IsFinitePresentation := |
| 88 | ⟨P.quasicoherentData, finitePresentation_quasicoherentData P⟩ |
| 89 | |
| 90 | theorem unit_isFinitePresentation : (SheafOfModules.unit R).IsFinitePresentation := |
| 91 | isFinitePresentation_of_presentation (unitFinitePresentation R) |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.Presentations |