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.WeightedTheta |
| 3 | import OAI.AlgebraicGeometry.ComplexMultiplication.ThetaCovariance |
| 4 | import OAI.AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion |
| 5 | |
| 6 | /-! # Definitions -/ |
| 7 | |
| 8 | namespace OAI.RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Definition-only copy of the DerivativeFactorization input and kernel specifications. No statement stubs. -/ |
| 13 | |
| 14 | open scoped Classical _root_.NumberField _root_.Matrix.Norms.Elementwise |
| 15 | |
| 16 | abbrev AQf := IsDedekindDomain.FiniteAdeleRing ℤ ℚ |
| 17 | abbrev AQ := NumberField.AdeleRing ℤ ℚ |
| 18 | |
| 19 | /-- Schwartz–Bruhat functions on a finite-adelic position space. -/ |
| 20 | abbrev FiniteSchwartz (X : Type*) [TopologicalSpace X] := |
| 21 | { φ : X → ℂ // IsLocallyConstant φ ∧ HasCompactSupport φ } |
| 22 | |
| 23 | abbrev Input (ι : Type*) := FiniteSchwartz (ι → AQf) |
| 24 | |
| 25 | variable {ι κ : Type*} [Fintype ι] [Fintype κ] |
| 26 | |
| 27 | def diagonal (x : ι → ℚ) : ι → AQf := |
| 28 | fun i => algebraMap ℚ AQf (x i) |
| 29 | |
| 30 | def realPosition (x : ι → ℚ) : ι → ℝ := |
| 31 | fun i => (x i : ℝ) |
| 32 | |
| 33 | /-- The manuscript's Gaussian with its linear Jacobi term. -/ |
| 34 | def kernel (B : Matrix ι ι ℂ) |
| 35 | (x : ι → ℚ) (z : ι → ℂ) : ℂ := |
| 36 | Complex.exp |
| 37 | ((Real.pi : ℂ) * Complex.I * |
| 38 | AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.siegelMatrixForm B (realPosition x) (realPosition x) + |
| 39 | (2 * (Real.pi : ℂ) * Complex.I) * |
| 40 | AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι (realPosition x) z) |
| 41 | |
| 42 | def theta (φ : Input ι) |
| 43 | (B : Matrix ι ι ℂ) (z : ι → ℂ) : ℂ := |
| 44 | ∑' x : ι → ℚ, φ.1 (diagonal x) * kernel B x z |
| 45 | |
| 46 | def completed (φ : Input ι) |
| 47 | (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : ℂ := |
| 48 | AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaCompletionFactor Z.completionForm z * theta φ Z.matrix z |
| 49 | |
| 50 | def firstCoefficient (φ : Input ι) |
| 51 | (B : Matrix ι ι ℂ) : (ι → ℂ) →L[ℂ] ℂ := |
| 52 | ∑' x : ι → ℚ, |
| 53 | φ.1 (diagonal x) • |
| 54 | AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaPhaseGradientTerm (AlgebraicGeometry.ComplexMultiplication.ThetaCoordinates.CM.thetaCoordinatePairing ι) |
| 55 | (realPosition x) (AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.siegelMatrixForm B) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.RepresentationTheory.Theta.Kernel.Definitions.DerivativeFactorization |