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.SheafCohomology.SectionFrames |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.LocallyFree |
| 3 | import Mathlib.CategoryTheory.Sites.Spaces |
| 4 | |
| 5 | /-! # Line Bundle Local Generators -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.LineBundleLocalGenerators.Projective |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Rank-one generators and frames for free sheaf modules. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | variable {C : Type} [SmallCategory C] {J : GrothendieckTopology C} |
| 18 | (R : Sheaf J RingCat.{0}) [HasWeakSheafify J AddCommGrpCat.{0}] |
| 19 | [J.WEqualsLocallyBijective AddCommGrpCat.{0}] |
| 20 | |
| 21 | def rankOneFreeIso (M : SheafOfModules.{0} R) (e : M ≅ SheafOfModules.unit R) : |
| 22 | SheafOfModules.free (R := R) PUnit ≅ M := |
| 23 | coproductUniqueIso (fun _ : PUnit => SheafOfModules.unit R) ≪≫ e.symm |
| 24 | |
| 25 | def rankOneGenerators (M : SheafOfModules.{0} R) (e : M ≅ SheafOfModules.unit R) : |
| 26 | M.GeneratingSections := |
| 27 | (SheafOfModules.free.generatingSections PUnit).ofEpi (rankOneFreeIso R M e).hom |
| 28 | |
| 29 | set_option backward.isDefEq.respectTransparency false in |
| 30 | instance rankOneGenerators_isIso (M : SheafOfModules.{0} R) |
| 31 | (e : M ≅ SheafOfModules.unit R) : IsIso (rankOneGenerators R M e).π := by |
| 32 | unfold rankOneGenerators |
| 33 | rw [SheafOfModules.GeneratingSections.ofEpi_π, |
| 34 | SheafOfModules.free.generatingSections_π] |
| 35 | change IsIso (𝟙 (SheafOfModules.free (R := R) PUnit) ≫ (rankOneFreeIso R M e).hom) |
| 36 | rw [Category.id_comp] |
| 37 | infer_instance |
| 38 | |
| 39 | instance rankOneGenerators_finite (M : SheafOfModules.{0} R) |
| 40 | (e : M ≅ SheafOfModules.unit R) : (rankOneGenerators R M e).IsFiniteType where |
| 41 | finite := inferInstanceAs (Finite PUnit) |
| 42 | |
| 43 | end |
| 44 | |
| 45 | /-! Local generators and local freeness of the actual ProjectiveCohomology line-bundle sheaves. -/ |
| 46 | |
| 47 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 48 | |
| 49 | def lineBundleLocalGenerators (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : Sheaves.Projective.LineBundle A) : |
| 50 | L.sheaf.LocalGeneratorsData where |
| 51 | I := A.carrier |
| 52 | X := L.trivializingOpen |
| 53 | coversTop := by |
| 54 | rw [Opens.coversTop_iff] |
| 55 | apply IsOpenCover.mk |
| 56 | apply top_unique |
| 57 | intro x _ |
| 58 | exact Opens.mem_iSup.mpr ⟨x, L.mem_trivializingOpen x⟩ |
| 59 | generators x := rankOneGenerators _ _ |
| 60 | (SectionFrames.Projective.chosenSectionFrameOver A L x (L.trivializingOpen x) le_rfl) |
| 61 | |
| 62 | instance lineBundleLocalGenerators_locallyFree (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : Sheaves.Projective.LineBundle A) : |
| 63 | (lineBundleLocalGenerators A L).IsLocallyFreeData where |
| 64 | isIso _x := rankOneGenerators_isIso _ _ _ |
| 65 | |
| 66 | /-- Local triviality of the actual sheaf gives local freeness in the sheaf API. -/ |
| 67 | instance lineBundleSheaf_locallyFree (A : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (L : Sheaves.Projective.LineBundle A) : |
| 68 | L.sheaf.IsLocallyFree := |
| 69 | (lineBundleLocalGenerators A L).isLocallyFree |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.SheafCohomology.LineBundleLocalGenerators.Projective |