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.Divisors.LineBundles.Affine.OpenPrincipalIdealRestriction |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Scheme.IdealOpenGenerator |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Scheme.ModuleBasisIso |
| 4 | |
| 5 | /-! # Open Principal Ideal Module -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.OpenPrincipalIdealModule.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A regular principal image ideal on an affine open supplies a |
| 12 | genuine local frame of the ambient scheme's ideal module. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 15 | |
| 16 | variable {X Z : Scheme.{0}} (f : Z ⟶ X) [QuasiCompact f] |
| 17 | (U : X.affineOpens) (t : Γ(X, U.1)) |
| 18 | (hker : RingHom.ker (f.app U.1).hom = Ideal.span {t}) |
| 19 | |
| 20 | def affineOpenPrincipalIdealSection : Γ(LineBundles.Scheme.SchemeIdealModule.BundleCycles.schemeIdealModule f, U.1) := |
| 21 | (LineBundles.Scheme.IdealModule.BundleCycles.schemeIdealModuleSectionsIso f U.1).inv ⟨t, hker.symm ▸ Ideal.subset_span (Set.mem_singleton t)⟩ |
| 22 | |
| 23 | omit [QuasiCompact f] in |
| 24 | theorem affineOpenPrincipalIdealSection_image : |
| 25 | (LineBundles.Scheme.SchemeIdealModule.BundleCycles.schemeIdealModuleInclusion f).app U.1 (affineOpenPrincipalIdealSection f U t hker) = t := |
| 26 | LineBundles.Scheme.IdealModule.BundleCycles.schemeIdealModuleSectionsIso_inv_apply f U.1 _ |
| 27 | |
| 28 | theorem affineOpenPrincipalIdealSectionHom_isIso (ht : IsRegular t) : |
| 29 | IsIso (Module.SectionHom.BundleCycles.moduleSectionHomOnOpen (LineBundles.Scheme.SchemeIdealModule.BundleCycles.schemeIdealModule f) U.1 (affineOpenPrincipalIdealSection f U t hker)) := by |
| 30 | let : IsAffine U.1.toScheme := U.2 |
| 31 | apply LineBundles.Scheme.ModuleBasisIso.BundleCycles.schemeModule_isIso_of_basis _ (isBasis_basicOpen U.1.toScheme) |
| 32 | rintro V ⟨r, rfl⟩ |
| 33 | have hi : U.1.ι ''ᵁ U.1.toScheme.basicOpen r = X.basicOpen (U.1.topIso.hom r) := by |
| 34 | have he : U.1.topIso.inv (U.1.topIso.hom r) = r := |
| 35 | ConcreteCategory.congr_hom U.1.topIso.hom_inv_id r |
| 36 | exact (congrArg (fun a => U.1.ι ''ᵁ U.1.toScheme.basicOpen a) he).symm.trans |
| 37 | (U.1.ι_image_basicOpen_topIso_inv (U.1.topIso.hom r)) |
| 38 | apply LineBundles.Scheme.IdealOpenGenerator.BundleCycles.schemeIdealOpenSectionHom_bijective |
| 39 | · rw [affineOpenPrincipalIdealSection_image] |
| 40 | have H : ∀ (W : X.Opens) (hWU : W ≤ U.1), W = X.basicOpen (U.1.topIso.hom r) → |
| 41 | IsRegular (X.presheaf.map (homOfLE hWU).op t) := by |
| 42 | intro W hWU hW |
| 43 | subst W |
| 44 | exact OpenPrincipalIdealRestriction.BundleCycles.affineOpenPrincipal_regular_restriction U t ht (U.1.topIso.hom r) |
| 45 | exact H _ _ hi |
| 46 | · rw [affineOpenPrincipalIdealSection_image] |
| 47 | have H : ∀ (W : X.Opens) (hWU : W ≤ U.1), W = X.basicOpen (U.1.topIso.hom r) → |
| 48 | RingHom.ker (f.app W).hom = Ideal.span {X.presheaf.map (homOfLE hWU).op t} := by |
| 49 | intro W hWU hW |
| 50 | subst W |
| 51 | exact OpenPrincipalIdealRestriction.BundleCycles.affineOpenPrincipal_kernel_restriction f U t hker (U.1.topIso.hom r) |
| 52 | exact H _ _ hi |
| 53 | |
| 54 | def affineOpenPrincipalIdealModuleIso (ht : IsRegular t) : |
| 55 | (LineBundles.Scheme.SchemeIdealModule.BundleCycles.schemeIdealModule f).restrict U.1.ι ≅ DivisorClass.Chern.Line.Bundles.Construction.structureModule U.1.toScheme := by |
| 56 | let := affineOpenPrincipalIdealSectionHom_isIso f U t hker ht |
| 57 | exact (asIso (Module.SectionHom.BundleCycles.moduleSectionHomOnOpen (LineBundles.Scheme.SchemeIdealModule.BundleCycles.schemeIdealModule f) U.1 (affineOpenPrincipalIdealSection f U t hker))).symm |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.OpenPrincipalIdealModule.BundleCycles |