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.CM.TraceForm |
| 2 | import Mathlib.Tactic |
| 3 | |
| 4 | /-! # Imaginary Hermitian Weights -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ImaginaryHermitianWeights |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Purely imaginary trace coefficients give nonzero real Hermitian |
| 11 | weights. Their signs and a positive distinguished normalization are |
| 12 | computed explicitly. -/ |
| 13 | |
| 14 | open OAI.AlgebraicGeometry.ComplexMultiplication.CM.TraceForm |
| 15 | |
| 16 | theorem imaginaryHermitianWeight_re (c z : ℂ) (hc : c.re = 0) : |
| 17 | (Complex.I * c * z).re = -c.im * z.re := by |
| 18 | simp only [Complex.mul_re, Complex.mul_im, Complex.I_re, Complex.I_im, hc, |
| 19 | zero_mul, one_mul, zero_sub, add_zero, mul_zero, sub_zero] |
| 20 | |
| 21 | theorem definite_of_real_weight {V : Type*} [Zero V] (B : V → ℝ) (c : ℝ) (hc : c ≠ 0) |
| 22 | (hB : (∀ x : V, x ≠ 0 → 0 < c * B x) ∨ (∀ x : V, x ≠ 0 → c * B x < 0)) : |
| 23 | (∀ x : V, x ≠ 0 → 0 < B x) ∨ (∀ x : V, x ≠ 0 → B x < 0) := by |
| 24 | rcases lt_or_gt_of_ne hc with hc | hc |
| 25 | · rcases hB with hB | hB |
| 26 | · right |
| 27 | intro x hx |
| 28 | exact ((mul_pos_iff.mp (hB x hx)).resolve_left (fun h => (not_lt_of_ge hc.le) h.1)).2 |
| 29 | · left |
| 30 | intro x hx |
| 31 | exact ((mul_neg_iff.mp (hB x hx)).resolve_left (fun h => (not_lt_of_ge hc.le) h.1)).2 |
| 32 | · rcases hB with hB | hB |
| 33 | · left |
| 34 | intro x hx |
| 35 | exact ((mul_pos_iff.mp (hB x hx)).resolve_right (fun h => (not_lt_of_ge hc.le) h.1)).2 |
| 36 | · right |
| 37 | intro x hx |
| 38 | exact ((mul_neg_iff.mp (hB x hx)).resolve_right (fun h => (not_lt_of_ge hc.le) h.1)).2 |
| 39 | |
| 40 | variable {E : Type*} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] |
| 41 | |
| 42 | theorem imaginaryScalar_embedding_re (σ : E →ₐ[ℚ] ℂ) (ξ : E) (hξ : ComplexMultiplication.CM.TraceForm.cmFieldConjugation E ξ = -ξ) : |
| 43 | (σ ξ).re = 0 := by |
| 44 | have h : star (σ ξ) = -σ ξ := (ComplexMultiplication.CM.TraceForm.cmFieldConjugation_embedding E σ ξ).symm.trans |
| 45 | ((congrArg σ hξ).trans (map_neg σ ξ)) |
| 46 | have hr := congrArg Complex.re h |
| 47 | simp only [Complex.star_def, Complex.conj_re, Complex.neg_re] at hr |
| 48 | linarith |
| 49 | |
| 50 | theorem imaginaryScalar_embedding_im_ne_zero (σ : E →ₐ[ℚ] ℂ) (ξ : E) (hne : ξ ≠ 0) |
| 51 | (hξ : ComplexMultiplication.CM.TraceForm.cmFieldConjugation E ξ = -ξ) : (σ ξ).im ≠ 0 := by |
| 52 | intro hzero |
| 53 | apply hne |
| 54 | apply σ.injective |
| 55 | apply Complex.ext |
| 56 | · exact (imaginaryScalar_embedding_re σ ξ hξ).trans (congrArg Complex.re (map_zero σ)).symm |
| 57 | · exact hzero.trans (congrArg Complex.im (map_zero σ)).symm |
| 58 | |
| 59 | def positiveImaginaryScalar (σ : E →ₐ[ℚ] ℂ) (ξ : E) : E := |
| 60 | if 0 < (σ ξ).im then ξ else -ξ |
| 61 | |
| 62 | theorem positiveImaginaryScalar_spec (σ : E →ₐ[ℚ] ℂ) (ξ : E) (hne : ξ ≠ 0) |
| 63 | (hξ : ComplexMultiplication.CM.TraceForm.cmFieldConjugation E ξ = -ξ) : |
| 64 | positiveImaginaryScalar σ ξ ≠ 0 ∧ |
| 65 | ComplexMultiplication.CM.TraceForm.cmFieldConjugation E (positiveImaginaryScalar σ ξ) = -positiveImaginaryScalar σ ξ ∧ |
| 66 | 0 < (σ (positiveImaginaryScalar σ ξ)).im := by |
| 67 | unfold positiveImaginaryScalar |
| 68 | split_ifs with h |
| 69 | · exact ⟨hne, hξ, h⟩ |
| 70 | · refine ⟨neg_ne_zero.mpr hne, ?_, ?_⟩ |
| 71 | · rw [map_neg, hξ] |
| 72 | · have hn := imaginaryScalar_embedding_im_ne_zero σ ξ hne hξ |
| 73 | rw [map_neg, Complex.neg_im] |
| 74 | exact neg_pos.mpr (lt_of_le_of_ne (le_of_not_gt h) hn) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ImaginaryHermitianWeights |