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.NumberTheory.ArithmeticGroups.Coordinates |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Trace |
| 3 | |
| 4 | /-! # Diagonal -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | open scoped Classical |
| 11 | |
| 12 | variable {E Place : Type*} [Field E] [Algebra ℚ E] |
| 13 | (σ : Place → E →ₐ[ℚ] ℂ) |
| 14 | |
| 15 | lemma localB_diagonal (b : E) (τ : Place) (x y : Geometry.ComplexBall.PrescribedSignsB.Vec) : |
| 16 | Geometry.ComplexBall.PrescribedSignsB.localB σ (Matrix.diagonal ![1, 1, b]) τ x y = |
| 17 | x 0 * y 0 + x 1 * y 1 + σ τ b * x 2 * y 2 := by |
| 18 | simp [Geometry.ComplexBall.PrescribedSignsB.localB, Matrix.diagonal, Fin.sum_univ_succ] |
| 19 | ring |
| 20 | |
| 21 | lemma localB_diagonal_real (b : E) (τ : Place) (x : Geometry.ComplexBall.PrescribedSignsB.Vec) : |
| 22 | (Geometry.ComplexBall.PrescribedSignsB.localB σ (Matrix.diagonal ![1, 1, b]) τ x (star x)).re = |
| 23 | Complex.normSq (x 0) + Complex.normSq (x 1) + |
| 24 | (σ τ b).re * Complex.normSq (x 2) := by |
| 25 | rw [localB_diagonal] |
| 26 | simp [Complex.mul_re, Complex.mul_im, Complex.normSq_apply] |
| 27 | ring |
| 28 | |
| 29 | lemma three_normSq_positive (x : Geometry.ComplexBall.PrescribedSignsB.Vec) (hx : x ≠ 0) : |
| 30 | 0 < Complex.normSq (x 0) + Complex.normSq (x 1) + Complex.normSq (x 2) := by |
| 31 | have h0 := Complex.normSq_nonneg (x 0) |
| 32 | have h1 := Complex.normSq_nonneg (x 1) |
| 33 | have h2 := Complex.normSq_nonneg (x 2) |
| 34 | obtain ⟨i, hi⟩ := Function.ne_iff.mp hx |
| 35 | have hp := Complex.normSq_pos.mpr hi |
| 36 | fin_cases i |
| 37 | · change 0 < Complex.normSq (x 0) at hp |
| 38 | linarith |
| 39 | · change 0 < Complex.normSq (x 1) at hp |
| 40 | linarith |
| 41 | · change 0 < Complex.normSq (x 2) at hp |
| 42 | linarith |
| 43 | |
| 44 | lemma diagonal_positive_plane (b : E) (μ : Place) |
| 45 | (x : Geometry.ComplexBall.PrescribedSignsB.Vec) (hx : x ≠ 0) (hx2 : x 2 = 0) : |
| 46 | 0 < (Geometry.ComplexBall.PrescribedSignsB.localB σ (Matrix.diagonal ![1, 1, b]) μ x (star x)).re := by |
| 47 | rw [localB_diagonal_real, hx2] |
| 48 | simpa [hx2] using three_normSq_positive x hx |
| 49 | |
| 50 | lemma diagonal_positive_definite (b : E) (τ : Place) (hb : 0 < (σ τ b).re) |
| 51 | (x : Geometry.ComplexBall.PrescribedSignsB.Vec) (hx : x ≠ 0) : |
| 52 | 0 < (Geometry.ComplexBall.PrescribedSignsB.localB σ (Matrix.diagonal ![1, 1, b]) τ x (star x)).re := by |
| 53 | rw [localB_diagonal_real] |
| 54 | have h0 := Complex.normSq_nonneg (x 0) |
| 55 | have h1 := Complex.normSq_nonneg (x 1) |
| 56 | by_cases h2 : x 2 = 0 |
| 57 | · simpa [h2] using three_normSq_positive x hx |
| 58 | · have hp := mul_pos hb (Complex.normSq_pos.mpr h2) |
| 59 | linarith |
| 60 | |
| 61 | variable [NumberField E] [NumberField.IsCMField E] |
| 62 | |
| 63 | omit [Algebra ℚ E] in |
| 64 | lemma diagonal_hermitian (b : E) (hb : NumberField.IsCMField.complexConj E b = b) : |
| 65 | ∀ j k : Fin 3, (Matrix.diagonal ![1, 1, b]) j k = |
| 66 | NumberField.IsCMField.complexConj E ((Matrix.diagonal ![1, 1, b]) k j) := by |
| 67 | intro j k |
| 68 | by_cases h : j = k |
| 69 | · subst k |
| 70 | fin_cases j <;> simp [Matrix.diagonal, hb] |
| 71 | · simp [Matrix.diagonal, h, Ne.symm h] |
| 72 | |
| 73 | omit [Algebra ℚ E] in |
| 74 | lemma trace_matrix_diagonal (b : E) (x y : Data.CongruenceLevel.VE E) : |
| 75 | (∑ j : Fin 3, ∑ k : Fin 3, x j * (Matrix.diagonal ![1, 1, b]) j k * |
| 76 | NumberField.IsCMField.complexConj E (y k)) = Data.CongruenceLevel.hermitian b x y := by |
| 77 | simp [Matrix.diagonal, Data.CongruenceLevel.hermitian, Fin.sum_univ_succ, mul_comm, mul_left_comm, mul_assoc] |
| 78 | |
| 79 | include σ in |
| 80 | lemma exists_nonzero_imaginary (μ : Place) : |
| 81 | ∃ δ : E, δ ≠ 0 ∧ NumberField.IsCMField.complexConj E δ = -δ := by |
| 82 | obtain ⟨x, hx⟩ := AlgebraicGeometry.ComplexMultiplication.CM.TypeHodgeStructure.CMEmbeddingType.exists_positive_im (σ μ) |
| 83 | refine ⟨x - NumberField.IsCMField.complexConj E x, ?_, ?_⟩ |
| 84 | · intro h |
| 85 | have hi := congrArg (fun y : E => (σ μ y).im) h |
| 86 | have he : (σ μ) (NumberField.IsCMField.complexConj E x) = star ((σ μ) x) := |
| 87 | NumberField.IsCMField.complexEmbedding_complexConj E (σ μ).toRingHom x |
| 88 | simp only [map_sub, map_zero, Complex.sub_im, Complex.zero_im] at hi |
| 89 | rw [he] at hi |
| 90 | simp only [Complex.star_def, Complex.conj_im] at hi |
| 91 | linarith |
| 92 | · rw [map_sub, NumberField.IsCMField.complexConj_apply_apply] |
| 93 | abel |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.NumberTheory.ArithmeticGroups.Diagonal.CongruenceLevel |