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.AlgebraicGeometry.Modules.Tilde |
| 2 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Line.Bundles |
| 3 | import OAI.AlgebraicGeometry.Picard.PoincareBundle.Affine.Descent |
| 4 | |
| 5 | /-! # Tilde Pullback -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.TildePullback |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Affine pullback of module sheaves for PoincareBundle |
| 13 | |
| 14 | The sheaf associated to extension of scalars is identified with the |
| 15 | geometric pullback of the associated sheaf. The construction compares |
| 16 | their adjunctions; it does not assume preservation of line bundles or |
| 17 | effectiveness of descent. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {R S : CommRingCat.{u}} |
| 25 | |
| 26 | /-- Taking sections over the whole spectrum for a sheaf of R-modules. -/ |
| 27 | def sectionsFunctor (R : CommRingCat.{u}) : |
| 28 | TopCat.Sheaf (ModuleCat R) (Spec R) ⥤ ModuleCat R := |
| 29 | TopCat.Sheaf.forget _ _ ⋙ (evaluation _ _).obj (op ⊤) |
| 30 | |
| 31 | /-- Pushforward along an affine morphism commutes with global sections, |
| 32 | with the corresponding restriction of scalars. -/ |
| 33 | def pushforwardSectionsIso (f : R ⟶ S) : |
| 34 | Scheme.Modules.pushforward (Spec.map f) ⋙ moduleSpecΓFunctor (R := R) ≅ |
| 35 | moduleSpecΓFunctor (R := S) ⋙ ModuleCat.restrictScalars f.hom := by |
| 36 | let e := pushforwardCompModulesSpecToSheafIso f |
| 37 | let Γ := sectionsFunctor R |
| 38 | refine NatIso.ofComponents (fun N => Γ.mapIso (e.app N)) ?_ |
| 39 | intro M N g |
| 40 | exact congrArg (fun h => Γ.map h) (e.hom.naturality g) |
| 41 | |
| 42 | /-- The tilde functor commutes with arbitrary affine base change. -/ |
| 43 | def tildePullbackIso (f : R ⟶ S) : |
| 44 | tilde.functor R ⋙ Scheme.Modules.pullback (Spec.map f) ≅ |
| 45 | ModuleCat.extendScalars f.hom ⋙ tilde.functor S := |
| 46 | ((tilde.adjunction (R := R)).comp |
| 47 | (Scheme.Modules.pullbackPushforwardAdjunction (Spec.map f))).leftAdjointUniq |
| 48 | (((ModuleCat.extendRestrictScalarsAdj f.hom).comp (tilde.adjunction (R := S))).ofNatIsoRight |
| 49 | (pushforwardSectionsIso f).symm) |
| 50 | |
| 51 | /-- A module trivialization after localization gives an actual line-bundle |
| 52 | trivialization on the associated principal open subscheme. -/ |
| 53 | def basicOpenTrivialization (M : ModuleCat.{u} R) (r : R) |
| 54 | (eLocal : LocalizedModule.Away r M ≃ₗ[Localization.Away r] Localization.Away r) : |
| 55 | (Scheme.Modules.pullback (Scheme.Opens.ι (X := Spec R) (PrimeSpectrum.basicOpen r))).obj |
| 56 | (tilde M) ≅ Line.Bundles.unitLine |
| 57 | (Scheme.Opens.toScheme (X := Spec R) (PrimeSpectrum.basicOpen r)) := by |
| 58 | let A := CommRingCat.of (Localization.Away r) |
| 59 | let f : R ⟶ A := CommRingCat.ofHom (algebraMap R (Localization.Away r)) |
| 60 | let i := basicOpenIsoSpecAway r |
| 61 | let eModule : (ModuleCat.extendScalars f.hom).obj M ≅ ModuleCat.of A A := by |
| 62 | have halg : f.hom.toAlgebra = inferInstanceAs (Algebra R (Localization.Away r)) := by |
| 63 | exact toAlgebra_algebraMap |
| 64 | have hloc : letI := f.hom.toAlgebra |
| 65 | IsLocalization (.powers r) (Localization.Away r) := by |
| 66 | rw [halg] |
| 67 | infer_instance |
| 68 | have htower : @IsScalarTower R (Localization.Away r) (LocalizedModule.Away r M) |
| 69 | f.hom.toAlgebra.toSMul inferInstance inferInstance := by |
| 70 | rw [halg] |
| 71 | infer_instance |
| 72 | letI : Algebra R (Localization.Away r) := f.hom.toAlgebra |
| 73 | haveI : IsLocalization (.powers r) (Localization.Away r) := hloc |
| 74 | haveI := htower |
| 75 | exact ((IsLocalizedModule.isBaseChange (.powers r) (Localization.Away r) |
| 76 | (LocalizedModule.mkLinearMap (.powers r) M)).equiv ≪≫ₗ eLocal).toModuleIso |
| 77 | exact (Scheme.Modules.pullbackCongr (basicOpenIsoSpecAway_hom_SpecMap r).symm).app |
| 78 | (tilde M) ≪≫ |
| 79 | ((Scheme.Modules.pullbackComp i.hom (Spec.map f)).app (tilde M)).symm ≪≫ |
| 80 | (Scheme.Modules.pullback i.hom).mapIso ((tildePullbackIso f).app M) ≪≫ |
| 81 | (Scheme.Modules.pullback i.hom).mapIso |
| 82 | ((tilde.functor A).mapIso eModule ≪≫ tildeSelf) ≪≫ |
| 83 | Line.Bundles.pullbackUnitIso i.hom |
| 84 | |
| 85 | /-- Invertible modules give genuine algebraic line bundles on their spectra. -/ |
| 86 | theorem isLine_tilde_of_invertible (M : ModuleCat.{u} R) [Module.Invertible R M] : |
| 87 | Line.Bundles.IsLine (tilde M) := by |
| 88 | classical |
| 89 | intro x |
| 90 | obtain ⟨s, hs, hfree⟩ := Module.Invertible.exists_finset_free_localization R M |
| 91 | let p : PrimeSpectrum R := x |
| 92 | have hex : ∃ r ∈ s, r ∉ p.asIdeal := by |
| 93 | by_contra! h |
| 94 | have hle : Ideal.span (s : Set R) ≤ p.asIdeal := Ideal.span_le.mpr h |
| 95 | rw [hs] at hle |
| 96 | exact p.isPrime.ne_top (top_le_iff.mp hle) |
| 97 | obtain ⟨r, hr, hxr⟩ := hex |
| 98 | have : Module.Free (Localization.Away r) (LocalizedModule.Away r M) := hfree r hr |
| 99 | obtain ⟨eLocal⟩ := (Module.Invertible.free_iff_linearEquiv |
| 100 | (R := Localization.Away r) (M := LocalizedModule.Away r M)).mp inferInstance |
| 101 | exact ⟨PrimeSpectrum.basicOpen r, hxr, ⟨basicOpenTrivialization M r eLocal⟩⟩ |
| 102 | |
| 103 | /-- The line bundle associated to an invertible module. -/ |
| 104 | def lineBundleOfInvertible (M : ModuleCat.{u} R) [Module.Invertible R M] : |
| 105 | Line.Bundles.LineBundle (Spec R) := |
| 106 | ⟨tilde M, isLine_tilde_of_invertible M⟩ |
| 107 | |
| 108 | /-- The algebraic line bundle obtained from affine line-module descent data. -/ |
| 109 | def descendedLineBundle [IsNoetherianRing R] (f : R ⟶ S) |
| 110 | (hf : f.hom.FaithfullyFlat) (D : Affine.Descent.ModuleDatum f.hom) |
| 111 | [Module.Invertible S D.A] : Line.Bundles.LineBundle (Spec R) := by |
| 112 | have := Affine.Descent.descendedModule_invertible f.hom hf D |
| 113 | exact lineBundleOfInvertible (Affine.Descent.descendedModule f.hom hf D) |
| 114 | |
| 115 | /-- Geometric pullback of the descended line bundle recovers the sheaf |
| 116 | associated with the line module on the cover. -/ |
| 117 | def descendedLineBundlePullbackIso [IsNoetherianRing R] (f : R ⟶ S) |
| 118 | (hf : f.hom.FaithfullyFlat) (D : Affine.Descent.ModuleDatum f.hom) |
| 119 | [Module.Invertible S D.A] : |
| 120 | (Scheme.Modules.pullback (Spec.map f)).obj (descendedLineBundle f hf D).sheaf ≅ |
| 121 | tilde D.A := |
| 122 | (tildePullbackIso f).app (Affine.Descent.descendedModule f.hom hf D) ≪≫ |
| 123 | (tilde.functor S).mapIso (Affine.Descent.baseChangeIso f.hom hf D) |
| 124 | |
| 125 | end |
| 126 | |
| 127 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.TildePullback |