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.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundle |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.LocallyFree |
| 3 | import Mathlib.CategoryTheory.Sites.Spaces |
| 4 | |
| 5 | /-! # Line Bundle Quasicoherent -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundleQuasicoherent.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Openness line bundles are locally free and quasicoherent in the native sheaf API. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u v w |
| 16 | |
| 17 | def freeSingletonSheafIso |
| 18 | {C : Type v} [Category.{w} C] {J : GrothendieckTopology C} |
| 19 | (R : Sheaf J RingCat.{u}) |
| 20 | [HasWeakSheafify J AddCommGrpCat.{u}] [J.WEqualsLocallyBijective AddCommGrpCat.{u}] : |
| 21 | SheafOfModules.free (R := R) PUnit.{u+1} ≅ SheafOfModules.unit R := |
| 22 | coproductUniqueIso (fun _ : PUnit.{u+1} ↦ SheafOfModules.unit R) |
| 23 | |
| 24 | def unitGeneratingSections |
| 25 | {C : Type v} [Category.{w} C] {J : GrothendieckTopology C} |
| 26 | (R : Sheaf J RingCat.{u}) |
| 27 | [HasWeakSheafify J AddCommGrpCat.{u}] [J.WEqualsLocallyBijective AddCommGrpCat.{u}] : |
| 28 | (SheafOfModules.unit R).GeneratingSections := |
| 29 | (SheafOfModules.free.generatingSections PUnit.{u+1}).ofEpi (freeSingletonSheafIso R).hom |
| 30 | |
| 31 | theorem unitGeneratingSections_isIso |
| 32 | {C : Type v} [Category.{w} C] {J : GrothendieckTopology C} |
| 33 | (R : Sheaf J RingCat.{u}) |
| 34 | [HasWeakSheafify J AddCommGrpCat.{u}] [J.WEqualsLocallyBijective AddCommGrpCat.{u}] : |
| 35 | IsIso (unitGeneratingSections R).π := by |
| 36 | dsimp [unitGeneratingSections] |
| 37 | rw [SheafOfModules.GeneratingSections.ofEpi_π, |
| 38 | SheafOfModules.free.generatingSections_π] |
| 39 | exact IsIso.comp_isIso' (IsIso.id _) (freeSingletonSheafIso R).isIso_hom |
| 40 | |
| 41 | /-- A line-bundle chart also trivializes the restriction to the corresponding slice site. -/ |
| 42 | def lineBundleOverTrivialization {X : Scheme.{u}} {M : X.Modules} |
| 43 | (U : X.Opens) |
| 44 | (e : (Scheme.Modules.pullback U.ι).obj M ≅ LineBundle.Construction.structureSheafModule U.toScheme) : |
| 45 | M.over U ≅ SheafOfModules.unit (X.ringCatSheaf.over U) := |
| 46 | (Scheme.Modules.overEquiv U).fullyFaithfulFunctor.preimageIso |
| 47 | ((Scheme.Modules.overFunctorEquiv U).app M ≪≫ |
| 48 | (Scheme.Modules.restrictFunctorIsoPullback U.ι).app M ≪≫ e ≪≫ |
| 49 | (U.sheafOfModulesEquivOverUnit X.ringCatSheaf).symm) |
| 50 | |
| 51 | theorem exists_finite_local_free_data_of_isLineBundle {X : Scheme.{u}} (M : X.Modules) |
| 52 | (hM : LineBundle.Construction.IsLineBundle M) : |
| 53 | ∃ q : SheafOfModules.LocalGeneratorsData.{u} M, q.IsLocallyFreeData ∧ q.IsFiniteType := by |
| 54 | choose U hx e using hM |
| 55 | let t (x : X) := lineBundleOverTrivialization (U x) (e x).some |
| 56 | let q : M.LocalGeneratorsData := |
| 57 | { I := X |
| 58 | X := U |
| 59 | coversTop := by |
| 60 | rw [_root_.Opens.coversTop_iff] |
| 61 | change iSup U = ⊤ |
| 62 | apply le_antisymm le_top |
| 63 | intro x _ |
| 64 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨x, hx x⟩ |
| 65 | generators x := (unitGeneratingSections (X.ringCatSheaf.over (U x))).ofEpi (t x).inv } |
| 66 | have : q.IsLocallyFreeData := by |
| 67 | constructor |
| 68 | intro x |
| 69 | change IsIso ((unitGeneratingSections (X.ringCatSheaf.over (U x))).ofEpi (t x).inv).π |
| 70 | rw [SheafOfModules.GeneratingSections.ofEpi_π] |
| 71 | exact IsIso.comp_isIso' (unitGeneratingSections_isIso (X.ringCatSheaf.over (U x))) |
| 72 | (t x).isIso_inv |
| 73 | refine ⟨q, inferInstance, ?_⟩ |
| 74 | constructor |
| 75 | intro x |
| 76 | constructor |
| 77 | change Finite PUnit.{u+1} |
| 78 | infer_instance |
| 79 | |
| 80 | theorem isLocallyFree_of_isLineBundle {X : Scheme.{u}} (M : X.Modules) |
| 81 | (hM : LineBundle.Construction.IsLineBundle M) : M.IsLocallyFree := by |
| 82 | obtain ⟨q, hq, _⟩ := exists_finite_local_free_data_of_isLineBundle M hM |
| 83 | let := hq |
| 84 | exact q.isLocallyFree |
| 85 | |
| 86 | theorem isQuasicoherent_of_isLineBundle {X : Scheme.{u}} (M : X.Modules) |
| 87 | (hM : LineBundle.Construction.IsLineBundle M) : M.IsQuasicoherent := by |
| 88 | obtain ⟨q, hq⟩ := (isLocallyFree_of_isLineBundle M hM).exists_isLocallyFreeData |
| 89 | let := hq |
| 90 | exact q.quasiCoherentData.isQuasicoherent |
| 91 | |
| 92 | /-- Line bundles are finitely presented as sheaves of modules. -/ |
| 93 | theorem isFinitePresentation_of_isLineBundle {X : Scheme.{u}} (M : X.Modules) |
| 94 | (hM : LineBundle.Construction.IsLineBundle M) : M.IsFinitePresentation := by |
| 95 | obtain ⟨q, hq, hfin⟩ := exists_finite_local_free_data_of_isLineBundle M hM |
| 96 | let := hq |
| 97 | refine SheafOfModules.IsFinitePresentation.mk (M := M) ⟨q.quasiCoherentData, ?_⟩ |
| 98 | constructor |
| 99 | intro i |
| 100 | constructor |
| 101 | · exact hfin.isFiniteType i |
| 102 | · constructor |
| 103 | change Finite (ULift.{u} Empty) |
| 104 | infer_instance |
| 105 | |
| 106 | end |
| 107 | |
| 108 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.LineBundleQuasicoherent.Construction |