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.HodgeConjecture.CMExtraction.Multiplicity.OneBall |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.OneTrace |
| 3 | |
| 4 | /-! # Multiplicity One -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.MultiplicityOne.Quadratic |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Original CM embeddings with the opposite trace coefficient. Swapping |
| 11 | position and momentum then gives the native rational symplectic pairing. |
| 12 | This keeps the standard unitary action at the original embedding. -/ |
| 13 | |
| 14 | open scoped Classical _root_.NumberField |
| 15 | open _root_.NumberField |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 17 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData |
| 18 | |
| 19 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [IsCMField E] |
| 20 | (places : HeckeCycles.GeometricSource.CM.Places E) |
| 21 | (δ : E) (hδ : IsCMField.complexConj E δ = -δ) (hδ0 : δ ≠ 0) |
| 22 | (b : E) (hb : IsCMField.complexConj E b = b) (hb0 : b ≠ 0) |
| 23 | (a : E) (ha : IsCMField.complexConj E a = a) (ha0 : a ≠ 0) |
| 24 | |
| 25 | include ha in |
| 26 | theorem singleNegCoefficient_real : IsCMField.complexConj E (-a) = -a := by rw [map_neg, ha] |
| 27 | |
| 28 | def directSkewUnit := OneFrames.Quadratic.singleSkewUnit E δ hδ hδ0 (-a) |
| 29 | (singleNegCoefficient_real E a ha) (neg_ne_zero.mpr ha0) |
| 30 | |
| 31 | variable [IsGalois ℚ E] |
| 32 | |
| 33 | theorem directHermitian_local (i : Fin places.count) : |
| 34 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield E) |
| 35 | (ThetaCycle.CMGlobalFrames.CM.cmHermitianUnit E δ hδ b hb hb0).val (.inl (ThetaCycle.RealPlaces.CM.sourceRealPlaces E places i))).map |
| 36 | (ThetaCycle.CMArchimedeanCoordinates.CM.sourceComplexCoordinate E places δ hδ hδ0 i) = |
| 37 | Matrix.diagonal (fun j => (ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients E places b i j : ℂ)) := by |
| 38 | rw [ThetaCycle.CMGlobalFrames.CM.cm_hermitian_unit_val E δ hδ hδ0] |
| 39 | apply Matrix.ext |
| 40 | intro j k |
| 41 | change ThetaCycle.CMArchimedeanCoordinates.CM.sourceComplexCoordinate E places δ hδ hδ0 i |
| 42 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.rationalQuadraticLocal _ _ _ (ThetaCycle.QuadraticTensor.CM.quadraticHermitianMatrix E δ hδ hδ0 b j k)) = _ |
| 43 | rw [ThetaCycle.CMArchimedeanCoordinates.CM.source_complex_coordinate_rational] |
| 44 | by_cases hjk : j = k |
| 45 | · subst k |
| 46 | simp only [ThetaCycle.QuadraticTensor.CM.quadraticHermitianMatrix, Matrix.diagonal_apply_eq, AlgEquiv.apply_symm_apply] |
| 47 | by_cases hj : j = 2 |
| 48 | · simp only [hj, ite_true, ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients] |
| 49 | exact (ThetaCycle.CMFormCoordinates.CM.source_fixed_element_eq_real E places b hb i).symm |
| 50 | · simp [hj, ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients] |
| 51 | · simp [ThetaCycle.QuadraticTensor.CM.quadraticHermitianMatrix, hjk] |
| 52 | |
| 53 | theorem directSkew_local (i : Fin places.count) : |
| 54 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield E) |
| 55 | (directSkewUnit E δ hδ hδ0 a ha ha0).val (.inl (ThetaCycle.RealPlaces.CM.sourceRealPlaces E places i))).map |
| 56 | (ThetaCycle.CMArchimedeanCoordinates.CM.sourceComplexCoordinate E places δ hδ hδ0 i) = |
| 57 | Matrix.diagonal (fun _ : Fin 1 => (OneLocal.Quadratic.singleSkewRealCoefficient E places δ a i : ℂ) * Complex.I) := by |
| 58 | apply Matrix.ext |
| 59 | intro j k |
| 60 | have hjk : j = k := Subsingleton.elim _ _ |
| 61 | subst k |
| 62 | change ThetaCycle.CMArchimedeanCoordinates.CM.sourceComplexCoordinate E places δ hδ hδ0 i |
| 63 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.rationalQuadraticLocal _ _ _ ((directSkewUnit E δ hδ hδ0 a ha ha0).val j j)) = _ |
| 64 | rw [ThetaCycle.CMArchimedeanCoordinates.CM.source_complex_coordinate_rational] |
| 65 | change HeckeCycles.ReferenceDatum.CM.embeddings E places i ((ThetaCycle.QuadraticModel.CM.cmQuadraticEquiv E δ hδ hδ0) |
| 66 | ((OneFrames.Quadratic.singleSkewUnit E δ hδ hδ0 (-a) (singleNegCoefficient_real E a ha) |
| 67 | (neg_ne_zero.mpr ha0)).val j j)) = _ |
| 68 | rw [OneFrames.Quadratic.singleSkewUnit_evaluation, Matrix.diagonal_apply_eq, |
| 69 | show -2 * δ * -a = 2 * (δ * a) by ring, map_mul, map_ofNat] |
| 70 | have him : IsCMField.complexConj E (δ * a) = -(δ * a) := by rw [map_mul, hδ, ha, neg_mul] |
| 71 | have hz := ThetaCycle.CMArchimedeanCoordinates.CM.source_imaginary_real_zero E places (δ * a) him i |
| 72 | have he : HeckeCycles.ReferenceDatum.CM.embeddings E places i (δ * a) = |
| 73 | ((HeckeCycles.ReferenceDatum.CM.embeddings E places i (δ * a)).im : ℂ) * Complex.I := by |
| 74 | simpa only [hz, Complex.ofReal_zero, zero_add] using |
| 75 | (Complex.re_add_im (HeckeCycles.ReferenceDatum.CM.embeddings E places i (δ * a))).symm |
| 76 | calc |
| 77 | _ = 2 * (((HeckeCycles.ReferenceDatum.CM.embeddings E places i (δ * a)).im : ℂ) * Complex.I) := |
| 78 | congrArg (fun z : ℂ => 2 * z) he |
| 79 | _ = _ := by simp [OneLocal.Quadratic.singleSkewRealCoefficient, mul_assoc] |
| 80 | |
| 81 | def directGlobalFrames : RepresentationTheory.Weil.AdelicSplitting.Assembly.Construction.GlobalFrames (maximalRealSubfield E) (ThetaCycle.QuadraticModel.CM.cmQuadraticParameter E δ hδ) 3 1 |
| 82 | (ThetaCycle.CMGlobalFrames.CM.cmHermitianUnit E δ hδ b hb hb0) (directSkewUnit E δ hδ hδ0 a ha ha0) := |
| 83 | OneFrames.Quadratic.singleGlobalFrames E δ hδ hδ0 b hb hb0 (-a) |
| 84 | (singleNegCoefficient_real E a ha) (neg_ne_zero.mpr ha0) |
| 85 | |
| 86 | def directBallArithmeticData |
| 87 | (hball : (HeckeCycles.ReferenceDatum.CM.embeddings E places places.distinguished b).re < 0) |
| 88 | (hcompact : ∀ i, i ≠ places.distinguished → 0 < (HeckeCycles.ReferenceDatum.CM.embeddings E places i b).re) |
| 89 | (hactive : (HeckeCycles.ReferenceDatum.CM.embeddings E places places.distinguished (δ * a)).im < 0) |
| 90 | (hother : ∃ i : Fin places.count, i ≠ places.distinguished) : |
| 91 | RepresentationTheory.Theta.Adelic.BallGeometryData.BallArithmeticData (maximalRealSubfield E) (ThetaCycle.QuadraticModel.CM.cmQuadraticParameter E δ hδ) 1 |
| 92 | (ThetaCycle.CMGlobalFrames.CM.cmHermitianUnit E δ hδ b hb hb0) (directSkewUnit E δ hδ hδ0 a ha ha0) where |
| 93 | places := places.count |
| 94 | enumerate := ThetaCycle.RealPlaces.CM.sourceRealPlaces E places |
| 95 | distinguished := places.distinguished |
| 96 | other_place := hother |
| 97 | real := ThetaCycle.CMArchimedeanCoordinates.CM.sourceRealCoordinate E places |
| 98 | real_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_real_coordinate_continuous E places |
| 99 | real_inverse_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_real_coordinate_inverse_continuous E places |
| 100 | complex := ThetaCycle.CMArchimedeanCoordinates.CM.sourceComplexCoordinate E places δ hδ hδ0 |
| 101 | complex_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_complex_coordinate_continuous E places δ hδ hδ0 |
| 102 | complex_inverse_continuous := ThetaCycle.CMArchimedeanCoordinates.CM.source_complex_coordinate_inverse_continuous E places δ hδ hδ0 |
| 103 | complex_scalar := ThetaCycle.CMArchimedeanCoordinates.CM.source_complex_coordinate_scalar E places δ hδ hδ0 |
| 104 | complex_star := ThetaCycle.CMArchimedeanCoordinates.CM.source_complex_coordinate_star E places δ hδ hδ0 |
| 105 | basisV := ThetaCycle.CMOrthonormalFrames.CM.sourceHermitianNormalizer E places b hb hb0 |
| 106 | basisP := OneLocal.Quadratic.singleSkewNormalizer E places δ hδ hδ0 a ha ha0 |
| 107 | positive i _ := decide (0 < OneLocal.Quadratic.singleSkewRealCoefficient E places δ a i) |
| 108 | distinguished_sign _ := by |
| 109 | have hneg : OneLocal.Quadratic.singleSkewRealCoefficient E places δ a places.distinguished < 0 := |
| 110 | mul_neg_of_pos_of_neg (by norm_num) hactive |
| 111 | simp [not_lt.mpr hneg.le] |
| 112 | formV i := by |
| 113 | rw [directHermitian_local] |
| 114 | have h := ThetaCycle.DiagonalNormalization.CM.complex_diagonal_normalizer_form |
| 115 | (ThetaCycle.CMFormCoordinates.CM.sourceHermitianRealCoefficients E places b i) |
| 116 | (ThetaCycle.CMFormCoordinates.CM.source_hermitian_coefficients_ne_zero E places b hb hb0 i) 1 |
| 117 | simp only [mul_one] at h |
| 118 | exact h.trans (congrArg Matrix.diagonal |
| 119 | (funext (OneBall.Quadratic.singleHermitian_sign E places b hball hcompact i))) |
| 120 | formP i := by |
| 121 | rw [directSkew_local] |
| 122 | refine (ThetaCycle.DiagonalNormalization.CM.complex_diagonal_normalizer_form |
| 123 | (fun _ : Fin 1 => OneLocal.Quadratic.singleSkewRealCoefficient E places δ a i) |
| 124 | (fun _ => OneLocal.Quadratic.singleSkewRealCoefficient_ne_zero E places δ hδ hδ0 a ha ha0 i) Complex.I).trans ?_ |
| 125 | congr 1 |
| 126 | funext j |
| 127 | by_cases h : 0 < OneLocal.Quadratic.singleSkewRealCoefficient E places δ a i <;> simp [h] |
| 128 | |
| 129 | omit [IsGalois ℚ E] in |
| 130 | theorem direct_tensor_rational_trace (x y : Fin 3 → E) : |
| 131 | Algebra.trace ℚ (maximalRealSubfield E) |
| 132 | (RepresentationTheory.Weil.AdelicSplitting.TensorSpace.Construction.tracePairing (ThetaCycle.QuadraticModel.CM.cmQuadraticParameter E δ hδ) 3 1 |
| 133 | (ThetaCycle.CMGlobalFrames.CM.cmHermitianUnit E δ hδ b hb hb0).val (directSkewUnit E δ hδ hδ0 a ha ha0).val |
| 134 | (OneTrace.Quadratic.singleTensorPosition E δ hδ hδ0 x) (OneTrace.Quadratic.singleTensorPosition E δ hδ hδ0 y)) = |
| 135 | -Algebra.trace ℚ E (δ * (a * NumberTheory.ArithmeticGroups.Data.CongruenceLevel.hermitian b x y)) := by |
| 136 | rw [directSkewUnit, OneTrace.Quadratic.single_tensor_rational_trace] |
| 137 | rw [neg_mul, mul_neg, map_neg] |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.MultiplicityOne.Quadratic |