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.ThetaCycle.CMOrthonormalFrames |
| 2 | import OAI.RepresentationTheory.Theta.Adelic.BallGeometryData |
| 3 | |
| 4 | /-! # Ball Arithmetic -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.BallArithmetic.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! ThetaCycle: construct the native AdelicTheta ball-arithmetic data from the actual |
| 13 | ball coefficient, CM representatives, and the two retained multiplicity |
| 14 | lines. No period, oscillator, or compatibility conclusion is a field here. -/ |
| 15 | |
| 16 | open scoped Classical _root_.NumberField |
| 17 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 18 | |
| 19 | variable (K : IntermediateField ℚ ℂ) |
| 20 | [NumberField K] [IsGalois ℚ K] [IsCMField K] |
| 21 | |
| 22 | omit [IsGalois ℚ K] in |
| 23 | theorem source_other_place (places : HeckeCycles.GeometricSource.CM.Places K) |
| 24 | (hother : ∃ τ : Gal(K/ℚ), τ ≠ 1 ∧ τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K) : |
| 25 | ∃ i : Fin places.count, i ≠ places.distinguished := by |
| 26 | obtain ⟨τ, hτ1, hτc⟩ := hother |
| 27 | obtain ⟨⟨i, b⟩, hi⟩ := places.complete.2 τ |
| 28 | refine ⟨i, ?_⟩ |
| 29 | intro he |
| 30 | subst i |
| 31 | cases b |
| 32 | · exact hτ1 (hi.symm.trans places.identity) |
| 33 | · apply hτc |
| 34 | simpa only [ite_true, places.identity, mul_one] using hi.symm |
| 35 | |
| 36 | def sourceBallArithmeticData {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} |
| 37 | {d : Fin 2 → Fin places.count → Bool} (P : Lagrangians.CM.LagrangianPair K B places d) |
| 38 | (hμ : ∀ j, d j places.distinguished = true) |
| 39 | (hother : ∃ τ : Gal(K/ℚ), τ ≠ 1 ∧ τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K) : |
| 40 | RepresentationTheory.Theta.Adelic.BallGeometryData.BallArithmeticData (maximalRealSubfield K) |
| 41 | (QuadraticModel.CM.cmQuadraticParameter K P.delta P.delta_imaginary) 2 |
| 42 | (CMGlobalFrames.CM.cmHermitianUnit K P.delta P.delta_imaginary B.b B.conjugate_b |
| 43 | (fun hb => (ne_of_lt B.negative) (by simp [hb]))) |
| 44 | (CMGlobalFrames.CM.cmSkewUnit K P.delta P.delta_imaginary P.delta_ne_zero P.a |
| 45 | (fun j => (P.a_sign j).2.1) (fun j => (P.a_sign j).1)) where |
| 46 | places := places.count |
| 47 | enumerate := RealPlaces.CM.sourceRealPlaces K places |
| 48 | distinguished := places.distinguished |
| 49 | other_place := source_other_place K places hother |
| 50 | real := CMArchimedeanCoordinates.CM.sourceRealCoordinate K places |
| 51 | real_continuous := CMArchimedeanCoordinates.CM.source_real_coordinate_continuous K places |
| 52 | real_inverse_continuous := CMArchimedeanCoordinates.CM.source_real_coordinate_inverse_continuous K places |
| 53 | complex := CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places P.delta P.delta_imaginary P.delta_ne_zero |
| 54 | complex_continuous := |
| 55 | CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_continuous K places P.delta P.delta_imaginary P.delta_ne_zero |
| 56 | complex_inverse_continuous := |
| 57 | CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_inverse_continuous K places P.delta P.delta_imaginary P.delta_ne_zero |
| 58 | complex_scalar := |
| 59 | CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_scalar K places P.delta P.delta_imaginary P.delta_ne_zero |
| 60 | complex_star := |
| 61 | CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_star K places P.delta P.delta_imaginary P.delta_ne_zero |
| 62 | basisV := CMOrthonormalFrames.CM.sourceHermitianNormalizer K places B.b B.conjugate_b |
| 63 | (fun hb => (ne_of_lt B.negative) (by simp [hb])) |
| 64 | basisP := CMOrthonormalFrames.CM.sourceSkewNormalizer K places P.delta P.delta_imaginary P.delta_ne_zero P.a |
| 65 | (fun j => (P.a_sign j).2.1) (fun j => (P.a_sign j).1) |
| 66 | positive i j := !(d j i) |
| 67 | distinguished_sign j := by simp [hμ j] |
| 68 | formV i := |
| 69 | (CMOrthonormalFrames.CM.source_hermitian_normalized K places P.delta P.delta_imaginary P.delta_ne_zero B.b B.conjugate_b |
| 70 | (fun hb => (ne_of_lt B.negative) (by simp [hb])) i).trans |
| 71 | (congrArg Matrix.diagonal (funext (CMOrthonormalFrames.CM.source_ball_hermitian_sign K places B i))) |
| 72 | formP i := |
| 73 | (CMOrthonormalFrames.CM.source_skew_normalized K places P.delta P.delta_imaginary P.delta_ne_zero P.a |
| 74 | (fun j => (P.a_sign j).2.1) (fun j => (P.a_sign j).1) i).trans |
| 75 | (congrArg Matrix.diagonal (funext (CMOrthonormalFrames.CM.source_lagrangian_skew_sign K places P hμ i))) |
| 76 | |
| 77 | end |
| 78 | |
| 79 | /-! Native data at the original CM embeddings. The opposite skew trace |
| 80 | coefficient compensates for the native position/momentum phase order. -/ |
| 81 | |
| 82 | open scoped Classical _root_.NumberField |
| 83 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 84 | open OAI.RepresentationTheory.Theta.Adelic.BallGeometryData |
| 85 | |
| 86 | local instance directNativeRealNumberField (K : IntermediateField ℚ ℂ) |
| 87 | [NumberField K] [IsCMField K] : NumberField (maximalRealSubfield K) := by |
| 88 | infer_instance |
| 89 | |
| 90 | theorem direct_source_ball_b_ne_zero (K : IntermediateField ℚ ℂ) |
| 91 | [NumberField K] [IsCMField K] (B : HeckeCycles.GeometricSource.CM.BallDatum K) : B.b ≠ 0 := |
| 92 | fun hb => (ne_of_lt B.negative) (by simp [hb]) |
| 93 | |
| 94 | theorem direct_source_a_fixed (K : IntermediateField ℚ ℂ) |
| 95 | [NumberField K] [IsCMField K] [IsGalois ℚ K] {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} |
| 96 | {d : Fin 2 → Fin places.count → Bool} (Q : Lagrangians.CM.LagrangianPair K B places d) : |
| 97 | ∀ j, IsCMField.complexConj K (Q.a j) = Q.a j := fun j => (Q.a_sign j).2.1 |
| 98 | |
| 99 | theorem direct_source_a_ne_zero (K : IntermediateField ℚ ℂ) |
| 100 | [NumberField K] [IsCMField K] [IsGalois ℚ K] {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} |
| 101 | {d : Fin 2 → Fin places.count → Bool} (Q : Lagrangians.CM.LagrangianPair K B places d) : |
| 102 | ∀ j, Q.a j ≠ 0 := fun j => (Q.a_sign j).1 |
| 103 | |
| 104 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [IsCMField K] [IsGalois ℚ K] |
| 105 | (places : HeckeCycles.GeometricSource.CM.Places K) (δ : K) (hδ : IsCMField.complexConj K δ = -δ) (hδ0 : δ ≠ 0) |
| 106 | |
| 107 | theorem direct_source_localized_matrix {n : ℕ} |
| 108 | (M : Matrix (Fin n) (Fin n) (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic (maximalRealSubfield K) (QuadraticModel.CM.cmQuadraticParameter K δ hδ))) |
| 109 | (i : Fin places.count) : |
| 110 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) M (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 111 | (CMArchimedeanCoordinates.CM.sourceComplexCoordinate K places δ hδ hδ0 i) = |
| 112 | fun j k => HeckeCycles.ReferenceDatum.CM.embeddings K places i (QuadraticModel.CM.cmQuadraticEquiv K δ hδ hδ0 (M j k)) := by |
| 113 | ext j k |
| 114 | exact CMArchimedeanCoordinates.CM.source_complex_coordinate_rational K places δ hδ hδ0 i (M j k) |
| 115 | |
| 116 | theorem direct_source_hermitian_local_matrix (β : K) |
| 117 | (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) (i : Fin places.count) : |
| 118 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 119 | (CMGlobalFrames.CM.cmHermitianUnit K δ hδ β hβ hβ0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 120 | (CMArchimedeanCoordinates.CM.sourceComplexCoordinate K places δ hδ hδ0 i) = |
| 121 | Matrix.diagonal (fun j => (CMFormCoordinates.CM.sourceHermitianRealCoefficients K places β i j : ℂ)) := by |
| 122 | rw [CMGlobalFrames.CM.cm_hermitian_unit_val K δ hδ hδ0, direct_source_localized_matrix] |
| 123 | ext j k |
| 124 | by_cases hjk : j = k |
| 125 | · subst k |
| 126 | simp only [QuadraticTensor.CM.quadraticHermitianMatrix, Matrix.diagonal_apply_eq, AlgEquiv.apply_symm_apply] |
| 127 | by_cases hj : j = 2 |
| 128 | · simp only [hj, ite_true, CMFormCoordinates.CM.sourceHermitianRealCoefficients] |
| 129 | exact (CMFormCoordinates.CM.source_fixed_element_eq_real K places β hβ i).symm |
| 130 | · simp [hj, CMFormCoordinates.CM.sourceHermitianRealCoefficients] |
| 131 | · simp [QuadraticTensor.CM.quadraticHermitianMatrix, hjk] |
| 132 | |
| 133 | variable (a : Fin 2 → K) (ha : ∀ j, IsCMField.complexConj K (a j) = a j) (ha0 : ∀ j, a j ≠ 0) |
| 134 | |
| 135 | def directSourceSkewUnit : |
| 136 | (Matrix (Fin 2) (Fin 2) (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic (maximalRealSubfield K) (QuadraticModel.CM.cmQuadraticParameter K δ hδ)))ˣ := |
| 137 | CMGlobalFrames.CM.cmSkewUnit K δ hδ hδ0 (fun j => -a j) |
| 138 | (fun j => by rw [map_neg, ha j]) (fun j => neg_ne_zero.mpr (ha0 j)) |
| 139 | |
| 140 | theorem direct_source_skew_local_matrix (i : Fin places.count) : |
| 141 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 142 | (directSourceSkewUnit K δ hδ hδ0 a ha ha0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 143 | (CMArchimedeanCoordinates.CM.sourceComplexCoordinate K places δ hδ hδ0 i) = |
| 144 | Matrix.diagonal (fun j => (CMFormCoordinates.CM.sourceSkewRealCoefficients K places δ a i j : ℂ) * Complex.I) := by |
| 145 | rw [directSourceSkewUnit, CMGlobalFrames.CM.cm_skew_unit_val K δ hδ hδ0, direct_source_localized_matrix] |
| 146 | ext j k |
| 147 | by_cases hjk : j = k |
| 148 | · subst k |
| 149 | simp only [QuadraticTensor.CM.quadraticSkewMatrix, Matrix.diagonal_apply_eq, AlgEquiv.apply_symm_apply] |
| 150 | have him : IsCMField.complexConj K (δ * a j) = -(δ * a j) := by rw [map_mul, hδ, ha, neg_mul] |
| 151 | have hz := CMArchimedeanCoordinates.CM.source_imaginary_real_zero K places (δ * a j) him i |
| 152 | rw [show -2 * δ * -a j = 2 * (δ * a j) by ring, map_mul, map_ofNat] |
| 153 | have he : HeckeCycles.ReferenceDatum.CM.embeddings K places i (δ * a j) = |
| 154 | ((HeckeCycles.ReferenceDatum.CM.embeddings K places i (δ * a j)).im : ℂ) * Complex.I := by |
| 155 | simpa only [hz, Complex.ofReal_zero, zero_add] using |
| 156 | (Complex.re_add_im (HeckeCycles.ReferenceDatum.CM.embeddings K places i (δ * a j))).symm |
| 157 | rw [he] |
| 158 | simp only [CMFormCoordinates.CM.sourceSkewRealCoefficients, Complex.ofReal_mul, Complex.ofReal_ofNat, mul_assoc] |
| 159 | · simp [QuadraticTensor.CM.quadraticSkewMatrix, hjk] |
| 160 | |
| 161 | def directSourceGlobalFrames (β : K) (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) : |
| 162 | RepresentationTheory.Weil.AdelicSplitting.Assembly.Construction.GlobalFrames (maximalRealSubfield K) (QuadraticModel.CM.cmQuadraticParameter K δ hδ) 3 2 |
| 163 | (CMGlobalFrames.CM.cmHermitianUnit K δ hδ β hβ hβ0) (directSourceSkewUnit K δ hδ hδ0 a ha ha0) := |
| 164 | CMGlobalFrames.CM.cmGlobalFrames K δ hδ hδ0 β hβ hβ0 (fun j => -a j) |
| 165 | (fun j => by rw [map_neg, ha j]) (fun j => neg_ne_zero.mpr (ha0 j)) |
| 166 | |
| 167 | theorem direct_source_hermitian_normalized (β : K) |
| 168 | (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) (i : Fin places.count) : |
| 169 | (CMOrthonormalFrames.CM.sourceHermitianNormalizer K places β hβ hβ0 i).val.conjTranspose * |
| 170 | ((RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) (CMGlobalFrames.CM.cmHermitianUnit K δ hδ β hβ hβ0).val |
| 171 | (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map (CMArchimedeanCoordinates.CM.sourceComplexCoordinate K places δ hδ hδ0 i)) * |
| 172 | (CMOrthonormalFrames.CM.sourceHermitianNormalizer K places β hβ hβ0 i).val = |
| 173 | Matrix.diagonal (fun j => if 0 < CMFormCoordinates.CM.sourceHermitianRealCoefficients K places β i j then (1 : ℂ) else -1) := by |
| 174 | rw [direct_source_hermitian_local_matrix] |
| 175 | simpa only [CMOrthonormalFrames.CM.sourceHermitianNormalizer, mul_one] using! DiagonalNormalization.CM.complex_diagonal_normalizer_form |
| 176 | (CMFormCoordinates.CM.sourceHermitianRealCoefficients K places β i) |
| 177 | (CMFormCoordinates.CM.source_hermitian_coefficients_ne_zero K places β hβ hβ0 i) 1 |
| 178 | |
| 179 | theorem direct_source_skew_normalized (i : Fin places.count) : |
| 180 | (CMOrthonormalFrames.CM.sourceSkewNormalizer K places δ hδ hδ0 a ha ha0 i).val.conjTranspose * |
| 181 | ((RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) (directSourceSkewUnit K δ hδ hδ0 a ha ha0).val |
| 182 | (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map (CMArchimedeanCoordinates.CM.sourceComplexCoordinate K places δ hδ hδ0 i)) * |
| 183 | (CMOrthonormalFrames.CM.sourceSkewNormalizer K places δ hδ hδ0 a ha ha0 i).val = |
| 184 | Matrix.diagonal (fun j => (if 0 < CMFormCoordinates.CM.sourceSkewRealCoefficients K places δ a i j |
| 185 | then (1 : ℂ) else -1) * Complex.I) := by |
| 186 | rw [direct_source_skew_local_matrix] |
| 187 | exact DiagonalNormalization.CM.complex_diagonal_normalizer_form _ _ Complex.I |
| 188 | |
| 189 | omit places δ hδ hδ0 a ha ha0 in |
| 190 | def directSourceBallArithmeticData {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} |
| 191 | {d : Fin 2 → Fin places.count → Bool} (Q : Lagrangians.CM.LagrangianPair K B places d) |
| 192 | (hμ : ∀ j, d j places.distinguished = true) |
| 193 | (hother : ∃ τ : Gal(K/ℚ), τ ≠ 1 ∧ τ ≠ ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation K) : |
| 194 | RepresentationTheory.Theta.Adelic.BallGeometryData.BallArithmeticData (maximalRealSubfield K) (QuadraticModel.CM.cmQuadraticParameter K Q.delta Q.delta_imaginary) 2 |
| 195 | (CMGlobalFrames.CM.cmHermitianUnit K Q.delta Q.delta_imaginary B.b B.conjugate_b |
| 196 | (direct_source_ball_b_ne_zero K B)) |
| 197 | (directSourceSkewUnit K Q.delta Q.delta_imaginary Q.delta_ne_zero Q.a |
| 198 | (direct_source_a_fixed K Q) (direct_source_a_ne_zero K Q)) where |
| 199 | places := places.count |
| 200 | enumerate := RealPlaces.CM.sourceRealPlaces K places |
| 201 | distinguished := places.distinguished |
| 202 | other_place := source_other_place K places hother |
| 203 | real := CMArchimedeanCoordinates.CM.sourceRealCoordinate K places |
| 204 | real_continuous := CMArchimedeanCoordinates.CM.source_real_coordinate_continuous K places |
| 205 | real_inverse_continuous := CMArchimedeanCoordinates.CM.source_real_coordinate_inverse_continuous K places |
| 206 | complex := CMArchimedeanCoordinates.CM.sourceComplexCoordinate K places Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 207 | complex_continuous := CMArchimedeanCoordinates.CM.source_complex_coordinate_continuous K places Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 208 | complex_inverse_continuous := CMArchimedeanCoordinates.CM.source_complex_coordinate_inverse_continuous K places Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 209 | complex_scalar := CMArchimedeanCoordinates.CM.source_complex_coordinate_scalar K places Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 210 | complex_star := CMArchimedeanCoordinates.CM.source_complex_coordinate_star K places Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 211 | basisV := CMOrthonormalFrames.CM.sourceHermitianNormalizer K places B.b B.conjugate_b |
| 212 | (direct_source_ball_b_ne_zero K B) |
| 213 | basisP := CMOrthonormalFrames.CM.sourceSkewNormalizer K places Q.delta Q.delta_imaginary Q.delta_ne_zero Q.a |
| 214 | (direct_source_a_fixed K Q) (direct_source_a_ne_zero K Q) |
| 215 | positive i j := !(d j i) |
| 216 | distinguished_sign j := by simp [hμ j] |
| 217 | formV i := |
| 218 | (direct_source_hermitian_normalized K places Q.delta Q.delta_imaginary Q.delta_ne_zero |
| 219 | B.b B.conjugate_b (direct_source_ball_b_ne_zero K B) i).trans |
| 220 | (congrArg Matrix.diagonal (funext (CMOrthonormalFrames.CM.source_ball_hermitian_sign K places B i))) |
| 221 | formP i := |
| 222 | (direct_source_skew_normalized K places Q.delta Q.delta_imaginary Q.delta_ne_zero Q.a |
| 223 | (direct_source_a_fixed K Q) (direct_source_a_ne_zero K Q) i).trans |
| 224 | (congrArg Matrix.diagonal (funext (CMOrthonormalFrames.CM.source_lagrangian_skew_sign K places Q hμ i))) |
| 225 | |
| 226 | end |
| 227 | |
| 228 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.BallArithmetic.CM |