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.SymplecticThetaCompletion |
| 4 | |
| 5 | /-! # Definitions -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Theta.Definitions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | Definitions from the committed CompletedTheta specification, reproduced in a unique |
| 15 | namespace so the proof does not import the statement's sorry theorem. |
| 16 | -/ |
| 17 | |
| 18 | open scoped Classical _root_.Matrix BoundedContinuousFunction |
| 19 | open _root_.Matrix |
| 20 | |
| 21 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 22 | |
| 23 | /-- Matrix-coordinate theta sum; a support lattice represents the |
| 24 | restriction of a finite Schwartz–Bruhat input to rational positions. -/ |
| 25 | def theta |
| 26 | (L : Submodule ℤ (ι → ℝ)) (φ : L →ᵇ ℂ) |
| 27 | (Z : Matrix ι ι ℂ) (z : ι → ℂ) : ℂ := |
| 28 | ∑' x : L, |
| 29 | φ x * Complex.exp |
| 30 | ((Real.pi : ℂ) * Complex.I * |
| 31 | AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.siegelMatrixForm Z (x : ι → ℝ) (x : ι → ℝ) + |
| 32 | (2 * (Real.pi : ℂ) * Complex.I) * |
| 33 | (∑ i, (((x : ι → ℝ) i : ℝ) : ℂ) * z i)) |
| 34 | |
| 35 | /-- `exp ((π/2) zᵀ (Im Z)⁻¹ z) θφ(Z,z)`. -/ |
| 36 | def completedTheta |
| 37 | (L : Submodule ℤ (ι → ℝ)) (φ : L →ᵇ ℂ) |
| 38 | (Z : Matrix ι ι ℂ) (z : ι → ℂ) : ℂ := |
| 39 | AlgebraicGeometry.ComplexMultiplication.ThetaCompletion.CM.thetaCompletionFactor |
| 40 | (((Real.pi : ℂ) / 2) • |
| 41 | AlgebraicGeometry.ComplexMultiplication.SymplecticThetaCompletion.CM.complexMatrixBilinear ((AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.matrixImaginary Z)⁻¹)) z * |
| 42 | theta L φ Z z |
| 43 | |
| 44 | /-- Taylor coefficient, with the `1/a!` normalization. -/ |
| 45 | def completedTensor |
| 46 | (L : Submodule ℤ (ι → ℝ)) (φ : L →ᵇ ℂ) |
| 47 | (a : ℕ) (Z : Matrix ι ι ℂ) : |
| 48 | ContinuousMultilinearMap ℂ (fun _ : Fin a => ι → ℂ) ℂ := |
| 49 | ((Nat.factorial a : ℂ)⁻¹) • |
| 50 | iteratedFDeriv ℂ a (completedTheta L φ Z) 0 |
| 51 | |
| 52 | def siegelDomain : Set (Matrix ι ι ℂ) := |
| 53 | {Z | Z.IsSymm ∧ Matrix.PosDef (fun i j => (Z i j).im)} |
| 54 | |
| 55 | end |
| 56 | |
| 57 | /-! Parameter-dependent Taylor tensors and the inverse imaginary matrix. -/ |
| 58 | |
| 59 | open scoped Classical _root_.Matrix ContDiff _root_.Matrix.Norms.Elementwise |
| 60 | |
| 61 | theorem partial_iteratedFDeriv_contDiffAt |
| 62 | {E F G : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] |
| 63 | [NormedAddCommGroup F] [NormedSpace ℂ F] |
| 64 | [NormedAddCommGroup G] [NormedSpace ℂ G] |
| 65 | {f : E → F → G} {x : E} {z : F} |
| 66 | (h : ContDiffAt ℂ ω (Function.uncurry f) (x, z)) (a : ℕ) : |
| 67 | ContDiffAt ℂ ω |
| 68 | (fun w : E × F => iteratedFDeriv ℂ a (f w.1) w.2) (x, z) := by |
| 69 | induction a with |
| 70 | | zero => |
| 71 | simpa only [iteratedFDeriv_zero_eq_comp, Function.comp_def, Function.uncurry_def] using! |
| 72 | h.continuousLinearMap_comp |
| 73 | ((continuousMultilinearCurryFin0 ℂ F G).symm : G →L[ℂ] F [×0]→L[ℂ] G) |
| 74 | | succ a ih => |
| 75 | have hc : ContDiffAt ℂ ω |
| 76 | (fun w : (E × F) × F => iteratedFDeriv ℂ a (f w.1.1) w.2) |
| 77 | ((x, z), z) := |
| 78 | ih.comp ((x, z), z) (contDiffAt_fst.fst.prodMk contDiffAt_snd) |
| 79 | have hd : ContDiffAt ℂ ω |
| 80 | (fun w : E × F => fderiv ℂ (iteratedFDeriv ℂ a (f w.1)) w.2) (x, z) := |
| 81 | hc.fderiv contDiffAt_snd (by simp) |
| 82 | simpa only [iteratedFDeriv_succ_eq_comp_left, Function.comp_def, Function.uncurry_def] using! |
| 83 | hd.continuousLinearMap_comp |
| 84 | ((continuousMultilinearCurryLeftEquiv ℂ (fun _ : Fin (a + 1) => F) G).symm : |
| 85 | (F →L[ℂ] F [×a]→L[ℂ] G) →L[ℂ] F [×(a + 1)]→L[ℂ] G) |
| 86 | |
| 87 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 88 | |
| 89 | theorem matrix_det_contDiff : ContDiff ℝ ω (Matrix.det : Matrix ι ι ℂ → ℂ) := by |
| 90 | change ContDiff ℝ ω (fun A : Matrix ι ι ℂ => A.det) |
| 91 | simp only [Matrix.det_apply'] |
| 92 | fun_prop |
| 93 | |
| 94 | theorem matrix_adjugate_contDiff : |
| 95 | ContDiff ℝ ω (Matrix.adjugate : Matrix ι ι ℂ → Matrix ι ι ℂ) := by |
| 96 | apply contDiff_pi.mpr |
| 97 | intro i |
| 98 | apply contDiff_pi.mpr |
| 99 | intro j |
| 100 | simp only [Matrix.adjugate_apply] |
| 101 | apply matrix_det_contDiff.comp |
| 102 | apply contDiff_pi.mpr |
| 103 | intro k |
| 104 | apply contDiff_pi.mpr |
| 105 | intro l |
| 106 | simp only [Matrix.updateRow_apply] |
| 107 | split_ifs <;> fun_prop |
| 108 | |
| 109 | theorem matrix_inverse_contDiffAt (M : Matrix ι ι ℂ) (hM : IsUnit M.det) : |
| 110 | ContDiffAt ℝ ω (fun A : Matrix ι ι ℂ => A⁻¹) M := by |
| 111 | simp only [Matrix.inv_def, Ring.inverse_eq_inv'] |
| 112 | exact (matrix_det_contDiff.contDiffAt.inv hM.ne_zero).smul |
| 113 | matrix_adjugate_contDiff.contDiffAt |
| 114 | |
| 115 | theorem inverse_imaginary_contDiffAt (Z : AlgebraicGeometry.ComplexMultiplication.CMSiegelMatrix.CM.SiegelMatrix ι) : |
| 116 | ContDiffAt ℝ ω (fun A : Matrix ι ι ℂ => (AlgebraicGeometry.ComplexMultiplication.CMSymplecticSiegel.CM.matrixImaginary A)⁻¹) Z.matrix := by |
| 117 | apply (matrix_inverse_contDiffAt _ Z.matrixImaginary_det_isUnit).comp Z.matrix |
| 118 | change ContDiffAt ℝ ω (fun A : Matrix ι ι ℂ => fun i j => |
| 119 | Complex.ofRealCLM (Complex.imCLM (A i j))) Z.matrix |
| 120 | fun_prop |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.RepresentationTheory.Theta.Definitions |