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 |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.GaloisCMType |
| 3 | import OAI.AlgebraicGeometry.ComplexMultiplication.CohomologyBaseChange |
| 4 | import OAI.AlgebraicGeometry.ComplexMultiplication.ThetaCompletion |
| 5 | import OAI.AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates |
| 6 | import OAI.AlgebraicTopology.DeRham.Comparison.ProjectiveHodgeQuotient |
| 7 | import OAI.AlgebraicTopology.DeRham.Comparison.ProjectiveHodgeNaturality |
| 8 | |
| 9 | /-! # Geometric Source -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # Concrete geometric source data for HeckeCycles |
| 17 | |
| 18 | The source predicate below records a Hermitian lattice, rational symplectic |
| 19 | coordinates, the prescribed positive Lagrangian, its half-determinant frame, |
| 20 | an actual finite Schwartz input, and actual closed one-forms on projective |
| 21 | ball quotients. The classes are identified by the canonical integration map. |
| 22 | It contains no Hecke projector, slope, CM summand, or extraction assertion. |
| 23 | |
| 24 | The Hermitian space is written in the diagonal coordinates (1,1,b) already |
| 25 | used by ArithmeticQuotient. A multiplicity line is E with Hermitian coefficient a. Frames |
| 26 | for its Lagrangian use L and the annihilator of L at the distinguished pair, |
| 27 | and the full selected embedding space at the other pairs. The period graph |
| 28 | is (Z x,x), matching the manuscript's convention. The squared half-determinant |
| 29 | is the determinant of the change from graph coordinates to these frames. |
| 30 | -/ |
| 31 | |
| 32 | open scoped Classical _root_.Manifold _root_.Matrix.Norms.Elementwise TensorProduct |
| 33 | open _root_.CategoryTheory |
| 34 | open OAI.AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField |
| 35 | |
| 36 | abbrev Vec (K : Type*) := Fin 3 → K |
| 37 | abbrev BallChart := Fin 2 → ℂ |
| 38 | |
| 39 | variable (E : IntermediateField ℚ ℂ) |
| 40 | [NumberField E] [NumberField.IsCMField E] |
| 41 | |
| 42 | def hermitian (b : E) (x y : Vec E) : E := |
| 43 | ∑ j, (if j = 2 then b else 1) * x j * ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (y j) |
| 44 | |
| 45 | /-- Raw lattice and signature data; these are not cohomological conditions. -/ |
| 46 | structure BallDatum where |
| 47 | b : E |
| 48 | conjugate_b : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E b = b |
| 49 | negative : (b : ℂ).re < 0 |
| 50 | definite : ∀ τ : Gal(E/ℚ), τ ≠ 1 → τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E → |
| 51 | 0 < ((τ b : E) : ℂ).re |
| 52 | other_place : ∃ τ : Gal(E/ℚ), τ ≠ 1 ∧ τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E |
| 53 | lattice : Submodule ℤ (Vec E) |
| 54 | lattice_fg : lattice.FG |
| 55 | lattice_full : Submodule.span ℚ (lattice : Set (Vec E)) = ⊤ |
| 56 | lattice_stable : ∀ (a : NumberField.RingOfIntegers E) (x : Vec E), |
| 57 | x ∈ lattice → (a : E) • x ∈ lattice |
| 58 | |
| 59 | namespace BallDatum |
| 60 | |
| 61 | variable {E} (B : BallDatum E) |
| 62 | |
| 63 | def domain : Set BallChart := |
| 64 | {z | Complex.normSq (z 0) + Complex.normSq (z 1) < -(B.b : ℂ).re} |
| 65 | |
| 66 | theorem domain_isOpen : IsOpen B.domain := by |
| 67 | apply isOpen_lt _ continuous_const |
| 68 | exact (Complex.continuous_normSq.comp (continuous_apply 0)).add |
| 69 | (Complex.continuous_normSq.comp (continuous_apply 1)) |
| 70 | |
| 71 | def domainOpen : TopologicalSpace.Opens BallChart := ⟨B.domain, B.domain_isOpen⟩ |
| 72 | abbrev Domain := B.domainOpen |
| 73 | |
| 74 | def lineVector (z : BallChart) : Vec ℂ := ![z 0, z 1, 1] |
| 75 | |
| 76 | def principalLevel (N : ℕ) (g : Vec E ≃ₗ[E] Vec E) : Prop := |
| 77 | (∀ x y, hermitian E B.b (g x) (g y) = hermitian E B.b x y) ∧ |
| 78 | LinearMap.det g.toLinearMap = 1 ∧ |
| 79 | (∀ x, x ∈ B.lattice ↔ g x ∈ B.lattice) ∧ |
| 80 | ∀ x ∈ B.lattice, ∃ y ∈ B.lattice, g x - x = (N : ℤ) • y |
| 81 | |
| 82 | def lineAction (g : Vec E ≃ₗ[E] Vec E) (z : BallChart) : BallChart := |
| 83 | let w := ((LinearMap.toMatrix' g.toLinearMap).map E.subtype).mulVec (lineVector z) |
| 84 | fun j => w j.castSucc / w 2 |
| 85 | |
| 86 | /-- Actual projective quotient geometry, with the arithmetic fibers explicit. -/ |
| 87 | def IsBallCover (N : ℕ) (X : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 88 | (π : B.Domain → X.analyticSpace) : Prop := |
| 89 | X.complexDimension = 2 ∧ |
| 90 | Function.Surjective π ∧ IsCoveringMap π ∧ |
| 91 | MDifferentiable 𝓘(ℂ, BallChart) 𝓘(ℂ, X.analyticModel) π ∧ |
| 92 | (∀ z, Function.Bijective |
| 93 | (mfderiv 𝓘(ℂ, BallChart) 𝓘(ℂ, X.analyticModel) π z)) ∧ |
| 94 | ∀ z w, π z = π w ↔ |
| 95 | ∃ g : Vec E ≃ₗ[E] Vec E, B.principalLevel N g ∧ w.val = lineAction g z.val |
| 96 | |
| 97 | end BallDatum |
| 98 | |
| 99 | abbrev Ambient := Gal(E/ℚ) → Vec ℂ |
| 100 | |
| 101 | def embeddingCoordinates (x : Vec E) : Ambient E := |
| 102 | fun τ j => ((τ (x j) : E) : ℂ) |
| 103 | |
| 104 | def localPairing (b : E) (τ : Gal(E/ℚ)) (x y : Vec ℂ) : ℂ := |
| 105 | ∑ j, (if j = 2 then ((τ b : E) : ℂ) else 1) * x j * y j |
| 106 | |
| 107 | /-- A representative of every conjugate pair, including the identity. -/ |
| 108 | structure Places where |
| 109 | count : ℕ |
| 110 | representative : Fin count → Gal(E/ℚ) |
| 111 | distinguished : Fin count |
| 112 | identity : representative distinguished = 1 |
| 113 | complete : Function.Bijective |
| 114 | (fun p : Fin count × Bool => |
| 115 | if p.2 then ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * representative p.1 else representative p.1) |
| 116 | |
| 117 | abbrev Positions (places : Places E) := Fin places.count × Fin 3 |
| 118 | |
| 119 | def prescribed (B : BallDatum E) (places : Places E) (d : Gal(E/ℚ) → Bool) |
| 120 | (z : BallChart) (w : Ambient E) : Prop := |
| 121 | ∀ i, if i = places.distinguished then |
| 122 | w (places.representative i) ∈ ℂ ∙ BallDatum.lineVector z ∧ |
| 123 | localPairing E B.b (places.representative i) (BallDatum.lineVector z) |
| 124 | (w (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * places.representative i)) = 0 |
| 125 | else if d (places.representative i) then w (places.representative i) = 0 |
| 126 | else w (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * places.representative i) = 0 |
| 127 | |
| 128 | /-- Coordinates in the explicit L, ann(L), and compact-place frames. -/ |
| 129 | def adaptedCoordinates (places : Places E) (d : Gal(E/ℚ) → Bool) : |
| 130 | Ambient E →ₗ[ℂ] (Positions E places → ℂ) where |
| 131 | toFun w p := if p.1 = places.distinguished then |
| 132 | if p.2 = 0 then w (places.representative p.1) 2 |
| 133 | else w (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * places.representative p.1) (p.2 - 1) |
| 134 | else if d (places.representative p.1) then |
| 135 | w (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * places.representative p.1) p.2 |
| 136 | else w (places.representative p.1) p.2 |
| 137 | map_add' _ _ := by ext p; simp only [Pi.add_apply]; split_ifs <;> rfl |
| 138 | map_smul' _ _ := by ext p; simp only [Pi.smul_apply]; split_ifs <;> rfl |
| 139 | |
| 140 | /-- Chosen rational symplectic coordinates and their actual complex extension. -/ |
| 141 | structure SymplecticCoordinates (B : BallDatum E) (places : Places E) where |
| 142 | a : E |
| 143 | a_ne_zero : a ≠ 0 |
| 144 | a_real : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E a = a |
| 145 | delta : E |
| 146 | delta_ne_zero : delta ≠ 0 |
| 147 | delta_imaginary : ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E delta = -delta |
| 148 | rational : Vec E ≃ₗ[ℚ] ((Positions E places → ℚ) × (Positions E places → ℚ)) |
| 149 | complex : Ambient E ≃ₗ[ℂ] ((Positions E places → ℂ) × (Positions E places → ℂ)) |
| 150 | extends_rational : ∀ x, |
| 151 | complex (embeddingCoordinates E x) = |
| 152 | (fun j => ((rational x).1 j : ℂ), fun j => ((rational x).2 j : ℂ)) |
| 153 | symplectic : ∀ x y, |
| 154 | Algebra.trace ℚ E (delta * a * hermitian E B.b x y) = |
| 155 | ∑ j, ((rational x).1 j * (rational y).2 j - |
| 156 | (rational y).1 j * (rational x).2 j) |
| 157 | |
| 158 | def graphInAmbient {B : BallDatum E} {places : Places E} |
| 159 | (C : SymplecticCoordinates E B places) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Positions E places)) : |
| 160 | (Positions E places → ℂ) →ₗ[ℂ] Ambient E := |
| 161 | C.complex.symm.toLinearMap.comp |
| 162 | ((Matrix.toLin' Z.matrix).prod LinearMap.id) |
| 163 | |
| 164 | /-- The actual prescribed Lagrangian in rational Siegel coordinates. -/ |
| 165 | structure LinePeriod (B : BallDatum E) (places : Places E) (d : Gal(E/ℚ) → Bool) where |
| 166 | coordinates : SymplecticCoordinates E B places |
| 167 | period : BallChart → ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix (Positions E places) |
| 168 | holomorphic : DifferentiableOn ℂ (fun z => (period z).matrix) B.domain |
| 169 | graph_prescribed : ∀ z ∈ B.domain, ∀ w : Ambient E, |
| 170 | prescribed E B places d z w ↔ |
| 171 | (coordinates.complex w).1 = (period z).matrix.mulVec (coordinates.complex w).2 |
| 172 | halfDet : BallChart → ℂˣ |
| 173 | halfDet_holomorphic : DifferentiableOn ℂ (fun z => (halfDet z : ℂ)) B.domain |
| 174 | halfDet_square : ∀ z ∈ B.domain, |
| 175 | (halfDet z : ℂ) ^ 2 = LinearMap.det |
| 176 | ((adaptedCoordinates E places d).comp (graphInAmbient E coordinates (period z))) |
| 177 | |
| 178 | abbrev FiniteAdeles := IsDedekindDomain.FiniteAdeleRing ℤ ℚ |
| 179 | abbrev FiniteInput (ι : Type*) := |
| 180 | {φ : (ι → FiniteAdeles) → ℂ // IsLocallyConstant φ ∧ HasCompactSupport φ} |
| 181 | |
| 182 | def rationalPosition {ι : Type*} (x : ι → ℚ) : ι → FiniteAdeles := |
| 183 | fun j => algebraMap ℚ FiniteAdeles (x j) |
| 184 | |
| 185 | /-- The source's actual theta series, before its quadratic completion. -/ |
| 186 | def thetaSeries {ι : Type*} [Fintype ι] |
| 187 | (φ : FiniteInput ι) (Z : ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : ℂ := |
| 188 | ∑' x : ι → ℚ, φ.val (rationalPosition x) * Complex.exp |
| 189 | ((Real.pi : ℂ) * Complex.I * |
| 190 | (∑ i, ∑ j, (x i : ℂ) * Z.matrix i j * (x j : ℂ)) + |
| 191 | (2 * (Real.pi : ℂ) * Complex.I) * ∑ i, (x i : ℂ) * z i) |
| 192 | |
| 193 | /-- Order one is unchanged by completion. This is the literal projected |
| 194 | first derivative, including the half-determinant in the chosen frame. -/ |
| 195 | def thetaOneForm {B : BallDatum E} {places : Places E} {d : Gal(E/ℚ) → Bool} |
| 196 | (L : LinePeriod E B places d) (φ : FiniteInput (Positions E places)) |
| 197 | (z ξ : BallChart) : ℂ := |
| 198 | let derivative := fderiv ℂ (thetaSeries φ (L.period z)) 0 |
| 199 | let coefficients : Positions E places → ℂ := fun j => derivative (Pi.single j 1) |
| 200 | let w := graphInAmbient E L.coordinates (L.period z) coefficients |
| 201 | (L.halfDet z : ℂ) * localPairing E B.b 1 ![ξ 0, ξ 1, 0] |
| 202 | (w (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E)) |
| 203 | |
| 204 | /-- A closed one-form whose pullback is the specified theta derivative. -/ |
| 205 | def RepresentsTheta {B : BallDatum E} {places : Places E} {d : Gal(E/ℚ) → Bool} |
| 206 | (L : LinePeriod E B places d) (φ : FiniteInput (Positions E places)) |
| 207 | (X : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) (π : B.Domain → X.analyticSpace) |
| 208 | (ω : AlgebraicTopology.DeRham.Comparison.ManifoldPureClasses.pureClosedManifoldForms X.analyticModel X.analyticSpace 1 0) : Prop := |
| 209 | ∀ (z : B.Domain) (ξ : BallChart), |
| 210 | ω.val.val.val (π z) |
| 211 | (fun _ : Fin 1 => mfderiv 𝓘(ℝ, BallChart) 𝓘(ℝ, X.analyticModel) π z ξ) = |
| 212 | thetaOneForm E L φ z.val ξ |
| 213 | |
| 214 | /-- The concrete source construction, independently of the extraction theorem. -/ |
| 215 | def IsSourceBallThetaFamily |
| 216 | (d : Gal(E/ℚ) → Bool) (Nbase : ℕ) |
| 217 | (X : ℕ → Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 218 | (Θ : ∀ N : ℕ, ComplexMultiplication.WeightOne.CM.Complexification ((X N).rationalCohomology 1)) : Prop := |
| 219 | ∃ (B : BallDatum E) (places : Places E) (L : LinePeriod E B places d) |
| 220 | (φ : FiniteInput (Positions E places)), |
| 221 | ∀ N : ℕ, 0 < N → Nbase ∣ N → |
| 222 | ∃ (π : B.Domain → (X N).analyticSpace), B.IsBallCover N (X N) π ∧ |
| 223 | ∃ ω : AlgebraicTopology.DeRham.Comparison.ManifoldPureClasses.pureClosedManifoldForms |
| 224 | (X N).analyticModel (X N).analyticSpace 1 0, |
| 225 | RepresentsTheta E L φ (X N) π ω ∧ |
| 226 | ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace (X N).toOver) 1 (Θ N) = |
| 227 | ((X N).deRhamBettiIso 1).hom ((X N).deRhamClass 1 ω.val) |
| 228 | |
| 229 | /-- The geometric source construction supplies the original holomorphic type; |
| 230 | this is proved from the actual pure form and integration comparison. -/ |
| 231 | theorem source_class_holomorphic |
| 232 | (d : Gal(E/ℚ) → Bool) (Nbase : ℕ) |
| 233 | (X : ℕ → Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety) |
| 234 | (Θ : ∀ N : ℕ, ComplexMultiplication.WeightOne.CM.Complexification ((X N).rationalCohomology 1)) |
| 235 | (hsource : IsSourceBallThetaFamily E d Nbase X Θ) |
| 236 | (N : ℕ) (hN : 0 < N) (hdiv : Nbase ∣ N) |
| 237 | (H : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure ((X N).rationalCohomology 1)) |
| 238 | (hH : H.holomorphic = ((X N).pureBettiSubspace 1 0).comap |
| 239 | (ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace (X N).toOver) 1)) : |
| 240 | Θ N ∈ H.holomorphic := by |
| 241 | obtain ⟨B, places, L, φ, hlevels⟩ := hsource |
| 242 | obtain ⟨π, _, ω, _, hclass⟩ := hlevels N hN hdiv |
| 243 | rw [hH] |
| 244 | change ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace (X N).toOver) 1 (Θ N) ∈ |
| 245 | (X N).pureBettiSubspace 1 0 |
| 246 | rw [hclass, ← (X N).clayHodgeToBetti_projection 1 0 ω, |
| 247 | ← (X N).clayHodgeToBetti_range 1 0] |
| 248 | exact LinearMap.mem_range_self _ _ |
| 249 | |
| 250 | omit [NumberField E] [NumberField.IsCMField E] in |
| 251 | /-- Coefficient extension respects the actual scheme pullback. -/ |
| 252 | theorem complexification_pullback {X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 253 | (f : X.toOver ⟶ Y.toOver) (n : ℕ) |
| 254 | (x : ComplexMultiplication.WeightOne.CM.Complexification (Y.rationalCohomology n)) : |
| 255 | ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace X.toOver) n |
| 256 | ((Betti.Scheme.schemeBettiMap (ModuleCat.of ℚ ℚ) n f).hom.baseChange ℂ x) = |
| 257 | Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) n f |
| 258 | (ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace Y.toOver) n x) := by |
| 259 | induction x using TensorProduct.inductionOn with |
| 260 | | tmul z c => |
| 261 | simp only [LinearMap.baseChange_tmul, ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification_tmul] |
| 262 | exact (congrArg (fun y : X.complexCohomology n => z • y) |
| 263 | (ConcreteCategory.congr_hom (Betti.Scheme.schemeBettiRationalInclusion_naturality f n) c)).trans |
| 264 | ((Betti.Scheme.schemeBettiMap (ModuleCat.of ℂ ℂ) n f).hom.map_smul z _).symm |
| 265 | | add x y hx hy => simp only [map_add, hx, hy] |
| 266 | |
| 267 | omit [NumberField E] [NumberField.IsCMField E] in |
| 268 | /-- A matching restriction map is the actual rational scheme pullback; |
| 269 | its Hodge compatibility follows from pure-form naturality. -/ |
| 270 | theorem actual_restriction_isHodgeMap {X Y : Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety} |
| 271 | (f : X.toOver ⟶ Y.toOver) |
| 272 | (HX : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure (X.rationalCohomology 1)) |
| 273 | (HY : ComplexMultiplication.WeightOne.CM.WeightOneHodgeStructure (Y.rationalCohomology 1)) |
| 274 | (hX : HX.holomorphic = (X.pureBettiSubspace 1 0).comap |
| 275 | (ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace X.toOver) 1)) |
| 276 | (hY : HY.holomorphic = (Y.pureBettiSubspace 1 0).comap |
| 277 | (ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace Y.toOver) 1)) : |
| 278 | ComplexMultiplication.WeightOne.CM.IsHodgeMap HY HX (Betti.Scheme.schemeBettiMap (ModuleCat.of ℚ ℚ) 1 f).hom := by |
| 279 | intro x hx |
| 280 | rw [hX] |
| 281 | rw [hY] at hx |
| 282 | change ComplexMultiplication.CohomologyBaseChange.CM.singularCohomologyComplexification (Betti.Scheme.schemePointSpace X.toOver) 1 |
| 283 | ((Betti.Scheme.schemeBettiMap (ModuleCat.of ℚ ℚ) 1 f).hom.baseChange ℂ x) ∈ X.pureBettiSubspace 1 0 |
| 284 | rw [complexification_pullback] |
| 285 | exact Foundations.Scheme.IntegralProjective.IntegralProjectiveVariety.complexBettiPullback_mem_pureBettiSubspace f 1 0 hx |
| 286 | |
| 287 | end |
| 288 | |
| 289 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |