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.RepresentationTheory.Theta.Analytic |
| 2 | import OAI.RepresentationTheory.Theta.Definitions |
| 3 | |
| 4 | /-! # Completion Analysis -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.CompletionAnalysis |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The independent quadratic parameter makes the completed jets smooth. -/ |
| 13 | |
| 14 | open scoped Classical _root_.Matrix ContDiff _root_.Matrix.Norms.Elementwise BoundedContinuousFunction |
| 15 | open _root_.Matrix |
| 16 | |
| 17 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 18 | |
| 19 | def auxiliaryTheta (L : Submodule ℤ (ι → ℝ)) (φ : L →ᵇ ℂ) |
| 20 | (p : Matrix ι ι ℂ × Matrix ι ι ℂ) (z : ι → ℂ) : ℂ := |
| 21 | AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaCompletionFactor (((Real.pi : ℂ) / 2) • AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion.CM.complexMatrixBilinear p.2) z * |
| 22 | Definitions.theta L φ p.1 z |
| 23 | |
| 24 | omit [DecidableEq ι] in |
| 25 | theorem quadratic_factor_contDiff : |
| 26 | ContDiff ℂ ω (fun w : (Matrix ι ι ℂ × Matrix ι ι ℂ) × (ι → ℂ) => |
| 27 | AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaCompletionFactor (((Real.pi : ℂ) / 2) • AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion.CM.complexMatrixBilinear w.1.2) w.2) := by |
| 28 | simp only [AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaCompletionFactor, _root_.smul_apply, smul_eq_mul, |
| 29 | AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion.CM.complexMatrixBilinear_apply, dotProduct, mulVec] |
| 30 | fun_prop |
| 31 | |
| 32 | omit [DecidableEq ι] in |
| 33 | theorem auxiliaryTheta_contDiffAt |
| 34 | (L : Submodule ℤ (ι → ℝ)) [DiscreteTopology L] (φ : L →ᵇ ℂ) |
| 35 | (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (W : Matrix ι ι ℂ) (z : ι → ℂ) : |
| 36 | ContDiffAt ℂ ω (Function.uncurry (auxiliaryTheta L φ)) ((Z.matrix, W), z) := by |
| 37 | have hθ : ContDiffAt ℂ ω |
| 38 | (fun w : Matrix ι ι ℂ × (ι → ℂ) => Definitions.theta L φ w.1 w.2) (Z.matrix, z) := |
| 39 | (Analytic.theta_joint_analytic L φ Z z).contDiffAt |
| 40 | have hc : ContDiffAt ℂ ω |
| 41 | (fun w : (Matrix ι ι ℂ × Matrix ι ι ℂ) × (ι → ℂ) => (w.1.1, w.2)) |
| 42 | ((Z.matrix, W), z) := by fun_prop |
| 43 | have hr : ContDiffAt ℂ ω |
| 44 | (fun w : (Matrix ι ι ℂ × Matrix ι ι ℂ) × (ι → ℂ) => Definitions.theta L φ w.1.1 w.2) |
| 45 | ((Z.matrix, W), z) := by |
| 46 | simpa only [Function.comp_def] using! (hθ.comp ((Z.matrix, W), z) hc) |
| 47 | exact quadratic_factor_contDiff.contDiffAt.mul hr |
| 48 | |
| 49 | theorem completedTheta_contDiff |
| 50 | (L : Submodule ℤ (ι → ℝ)) [DiscreteTopology L] (φ : L →ᵇ ℂ) |
| 51 | (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : ContDiff ℂ ω (Definitions.completedTheta L φ Z.matrix) := by |
| 52 | apply contDiff_iff_contDiffAt.mpr |
| 53 | intro z |
| 54 | exact (auxiliaryTheta_contDiffAt L φ Z ((AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.matrixImaginary Z.matrix)⁻¹) z).comp z |
| 55 | (contDiffAt_const.prodMk contDiffAt_id) |
| 56 | |
| 57 | theorem completedTensor_contDiffAt |
| 58 | (L : Submodule ℤ (ι → ℝ)) [DiscreteTopology L] (φ : L →ᵇ ℂ) |
| 59 | (a : ℕ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : |
| 60 | ContDiffAt ℝ ω (Definitions.completedTensor L φ a) Z.matrix := by |
| 61 | let W := (AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.matrixImaginary Z.matrix)⁻¹ |
| 62 | have hj : ContDiffAt ℂ ω |
| 63 | (fun p : Matrix ι ι ℂ × Matrix ι ι ℂ => |
| 64 | iteratedFDeriv ℂ a (auxiliaryTheta L φ p) 0) (Z.matrix, W) := |
| 65 | (Definitions.partial_iteratedFDeriv_contDiffAt |
| 66 | (auxiliaryTheta_contDiffAt L φ Z W 0) a).comp (Z.matrix, W) |
| 67 | (contDiffAt_id.prodMk contDiffAt_const) |
| 68 | have hc : ContDiffAt ℝ ω |
| 69 | (fun A : Matrix ι ι ℂ => (A, (AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.matrixImaginary A)⁻¹)) Z.matrix := |
| 70 | contDiffAt_id.prodMk (Definitions.inverse_imaginary_contDiffAt Z) |
| 71 | exact ((hj.restrict_scalars ℝ).comp Z.matrix hc).const_smul |
| 72 | ((Nat.factorial a : ℂ)⁻¹) |
| 73 | |
| 74 | theorem completedTensor_smooth |
| 75 | (L : Submodule ℤ (ι → ℝ)) [DiscreteTopology L] (φ : L →ᵇ ℂ) (a : ℕ) : |
| 76 | ContDiffOn ℝ ⊤ (Definitions.completedTensor L φ a) Definitions.siegelDomain := by |
| 77 | intro A hA |
| 78 | exact ((completedTensor_contDiffAt L φ a ⟨A, hA.1, hA.2⟩).of_le le_top).contDiffWithinAt |
| 79 | |
| 80 | theorem completedTensor_symmetric |
| 81 | (L : Submodule ℤ (ι → ℝ)) [DiscreteTopology L] (φ : L →ᵇ ℂ) |
| 82 | (a : ℕ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (σ : Equiv.Perm (Fin a)) |
| 83 | (v : Fin a → (ι → ℂ)) : |
| 84 | Definitions.completedTensor L φ a Z.matrix (fun i => v (σ i)) = |
| 85 | Definitions.completedTensor L φ a Z.matrix v := by |
| 86 | have h := ((completedTheta_contDiff L φ Z).contDiffAt (x := 0)).iteratedFDeriv_comp_perm v σ |
| 87 | simpa only [Definitions.completedTensor, _root_.smul_apply, smul_eq_mul, Function.comp_def] |
| 88 | using! congrArg (fun t : ℂ => (Nat.factorial a : ℂ)⁻¹ * t) h |
| 89 | |
| 90 | end |
| 91 | |
| 92 | /-! |
| 93 | # CompletedTheta: transformation of completed theta tensors |
| 94 | |
| 95 | This proves the committed coordinate specification, using its uncompleted |
| 96 | functional equation as the explicit hypothesis `h_PoissonAutomorphy_Poisson` (called |
| 97 | `hPoisson` in Statements/CompletedTheta.lean). Its Gaussian cocycle agrees with the last |
| 98 | clause of corrected PoissonAutomorphy, but the two hypotheses are not literally identical: |
| 99 | PoissonAutomorphy sums finite Schwartz inputs over rational positions, whereas this target |
| 100 | sums bounded inputs over real discrete lattices. No statement stub is used. |
| 101 | |
| 102 | PrescribedSigns supplies positive period data upstream, while LocalWeil supplies local Weil |
| 103 | formulas upstream of PoissonAutomorphy; neither is needed once the target's Siegel matrices |
| 104 | and uncompleted functional equation are given. Rationality and the specified |
| 105 | half-determinant square are retained, although cancellation and differentiation |
| 106 | work for any scalar multiplier satisfying the given functional equation. |
| 107 | |
| 108 | As in the committed target, bounded restrictions to discrete lattices model |
| 109 | the finite inputs. The adelic-to-lattice interface is not asserted here: the |
| 110 | target already assumes its coordinate functional equation. No additional |
| 111 | substantive hypothesis is imposed. `Compatibility.lean` isolates the |
| 112 | transfer from corrected PoissonAutomorphy for arbitrary lattice presentations. |
| 113 | `Arithmetic.lean` constructs the source's arithmetic data and proves |
| 114 | both theta-sum identifications, using PoissonAutomorphy's normalized finite-action and |
| 115 | half-determinant pair. The elementwise matrix norm provides the standard |
| 116 | finite-dimensional coordinate calculus. |
| 117 | -/ |
| 118 | |
| 119 | open scoped Classical _root_.Matrix ContDiff _root_.Matrix.Norms.Elementwise BoundedContinuousFunction |
| 120 | open _root_.Matrix |
| 121 | |
| 122 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 123 | |
| 124 | theorem completedTheta_eq_completionForm |
| 125 | (L : Submodule ℤ (ι → ℝ)) (φ : L →ᵇ ℂ) |
| 126 | (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ) : |
| 127 | Definitions.completedTheta L φ Z.matrix z = |
| 128 | AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaCompletionFactor Z.completionForm z * Definitions.theta L φ Z.matrix z := by |
| 129 | simp only [Definitions.completedTheta, AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaCompletionFactor, _root_.smul_apply, |
| 130 | smul_eq_mul, AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion.CM.complexMatrixBilinear_apply, Z.completionForm_quadratic] |
| 131 | |
| 132 | theorem completedTheta_covariance |
| 133 | (L Lnew : Submodule ℤ (ι → ℝ)) (φ : L →ᵇ ℂ) (φnew : Lnew →ᵇ ℂ) |
| 134 | (g : AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.SymplecticBlocks ι ℝ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (c : ℂ) |
| 135 | (h_PoissonAutomorphy_Poisson : ∀ z : ι → ℂ, |
| 136 | Definitions.theta Lnew φnew (g.transformSiegel Z).matrix (g.jacobiChange Z z) = |
| 137 | c * (Complex.exp (g.thetaCorrectionForm Z z z) * Definitions.theta L φ Z.matrix z)) |
| 138 | (z : ι → ℂ) : |
| 139 | Definitions.completedTheta Lnew φnew (g.transformSiegel Z).matrix (g.jacobiChange Z z) = |
| 140 | c * Definitions.completedTheta L φ Z.matrix z := by |
| 141 | rw [completedTheta_eq_completionForm, completedTheta_eq_completionForm] |
| 142 | exact AlgebraicGeometry.ComplexMultiplication.ThetaCovariance.CM.theta_completion_covariance (g.jacobiChange Z) Z.completionForm |
| 143 | (g.transformSiegel Z).completionForm (g.thetaCorrectionForm Z) c |
| 144 | (Definitions.theta L φ Z.matrix) (Definitions.theta Lnew φnew (g.transformSiegel Z).matrix) |
| 145 | h_PoissonAutomorphy_Poisson (g.completion_correction_identity Z) z |
| 146 | |
| 147 | theorem completedTensor_covariance |
| 148 | (L Lnew : Submodule ℤ (ι → ℝ)) |
| 149 | [DiscreteTopology L] [DiscreteTopology Lnew] |
| 150 | (φ : L →ᵇ ℂ) (φnew : Lnew →ᵇ ℂ) |
| 151 | (g : AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.SymplecticBlocks ι ℝ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (c : ℂ) |
| 152 | (h_PoissonAutomorphy_Poisson : ∀ z : ι → ℂ, |
| 153 | Definitions.theta Lnew φnew (g.transformSiegel Z).matrix (g.jacobiChange Z z) = |
| 154 | c * (Complex.exp (g.thetaCorrectionForm Z z z) * Definitions.theta L φ Z.matrix z)) |
| 155 | (a : ℕ) (v : Fin a → (ι → ℂ)) : |
| 156 | Definitions.completedTensor Lnew φnew a (g.transformSiegel Z).matrix |
| 157 | (fun i => g.jacobiChange Z (v i)) = |
| 158 | c * Definitions.completedTensor L φ a Z.matrix v := by |
| 159 | have heq : Definitions.completedTheta Lnew φnew (g.transformSiegel Z).matrix ∘ |
| 160 | g.jacobiChange Z = c • Definitions.completedTheta L φ Z.matrix := |
| 161 | funext (completedTheta_covariance L Lnew φ φnew g Z c h_PoissonAutomorphy_Poisson) |
| 162 | have hd := congrArg (fun f : (ι → ℂ) → ℂ => iteratedFDeriv ℂ a f 0) heq |
| 163 | rw [(g.jacobiChange Z).iteratedFDeriv_comp_right |
| 164 | (completedTheta_contDiff Lnew φnew (g.transformSiegel Z)) 0 (by simp), |
| 165 | iteratedFDeriv_const_smul_apply |
| 166 | ((completedTheta_contDiff L φ Z).contDiffAt.of_le (by simp))] at hd |
| 167 | have hv := congrArg (fun T => T v) hd |
| 168 | simp only [map_zero, ContinuousMultilinearMap.compContinuousLinearMap_apply, |
| 169 | _root_.smul_apply, smul_eq_mul] at hv |
| 170 | simp only [Definitions.completedTensor, _root_.smul_apply, smul_eq_mul, hv] |
| 171 | ring |
| 172 | |
| 173 | /-- The complete CompletedTheta conclusion, conditional on its stated Weil/Poisson input. -/ |
| 174 | theorem completed_theta_tensor_transformation |
| 175 | (L Lnew : Submodule ℤ (ι → ℝ)) |
| 176 | [DiscreteTopology L] [DiscreteTopology Lnew] |
| 177 | (φ : L →ᵇ ℂ) (φnew : Lnew →ᵇ ℂ) |
| 178 | (gQ : AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.SymplecticBlocks ι ℚ) |
| 179 | (g : AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.SymplecticBlocks ι ℝ) |
| 180 | (_hA : g.A = gQ.A.map (algebraMap ℚ ℝ)) |
| 181 | (_hB : g.B = gQ.B.map (algebraMap ℚ ℝ)) |
| 182 | (_hC : g.C = gQ.C.map (algebraMap ℚ ℝ)) |
| 183 | (_hD : g.D = gQ.D.map (algebraMap ℚ ℝ)) |
| 184 | (halfDet : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι → ℂ) |
| 185 | (_h_E24_halfDet : ∀ Z, |
| 186 | halfDet Z ^ 2 = (g.complexify.denominator Z.matrix).det) |
| 187 | (h_PoissonAutomorphy_Poisson : ∀ (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ), |
| 188 | Definitions.theta Lnew φnew (g.transformSiegel Z).matrix (g.jacobiChange Z z) = |
| 189 | halfDet Z * (Complex.exp (g.thetaCorrectionForm Z z z) * Definitions.theta L φ Z.matrix z)) : |
| 190 | (∀ a : ℕ, ContDiffOn ℝ ⊤ (Definitions.completedTensor L φ a) Definitions.siegelDomain) ∧ |
| 191 | (∀ (a : ℕ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) |
| 192 | (σ : Equiv.Perm (Fin a)) (v : Fin a → (ι → ℂ)), |
| 193 | Definitions.completedTensor L φ a Z.matrix (fun i => v (σ i)) = |
| 194 | Definitions.completedTensor L φ a Z.matrix v) ∧ |
| 195 | (∀ (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (z : ι → ℂ), |
| 196 | Definitions.completedTheta Lnew φnew (g.transformSiegel Z).matrix (g.jacobiChange Z z) = |
| 197 | halfDet Z * Definitions.completedTheta L φ Z.matrix z) ∧ |
| 198 | (∀ (a : ℕ) (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) (v : Fin a → (ι → ℂ)), |
| 199 | Definitions.completedTensor Lnew φnew a (g.transformSiegel Z).matrix |
| 200 | (fun i => g.jacobiChange Z (v i)) = |
| 201 | halfDet Z * Definitions.completedTensor L φ a Z.matrix v) := by |
| 202 | refine ⟨completedTensor_smooth L φ, completedTensor_symmetric L φ, ?_, ?_⟩ |
| 203 | · intro Z z |
| 204 | exact completedTheta_covariance L Lnew φ φnew g Z (halfDet Z) (h_PoissonAutomorphy_Poisson Z) z |
| 205 | · intro a Z v |
| 206 | exact completedTensor_covariance L Lnew φ φnew g Z (halfDet Z) (h_PoissonAutomorphy_Poisson Z) a v |
| 207 | |
| 208 | end |
| 209 | |
| 210 | end OAI.RepresentationTheory.Theta.CompletionAnalysis |