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.CMArchimedeanCoordinates |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CMGlobalFrames |
| 3 | |
| 4 | /-! # CM Form Coordinates -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CMFormCoordinates.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! ThetaCycle: the actual localized Hermitian and skew-Hermitian matrices in |
| 11 | the explicitly chosen complex coordinates. -/ |
| 12 | |
| 13 | open scoped Classical _root_.NumberField |
| 14 | open _root_.NumberField OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 15 | |
| 16 | variable (K : IntermediateField ℚ ℂ) |
| 17 | [NumberField K] [IsGalois ℚ K] [IsCMField K] (places : HeckeCycles.GeometricSource.CM.Places K) |
| 18 | (δ : K) (hδ : IsCMField.complexConj K δ = -δ) (hδ0 : δ ≠ 0) |
| 19 | |
| 20 | theorem source_localized_matrix {n : ℕ} |
| 21 | (M : Matrix (Fin n) (Fin n) |
| 22 | (RepresentationTheory.Weil.AdelicSplitting.UnitaryBase.Construction.Quadratic (maximalRealSubfield K) (QuadraticModel.CM.cmQuadraticParameter K δ hδ))) |
| 23 | (i : Fin places.count) : |
| 24 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) M (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 25 | (CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i) = |
| 26 | fun j k => star (HeckeCycles.ReferenceDatum.CM.embeddings K places i (QuadraticModel.CM.cmQuadraticEquiv K δ hδ hδ0 (M j k))) := by |
| 27 | ext j k |
| 28 | change CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i |
| 29 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.rationalQuadraticLocal _ _ _ (M j k)) = _ |
| 30 | rw [CMArchimedeanCoordinates.CM.source_conjugate_complex_coordinate_apply, CMArchimedeanCoordinates.CM.source_complex_coordinate_rational] |
| 31 | |
| 32 | theorem source_fixed_element_real (x : K) (hx : IsCMField.complexConj K x = x) |
| 33 | (i : Fin places.count) : (HeckeCycles.ReferenceDatum.CM.embeddings K places i x).im = 0 := by |
| 34 | have h := IsCMField.complexEmbedding_complexConj K (HeckeCycles.ReferenceDatum.CM.embeddings K places i).toRingHom x |
| 35 | rw [hx] at h |
| 36 | have hi := congrArg Complex.im h |
| 37 | change (HeckeCycles.ReferenceDatum.CM.embeddings K places i x).im = -(HeckeCycles.ReferenceDatum.CM.embeddings K places i x).im at hi |
| 38 | linarith |
| 39 | |
| 40 | theorem source_fixed_element_eq_real (x : K) (hx : IsCMField.complexConj K x = x) |
| 41 | (i : Fin places.count) : ((HeckeCycles.ReferenceDatum.CM.embeddings K places i x).re : ℂ) = HeckeCycles.ReferenceDatum.CM.embeddings K places i x := by |
| 42 | apply Complex.ext |
| 43 | · rfl |
| 44 | · exact (source_fixed_element_real K places x hx i).symm |
| 45 | |
| 46 | def sourceHermitianRealCoefficients (β : K) (i : Fin places.count) : Fin 3 → ℝ := |
| 47 | fun j => if j = 2 then (HeckeCycles.ReferenceDatum.CM.embeddings K places i β).re else 1 |
| 48 | |
| 49 | def sourceSkewRealCoefficients (a : Fin 2 → K) (i : Fin places.count) : Fin 2 → ℝ := |
| 50 | fun j => 2 * (HeckeCycles.ReferenceDatum.CM.embeddings K places i (δ * a j)).im |
| 51 | |
| 52 | theorem source_hermitian_local_matrix (β : K) (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) |
| 53 | (i : Fin places.count) : |
| 54 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 55 | (CMGlobalFrames.CM.cmHermitianUnit K δ hδ β hβ hβ0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 56 | (CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i) = |
| 57 | Matrix.diagonal (fun j => (sourceHermitianRealCoefficients K places β i j : ℂ)) := by |
| 58 | rw [CMGlobalFrames.CM.cm_hermitian_unit_val K δ hδ hδ0 β hβ hβ0, source_localized_matrix] |
| 59 | ext j k |
| 60 | by_cases hjk : j = k |
| 61 | · subst k |
| 62 | simp only [QuadraticTensor.CM.quadraticHermitianMatrix, Matrix.diagonal_apply_eq, AlgEquiv.apply_symm_apply] |
| 63 | by_cases hj : j = 2 |
| 64 | · simp only [hj, ite_true, sourceHermitianRealCoefficients] |
| 65 | rw [← source_fixed_element_eq_real K places β hβ i] |
| 66 | exact Complex.conj_ofReal _ |
| 67 | · simp [hj, sourceHermitianRealCoefficients] |
| 68 | · simp [QuadraticTensor.CM.quadraticHermitianMatrix, hjk] |
| 69 | |
| 70 | theorem source_skew_local_matrix (a : Fin 2 → K) |
| 71 | (ha : ∀ j, IsCMField.complexConj K (a j) = a j) (ha0 : ∀ j, a j ≠ 0) |
| 72 | (i : Fin places.count) : |
| 73 | (RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localizedForm (maximalRealSubfield K) |
| 74 | (CMGlobalFrames.CM.cmSkewUnit K δ hδ hδ0 a ha ha0).val (.inl (RealPlaces.CM.sourceRealPlaces K places i))).map |
| 75 | (CMArchimedeanCoordinates.CM.sourceConjugateComplexCoordinate K places δ hδ hδ0 i) = |
| 76 | Matrix.diagonal (fun j => (sourceSkewRealCoefficients K places δ a i j : ℂ) * Complex.I) := by |
| 77 | have him (j : Fin 2) : IsCMField.complexConj K (δ * a j) = -(δ * a j) := by |
| 78 | rw [map_mul, hδ, ha] |
| 79 | ring |
| 80 | rw [CMGlobalFrames.CM.cm_skew_unit_val K δ hδ hδ0 a ha ha0, source_localized_matrix] |
| 81 | ext j k |
| 82 | by_cases hjk : j = k |
| 83 | · subst k |
| 84 | simp only [QuadraticTensor.CM.quadraticSkewMatrix, Matrix.diagonal_apply_eq, AlgEquiv.apply_symm_apply] |
| 85 | have hz := CMArchimedeanCoordinates.CM.source_imaginary_real_zero K places (δ * a j) (him j) i |
| 86 | rw [show -2 * δ * a j = -2 * (δ * a j) by ring, map_mul, map_neg, map_ofNat] |
| 87 | apply Complex.ext |
| 88 | · have hz' : (HeckeCycles.ReferenceDatum.CM.embeddings K places i δ).re * (HeckeCycles.ReferenceDatum.CM.embeddings K places i (a j)).re - |
| 89 | (HeckeCycles.ReferenceDatum.CM.embeddings K places i δ).im * (HeckeCycles.ReferenceDatum.CM.embeddings K places i (a j)).im = 0 := by |
| 90 | simpa only [map_mul, Complex.mul_re] using hz |
| 91 | simp [sourceSkewRealCoefficients, Complex.mul_re, hz'] |
| 92 | · simp [sourceSkewRealCoefficients, Complex.mul_im] |
| 93 | ring |
| 94 | · simp [QuadraticTensor.CM.quadraticSkewMatrix, hjk] |
| 95 | |
| 96 | theorem source_hermitian_coefficients_ne_zero (β : K) |
| 97 | (hβ : IsCMField.complexConj K β = β) (hβ0 : β ≠ 0) (i : Fin places.count) : |
| 98 | ∀ j, sourceHermitianRealCoefficients K places β i j ≠ 0 := by |
| 99 | intro j |
| 100 | by_cases hj : j = 2 |
| 101 | · simp only [sourceHermitianRealCoefficients, hj, ite_true] |
| 102 | intro h |
| 103 | apply hβ0 |
| 104 | apply (HeckeCycles.ReferenceDatum.CM.embeddings K places i).injective |
| 105 | rw [map_zero] |
| 106 | exact Complex.ext h (source_fixed_element_real K places β hβ i) |
| 107 | · simp [sourceHermitianRealCoefficients, hj] |
| 108 | |
| 109 | include hδ hδ0 in |
| 110 | theorem source_skew_coefficients_ne_zero (a : Fin 2 → K) |
| 111 | (ha : ∀ j, IsCMField.complexConj K (a j) = a j) (ha0 : ∀ j, a j ≠ 0) |
| 112 | (i : Fin places.count) : ∀ j, sourceSkewRealCoefficients K places δ a i j ≠ 0 := by |
| 113 | intro j |
| 114 | apply mul_ne_zero (by norm_num) |
| 115 | apply CMArchimedeanCoordinates.CM.source_imaginary_im_ne_zero K places (δ * a j) _ (mul_ne_zero hδ0 (ha0 j)) i |
| 116 | rw [map_mul, hδ, ha] |
| 117 | ring |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CMFormCoordinates.CM |