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.CycleClass.Geometric.StratumDimension |
| 2 | |
| 3 | /-! # Stratum Closure -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Reduced closures of integral locally closed strata |
| 11 | |
| 12 | The scheme-theoretic image of a quasi-compact morphism from a reduced scheme |
| 13 | has radical ideal sheaf. For an integral source this identifies that image |
| 14 | with the actual reduced irreducible closure of its range. An immersion is |
| 15 | therefore a genuine open immersion into its reduced closure. This supplies |
| 16 | equality of their native dimensions and strict dimension bounds for strata |
| 17 | contained in singular loci. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {X Y : Scheme.{u}} |
| 25 | |
| 26 | /-- The kernel ideal sheaf of a quasi-compact map from a reduced scheme is |
| 27 | radical, because its affine section ideals are kernels into reduced rings. -/ |
| 28 | theorem StratumClosure.kernel_radical_of_reduced [IsReduced Y] (i : Y ⟶ X) [QuasiCompact i] : |
| 29 | i.ker.radical = i.ker := by |
| 30 | ext U : 2 |
| 31 | simp only [Scheme.IdealSheafData.radical_ideal, Scheme.Hom.ker_apply] |
| 32 | exact (Ideal.isRadical_bot.comap (i.app U).hom).radical |
| 33 | |
| 34 | /-- The actual irreducible closed subset obtained by closing the image of an |
| 35 | integral scheme. -/ |
| 36 | def StratumClosure.integralImageClosure [IsIntegral Y] (i : Y ⟶ X) : IrreducibleCloseds X := |
| 37 | ⟨closure (Set.range i), (by |
| 38 | have hi : IsIrreducible (Set.range i) := by |
| 39 | simpa only [Set.image_univ] using |
| 40 | (IrreducibleSpace.isIrreducible_univ Y).image i i.continuous.continuousOn |
| 41 | exact hi.closure), isClosed_closure⟩ |
| 42 | |
| 43 | @[simp] |
| 44 | theorem StratumClosure.integralImageClosure_coe [IsIntegral Y] (i : Y ⟶ X) : |
| 45 | (StratumClosure.integralImageClosure i : Set X) = closure (Set.range i) := rfl |
| 46 | |
| 47 | /-- The image ideal is precisely the vanishing ideal of the actual closure, |
| 48 | not merely an ideal with the same topological support. -/ |
| 49 | theorem StratumClosure.kernel_eq_reducedImageClosureIdeal [IsIntegral Y] (i : Y ⟶ X) |
| 50 | [QuasiCompact i] : i.ker = GenericPoint.reducedSupportIdeal (StratumClosure.integralImageClosure i) := by |
| 51 | change i.ker = Scheme.IdealSheafData.vanishingIdeal |
| 52 | ⟨closure (Set.range i), isClosed_closure⟩ |
| 53 | have hs : (⟨closure (Set.range i), isClosed_closure⟩ : Closeds X) = i.ker.support := by |
| 54 | apply SetLike.coe_injective |
| 55 | exact i.support_ker.symm |
| 56 | rw [hs, Scheme.IdealSheafData.vanishingIdeal_support, StratumClosure.kernel_radical_of_reduced i] |
| 57 | |
| 58 | set_option backward.defeqAttrib.useBackward true in |
| 59 | set_option backward.isDefEq.respectTransparency false in |
| 60 | /-- The actual scheme-theoretic image is canonically the reduced induced |
| 61 | scheme on the irreducible closure. -/ |
| 62 | def StratumClosure.reducedImageClosureIso [IsIntegral Y] (i : Y ⟶ X) [QuasiCompact i] : |
| 63 | i.image ≅ GenericPoint.reducedSupportScheme (StratumClosure.integralImageClosure i) where |
| 64 | hom := Scheme.IdealSheafData.inclusion (StratumClosure.kernel_eq_reducedImageClosureIdeal i).ge |
| 65 | inv := Scheme.IdealSheafData.inclusion (StratumClosure.kernel_eq_reducedImageClosureIdeal i).le |
| 66 | hom_inv_id := by |
| 67 | rw [Scheme.IdealSheafData.inclusion_comp] |
| 68 | exact Scheme.IdealSheafData.inclusion_id _ |
| 69 | inv_hom_id := by |
| 70 | rw [Scheme.IdealSheafData.inclusion_comp] |
| 71 | exact Scheme.IdealSheafData.inclusion_id _ |
| 72 | |
| 73 | @[reassoc] |
| 74 | theorem StratumClosure.reducedImageClosureIso_hom_inclusion [IsIntegral Y] (i : Y ⟶ X) |
| 75 | [QuasiCompact i] : |
| 76 | (StratumClosure.reducedImageClosureIso i).hom ≫ GenericPoint.reducedSupportι (StratumClosure.integralImageClosure i) = |
| 77 | i.imageι := |
| 78 | Scheme.IdealSheafData.inclusion_subschemeι _ |
| 79 | |
| 80 | /-- Factorization of the given map through its genuine reduced closure. -/ |
| 81 | def StratumClosure.toReducedImageClosure [IsIntegral Y] (i : Y ⟶ X) [QuasiCompact i] : |
| 82 | Y ⟶ GenericPoint.reducedSupportScheme (StratumClosure.integralImageClosure i) := |
| 83 | i.toImage ≫ (StratumClosure.reducedImageClosureIso i).hom |
| 84 | |
| 85 | @[reassoc] |
| 86 | theorem StratumClosure.toReducedImageClosure_inclusion [IsIntegral Y] (i : Y ⟶ X) |
| 87 | [QuasiCompact i] : |
| 88 | StratumClosure.toReducedImageClosure i ≫ GenericPoint.reducedSupportι (StratumClosure.integralImageClosure i) = i := by |
| 89 | rw [StratumClosure.toReducedImageClosure, Category.assoc, StratumClosure.reducedImageClosureIso_hom_inclusion, |
| 90 | Scheme.Hom.toImage_imageι] |
| 91 | |
| 92 | /-- A quasi-compact integral immersion is open in its actual reduced closure. -/ |
| 93 | instance StratumClosure.toReducedImageClosure_isOpenImmersion [IsIntegral Y] (i : Y ⟶ X) |
| 94 | [QuasiCompact i] [IsImmersion i] : IsOpenImmersion (StratumClosure.toReducedImageClosure i) := by |
| 95 | unfold StratumClosure.toReducedImageClosure |
| 96 | infer_instance |
| 97 | |
| 98 | /-- This open factor has dense range in its irreducible reduced closure. -/ |
| 99 | theorem StratumClosure.toReducedImageClosure_denseRange [IsIntegral Y] (i : Y ⟶ X) |
| 100 | [QuasiCompact i] [IsImmersion i] : DenseRange (StratumClosure.toReducedImageClosure i) := |
| 101 | IsOpenMap.denseRange_of_isPreirreducibleSpace _ |
| 102 | (StratumClosure.toReducedImageClosure i).isOpenEmbedding.isOpenMap |
| 103 | |
| 104 | variable {K : Type u} [Field K] |
| 105 | |
| 106 | /-- The native dimension of an integral locally closed immersion equals that |
| 107 | of its genuine irreducible closed support. -/ |
| 108 | theorem StratumClosure.schemeTranscendenceDimension_eq_imageClosure [IsIntegral Y] (i : Y ⟶ X) |
| 109 | [QuasiCompact i] [IsImmersion i] (f : X ⟶ Spec (.of K)) : |
| 110 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (i ≫ f) = |
| 111 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (StratumClosure.integralImageClosure i) f := by |
| 112 | have h := Foundations.Scheme.OpenFunctionField.schemeTranscendenceDimension_openImmersion |
| 113 | (StratumClosure.toReducedImageClosure i) (SupportFiniteType.supportStructureMap (StratumClosure.integralImageClosure i) f) |
| 114 | simpa only [SupportFiniteType.supportStructureMap, Foundations.Scheme.SupportDimension.supportTranscendenceDimension, ← Category.assoc, |
| 115 | StratumClosure.toReducedImageClosure_inclusion] using h |
| 116 | |
| 117 | section |
| 118 | |
| 119 | variable {S : Scheme.{u}} {f : X ⟶ S} |
| 120 | |
| 121 | /-- A stratum in a Noetherian ambient space is itself Noetherian. -/ |
| 122 | instance IntegralSmoothStratification.IntegralSmoothGeometricPiece.carrier_noetherianSpace [NoetherianSpace X] |
| 123 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : NoetherianSpace P.carrier := |
| 124 | P.inclusion.isEmbedding.isInducing.noetherianSpace |
| 125 | |
| 126 | /-- The actual irreducible closure of a stratum's image. -/ |
| 127 | def IntegralSmoothStratification.IntegralSmoothGeometricPiece.closureSupport (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : IrreducibleCloseds X := |
| 128 | StratumClosure.integralImageClosure P.inclusion |
| 129 | |
| 130 | @[simp] |
| 131 | theorem IntegralSmoothStratification.IntegralSmoothGeometricPiece.closureSupport_coe (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 132 | (P.closureSupport : Set X) = closure P.support := rfl |
| 133 | |
| 134 | /-- The stratum as an actual open subscheme of its reduced irreducible closure. -/ |
| 135 | def IntegralSmoothStratification.IntegralSmoothGeometricPiece.toReducedClosure [NoetherianSpace X] (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 136 | P.carrier ⟶ GenericPoint.reducedSupportScheme P.closureSupport := |
| 137 | StratumClosure.toReducedImageClosure P.inclusion |
| 138 | |
| 139 | instance IntegralSmoothStratification.IntegralSmoothGeometricPiece.toReducedClosure_isOpenImmersion [NoetherianSpace X] |
| 140 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : IsOpenImmersion P.toReducedClosure := |
| 141 | inferInstanceAs (IsOpenImmersion (StratumClosure.toReducedImageClosure P.inclusion)) |
| 142 | |
| 143 | @[reassoc] |
| 144 | theorem IntegralSmoothStratification.IntegralSmoothGeometricPiece.toReducedClosure_inclusion [NoetherianSpace X] |
| 145 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 146 | P.toReducedClosure ≫ GenericPoint.reducedSupportι P.closureSupport = P.inclusion := |
| 147 | StratumClosure.toReducedImageClosure_inclusion P.inclusion |
| 148 | |
| 149 | /-- The generic-stalk comparison preserves the actual base-field scalar map. -/ |
| 150 | theorem IntegralSmoothStratification.IntegralSmoothGeometricPiece.dimension_eq_closure [NoetherianSpace X] {f : X ⟶ Spec (.of K)} |
| 151 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) : |
| 152 | P.dimension = Foundations.Scheme.SupportDimension.supportTranscendenceDimension P.closureSupport f := |
| 153 | StratumClosure.schemeTranscendenceDimension_eq_imageClosure P.inclusion f |
| 154 | |
| 155 | /-- A stratum contained in a closed irreducible support has its entire |
| 156 | irreducible closure in that support. -/ |
| 157 | theorem IntegralSmoothStratification.IntegralSmoothGeometricPiece.closureSupport_le_of_support_subset {f : X ⟶ Spec (.of K)} |
| 158 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) (Z : IrreducibleCloseds X) |
| 159 | (hP : P.support ⊆ (Z : Set X)) : P.closureSupport ≤ Z := |
| 160 | closure_minimal hP Z.isClosed |
| 161 | |
| 162 | /-- The actual native dimension is bounded by any irreducible closed support |
| 163 | containing the stratum. -/ |
| 164 | theorem IntegralSmoothStratification.IntegralSmoothGeometricPiece.dimension_le_of_support_subset [NoetherianSpace X] |
| 165 | {f : X ⟶ Spec (.of K)} [LocallyOfFiniteType f] |
| 166 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) (Z : IrreducibleCloseds X) |
| 167 | (hP : P.support ⊆ (Z : Set X)) : |
| 168 | P.dimension ≤ Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z f := by |
| 169 | rw [P.dimension_eq_closure] |
| 170 | exact (Foundations.Scheme.SupportDimensionDrop.supportTranscendenceDimension_strictMono f).monotone |
| 171 | (P.closureSupport_le_of_support_subset Z hP) |
| 172 | |
| 173 | /-- Closing a stratum inside the closed singular boundary and using strict |
| 174 | dimension drop gives the bound for the actual locally closed carrier. -/ |
| 175 | theorem IntegralSmoothStratification.IntegralSmoothGeometricPiece.dimension_lt_of_support_subset_singularBoundary [NoetherianSpace X] |
| 176 | [PerfectField K] {f : X ⟶ Spec (.of K)} [LocallyOfFiniteType f] |
| 177 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) (Z : IrreducibleCloseds X) |
| 178 | (hP : P.support ⊆ StratumDimension.supportSingularBoundary Z f) : |
| 179 | P.dimension < Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z f := by |
| 180 | rw [P.dimension_eq_closure] |
| 181 | apply StratumDimension.supportTranscendenceDimension_lt_of_subset_singularBoundary P.closureSupport Z f |
| 182 | exact closure_minimal hP (StratumDimension.isClosed_supportSingularBoundary Z f) |
| 183 | |
| 184 | end |
| 185 | |
| 186 | /-- A genuine irreducible closed subset of the singular locus has strictly |
| 187 | smaller native dimension than the integral ambient scheme itself. -/ |
| 188 | theorem StratumClosure.supportTranscendenceDimension_lt_of_subset_singularLocus [IsIntegral X] |
| 189 | [PerfectField K] (Z : IrreducibleCloseds X) (f : X ⟶ Spec (.of K)) |
| 190 | [LocallyOfFiniteType f] (hZ : (Z : Set X) ⊆ SingularLocus.singularLocus f) : |
| 191 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z f < Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f := by |
| 192 | let T : IrreducibleCloseds X := |
| 193 | ⟨Set.univ, IrreducibleSpace.isIrreducible_univ X, isClosed_univ⟩ |
| 194 | have hZT : Z < T := by |
| 195 | apply lt_of_le_not_ge (Set.subset_univ _) |
| 196 | intro hTZ |
| 197 | exact SingularLocus.genericPoint_not_mem_singularLocus f (hZ (hTZ (Set.mem_univ _))) |
| 198 | exact (Foundations.Scheme.SupportDimensionDrop.supportTranscendenceDimension_lt_of_lt Z T f hZT).trans_le |
| 199 | (Foundations.Scheme.SupportDimension.supportTranscendenceDimension_le T f) |
| 200 | |
| 201 | /-- Every actual integral locally closed smooth stratum contained in the |
| 202 | singular locus has strictly smaller native dimension. -/ |
| 203 | theorem IntegralSmoothStratification.IntegralSmoothGeometricPiece.dimension_lt_of_support_subset_singularLocus |
| 204 | [IsIntegral X] [NoetherianSpace X] [PerfectField K] |
| 205 | {f : X ⟶ Spec (.of K)} [LocallyOfFiniteType f] |
| 206 | (P : IntegralSmoothStratification.IntegralSmoothGeometricPiece f) (hP : P.support ⊆ SingularLocus.singularLocus f) : |
| 207 | P.dimension < Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension f := by |
| 208 | rw [P.dimension_eq_closure] |
| 209 | apply StratumClosure.supportTranscendenceDimension_lt_of_subset_singularLocus P.closureSupport f |
| 210 | exact closure_minimal hP (SingularLocus.isClosed_singularLocus f) |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.AlgebraicGeometry.CycleClass.Geometric |