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.QuasiProjectiveChowCover |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IntegralClosedSupport |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.TypeParameterNoetherian |
| 4 | import Mathlib.AlgebraicGeometry.Limits |
| 5 | |
| 6 | /-! # Quasi Projective Chow Cover -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.QuasiProjectiveChowCover.NoetherianQuasiProjectiveChowCover |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Finite proper covers of a Noetherian separated finite-type scheme |
| 13 | by integral schemes immersed in actual projective ambient schemes. |
| 14 | Reduced irreducible components are used only as auxiliary sources. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {C : Type u} [CommRing C] {X : Scheme.{u}} |
| 21 | |
| 22 | structure Data (f : X ⟶ Spec (.of C)) where |
| 23 | index : Type u |
| 24 | finite : Finite index |
| 25 | scheme : index → Scheme.{u} |
| 26 | integral : ∀ i, IsIntegral (scheme i) |
| 27 | projection : ∀ i, scheme i ⟶ X |
| 28 | proper : ∀ i, IsProper (projection i) |
| 29 | covers : ∀ x : X, ∃ (i : index) (z : scheme i), projection i z = x |
| 30 | ambient : index → Over (Spec (.of C)) |
| 31 | projective : ∀ i, Projective.ProjectivePresentations.ProjectivePresentation (ambient i) |
| 32 | embedding : ∀ i, scheme i ⟶ (ambient i).left |
| 33 | immersion : ∀ i, IsImmersion (embedding i) |
| 34 | quasiCompact : ∀ i, QuasiCompact (embedding i) |
| 35 | embedding_base : |
| 36 | ∀ i, embedding i ≫ (ambient i).hom = projection i ≫ f |
| 37 | |
| 38 | def build [IsNoetherian X] (f : X ⟶ Spec (.of C)) |
| 39 | [IsSeparated f] [LocallyOfFiniteType f] : Data f := by |
| 40 | classical |
| 41 | let J : Type u := irreducibleComponents X |
| 42 | have hJ : Finite J := |
| 43 | finite_irreducibleComponents_of_isNoetherian.to_subtype |
| 44 | let W (i : J) : Closeds X := |
| 45 | ⟨i.val, isClosed_of_mem_irreducibleComponents i.val i.property⟩ |
| 46 | let I : J → X.IdealSheafData := |
| 47 | fun i => Scheme.IdealSheafData.vanishingIdeal (W i) |
| 48 | let D (i : J) : |
| 49 | QuasiProjectiveChowCover.IntegralQuasiProjectiveChowCover.Data |
| 50 | ((I i).subschemeι ≫ f) := by |
| 51 | have : IsIntegral (I i).subscheme := |
| 52 | IntegralClosedSupport.vanishingIdeal_subscheme_integral (W i) i.property.1 |
| 53 | have : IsNoetherian (I i).subscheme := |
| 54 | HilbertConstruction.Finite.TypeParameterNoetherian.finiteType_noetherian_source (I i).subschemeι |
| 55 | exact QuasiProjectiveChowCover.IntegralQuasiProjectiveChowCover.build |
| 56 | ((I i).subschemeι ≫ f) |
| 57 | let q (i : J) : (D i).scheme ⟶ X := |
| 58 | (D i).projection ≫ (I i).subschemeι |
| 59 | have hq (i : J) : IsProper (q i) := by |
| 60 | have : IsProper (D i).projection := (D i).proper |
| 61 | change IsProper ((D i).projection ≫ (I i).subschemeι) |
| 62 | infer_instance |
| 63 | have hcover : |
| 64 | ∀ x : X, ∃ (i : J) (z : (D i).scheme), q i z = x := by |
| 65 | intro x |
| 66 | let i : J := |
| 67 | ⟨irreducibleComponent x, |
| 68 | irreducibleComponent_mem_irreducibleComponents x⟩ |
| 69 | have hr : Set.range (I i).subschemeι = (W i : Set X) := by |
| 70 | rw [Scheme.IdealSheafData.range_subschemeι] |
| 71 | exact Scheme.IdealSheafData.coe_support_vanishingIdeal (W i) |
| 72 | have hx : x ∈ Set.range (I i).subschemeι := by |
| 73 | rw [hr] |
| 74 | change x ∈ irreducibleComponent x |
| 75 | exact mem_irreducibleComponent |
| 76 | obtain ⟨y, hy⟩ := hx |
| 77 | obtain ⟨z, hz⟩ := (D i).surjective.surj y |
| 78 | refine ⟨i, z, ?_⟩ |
| 79 | change ((D i).projection ≫ (I i).subschemeι) z = x |
| 80 | rw [Scheme.Hom.comp_apply, hz] |
| 81 | exact hy |
| 82 | exact { |
| 83 | index := J |
| 84 | finite := hJ |
| 85 | scheme := fun i => (D i).scheme |
| 86 | integral := fun i => (D i).integral |
| 87 | projection := q |
| 88 | proper := hq |
| 89 | covers := hcover |
| 90 | ambient := fun i => (D i).ambient |
| 91 | projective := fun i => (D i).projective |
| 92 | embedding := fun i => (D i).embedding |
| 93 | immersion := fun i => (D i).immersion |
| 94 | quasiCompact := fun i => (D i).quasiCompact |
| 95 | embedding_base := fun i => |
| 96 | (D i).embedding_base.trans |
| 97 | (Category.assoc (D i).projection (I i).subschemeι f).symm |
| 98 | } |
| 99 | |
| 100 | theorem Data.sigmaProjection_surjective |
| 101 | {f : X ⟶ Spec (.of C)} (D : Data f) : |
| 102 | Surjective (Sigma.desc D.projection) := by |
| 103 | apply Surjective.sigmaDesc_of_union_range_eq_univ |
| 104 | apply Set.eq_univ_of_forall |
| 105 | intro x |
| 106 | obtain ⟨i, z, hz⟩ := D.covers x |
| 107 | exact Set.mem_iUnion.mpr ⟨i, z, hz⟩ |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.QuasiProjectiveChowCover.NoetherianQuasiProjectiveChowCover |