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.AbelianModuli.HilbertConstruction.Affine.BaseBasisEmbedding |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cartesian.SectionBasis |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.ProjectiveTargetIso |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ClosedOf |
| 5 | |
| 6 | /-! # Basis Embedding Field Criterion -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasisEmbeddingFieldCriterion |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A finite map defined by a complete section basis over an affine spectrum |
| 13 | is a closed immersion when its section comparisons and power factorizations |
| 14 | hold on every field-valued fiber. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | theorem affine_basis_sectionMap_closedImmersion_of_field_factorizations |
| 21 | {R : Type u} [CommRing R] {X : Scheme.{u}} (f : X ⟶ Spec (.of R)) [IsProper f] |
| 22 | (L : Line.Bundles.LineBundle X) {n : ℕ} |
| 23 | (B : Module.Basis (Fin (n + 1)) Γ(Spec (.of R), ⊤) |
| 24 | ((Coefficient.GlobalSectionsFunctor.coefficientGlobalSectionsFunctor f.appTop.hom).obj L.sheaf)) |
| 25 | (hs : ∀ x : X, ∃ i, x ∈ Ample.LineBundles.sectionNonvanishing (Coefficient.RingSectionBasis.coefficientRingBasisFamily f.appTop.hom L.sheaf B i)) |
| 26 | [IsFinite (SectionsProjectiveMorphism.sectionProjectiveMorphism f (Coefficient.RingSectionBasis.coefficientRingBasisFamily f.appTop.hom L.sheaf B) hs).left] |
| 27 | (hBC : ∀ (K : Type u) [Field K] (b : Spec (.of K) ⟶ Spec (.of R)), |
| 28 | Function.Bijective ((Cartesian.ModuleTensorComparison.baseChangeModuleTensorComparison (IsPullback.of_hasPullback f b) L.sheaf).app (.op ⊤))) |
| 29 | (hfactor : ∀ (K : Type u) [Field K] (b : Spec (.of K) ⟶ Spec (.of R)) |
| 30 | (m : ℕ), 0 < m → Section.FactorizationSpans.SectionFactorizationSpan (Line.Bundles.structureModule (pullback f b)) |
| 31 | (((L.pullback (pullback.fst f b)).tensorPower m).sheaf) |
| 32 | (((L.pullback (pullback.fst f b)).tensorPower (1 + m)).sheaf)) : |
| 33 | IsClosedImmersion (SectionsProjectiveMorphism.sectionProjectiveMorphism f (Coefficient.RingSectionBasis.coefficientRingBasisFamily f.appTop.hom L.sheaf B) hs).left := by |
| 34 | let s := Coefficient.RingSectionBasis.coefficientRingBasisFamily f.appTop.hom L.sheaf B |
| 35 | let j := SectionsProjectiveMorphism.sectionProjectiveMorphism f s hs |
| 36 | apply Finite.ClosedOf.finite_overMap_closedImmersion_of_field_baseChanges R j |
| 37 | intro K _ _ |
| 38 | let b := Spec.map (CommRingCat.ofHom (algebraMap R K)) |
| 39 | let a := pullback.fst f b |
| 40 | let q := pullback.snd f b |
| 41 | let H := IsPullback.of_hasPullback f b |
| 42 | let LK := L.pullback a |
| 43 | let BK := Cartesian.SectionBasis.cartesianSectionBasis H L.sheaf (hBC K b) B |
| 44 | let t := Coefficient.RingSectionBasis.coefficientRingBasisFamily q.appTop.hom LK.sheaf BK |
| 45 | have ht : ∀ y : (pullback f b : Scheme.{u}), ∃ i, y ∈ Ample.LineBundles.sectionNonvanishing (Ample.LineBundles.pullbackSection a (s i)) := |
| 46 | Section.ChartArbitraryPullback.lineBundleSections_pullback_covers a L s hs |
| 47 | have het : t = fun i => Ample.LineBundles.pullbackSection a (s i) := |
| 48 | funext (Cartesian.SectionBasis.cartesianSectionBasis_family H L.sheaf (hBC K b) B) |
| 49 | have htB : ∀ y : (pullback f b : Scheme.{u}), ∃ i, y ∈ Ample.LineBundles.sectionNonvanishing (t i) := het.symm ▸ ht |
| 50 | let jK := SectionsProjectiveMorphism.sectionProjectiveMorphism q (fun i => Ample.LineBundles.pullbackSection a (s i)) ht |
| 51 | have HJ : IsPullback a jK.left j.left (RelativeProjective.BaseMaps.relativeProjectiveBaseMap b n) := |
| 52 | Section.ProjectiveBaseChange.sectionProjectiveMorphism_isPullback a b f q H L s hs ht |
| 53 | have : IsFinite jK.left := MorphismProperty.of_isPullback HJ inferInstance |
| 54 | have hej : SectionsProjectiveMorphism.sectionProjectiveMorphism q t htB = jK := |
| 55 | Section.ProjectiveTargetIso.sectionProjectiveMorphism_congr q het htB ht |
| 56 | have : IsFinite (SectionsProjectiveMorphism.sectionProjectiveMorphism q t htB).left := hej.symm ▸ inferInstance |
| 57 | have : IsProper q := inferInstance |
| 58 | have : CompactSpace (pullback f b : Scheme.{u}) := QuasiCompact.compactSpace_of_compactSpace q |
| 59 | have : (pullback f b).IsSeparated := ⟨by rw [← terminal.comp_from q]; infer_instance⟩ |
| 60 | have hcB : IsClosedImmersion (SectionsProjectiveMorphism.sectionProjectiveMorphism q t htB).left := |
| 61 | BaseBasisEmbedding.coefficientRingBasisFamily_closedImmersion_of_finite q LK BK (hfactor K b) htB |
| 62 | have : IsClosedImmersion jK.left := hej ▸ hcB |
| 63 | let HP := RelativeProjective.BaseMaps.relativeProjectiveBaseMap_isPullback b n |
| 64 | have he : jK.left ≫ HP.isoPullback.hom = ((Over.pullback b).map j).left := by |
| 65 | apply pullback.hom_ext |
| 66 | · rw [Category.assoc, HP.isoPullback_hom_fst, ← HJ.w] |
| 67 | simp only [Over.pullback_map_left, pullback.lift_fst] |
| 68 | rfl |
| 69 | · rw [Category.assoc, HP.isoPullback_hom_snd, SectionsProjectiveMorphism.sectionProjectiveMorphism_over] |
| 70 | simp only [Over.pullback_map_left, pullback.lift_snd] |
| 71 | rfl |
| 72 | have hc : IsClosedImmersion (jK.left ≫ HP.isoPullback.hom) := inferInstance |
| 73 | exact he ▸ hc |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasisEmbeddingFieldCriterion |