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.ComplexMultiplication.GaloisCMType |
| 2 | |
| 3 | /-! # Odd -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.Odd |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # The multiplicity line with the prescribed inverse-embedding signs |
| 11 | |
| 12 | Weak approximation constructs the imaginary coefficient ξ with signs |
| 13 | v(τ⁻¹). Relative to a common imaginary reference coefficient δ, the |
| 14 | multiplicity line is the genuine rank-one E-Hermitian space with coefficient |
| 15 | a = ξ / δ. Its oriented skew-Hermitian coefficient is δa = ξ. The sign |
| 16 | identity is proved from the signs of this constructed coefficient. |
| 17 | -/ |
| 18 | |
| 19 | open scoped Classical |
| 20 | open OAI.AlgebraicGeometry.ComplexMultiplication.GaloisCMType.CM.CMCoefficientField |
| 21 | |
| 22 | variable (E : IntermediateField ℚ ℂ) |
| 23 | [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] |
| 24 | |
| 25 | abbrev Sign := ComplexMultiplication.OddSignSwitch.CM.OddSignPattern (fun τ : Gal(E/ℚ) => ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) |
| 26 | |
| 27 | /-- Inversion of embedding labels is part of the source construction. -/ |
| 28 | def inverseType (v : Sign E) : Sign E := |
| 29 | ⟨fun τ => v.val τ⁻¹, fun τ => by |
| 30 | change v.val ((ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ)⁻¹) = !v.val τ⁻¹ |
| 31 | have hc : (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E)⁻¹ = ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E := by |
| 32 | apply inv_eq_of_mul_eq_one_left |
| 33 | apply AlgEquiv.ext |
| 34 | exact ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply E |
| 35 | rw [mul_inv_rev, hc, ← (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_commute E τ⁻¹).eq] |
| 36 | exact v.property τ⁻¹⟩ |
| 37 | |
| 38 | /-- The actual imaginary coefficient constructed by weak approximation. -/ |
| 39 | def imaginaryCoefficient (v : Sign E) : E := |
| 40 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E (inverseType E v)).imaginaryElement |
| 41 | |
| 42 | theorem imaginaryCoefficient_conjugate (v : Sign E) : |
| 43 | ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (imaginaryCoefficient E v) = -imaginaryCoefficient E v := |
| 44 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E (inverseType E v)).imaginaryElement_conjugate |
| 45 | |
| 46 | theorem imaginaryCoefficient_ne_zero (v : Sign E) : imaginaryCoefficient E v ≠ 0 := |
| 47 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E (inverseType E v)).imaginaryElement_ne_zero |
| 48 | |
| 49 | theorem imaginaryCoefficient_positive (v : Sign E) (τ : Gal(E/ℚ)) |
| 50 | (h : v.val τ⁻¹ = true) : |
| 51 | 0 < ((τ (imaginaryCoefficient E v) : E) : ℂ).im := by |
| 52 | apply (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E (inverseType E v)).imaginaryElement_positive |
| 53 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ) |
| 54 | rw [ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType_apply] |
| 55 | exact h |
| 56 | |
| 57 | theorem imaginaryCoefficient_negative (v : Sign E) (τ : Gal(E/ℚ)) |
| 58 | (h : v.val τ⁻¹ = false) : |
| 59 | ((τ (imaginaryCoefficient E v) : E) : ℂ).im < 0 := by |
| 60 | apply (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType E (inverseType E v)).imaginaryElement_negative |
| 61 | (ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.galoisEmbeddingEquiv E τ) |
| 62 | rw [ComplexMultiplication.GaloisCMType.CM.CMCoefficientField.embeddingType_apply] |
| 63 | exact h |
| 64 | |
| 65 | /-- A fixed reference type supplies δ; all multiplicity lines can share it. -/ |
| 66 | def hermitianCoefficient (reference v : Sign E) : E := |
| 67 | imaginaryCoefficient E v / imaginaryCoefficient E reference |
| 68 | |
| 69 | theorem hermitianCoefficient_real (reference v : Sign E) : |
| 70 | ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (hermitianCoefficient E reference v) = |
| 71 | hermitianCoefficient E reference v := by |
| 72 | simp only [hermitianCoefficient, map_div₀, imaginaryCoefficient_conjugate, |
| 73 | neg_div, div_neg, neg_neg] |
| 74 | |
| 75 | theorem hermitianCoefficient_ne_zero (reference v : Sign E) : |
| 76 | hermitianCoefficient E reference v ≠ 0 := |
| 77 | div_ne_zero (imaginaryCoefficient_ne_zero E v) (imaginaryCoefficient_ne_zero E reference) |
| 78 | |
| 79 | /-- The actual Hermitian pairing on the rank-one E-module E. -/ |
| 80 | def multiplicityPairing (reference v : Sign E) (x y : E) : E := |
| 81 | hermitianCoefficient E reference v * x * ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E y |
| 82 | |
| 83 | theorem multiplicityPairing_hermitian (reference v : Sign E) (x y : E) : |
| 84 | ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E (multiplicityPairing E reference v x y) = |
| 85 | multiplicityPairing E reference v y x := by |
| 86 | simp only [multiplicityPairing, map_mul, hermitianCoefficient_real, |
| 87 | ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation_apply_apply] |
| 88 | ring |
| 89 | |
| 90 | theorem multiplicityPairing_nondegenerate (reference v : Sign E) (x : E) |
| 91 | (hx : ∀ y, multiplicityPairing E reference v x y = 0) : x = 0 := by |
| 92 | have h := hx 1 |
| 93 | simp only [multiplicityPairing, map_one, mul_one] at h |
| 94 | exact (mul_eq_zero.mp h).resolve_left (hermitianCoefficient_ne_zero E reference v) |
| 95 | |
| 96 | omit [NumberField E] [IsGalois ℚ E] [NumberField.IsCMField E] in |
| 97 | theorem multiplicity_rank_one : Module.finrank E E = 1 := Module.finrank_self E |
| 98 | |
| 99 | /-- Signs are measured on the oriented skew-Hermitian trace coefficient. -/ |
| 100 | def multiplicitySign (reference v : Sign E) (τ : Gal(E/ℚ)) : ℤ := |
| 101 | if 0 < ((τ (imaginaryCoefficient E reference * |
| 102 | multiplicityPairing E reference v 1 1) : E) : ℂ).im then 1 else -1 |
| 103 | |
| 104 | theorem orientedCoefficient (reference v : Sign E) : |
| 105 | imaginaryCoefficient E reference * multiplicityPairing E reference v 1 1 = |
| 106 | imaginaryCoefficient E v := by |
| 107 | simp only [multiplicityPairing, map_one, mul_one, hermitianCoefficient] |
| 108 | exact mul_div_cancel₀ _ (imaginaryCoefficient_ne_zero E reference) |
| 109 | |
| 110 | /-- The manuscript's d(τ) = v(τ⁻¹) is derived from the constructed line. -/ |
| 111 | theorem multiplicitySign_eq (reference v : Sign E) (τ : Gal(E/ℚ)) : |
| 112 | multiplicitySign E reference v τ = ComplexMultiplication.SignSwitch.CM.signValue (v.val τ⁻¹) := by |
| 113 | unfold multiplicitySign |
| 114 | rw [orientedCoefficient] |
| 115 | cases h : v.val τ⁻¹ |
| 116 | · rw [ite_eq_right (not_lt_of_ge (imaginaryCoefficient_negative E v τ h).le)] |
| 117 | rfl |
| 118 | · rw [ite_eq_left (imaginaryCoefficient_positive E v τ h)] |
| 119 | rfl |
| 120 | |
| 121 | theorem multiplicitySign_odd (reference v : Sign E) (τ : Gal(E/ℚ)) : |
| 122 | multiplicitySign E reference v (ComplexMultiplication.GaloisSigns.CM.CMCoefficientField.conjugation E * τ) = |
| 123 | -multiplicitySign E reference v τ := by |
| 124 | simp only [multiplicitySign_eq] |
| 125 | exact congrArg ComplexMultiplication.SignSwitch.CM.signValue ((inverseType E v).property τ) |>.trans (ComplexMultiplication.SignSwitch.CM.signValue_not _) |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Multiplicity.Odd |