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.CMFormCoordinates |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.DiagonalNormalization |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoefficientSigns |
| 4 | |
| 5 | /-! # CM Orthonormal Frames -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CMOrthonormalFrames.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! ThetaCycle: explicit orthonormal bases for the actual local CM Hermitian |
| 14 | and multiplicity forms, with their distinguished and compact signs. -/ |
| 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] (places : HeckeCycles.GeometricSource.CM.Places K) |
| 21 | (δ : K) (hδ : IsCMField.complexConj K δ = -δ) (hδ0 : δ ≠ 0) |
| 22 | |
| 23 | def sourceHermitianNormalizer (β : K) (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) |
| 24 | (i : Fin places.count) : (Matrix (Fin 3) (Fin 3) ℂ)ˣ := |
| 25 | DiagonalNormalization.CM.complexDiagonalNormalizer (CMFormCoordinates.CM.sourceHermitianRealCoefficients K places β i) |
| 26 | (CMFormCoordinates.CM.source_hermitian_coefficients_ne_zero K places β hβ hβ0 i) |
| 27 | |
| 28 | def sourceSkewNormalizer (a : Fin 2 → K) |
| 29 | (ha : ∀ j, IsCMField.complexConj K (a j) = a j) (ha0 : ∀ j, a j ≠ 0) |
| 30 | (i : Fin places.count) : (Matrix (Fin 2) (Fin 2) ℂ)ˣ := |
| 31 | DiagonalNormalization.CM.complexDiagonalNormalizer (CMFormCoordinates.CM.sourceSkewRealCoefficients K places δ a i) |
| 32 | (CMFormCoordinates.CM.source_skew_coefficients_ne_zero K places δ hδ hδ0 a ha ha0 i) |
| 33 | |
| 34 | theorem source_hermitian_normalized (β : K) (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) |
| 35 | (i : Fin places.count) : |
| 36 | (sourceHermitianNormalizer K places β hβ hβ0 i).val.conjTranspose * |
| 37 | ((RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 38 | (CMGlobalFrames.CM.cmHermitianUnit K δ hδ β hβ hβ0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 39 | (CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i)) * |
| 40 | (sourceHermitianNormalizer K places β hβ hβ0 i).val = |
| 41 | Matrix.diagonal (fun j => if 0 < CMFormCoordinates.CM.sourceHermitianRealCoefficients K places β i j |
| 42 | then (1 : ℂ) else -1) := by |
| 43 | rw [CMFormCoordinates.CM.source_hermitian_local_matrix] |
| 44 | simpa only [sourceHermitianNormalizer, mul_one] using! DiagonalNormalization.CM.complex_diagonal_normalizer_form |
| 45 | (CMFormCoordinates.CM.sourceHermitianRealCoefficients K places β i) |
| 46 | (CMFormCoordinates.CM.source_hermitian_coefficients_ne_zero K places β hβ hβ0 i) 1 |
| 47 | |
| 48 | theorem source_skew_normalized (a : Fin 2 → K) |
| 49 | (ha : ∀ j, IsCMField.complexConj K (a j) = a j) (ha0 : ∀ j, a j ≠ 0) |
| 50 | (i : Fin places.count) : |
| 51 | (sourceSkewNormalizer K places δ hδ hδ0 a ha ha0 i).val.conjTranspose * |
| 52 | ((RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 53 | (CMGlobalFrames.CM.cmSkewUnit K δ hδ hδ0 a ha ha0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 54 | (CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i)) * |
| 55 | (sourceSkewNormalizer K places δ hδ hδ0 a ha ha0 i).val = |
| 56 | Matrix.diagonal (fun j => (if 0 < CMFormCoordinates.CM.sourceSkewRealCoefficients K places δ a i j |
| 57 | then (1 : ℂ) else -1) * Complex.I) := by |
| 58 | rw [CMFormCoordinates.CM.source_skew_local_matrix] |
| 59 | exact DiagonalNormalization.CM.complex_diagonal_normalizer_form _ _ Complex.I |
| 60 | |
| 61 | theorem source_ball_hermitian_sign (B : HeckeCycles.GeometricSource.CM.BallDatum K) (i : Fin places.count) (j : Fin 3) : |
| 62 | (if 0 < CMFormCoordinates.CM.sourceHermitianRealCoefficients K places B.b i j then (1 : ℂ) else -1) = |
| 63 | if i = places.distinguished ∧ j = 2 then -1 else 1 := by |
| 64 | by_cases hj : j = 2 |
| 65 | · subst j |
| 66 | by_cases hi : i = places.distinguished |
| 67 | · subst i |
| 68 | have hneg := (HeckeCycles.ReferenceDatum.CM.source_signature K B places).2.2.1 |
| 69 | simp [CMFormCoordinates.CM.sourceHermitianRealCoefficients, not_lt.mpr hneg.le] |
| 70 | · have hpos := (HeckeCycles.ReferenceDatum.CM.source_signature K B places).2.2.2 i hi |
| 71 | simp [CMFormCoordinates.CM.sourceHermitianRealCoefficients, hi, hpos] |
| 72 | · simp [CMFormCoordinates.CM.sourceHermitianRealCoefficients, hj] |
| 73 | |
| 74 | theorem source_lagrangian_skew_coefficient_sign {B : HeckeCycles.GeometricSource.CM.BallDatum K} |
| 75 | {d : Fin 2 → Fin places.count → Bool} (P : Lagrangians.CM.LagrangianPair K B places d) |
| 76 | (hμ : ∀ j, d j places.distinguished = true) (i : Fin places.count) (j : Fin 2) : |
| 77 | if d j i then CMFormCoordinates.CM.sourceSkewRealCoefficients K places P.delta P.a i j < 0 |
| 78 | else 0 < CMFormCoordinates.CM.sourceSkewRealCoefficients K places P.delta P.a i j := by |
| 79 | by_cases hi : i = places.distinguished |
| 80 | · subst i |
| 81 | rw [hμ, ite_eq_left rfl] |
| 82 | exact mul_neg_of_pos_of_neg (by norm_num) (P.a_sign j).2.2 |
| 83 | · have h := CoefficientSigns.CM.lagrangian_compact_coefficient_sign K d P j i hi |
| 84 | cases hd : d j i <;> simp only [hd, Bool.false_eq_true, ite_false, ite_true] at h ⊢ |
| 85 | · exact mul_pos (by norm_num) h |
| 86 | · exact mul_neg_of_pos_of_neg (by norm_num) h |
| 87 | |
| 88 | theorem source_lagrangian_skew_sign {B : HeckeCycles.GeometricSource.CM.BallDatum K} |
| 89 | {d : Fin 2 → Fin places.count → Bool} (P : Lagrangians.CM.LagrangianPair K B places d) |
| 90 | (hμ : ∀ j, d j places.distinguished = true) (i : Fin places.count) (j : Fin 2) : |
| 91 | (if 0 < CMFormCoordinates.CM.sourceSkewRealCoefficients K places P.delta P.a i j then (1 : ℂ) else -1) * Complex.I = |
| 92 | if !(d j i) then Complex.I else -Complex.I := by |
| 93 | have h := source_lagrangian_skew_coefficient_sign K places P hμ i j |
| 94 | cases hd : d j i <;> simp only [hd, Bool.false_eq_true, ite_false, ite_true] at h |
| 95 | · simp [h] |
| 96 | · simp [not_lt.mpr h.le] |
| 97 | |
| 98 | end |
| 99 | |
| 100 | /-! ThetaCycle: actual one-dimensional multiplicity frames, with the same CM |
| 101 | quadratic model and trace normalization as the total two-line construction. -/ |
| 102 | |
| 103 | open scoped Classical _root_.NumberField |
| 104 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 105 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 106 | |
| 107 | variable (K : IntermediateField ℚ ℂ) [NumberField K] [NumberField.IsCMField K] |
| 108 | (δ : K) (hδ : IsCMField.complexConj K δ = -δ) (hδ0 : δ ≠ 0) |
| 109 | (a : K) (ha : IsCMField.complexConj K a = a) (ha0 : a ≠ 0) |
| 110 | |
| 111 | def singleLineRealCoefficient : Fin 1 → maximalRealSubfield K := fun _ => QuadraticModel.CM.cmRealElement K a ha |
| 112 | |
| 113 | include ha0 in |
| 114 | theorem single_line_real_coefficient_ne_zero : ∀ j, singleLineRealCoefficient K a ha j ≠ 0 := by |
| 115 | intro j h |
| 116 | exact ha0 (congrArg (fun x : maximalRealSubfield K => (x : K)) h) |
| 117 | |
| 118 | def singleLineSkewUnit : |
| 119 | (Matrix (Fin 1) (Fin 1) (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic (maximalRealSubfield K) |
| 120 | (QuadraticModel.CM.cmQuadraticParameter K δ hδ)))ˣ := |
| 121 | DiagonalFrame.CM.diagonalSkewUnit _ (QuadraticModel.CM.cm_quadratic_parameter_ne_zero K δ hδ hδ0) |
| 122 | (singleLineRealCoefficient K a ha) (single_line_real_coefficient_ne_zero K a ha ha0) |
| 123 | |
| 124 | theorem single_line_skew_conjugate_transpose : |
| 125 | (singleLineSkewUnit K δ hδ hδ0 a ha ha0).val.conjTranspose = |
| 126 | -(singleLineSkewUnit K δ hδ hδ0 a ha ha0).val := |
| 127 | DiagonalFrame.CM.diagonal_skew_conjugateTranspose _ _ |
| 128 | |
| 129 | def singleLineGlobalFrames (β : K) (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) : |
| 130 | RepresentationTheory.Weil.AdelicSplitting.Assembly.Construction.GlobalFrames (maximalRealSubfield K) (QuadraticModel.CM.cmQuadraticParameter K δ hδ) 3 1 |
| 131 | (CMGlobalFrames.CM.cmHermitianUnit K δ hδ β hβ hβ0) (singleLineSkewUnit K δ hδ hδ0 a ha ha0) := |
| 132 | GlobalFrames.CM.diagonalGlobalFrames _ _ (QuadraticModel.CM.cm_quadratic_parameter_ne_zero K δ hδ hδ0) |
| 133 | (UnitaryFrame.CM.realHermitianCoefficients K β hβ) (CMGlobalFrames.CM.real_hermitian_coefficients_ne_zero K β hβ hβ0) |
| 134 | (singleLineRealCoefficient K a ha) (single_line_real_coefficient_ne_zero K a ha ha0) |
| 135 | |
| 136 | variable [IsGalois ℚ K] (places : HeckeCycles.GeometricSource.CM.Places K) |
| 137 | |
| 138 | def singleLineSkewCoefficient (i : Fin places.count) : Fin 1 → ℝ := |
| 139 | fun _ => 2 * (HeckeCycles.ReferenceDatum.CM.embeddings K places i (δ * a)).im |
| 140 | |
| 141 | include hδ hδ0 ha ha0 in |
| 142 | theorem single_line_skew_coefficient_ne_zero (i : Fin places.count) : |
| 143 | ∀ j, singleLineSkewCoefficient K δ a places i j ≠ 0 := by |
| 144 | intro _ |
| 145 | exact CMFormCoordinates.CM.source_skew_coefficients_ne_zero K places δ hδ hδ0 (fun _ => a) |
| 146 | (fun _ => ha) (fun _ => ha0) i 0 |
| 147 | |
| 148 | def singleLineSkewNormalizer (i : Fin places.count) : (Matrix (Fin 1) (Fin 1) ℂ)ˣ := |
| 149 | DiagonalNormalization.CM.complexDiagonalNormalizer (singleLineSkewCoefficient K δ a places i) |
| 150 | (single_line_skew_coefficient_ne_zero K δ hδ hδ0 a ha ha0 places i) |
| 151 | |
| 152 | theorem single_line_skew_local_matrix (i : Fin places.count) : |
| 153 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 154 | (singleLineSkewUnit K δ hδ hδ0 a ha ha0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 155 | (CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i) = |
| 156 | Matrix.diagonal (fun j => (singleLineSkewCoefficient K δ a places i j : ℂ) * Complex.I) := by |
| 157 | ext j k |
| 158 | have hj : j = 0 := Subsingleton.elim _ _ |
| 159 | have hk : k = 0 := Subsingleton.elim _ _ |
| 160 | subst j k |
| 161 | exact congrArg (fun M : Matrix (Fin 2) (Fin 2) ℂ => M 0 0) |
| 162 | (CMFormCoordinates.CM.source_skew_local_matrix K places δ hδ hδ0 (fun _ => a) (fun _ => ha) (fun _ => ha0) i) |
| 163 | |
| 164 | theorem single_line_skew_normalized (i : Fin places.count) : |
| 165 | (singleLineSkewNormalizer K δ hδ hδ0 a ha ha0 places i).val.conjTranspose * |
| 166 | ((RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 167 | (singleLineSkewUnit K δ hδ hδ0 a ha ha0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 168 | (CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i)) * |
| 169 | (singleLineSkewNormalizer K δ hδ hδ0 a ha ha0 places i).val = |
| 170 | Matrix.diagonal (fun j => (if 0 < singleLineSkewCoefficient K δ a places i j |
| 171 | then (1 : ℂ) else -1) * Complex.I) := by |
| 172 | rw [single_line_skew_local_matrix] |
| 173 | exact DiagonalNormalization.CM.complex_diagonal_normalizer_form _ _ Complex.I |
| 174 | |
| 175 | end |
| 176 | |
| 177 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CMOrthonormalFrames.CM |