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.Foundations.Scheme.IntegralProjective |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.SupportDimension |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteSupport |
| 4 | import Mathlib.LinearAlgebra.Finsupp.Supported |
| 5 | import Mathlib.LinearAlgebra.Finsupp.VectorSpace |
| 6 | |
| 7 | /-! # Dimension Cycles -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Algebraic cycles graded by actual function-field dimension |
| 15 | |
| 16 | This module is separate from the earlier specialization-coheight cycle API. |
| 17 | Its grading uses the transcendence degrees of the actual function fields of |
| 18 | an integral projective variety and of the reduced integral closed subscheme |
| 19 | on each irreducible support. It accepts no arbitrary dimension function. |
| 20 | |
| 21 | The support is allowed to be singular. These are genuine finite algebraic |
| 22 | cycles, not Betti classes; no cycle-class map or Hodge assertion is assumed. |
| 23 | -/ |
| 24 | |
| 25 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace |
| 26 | open scoped BigOperators |
| 27 | |
| 28 | universe v |
| 29 | |
| 30 | /-- Codimension by the difference of actual function-field dimensions. -/ |
| 31 | def dimensionCodimension (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 32 | (Z : IrreducibleCloseds V.carrier) : ℕ := |
| 33 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap - |
| 34 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z V.structureMap |
| 35 | |
| 36 | /-- Actual support dimension and codimension add to the ambient dimension. |
| 37 | The support-dimension inequality removes any truncated-subtraction ambiguity. -/ |
| 38 | theorem supportDimension_add_dimensionCodimension (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 39 | (Z : IrreducibleCloseds V.carrier) : |
| 40 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z V.structureMap + dimensionCodimension V Z = |
| 41 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap := by |
| 42 | exact Nat.add_sub_of_le (Foundations.Scheme.SupportDimension.supportTranscendenceDimension_le Z V.structureMap) |
| 43 | |
| 44 | /-- The actual irreducible closed supports in the indicated dimension grading. -/ |
| 45 | def DimensionCycleSupport (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) := |
| 46 | {Z : IrreducibleCloseds V.carrier // dimensionCodimension V Z = p} |
| 47 | |
| 48 | namespace DimensionCycleSupport |
| 49 | |
| 50 | variable {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} |
| 51 | |
| 52 | /-- The reduced integral closed scheme on the cycle support. -/ |
| 53 | abbrev scheme (Z : DimensionCycleSupport V p) : Scheme := GenericPoint.reducedSupportScheme Z.1 |
| 54 | |
| 55 | /-- Its actual closed immersion into the projective ambient variety. -/ |
| 56 | abbrev inclusion (Z : DimensionCycleSupport V p) : Z.scheme ⟶ V.carrier := |
| 57 | GenericPoint.reducedSupportι Z.1 |
| 58 | |
| 59 | /-- Its induced complex structure morphism. -/ |
| 60 | abbrev structureMap (Z : DimensionCycleSupport V p) : Z.scheme ⟶ Foundations.Scheme.ProjectiveSpace.complexBase := |
| 61 | SupportFiniteType.supportStructureMap Z.1 V.structureMap |
| 62 | |
| 63 | instance scheme_isIntegral (Z : DimensionCycleSupport V p) : IsIntegral Z.scheme := |
| 64 | GenericPoint.reducedSupportScheme_isIntegral Z.1 |
| 65 | |
| 66 | instance inclusion_isClosedImmersion (Z : DimensionCycleSupport V p) : |
| 67 | IsClosedImmersion Z.inclusion := GenericPoint.reducedSupportι_isClosedImmersion Z.1 |
| 68 | |
| 69 | /-- Every support inherits a genuine projective embedding. Smoothness of that |
| 70 | support is neither assumed nor required. -/ |
| 71 | def projectivePresentation (Z : DimensionCycleSupport V p) : |
| 72 | Foundations.Scheme.SmoothProjective.ProjectivePresentation Z.scheme Z.structureMap := |
| 73 | V.presentation.projective.reducedSupport Z.1 |
| 74 | |
| 75 | instance structureMap_isProper (Z : DimensionCycleSupport V p) : IsProper Z.structureMap := |
| 76 | Z.projectivePresentation.isProper |
| 77 | |
| 78 | instance structureMap_locallyOfFiniteType (Z : DimensionCycleSupport V p) : |
| 79 | LocallyOfFiniteType Z.structureMap := by infer_instance |
| 80 | |
| 81 | /-- The indexing condition is literally the difference of the two function-field dimensions. -/ |
| 82 | theorem dimension_difference (Z : DimensionCycleSupport V p) : |
| 83 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap - |
| 84 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z.1 V.structureMap = p := Z.2 |
| 85 | |
| 86 | /-- A degree-`p` support has dimension exactly ambient dimension minus `p`. -/ |
| 87 | theorem dimension_add_codimension (Z : DimensionCycleSupport V p) : |
| 88 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension Z.1 V.structureMap + p = |
| 89 | Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap := by |
| 90 | simpa only [Z.2] using supportDimension_add_dimensionCodimension V Z.1 |
| 91 | |
| 92 | /-- The dimension-based codimension never exceeds the ambient dimension. -/ |
| 93 | theorem codimension_le_ambient (Z : DimensionCycleSupport V p) : |
| 94 | p ≤ Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap := by |
| 95 | rw [← Z.dimension_difference] |
| 96 | exact Nat.sub_le _ _ |
| 97 | |
| 98 | /-- There are no supports in degrees greater than the dimension of the variety. -/ |
| 99 | theorem isEmpty_of_ambient_lt (h : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap < p) : |
| 100 | IsEmpty (DimensionCycleSupport V p) := |
| 101 | ⟨fun Z => (Nat.not_le_of_lt h) Z.codimension_le_ambient⟩ |
| 102 | |
| 103 | /-- The unique actual scheme point generic in the irreducible support. -/ |
| 104 | def genericPoint (Z : DimensionCycleSupport V p) : V.carrier := |
| 105 | irreducibleSetEquivPoints Z.1 |
| 106 | |
| 107 | /-- The support label really is the closure of the indicated generic point. -/ |
| 108 | theorem genericPoint_spec (Z : DimensionCycleSupport V p) : |
| 109 | IsGenericPoint Z.genericPoint (Z.1 : Set V.carrier) := |
| 110 | Z.1.isIrreducible.isGenericPoint_genericPoint Z.1.isClosed |
| 111 | |
| 112 | /-- Distinct irreducible supports have distinct generic points. -/ |
| 113 | theorem genericPoint_injective : |
| 114 | Function.Injective (DimensionCycleSupport.genericPoint : DimensionCycleSupport V p → V.carrier) := by |
| 115 | intro Z W h |
| 116 | apply Subtype.ext |
| 117 | exact irreducibleSetEquivPoints.injective h |
| 118 | |
| 119 | /-- The coefficient-preserving embedding into the point index used by mathlib. -/ |
| 120 | def genericPointEmbedding (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) : |
| 121 | DimensionCycleSupport V p ↪ V.carrier := |
| 122 | ⟨DimensionCycleSupport.genericPoint, genericPoint_injective⟩ |
| 123 | |
| 124 | /-- The constructed integral support maps its own generic point to this label. -/ |
| 125 | theorem inclusion_genericPoint (Z : DimensionCycleSupport V p) : |
| 126 | Z.inclusion (_root_.genericPoint Z.scheme) = Z.genericPoint := |
| 127 | GenericPoint.reducedSupport_genericPoint_eq Z.1 |
| 128 | |
| 129 | end DimensionCycleSupport |
| 130 | |
| 131 | /-- Finite algebraic cycles with the genuine function-field dimension grading. -/ |
| 132 | abbrev DimensionCycle (R : Type v) [Zero R] (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) := |
| 133 | DimensionCycleSupport V p →₀ R |
| 134 | |
| 135 | abbrev IntegralDimensionCycle (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) := |
| 136 | DimensionCycle ℤ V p |
| 137 | |
| 138 | abbrev RationalDimensionCycle (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) := |
| 139 | DimensionCycle ℚ V p |
| 140 | |
| 141 | namespace DimensionCycle |
| 142 | |
| 143 | variable {R : Type v} {V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} {p : ℕ} |
| 144 | |
| 145 | /-- A dimension-graded algebraic cycle above the ambient dimension vanishes. -/ |
| 146 | theorem eq_zero_of_ambient_lt [Zero R] (z : DimensionCycle R V p) |
| 147 | (h : Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension V.structureMap < p) : z = 0 := by |
| 148 | let := DimensionCycleSupport.isEmpty_of_ambient_lt h |
| 149 | exact Finsupp.ext fun Z => isEmptyElim Z |
| 150 | |
| 151 | /-- Forgetting the dimension grade retains every irreducible-support coefficient. -/ |
| 152 | def toSupportFinsupp [Zero R] (z : DimensionCycle R V p) : |
| 153 | IrreducibleCloseds V.carrier →₀ R := |
| 154 | Finsupp.embDomain (Function.Embedding.subtype fun Z => dimensionCodimension V Z = p) z |
| 155 | |
| 156 | @[simp] |
| 157 | theorem toSupportFinsupp_apply [Zero R] (z : DimensionCycle R V p) |
| 158 | (Z : DimensionCycleSupport V p) : z.toSupportFinsupp Z.1 = z Z := |
| 159 | Finsupp.embDomain_apply_self _ _ _ |
| 160 | |
| 161 | /-- Extension by zero away from the actual dimension grade. -/ |
| 162 | theorem toSupportFinsupp_apply_of_codimension_ne [Zero R] (z : DimensionCycle R V p) |
| 163 | (Z : IrreducibleCloseds V.carrier) (hZ : dimensionCodimension V Z ≠ p) : |
| 164 | z.toSupportFinsupp Z = 0 := by |
| 165 | apply Finsupp.embDomain_of_notMem_range |
| 166 | rintro ⟨W, rfl⟩ |
| 167 | exact hZ W.2 |
| 168 | |
| 169 | theorem toSupportFinsupp_injective [Zero R] : |
| 170 | Function.Injective (DimensionCycle.toSupportFinsupp : DimensionCycle R V p → |
| 171 | IrreducibleCloseds V.carrier →₀ R) := |
| 172 | Finsupp.embDomain_injective _ |
| 173 | |
| 174 | /-- The same cycle in the generic-point index used by mathlib's algebraic cycles. -/ |
| 175 | def toPointFinsupp [Zero R] (z : DimensionCycle R V p) : V.carrier →₀ R := |
| 176 | Finsupp.embDomain (DimensionCycleSupport.genericPointEmbedding V p) z |
| 177 | |
| 178 | @[simp] |
| 179 | theorem toPointFinsupp_apply [Zero R] (z : DimensionCycle R V p) |
| 180 | (Z : DimensionCycleSupport V p) : z.toPointFinsupp Z.genericPoint = z Z := |
| 181 | Finsupp.embDomain_apply_self _ _ _ |
| 182 | |
| 183 | theorem toPointFinsupp_injective [Zero R] : |
| 184 | Function.Injective (DimensionCycle.toPointFinsupp : DimensionCycle R V p → V.carrier →₀ R) := |
| 185 | Finsupp.embDomain_injective _ |
| 186 | |
| 187 | /-- These finite cycles determine actual mathlib algebraic cycles with the same |
| 188 | coefficients on the unique generic points of their supports. -/ |
| 189 | def toAlgebraicCycle [Zero R] (z : DimensionCycle R V p) : AlgebraicCycle V.carrier R := |
| 190 | FiniteSupport.Cycles.finsuppToAlgebraicCycle z.toPointFinsupp |
| 191 | |
| 192 | @[simp] |
| 193 | theorem toAlgebraicCycle_apply [Zero R] (z : DimensionCycle R V p) |
| 194 | (Z : DimensionCycleSupport V p) : z.toAlgebraicCycle Z.genericPoint = z Z := |
| 195 | toPointFinsupp_apply z Z |
| 196 | |
| 197 | theorem toAlgebraicCycle_injective [Zero R] : |
| 198 | Function.Injective (DimensionCycle.toAlgebraicCycle : DimensionCycle R V p → AlgebraicCycle V.carrier R) := by |
| 199 | intro z w h |
| 200 | apply Finsupp.ext |
| 201 | intro Z |
| 202 | have he := congrArg (fun c : AlgebraicCycle V.carrier R => c Z.genericPoint) h |
| 203 | simpa only [toAlgebraicCycle_apply] using he |
| 204 | |
| 205 | /-- Actual irreducible closed supports form the free basis of these cycles. -/ |
| 206 | def basis (R : Type v) [Semiring R] (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) : |
| 207 | Module.Basis (DimensionCycleSupport V p) R (DimensionCycle R V p) := |
| 208 | Finsupp.basisSingleOne |
| 209 | |
| 210 | @[simp] |
| 211 | theorem basis_apply [Semiring R] (Z : DimensionCycleSupport V p) : |
| 212 | basis R V p Z = Finsupp.single Z (1 : R) := rfl |
| 213 | |
| 214 | /-- Every cycle is its finite linear combination of actual irreducible supports. -/ |
| 215 | theorem eq_sum_support [Semiring R] (z : DimensionCycle R V p) : |
| 216 | z = ∑ Z ∈ z.support, z Z • Finsupp.single Z (1 : R) := by |
| 217 | classical |
| 218 | simpa only [Finsupp.sum, Finsupp.smul_single_one] using (Finsupp.sum_single z).symm |
| 219 | |
| 220 | /-- The dimension grade is a concrete supported submodule, using the fixed |
| 221 | function-field dimensions above rather than an arbitrary weight function. -/ |
| 222 | def supportedSubmodule (R : Type v) [Semiring R] (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) : |
| 223 | Submodule R (IrreducibleCloseds V.carrier →₀ R) := |
| 224 | Finsupp.supported R R {Z | dimensionCodimension V Z = p} |
| 225 | |
| 226 | /-- Finite support labels and the concrete supported submodule are equivalent. -/ |
| 227 | def equivSupported (R : Type v) [Semiring R] (V : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (p : ℕ) : |
| 228 | DimensionCycle R V p ≃ₗ[R] supportedSubmodule R V p := |
| 229 | (Finsupp.supportedEquivFinsupp (R := R) {Z | dimensionCodimension V Z = p}).symm |
| 230 | |
| 231 | end DimensionCycle |
| 232 | |
| 233 | end |
| 234 | |
| 235 | end OAI.AlgebraicGeometry.CycleClass.Geometric.DimensionCycles |