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.Lagrangians |
| 2 | |
| 3 | /-! # Coefficient Signs -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoefficientSigns.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Recover the multiplicity coefficients' signs from the actual positive |
| 10 | Lagrangians, using a nonzero vector at each compact place. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReferenceDatum.CM |
| 14 | |
| 15 | variable (K : IntermediateField ℚ ℂ) |
| 16 | [NumberField K] [IsGalois ℚ K] [NumberField.IsCMField K] |
| 17 | {B : HeckeCycles.GeometricSource.CM.BallDatum K} {places : HeckeCycles.GeometricSource.CM.Places K} |
| 18 | |
| 19 | def compactTestVector (d : Fin places.count → Bool) (τ : Fin places.count) : |
| 20 | Lagrangians.CM.pairedAmbient K places := |
| 21 | Pi.single τ (if d τ then (0, ![1, 0, 0]) else (![1, 0, 0], 0)) |
| 22 | |
| 23 | theorem compact_test_prescribed (d : Fin places.count → Bool) |
| 24 | (τ : Fin places.count) (hτ : τ ≠ places.distinguished) (z : HeckeCycles.GeometricSource.CM.BallChart) : |
| 25 | Geometry.ComplexBall.PrescribedSignsB.Prescribed (Lagrangians.CM.pairedBallForm K B places) |
| 26 | places.distinguished d z (compactTestVector K d τ) := by |
| 27 | intro j |
| 28 | by_cases hj : j = τ |
| 29 | · subst j |
| 30 | cases hd : d τ <;> |
| 31 | simp [compactTestVector, hτ, hd] |
| 32 | · simp only [compactTestVector, Pi.single_eq_of_ne hj, Prod.fst_zero, Prod.snd_zero] |
| 33 | split_ifs |
| 34 | · exact ⟨Submodule.zero_mem _, by simp [Lagrangians.CM.pairedBallForm, Geometry.ComplexBall.PrescribedSignsB.localB]⟩ |
| 35 | |
| 36 | omit [IsGalois ℚ K] in |
| 37 | theorem compact_test_ne_zero (d : Fin places.count → Bool) (τ : Fin places.count) : |
| 38 | compactTestVector K d τ ≠ 0 := by |
| 39 | intro h |
| 40 | have hτ := congrFun h τ |
| 41 | cases hd : d τ <;> simp [compactTestVector, hd] at hτ |
| 42 | |
| 43 | theorem compact_test_pairing (d : Fin places.count → Bool) (τ : Fin places.count) |
| 44 | (t : Fin places.count → ℂ) : |
| 45 | Geometry.ComplexBall.PrescribedSignsB.tracePairing (Lagrangians.CM.pairedBallForm K B places) t |
| 46 | (compactTestVector K d τ) (Geometry.ComplexBall.PrescribedSignsB.realConj (compactTestVector K d τ)) = |
| 47 | if d τ then -(t τ) else t τ := by |
| 48 | unfold Geometry.ComplexBall.PrescribedSignsB.tracePairing |
| 49 | rw [Finset.sum_eq_single τ] |
| 50 | · cases hd : d τ <;> |
| 51 | simp [Geometry.ComplexBall.PrescribedSignsB.realConj, compactTestVector, hd, |
| 52 | Lagrangians.CM.pairedBallForm, NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.localB_diagonal] |
| 53 | · intro j _ hj |
| 54 | simp [Geometry.ComplexBall.PrescribedSignsB.realConj, compactTestVector, Pi.single_eq_of_ne hj, |
| 55 | Lagrangians.CM.pairedBallForm, NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel.localB_diagonal] |
| 56 | · simp |
| 57 | |
| 58 | theorem lagrangian_compact_coefficient_sign |
| 59 | (d : Fin 2 → Fin places.count → Bool) (P : Lagrangians.CM.LagrangianPair K B places d) |
| 60 | (i : Fin 2) (τ : Fin places.count) (hτ : τ ≠ places.distinguished) : |
| 61 | if d i τ then (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.delta * P.a i)).im < 0 |
| 62 | else 0 < (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.delta * P.a i)).im := by |
| 63 | have hz : (0 : HeckeCycles.GeometricSource.CM.BallChart) ∈ B.domain := by |
| 64 | change Complex.normSq 0 + Complex.normSq 0 < -(B.b : ℂ).re |
| 65 | simpa only [Complex.normSq_zero, zero_add] using neg_pos.mpr B.negative |
| 66 | have hmem := ((P.prescribed_positive i 0 hz).1 (compactTestVector K (d i) τ)).mpr |
| 67 | (compact_test_prescribed K (d i) τ hτ 0) |
| 68 | have hp := ((P.prescribed_positive i 0 hz).2.2.2.2.1 |
| 69 | (compactTestVector K (d i) τ) hmem (compact_test_ne_zero K (d i) τ)).2 |
| 70 | rw [compact_test_pairing] at hp |
| 71 | cases hd : d i τ <;> |
| 72 | simp only [hd, Bool.false_eq_true, ite_false, ite_true, Complex.div_I, |
| 73 | Complex.neg_re, Complex.mul_re, Complex.I_re, Complex.I_im, mul_zero, |
| 74 | mul_one, zero_sub, neg_neg, Complex.neg_im] at hp ⊢ |
| 75 | · exact hp |
| 76 | · linarith |
| 77 | |
| 78 | theorem multiplicity_sign_orientation |
| 79 | (d : Fin 2 → Fin places.count → Bool) (P : Lagrangians.CM.LagrangianPair K B places d) |
| 80 | (hμ : ∀ i, d i places.distinguished = true) : |
| 81 | (∀ τ, -(HeckeCycles.ReferenceDatum.CM.embeddings K places τ P.delta).im ≠ 0) ∧ |
| 82 | ∀ i τ, 0 < (ComplexMultiplication.SignSwitch.CM.signValue (d i τ) : ℝ) * |
| 83 | (-(HeckeCycles.ReferenceDatum.CM.embeddings K places τ P.delta).im) * (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.a i)).re := by |
| 84 | have hre (τ : Fin places.count) : (HeckeCycles.ReferenceDatum.CM.embeddings K places τ P.delta).re = 0 := by |
| 85 | have hc := NumberField.IsCMField.complexEmbedding_complexConj K |
| 86 | (HeckeCycles.ReferenceDatum.CM.embeddings K places τ).toRingHom P.delta |
| 87 | rw [show NumberField.IsCMField.complexConj K P.delta = -P.delta from P.delta_imaginary, |
| 88 | map_neg] at hc |
| 89 | have hh := congrArg Complex.re hc |
| 90 | simp only [Complex.neg_re, Complex.conj_re] at hh |
| 91 | change -(HeckeCycles.ReferenceDatum.CM.embeddings K places τ P.delta).re = (HeckeCycles.ReferenceDatum.CM.embeddings K places τ P.delta).re at hh |
| 92 | linarith |
| 93 | have him (i : Fin 2) (τ : Fin places.count) : (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.a i)).im = 0 := by |
| 94 | have hc := NumberField.IsCMField.complexEmbedding_complexConj K |
| 95 | (HeckeCycles.ReferenceDatum.CM.embeddings K places τ).toRingHom (P.a i) |
| 96 | rw [show NumberField.IsCMField.complexConj K (P.a i) = P.a i from (P.a_sign i).2.1] at hc |
| 97 | have hh := congrArg Complex.im hc |
| 98 | simp only [Complex.conj_im] at hh |
| 99 | change (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.a i)).im = -(HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.a i)).im at hh |
| 100 | linarith |
| 101 | constructor |
| 102 | · intro τ hzero |
| 103 | apply P.delta_ne_zero |
| 104 | apply (HeckeCycles.ReferenceDatum.CM.embeddings K places τ).injective |
| 105 | rw [map_zero] |
| 106 | apply Complex.ext (hre τ) |
| 107 | exact neg_eq_zero.mp hzero |
| 108 | · intro i τ |
| 109 | have hs : if d i τ then (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.delta * P.a i)).im < 0 |
| 110 | else 0 < (HeckeCycles.ReferenceDatum.CM.embeddings K places τ (P.delta * P.a i)).im := by |
| 111 | by_cases hτ : τ = places.distinguished |
| 112 | · subst τ |
| 113 | simpa only [hμ i, ite_true] using (P.a_sign i).2.2 |
| 114 | · exact lagrangian_compact_coefficient_sign K d P i τ hτ |
| 115 | rw [map_mul, Complex.mul_im, him, mul_zero, zero_add] at hs |
| 116 | cases hd : d i τ <;> simp only [hd, Bool.false_eq_true, ite_false, ite_true] at hs |
| 117 | <;> simp [ComplexMultiplication.SignSwitch.CM.signValue] <;> nlinarith |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.HodgeConjecture.ThetaCycle.CoefficientSigns.CM |