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.Projective.Invertible |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Sheaf.LocallyFree |
| 3 | import Mathlib.CategoryTheory.Sites.Spaces |
| 4 | |
| 5 | /-! # Invertible Finite Presentation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finite presentations from actual rank-one trivializations on an open cover. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | section RankOne |
| 20 | |
| 21 | variable {C : Type u} [SmallCategory C] {J : GrothendieckTopology C} |
| 22 | (R : Sheaf J RingCat.{u}) [HasWeakSheafify J AddCommGrpCat.{u}] |
| 23 | [J.WEqualsLocallyBijective AddCommGrpCat.{u}] |
| 24 | |
| 25 | def rankOneFreeIso (M : SheafOfModules.{u} R) (e : M ≅ SheafOfModules.unit R) : |
| 26 | SheafOfModules.free (R := R) PUnit.{u + 1} ≅ M := |
| 27 | coproductUniqueIso (fun _ : PUnit.{u + 1} => SheafOfModules.unit R) ≪≫ e.symm |
| 28 | |
| 29 | def rankOneGenerators (M : SheafOfModules.{u} R) (e : M ≅ SheafOfModules.unit R) : |
| 30 | M.GeneratingSections := |
| 31 | (SheafOfModules.free.generatingSections PUnit.{u + 1}).ofEpi (rankOneFreeIso R M e).hom |
| 32 | |
| 33 | instance rankOneGenerators_isIso (M : SheafOfModules.{u} R) |
| 34 | (e : M ≅ SheafOfModules.unit R) : IsIso (rankOneGenerators R M e).π := by |
| 35 | unfold rankOneGenerators |
| 36 | rw [SheafOfModules.GeneratingSections.ofEpi_π, |
| 37 | SheafOfModules.free.generatingSections_π] |
| 38 | change IsIso (𝟙 (SheafOfModules.free (R := R) PUnit.{u + 1}) ≫ (rankOneFreeIso R M e).hom) |
| 39 | rw [Category.id_comp] |
| 40 | infer_instance |
| 41 | |
| 42 | instance rankOneGenerators_finite (M : SheafOfModules.{u} R) |
| 43 | (e : M ≅ SheafOfModules.unit R) : (rankOneGenerators R M e).IsFiniteType where |
| 44 | finite := inferInstanceAs (Finite PUnit.{u + 1}) |
| 45 | |
| 46 | end RankOne |
| 47 | |
| 48 | variable {X : Scheme.{u}} {M : X.Modules} |
| 49 | |
| 50 | /-- A chosen cover and genuine rank-one frames over its opens. -/ |
| 51 | structure RankOneCover (M : X.Modules) where |
| 52 | I : Type u |
| 53 | U : I → X.Opens |
| 54 | covers : ⨆ i, U i = ⊤ |
| 55 | frame (i : I) : M.over (U i) ≅ SheafOfModules.unit (X.ringCatSheaf.over (U i)) |
| 56 | |
| 57 | def invertibleRankOneCover (hM : Invertible.Scheme.Modules.IsInvertible M) : RankOneCover M := |
| 58 | Classical.choice (by |
| 59 | rcases hM with ⟨ι, U, hU, he⟩ |
| 60 | refine ⟨{ I := ι, U := U, covers := hU, frame := fun i => ?_ }⟩ |
| 61 | exact Invertible.Scheme.Modules.overTrivializationOfRestrictIso M (U i) |
| 62 | (Invertible.Scheme.Modules.restrictIsoOfPullbackIso M (U i) (Classical.choice (he i)))) |
| 63 | |
| 64 | def rankOneCoverLocalGenerators (D : RankOneCover M) : M.LocalGeneratorsData where |
| 65 | I := D.I |
| 66 | X := D.U |
| 67 | coversTop := (Opens.coversTop_iff (T := X) _).mpr D.covers |
| 68 | generators i := rankOneGenerators _ _ (D.frame i) |
| 69 | |
| 70 | instance rankOneCoverLocalGenerators_locallyFree (D : RankOneCover M) : |
| 71 | (rankOneCoverLocalGenerators D).IsLocallyFreeData where |
| 72 | isIso _ := rankOneGenerators_isIso _ _ _ |
| 73 | |
| 74 | /-- Finiteness of the original local presentation supplied by a rank-one cover. -/ |
| 75 | abbrev rankOneCoverPresentationFinite (D : RankOneCover M) : Prop := |
| 76 | (rankOneCoverLocalGenerators D).quasiCoherentData.IsFinitePresentation |
| 77 | |
| 78 | /-- The usual finite-presentation property of the original scheme module. -/ |
| 79 | abbrev schemeModuleFinitePresentation (N : X.Modules) : Prop := |
| 80 | N.IsFinitePresentation |
| 81 | |
| 82 | /-- The usual quasicoherence property of the original scheme module. -/ |
| 83 | abbrev schemeModuleQuasicoherent (N : X.Modules) : Prop := |
| 84 | N.IsQuasicoherent |
| 85 | |
| 86 | instance rankOneCoverPresentation_finite (D : RankOneCover M) : |
| 87 | rankOneCoverPresentationFinite D where |
| 88 | isFinite_presentation _ := { |
| 89 | isFiniteType_generators := rankOneGenerators_finite _ _ _ |
| 90 | isFiniteType_relations := { finite := inferInstanceAs (Finite (ULift.{u} Empty)) } } |
| 91 | |
| 92 | /-- Rank-one local frames give an actual finite presentation with one generator |
| 93 | and no relations on every cover member. -/ |
| 94 | theorem invertible_finitePresentation (hM : Invertible.Scheme.Modules.IsInvertible M) : |
| 95 | schemeModuleFinitePresentation M := by |
| 96 | refine { exists_quasicoherentData := ?_ } |
| 97 | exact ⟨(rankOneCoverLocalGenerators (invertibleRankOneCover hM)).quasiCoherentData, |
| 98 | rankOneCoverPresentation_finite (invertibleRankOneCover hM)⟩ |
| 99 | |
| 100 | /-- The same explicit local presentation proves quasicoherence. -/ |
| 101 | theorem invertible_quasicoherent (hM : Invertible.Scheme.Modules.IsInvertible M) : |
| 102 | schemeModuleQuasicoherent M := |
| 103 | (rankOneCoverLocalGenerators (invertibleRankOneCover hM)).quasiCoherentData.isQuasicoherent |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation |