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.Relative.ProjectiveAffineNeighborhoods |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.PolarizationEmbedding |
| 3 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 4 | |
| 5 | /-! # Affine Family Neighborhoods -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Polarized.AffineFamilyNeighborhoods |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The total space of an actual polarized family over an affine |
| 14 | noetherian algebra over an infinite field has affine neighborhoods of |
| 15 | every finite set. Its projective embedding is constructed from the |
| 16 | canonical polarization line. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | |
| 22 | theorem affine_polarized_family_finite_set_affine_neighborhood |
| 23 | {K : Type} [Field K] [Infinite K] {S : Scheme.{0}} [IsAffine S] |
| 24 | [Algebra K Γ(S, ⊤)] [IsNoetherianRing Γ(S, ⊤)] |
| 25 | {g N : ℕ} {δ : Fin g → ℕ} (A : AbelianModuli.HilbertConstruction.PolarizationData.PolarizedAbelianWithFullLevel g δ N S) |
| 26 | (F : Set A.abelian.scheme.left) (hF : F.Finite) : |
| 27 | ∃ V : A.abelian.scheme.left.Opens, IsAffineOpen V ∧ F ⊆ V := by |
| 28 | obtain ⟨_, _, L, _, n, s, hs, hi⟩ := Affine.PolarizationEmbedding.polarized_exists_affine_section_embedding A |
| 29 | let i := AbelianModuli.HilbertConstruction.SectionsProjectiveMorphism.sectionProjectiveMorphism A.abelian.scheme.hom s hs |
| 30 | let p := pullback.fst (AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ |
| 31 | have : IsClosedImmersion i.left := hi |
| 32 | have : IsIso p := inferInstanceAs (IsIso |
| 33 | (pullback.fst (AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ)) |
| 34 | have : IsClosedImmersion p := inferInstance |
| 35 | have : IsClosedImmersion (i.left ≫ p) := inferInstance |
| 36 | exact Relative.ProjectiveAffineNeighborhoods.finite_set_affine_neighborhood_of_relative_projective_embedding (K := K) |
| 37 | n (i.left ≫ p) F hF |
| 38 | |
| 39 | end |
| 40 | |
| 41 | /-! A polarized family's total space inherits affine neighborhoods of |
| 42 | finite sets from its noetherian base over an infinite field. -/ |
| 43 | |
| 44 | set_option backward.isDefEq.respectTransparency false |
| 45 | set_option backward.isDefEq.respectTransparency.types false |
| 46 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 47 | |
| 48 | theorem polarized_family_finite_set_affine_neighborhood |
| 49 | {K : Type} [Field K] [Infinite K] {S : Scheme.{0}} [IsLocallyNoetherian S] |
| 50 | (b : S ⟶ Spec (.of K)) |
| 51 | (hS : ∀ F : Set S, F.Finite → ∃ V : S.Opens, IsAffineOpen V ∧ F ⊆ V) |
| 52 | {g N : ℕ} {δ : Fin g → ℕ} (A : AbelianModuli.HilbertConstruction.PolarizationData.PolarizedAbelianWithFullLevel g δ N S) |
| 53 | (F : Set A.abelian.scheme.left) (hF : F.Finite) : |
| 54 | ∃ V : A.abelian.scheme.left.Opens, IsAffineOpen V ∧ F ⊆ V := by |
| 55 | let a := A.abelian.scheme.hom |
| 56 | obtain ⟨U, hU, hFU⟩ := hS (a '' F) (hF.image a) |
| 57 | have : IsAffine U.toScheme := hU |
| 58 | have : IsNoetherianRing Γ(U.toScheme, ⊤) := |
| 59 | IsLocallyNoetherian.component_noetherian ⟨⊤, isAffineOpen_top U.toScheme⟩ |
| 60 | let : Algebra K Γ(U.toScheme, ⊤) := |
| 61 | (((Scheme.ΓSpecIso (.of K)).inv ≫ (U.ι ≫ b).appTop).hom).toAlgebra |
| 62 | let p := pullback.fst a U.ι |
| 63 | have : IsOpenImmersion p := inferInstanceAs (IsOpenImmersion (pullback.fst a U.ι)) |
| 64 | have hF' : (p ⁻¹' F).Finite := Set.Finite.preimage p.injective.injOn hF |
| 65 | obtain ⟨V, hV, hFV⟩ := affine_polarized_family_finite_set_affine_neighborhood (K := K) |
| 66 | (A.pullback U.ι) (p ⁻¹' F) hF' |
| 67 | have : IsAffine V.toScheme := hV |
| 68 | let j := V.ι ≫ p |
| 69 | have : IsOpenImmersion j := inferInstanceAs (IsOpenImmersion (V.ι ≫ p)) |
| 70 | refine ⟨j.opensRange, isAffineOpen_opensRange j, ?_⟩ |
| 71 | intro x hx |
| 72 | have hxU : a x ∈ U := hFU ⟨x, hx, rfl⟩ |
| 73 | have hxrange : x ∈ Set.range p := by |
| 74 | rw [Scheme.Pullback.range_fst, Scheme.Opens.range_ι] |
| 75 | exact hxU |
| 76 | obtain ⟨y, hy⟩ := hxrange |
| 77 | have hyV : y ∈ V := hFV (show p y ∈ F from hy.symm ▸ hx) |
| 78 | exact ⟨⟨y, hyV⟩, hy⟩ |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Polarized.AffineFamilyNeighborhoods |