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.Stalk |
| 2 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | import Mathlib.CategoryTheory.MorphismProperty.Limits |
| 5 | import Mathlib.RingTheory.Flat.Localization |
| 6 | |
| 7 | /-! # Local Spectra -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.LocalSpectra |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Canonical local-spectrum morphisms are flat, and flatness can be |
| 14 | recovered before postcomposition with a scheme monomorphism. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem flat_affine_fromSpecStalk {X : Scheme.{u}} {U : X.Opens} |
| 21 | (hU : IsAffineOpen U) (x : X) (hx : x ∈ U) : Flat (hU.fromSpecStalk hx) := by |
| 22 | let : Algebra Γ(X, U) (X.presheaf.stalk x) := (X.presheaf.germ U x hx).hom.toAlgebra |
| 23 | let := hU.isLocalization_stalk ⟨x, hx⟩ |
| 24 | have hg : Flat (Spec.map (X.presheaf.germ U x hx)) := by |
| 25 | rw [Flat.SpecMap_iff] |
| 26 | change Module.Flat Γ(X, U) (X.presheaf.stalk x) |
| 27 | exact IsLocalization.flat _ (hU.primeIdealOf ⟨x, hx⟩).asIdeal.primeCompl |
| 28 | exact inferInstanceAs (Flat (Spec.map (X.presheaf.germ U x hx) ≫ hU.fromSpec)) |
| 29 | |
| 30 | theorem flat_fromSpecStalk (X : Scheme.{u}) (x : X) : Flat (X.fromSpecStalk x) := by |
| 31 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, _⟩ := X.isBasis_affineOpens.exists_subset_of_mem_open |
| 32 | (Set.mem_univ x) isOpen_univ |
| 33 | rw [← hU.fromSpecStalk_eq_fromSpecStalk hxU] |
| 34 | exact flat_affine_fromSpecStalk hU x hxU |
| 35 | |
| 36 | theorem flat_of_comp_mono {X Y Z : Scheme.{u}} (f : X ⟶ Y) (g : Y ⟶ Z) |
| 37 | [Mono g] [Flat (f ≫ g)] : Flat f := by |
| 38 | let P : MorphismProperty Scheme.{u} := @Flat.{u} |
| 39 | let : P.IsStableUnderBaseChange := Flat.isStableUnderBaseChange |
| 40 | exact P.of_postcomp (W' := MorphismProperty.monomorphisms Scheme.{u}) |
| 41 | f g inferInstance inferInstance |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.LocalSpectra |