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.ProjectiveSpectrum.Proper |
| 2 | import Mathlib.AlgebraicGeometry.Noetherian |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpace |
| 4 | import OAI.AlgebraicGeometry.Foundations.Scheme.ProjectiveSpaceFiniteType |
| 5 | import OAI.AlgebraicGeometry.Foundations.Scheme.SmoothProjective |
| 6 | |
| 7 | /-! # Closed Projective -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Foundations.Scheme |
| 10 | |
| 11 | /-! |
| 12 | # Algebraic consequences of a closed immersion into a projective spectrum |
| 13 | |
| 14 | These lemmas concern actual schemes, morphisms, and the `Proj` construction in |
| 15 | mathlib. They supply properness, finite type, and Noetherian consequences used |
| 16 | by a projective presentation. Compactness here refers to the scheme's Zariski |
| 17 | topology; no assertion about an analytification is made in this module. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option warningAsError true |
| 22 | |
| 23 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | section General |
| 28 | |
| 29 | variable {X Y : Scheme.{u}} (f : X ⟶ Y) |
| 30 | |
| 31 | /-- Proper morphisms are quasi-compact and locally of finite type, the two |
| 32 | conditions defining a morphism of finite type. -/ |
| 33 | theorem ClosedProjective.finiteType_of_isProper [IsProper f] : |
| 34 | LocallyOfFiniteType f ∧ QuasiCompact f := |
| 35 | ⟨inferInstance, inferInstance⟩ |
| 36 | |
| 37 | /-- A proper scheme over a Noetherian affine scheme is Noetherian. -/ |
| 38 | theorem ClosedProjective.isNoetherian_of_isProper_toSpec {R : Type u} [CommRing R] |
| 39 | [IsNoetherianRing R] (g : X ⟶ Spec (.of R)) [IsProper g] : |
| 40 | AlgebraicGeometry.IsNoetherian X := by |
| 41 | let : IsLocallyNoetherian X := LocallyOfFiniteType.isLocallyNoetherian g |
| 42 | let : CompactSpace X := (quasiCompact_iff_compactSpace g).mp inferInstance |
| 43 | exact ⟨⟩ |
| 44 | |
| 45 | end General |
| 46 | |
| 47 | section ProjectiveSpectrum |
| 48 | |
| 49 | variable {σ A : Type u} [CommRing A] [SetLike σ A] [AddSubgroupClass σ A] |
| 50 | variable (𝒜 : ℕ → σ) [GradedRing 𝒜] [Algebra.FiniteType (𝒜 0) A] |
| 51 | variable {X : Scheme.{u}} (i : X ⟶ Proj 𝒜) [IsClosedImmersion i] |
| 52 | |
| 53 | /-- A closed subscheme of a finite-type projective spectrum is proper over its |
| 54 | actual degree-zero ring. -/ |
| 55 | theorem ClosedProjective.closedImmersion_proj_isProper : |
| 56 | IsProper (i ≫ Proj.toSpecZero 𝒜) := by |
| 57 | infer_instance |
| 58 | |
| 59 | /-- The morphism in `closedImmersion_proj_isProper` is of finite type. -/ |
| 60 | theorem ClosedProjective.closedImmersion_proj_finiteType : |
| 61 | LocallyOfFiniteType (i ≫ Proj.toSpecZero 𝒜) ∧ |
| 62 | QuasiCompact (i ≫ Proj.toSpecZero 𝒜) := |
| 63 | ClosedProjective.finiteType_of_isProper _ |
| 64 | |
| 65 | include 𝒜 i in |
| 66 | /-- Algebraic (Zariski) compactness of a closed subscheme of `Proj`. -/ |
| 67 | theorem ClosedProjective.closedImmersion_proj_compactSpace : CompactSpace X := |
| 68 | (quasiCompact_iff_compactSpace (i ≫ Proj.toSpecZero 𝒜)).mp inferInstance |
| 69 | |
| 70 | include 𝒜 i in |
| 71 | /-- A closed subscheme of a finite-type `Proj` is Noetherian when the |
| 72 | actual degree-zero coefficient ring is Noetherian. -/ |
| 73 | theorem ClosedProjective.closedImmersion_proj_isNoetherian [IsNoetherianRing (𝒜 0)] : |
| 74 | AlgebraicGeometry.IsNoetherian X := |
| 75 | ClosedProjective.isNoetherian_of_isProper_toSpec (i ≫ Proj.toSpecZero 𝒜) |
| 76 | |
| 77 | /-- Properness survives an arbitrary scheme-theoretic base change. -/ |
| 78 | theorem ClosedProjective.closedImmersion_proj_baseChange_isProper {T : Scheme.{u}} |
| 79 | (g : T ⟶ Spec (.of (𝒜 0))) : |
| 80 | IsProper (Limits.pullback.snd (i ≫ Proj.toSpecZero 𝒜) g) := by |
| 81 | infer_instance |
| 82 | |
| 83 | /-- Finite type survives the same scheme-theoretic base change. -/ |
| 84 | theorem ClosedProjective.closedImmersion_proj_baseChange_finiteType {T : Scheme.{u}} |
| 85 | (g : T ⟶ Spec (.of (𝒜 0))) : |
| 86 | LocallyOfFiniteType (Limits.pullback.snd (i ≫ Proj.toSpecZero 𝒜) g) ∧ |
| 87 | QuasiCompact (Limits.pullback.snd (i ≫ Proj.toSpecZero 𝒜) g) := |
| 88 | ClosedProjective.finiteType_of_isProper _ |
| 89 | |
| 90 | /-- An actual surjective identification of base rings yields a proper |
| 91 | morphism to the target affine scheme, without adding properness as a premise. -/ |
| 92 | theorem ClosedProjective.closedImmersion_proj_changeBase_isProper {R : Type u} [CommRing R] |
| 93 | (φ : R →+* (𝒜 0)) (hφ : Function.Surjective φ) : |
| 94 | IsProper (i ≫ Proj.toSpecZero 𝒜 ≫ Spec.map (CommRingCat.ofHom φ)) := by |
| 95 | let : IsClosedImmersion (Spec.map (CommRingCat.ofHom φ)) := |
| 96 | IsClosedImmersion.spec_of_surjective (CommRingCat.ofHom φ) hφ |
| 97 | infer_instance |
| 98 | |
| 99 | end ProjectiveSpectrum |
| 100 | |
| 101 | /-- The standard complex projective-space structure morphism is proper. |
| 102 | The degree-zero ring is related to the complex base by the proved constants |
| 103 | isomorphism, rather than an assumed comparison. -/ |
| 104 | instance ClosedProjective.projectiveSpaceToBase_isProper (n : ℕ) : |
| 105 | IsProper (ProjectiveSpace.projectiveSpaceToBase n) := by |
| 106 | unfold ProjectiveSpace.projectiveSpaceToBase |
| 107 | let : IsClosedImmersion |
| 108 | (Spec.map (CommRingCat.ofHom (ProjectiveSpace.degreeZeroConstants n).toRingHom)) := |
| 109 | IsClosedImmersion.spec_of_surjective |
| 110 | (CommRingCat.ofHom (ProjectiveSpace.degreeZeroConstants n).toRingHom) |
| 111 | (ProjectiveSpace.degreeZeroConstants n).surjective |
| 112 | infer_instance |
| 113 | |
| 114 | /-- Finite type of the actual complex projective-space structure morphism. -/ |
| 115 | theorem ClosedProjective.projectiveSpaceToBase_finiteType (n : ℕ) : |
| 116 | LocallyOfFiniteType (ProjectiveSpace.projectiveSpaceToBase n) ∧ |
| 117 | QuasiCompact (ProjectiveSpace.projectiveSpaceToBase n) := |
| 118 | ClosedProjective.finiteType_of_isProper _ |
| 119 | |
| 120 | /-- Standard complex projective space is a Noetherian scheme. -/ |
| 121 | instance ClosedProjective.projectiveSpace_isNoetherian (n : ℕ) : |
| 122 | AlgebraicGeometry.IsNoetherian (ProjectiveSpace.projectiveSpace n) := |
| 123 | ClosedProjective.isNoetherian_of_isProper_toSpec (ProjectiveSpace.projectiveSpaceToBase n) |
| 124 | |
| 125 | /-- A genuine closed projective embedding supplies properness over the complex |
| 126 | base; this property need not be added as a field of a presentation. -/ |
| 127 | theorem ClosedProjective.closedImmersion_projectiveSpace_isProper {X : Scheme} (n : ℕ) |
| 128 | (i : X ⟶ ProjectiveSpace.projectiveSpace n) [IsClosedImmersion i] : |
| 129 | IsProper (i ≫ ProjectiveSpace.projectiveSpaceToBase n) := by |
| 130 | infer_instance |
| 131 | |
| 132 | section |
| 133 | |
| 134 | variable {X : Scheme} {f : X ⟶ ProjectiveSpace.complexBase} (P : SmoothProjective.ProjectivePresentation X f) |
| 135 | |
| 136 | include P |
| 137 | |
| 138 | /-- Properness is a consequence of the actual chosen projective embedding. -/ |
| 139 | theorem SmoothProjective.ProjectivePresentation.isProper : IsProper f := by |
| 140 | rw [P.structureMap_eq] |
| 141 | exact ClosedProjective.closedImmersion_projectiveSpace_isProper P.ambientDimension P.embedding |
| 142 | |
| 143 | /-- Both conditions of finite type follow from the chosen projective embedding. -/ |
| 144 | theorem SmoothProjective.ProjectivePresentation.finiteType : LocallyOfFiniteType f ∧ QuasiCompact f := by |
| 145 | let : IsProper f := P.isProper |
| 146 | exact ClosedProjective.finiteType_of_isProper f |
| 147 | |
| 148 | /-- The carrier of an actual complex projective presentation is Noetherian. -/ |
| 149 | theorem SmoothProjective.ProjectivePresentation.isNoetherian : AlgebraicGeometry.IsNoetherian X := by |
| 150 | let : IsProper f := P.isProper |
| 151 | exact ClosedProjective.isNoetherian_of_isProper_toSpec f |
| 152 | |
| 153 | /-- Finite presentation locally on source and target follows because the base |
| 154 | is the spectrum of the Noetherian field of complex numbers. -/ |
| 155 | theorem SmoothProjective.ProjectivePresentation.locallyOfFinitePresentation : LocallyOfFinitePresentation f := by |
| 156 | let : IsProper f := P.isProper |
| 157 | infer_instance |
| 158 | |
| 159 | /-- The actual projective presentation remains proper after any base change. -/ |
| 160 | theorem SmoothProjective.ProjectivePresentation.baseChange_isProper {T : Scheme} (g : T ⟶ ProjectiveSpace.complexBase) : |
| 161 | IsProper (Limits.pullback.snd f g) := by |
| 162 | let : IsProper f := P.isProper |
| 163 | infer_instance |
| 164 | |
| 165 | end |
| 166 | |
| 167 | variable (P : SmoothProjective.SmoothProjectivePresentation) |
| 168 | |
| 169 | /-- The properness instance is proved from projectivity, not stored in the |
| 170 | smooth-projective data. -/ |
| 171 | instance SmoothProjective.SmoothProjectivePresentation.isProper : IsProper P.structureMap := P.projective.isProper |
| 172 | |
| 173 | /-- The scheme underlying a smooth projective presentation is Noetherian. -/ |
| 174 | instance SmoothProjective.SmoothProjectivePresentation.isNoetherian : AlgebraicGeometry.IsNoetherian P.carrier := |
| 175 | P.projective.isNoetherian |
| 176 | |
| 177 | /-- The structure morphism of a smooth projective presentation is of finite type. -/ |
| 178 | theorem SmoothProjective.SmoothProjectivePresentation.finiteType : LocallyOfFiniteType P.structureMap ∧ QuasiCompact P.structureMap := |
| 179 | ClosedProjective.finiteType_of_isProper _ |
| 180 | |
| 181 | end OAI.AlgebraicGeometry.Foundations.Scheme |