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.PELModuli.IntegralModel.Finite.FiberSectionLifts |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.SpanGeneration |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.GenerationNeighborhood |
| 4 | |
| 5 | /-! # Flat Generation Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Proper.FlatGenerationNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual fiber section lifting and properness construct a neighborhood |
| 12 | on which a finite family of global sections generates the line bundle. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 17 | open _root_.AlgebraicGeometry.Scheme.Modules |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.PELModuli.IntegralModel.Section.GenerationNeighborhood.PolarizationEmbedding |
| 20 | |
| 21 | theorem properFlat_exists_generating_sections_near_fiber |
| 22 | {X S : Scheme.{0}} [IsAffine S] [IsNoetherianRing Γ(S, ⊤)] |
| 23 | (f : X ⟶ S) [IsProper f] [Flat f] (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle X) (x : S) |
| 24 | [Subsingleton (SheafCohomology.AffineH.Projective.H ((Scheme.Modules.pullback (f.fiberι x)).obj L.sheaf) 1)] |
| 25 | (hgen : ∀ y : f.fiber x, ∃ s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule (f.fiber x) ⟶ |
| 26 | (L.pullback (f.fiberι x)).sheaf, y ∈ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s) : |
| 27 | ∃ (n : ℕ) (s : Fin (n + 1) → (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X ⟶ L.sheaf)) |
| 28 | (U : S.Opens), x ∈ U ∧ IsAffineOpen U ∧ |
| 29 | ∀ y : (f ⁻¹ᵁ U).toScheme, ∃ i, y ∈ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing |
| 30 | (AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection (f ⁻¹ᵁ U).ι (s i)) := by |
| 31 | obtain ⟨n, v, hv⟩ := Finite.FiberSectionLifts.properFlat_exists_finite_fiber_section_lifts f L x |
| 32 | let s : Fin (n + 1) → (AbelianModuli.HilbertConstruction.Line.Bundles.structureModule X ⟶ L.sheaf) := |
| 33 | Fin.lastCases 0 (fun i => (AbelianModuli.HilbertConstruction.Global.Sections.moduleSectionHomEquiv L.sheaf).symm (v i)) |
| 34 | have hfib : ∀ y : f.fiber x, ∃ i, y ∈ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing |
| 35 | (AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection (f.fiberι x) (s i)) := by |
| 36 | intro y |
| 37 | obtain ⟨i, hi⟩ := Section.SpanGeneration.pulled_section_family_covers_of_span (f.fiberι x) |
| 38 | (f.fiberToSpecResidueField x) L v hv hgen y |
| 39 | exact ⟨i.castSucc, by simpa only [s, Fin.lastCases_castSucc] using hi⟩ |
| 40 | have hx : x ∈ Section.GenerationNeighborhood.PolarizationEmbedding.sectionGenerationOpen f L s := by |
| 41 | apply (Section.GenerationNeighborhood.PolarizationEmbedding.mem_sectionGenerationOpen f L s x).mpr |
| 42 | intro y hy |
| 43 | have hr : y ∈ Set.range (f.fiberι x) := by |
| 44 | rw [f.range_fiberι x] |
| 45 | exact hy |
| 46 | obtain ⟨z, rfl⟩ := hr |
| 47 | obtain ⟨i, hi⟩ := hfib z |
| 48 | refine ⟨i, ?_⟩ |
| 49 | rw [AbelianModuli.HilbertConstruction.LineBundle.NonvanishingBaseChange.sectionNonvanishing_lineBundle_baseChange _ L] at hi |
| 50 | exact hi |
| 51 | obtain ⟨U, hU, hxU, hsub⟩ := exists_isAffineOpen_mem_and_subset hx |
| 52 | refine ⟨n, s, U, hxU, hU, ?_⟩ |
| 53 | intro y |
| 54 | obtain ⟨i, hi⟩ := (Section.GenerationNeighborhood.PolarizationEmbedding.mem_sectionGenerationOpen f L s (f y.val)).mp |
| 55 | (hsub y.property) y.val rfl |
| 56 | refine ⟨i, ?_⟩ |
| 57 | rw [AbelianModuli.HilbertConstruction.LineBundle.NonvanishingBaseChange.sectionNonvanishing_lineBundle_baseChange _ L] |
| 58 | exact hi |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Proper.FlatGenerationNeighborhood |