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.ProperFlat.FiberSectionSpanning |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Scalar.SectionNonvanishing |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Section.LinearCombinationNonvanishing |
| 4 | |
| 5 | /-! # Fiber Section Generation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProperFlat.FiberSectionGeneration |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Global generation on a fiber with vanishing first cohomology gives actual global sections nonvanishing at every point of that fiber. Compactness supplies a finite family. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | |
| 15 | theorem properFlat_global_sections_cover_fiber |
| 16 | {X S : Scheme.{u}} [IsAffine S] [IsNoetherianRing Γ(S, ⊤)] |
| 17 | (f : X ⟶ S) [IsProper f] [Flat f] (L : Line.Bundles.LineBundle X) (x : S) |
| 18 | (hH : Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (L.pullback (f.fiberι x)).sheaf 1)) |
| 19 | (hgen : ∀ y : f.fiber x, ∃ t : Line.Bundles.structureModule (f.fiber x) ⟶ |
| 20 | (L.pullback (f.fiberι x)).sheaf, y ∈ Ample.LineBundles.sectionNonvanishing t) : |
| 21 | ∀ y : f.fiber x, ∃ s : Line.Bundles.structureModule X ⟶ L.sheaf, |
| 22 | f.fiberι x y ∈ Ample.LineBundles.sectionNonvanishing s := by |
| 23 | intro y |
| 24 | obtain ⟨t, hyt⟩ := hgen y |
| 25 | obtain ⟨k, c, s, ht⟩ := FiberSectionSpanning.properFlat_fiber_sections_spanned f L x hH t |
| 26 | have hy : y ∈ Ample.LineBundles.sectionNonvanishing (∑ i, |
| 27 | Scalar.SectionValues.scalarSection ((f.fiberToSpecResidueField x).appTop (c i)) |
| 28 | (Ample.LineBundles.pullbackSection (f.fiberι x) (s i))) := |
| 29 | (congrArg (fun z => y ∈ Ample.LineBundles.sectionNonvanishing z) ht).mp hyt |
| 30 | obtain ⟨i, _, hi⟩ := (L.pullback (f.fiberι x)).mem_sectionNonvanishing_sum Finset.univ |
| 31 | (fun i => Scalar.SectionValues.scalarSection ((f.fiberToSpecResidueField x).appTop (c i)) |
| 32 | (Ample.LineBundles.pullbackSection (f.fiberι x) (s i))) y hy |
| 33 | have hiy := Scalar.SectionNonvanishing.scalarSection_nonvanishing_le (L.pullback (f.fiberι x)) |
| 34 | ((f.fiberToSpecResidueField x).appTop (c i)) (Ample.LineBundles.pullbackSection (f.fiberι x) (s i)) hi |
| 35 | exact ⟨s i, (congrArg (fun U : (f.fiber x).Opens => y ∈ U) |
| 36 | (LineBundle.NonvanishingBaseChange.sectionNonvanishing_lineBundle_baseChange (f.fiberι x) L (s i))).mp hiy⟩ |
| 37 | |
| 38 | theorem properFlat_finite_global_sections_cover_fiber |
| 39 | {X S : Scheme.{u}} [IsAffine S] [IsNoetherianRing Γ(S, ⊤)] |
| 40 | (f : X ⟶ S) [IsProper f] [Flat f] (L : Line.Bundles.LineBundle X) (x : S) |
| 41 | (hH : Subsingleton (Zariski.Cohomology.ZariskiCohomology.H (L.pullback (f.fiberι x)).sheaf 1)) |
| 42 | (hgen : ∀ y : f.fiber x, ∃ t : Line.Bundles.structureModule (f.fiber x) ⟶ |
| 43 | (L.pullback (f.fiberι x)).sheaf, y ∈ Ample.LineBundles.sectionNonvanishing t) : |
| 44 | ∃ (n : ℕ) (s : Fin (n + 1) → (Line.Bundles.structureModule X ⟶ L.sheaf)), |
| 45 | ∀ y : f.fiber x, ∃ i, f.fiberι x y ∈ Ample.LineBundles.sectionNonvanishing (s i) := by |
| 46 | classical |
| 47 | have : CompactSpace (f.fiber x) := |
| 48 | QuasiCompact.compactSpace_of_compactSpace (f.fiberToSpecResidueField x) |
| 49 | choose s hs using properFlat_global_sections_cover_fiber f L x hH hgen |
| 50 | obtain ⟨t, ht⟩ := isCompact_univ.elim_finite_subcover |
| 51 | (fun y => (f.fiberι x ⁻¹ᵁ Ample.LineBundles.sectionNonvanishing (s y) : Set (f.fiber x))) |
| 52 | (fun y => (f.fiberι x ⁻¹ᵁ Ample.LineBundles.sectionNonvanishing (s y)).isOpen) |
| 53 | (fun y _ => Set.mem_iUnion.mpr ⟨y, hs y⟩) |
| 54 | let e := Fintype.equivFin t |
| 55 | let v : Fin (Fintype.card t + 1) → (Line.Bundles.structureModule X ⟶ L.sheaf) := |
| 56 | Fin.lastCases 0 (fun i => s (e.symm i).val) |
| 57 | refine ⟨Fintype.card t, v, fun y => ?_⟩ |
| 58 | obtain ⟨z, hz, hyz⟩ := Set.mem_iUnion₂.mp (ht (Set.mem_univ y)) |
| 59 | change f.fiberι x y ∈ Ample.LineBundles.sectionNonvanishing (s z) at hyz |
| 60 | refine ⟨(e ⟨z, hz⟩).castSucc, ?_⟩ |
| 61 | have he : (e.symm (e ⟨z, hz⟩)).val = z := congrArg Subtype.val (e.symm_apply_apply ⟨z, hz⟩) |
| 62 | simpa only [v, Fin.lastCases_castSucc, he] using hyz |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProperFlat.FiberSectionGeneration |