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.AbelianModuli.ReferenceFamily.PositiveHermitianCoordinates |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Complex.HermitianMatrixForm |
| 3 | import Mathlib.LinearAlgebra.Projection |
| 4 | |
| 5 | /-! # Orthogonal Hermitian Coordinates -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.OrthogonalHermitianCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Complementary positive and negative orthogonal subspaces give an |
| 14 | explicit Hermitian coordinate equivalence with a signed diagonal form. -/ |
| 15 | |
| 16 | variable {V : Type*} [AddCommGroup V] [Module ℂ V] [Module.Finite ℂ V] |
| 17 | |
| 18 | theorem exists_orthogonalHermitian_coordinates |
| 19 | (F : V →ₗ[ℂ] V →ₗ⋆[ℂ] ℂ) (hsym : ∀ x y, F y x = star (F x y)) |
| 20 | (P Q : Submodule ℂ V) (hPQ : IsCompl P Q) |
| 21 | (horth : ∀ (x : P) (y : Q), F x.val y.val = 0) |
| 22 | (hpos : ∀ x : P, x ≠ 0 → 0 < (F x.val x.val).re) |
| 23 | (hneg : ∀ x : Q, x ≠ 0 → (F x.val x.val).re < 0) |
| 24 | (p q : ℕ) (hp : Module.finrank ℂ P = p) (hq : Module.finrank ℂ Q = q) : |
| 25 | ∃ e : V ≃ₗ[ℂ] ((Fin p → ℂ) × (Fin q → ℂ)), ∀ x y : V, |
| 26 | F x y = (∑ i, (e x).1 i * star ((e y).1 i)) - |
| 27 | ∑ j, (e x).2 j * star ((e y).2 j) := by |
| 28 | let FP := ReferenceFamily.Complex.HermitianMatrixForm.restrictHermitianForm F P |
| 29 | let FQ := -ReferenceFamily.Complex.HermitianMatrixForm.restrictHermitianForm F Q |
| 30 | have hPsym (x y : P) : FP y x = star (FP x y) := hsym x.val y.val |
| 31 | have hQsym (x y : Q) : FQ y x = star (FQ x y) := by |
| 32 | change -F y.val x.val = star (-F x.val y.val) |
| 33 | rw [hsym, star_neg] |
| 34 | have hQpos (x : Q) (hx : x ≠ 0) : 0 < (FQ x x).re := by |
| 35 | change 0 < (-F x.val x.val).re |
| 36 | rw [Complex.neg_re] |
| 37 | exact neg_pos.mpr (hneg x hx) |
| 38 | obtain ⟨ep, hep⟩ := PositiveHermitianCoordinates.exists_positiveHermitian_coordinates FP hPsym hpos p hp |
| 39 | obtain ⟨eq, heq⟩ := PositiveHermitianCoordinates.exists_positiveHermitian_coordinates FQ hQsym hQpos q hq |
| 40 | let d := Submodule.prodEquivOfIsCompl P Q hPQ |
| 41 | let e := d.symm.trans (ep.prodCongr eq) |
| 42 | refine ⟨e, ?_⟩ |
| 43 | intro x y |
| 44 | obtain ⟨⟨px, qx⟩, rfl⟩ := d.surjective x |
| 45 | obtain ⟨⟨py, qy⟩, rfl⟩ := d.surjective y |
| 46 | have her (a : P × Q) : e (d a) = (ep a.1, eq a.2) := |
| 47 | congrArg (ep.prodCongr eq) (d.symm_apply_apply a) |
| 48 | rw [her, her] |
| 49 | have hrev : F qx.val py.val = 0 := (hsym py.val qx.val).trans |
| 50 | ((congrArg star (horth py qx)).trans (map_zero (starRingEnd ℂ))) |
| 51 | have hsum : F (px.val + qx.val) (py.val + qy.val) = F px.val py.val + F qx.val qy.val := by |
| 52 | simp only [map_add, LinearMap.add_apply, horth px qy, hrev, add_zero, zero_add] |
| 53 | have heP : F px.val py.val = ∑ i, ep px i * star (ep py i) := hep px py |
| 54 | have heQ : F qx.val qy.val = -(∑ j, eq qx j * star (eq qy j)) := neg_eq_iff_eq_neg.mp (heq qx qy) |
| 55 | exact hsum.trans ((congrArg₂ (· + ·) heP heQ).trans (sub_eq_add_neg _ _).symm) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | /-! Rescale the negative coordinate to the prescribed negative real |
| 60 | diagonal entry. The normalizer is an actual complex linear equivalence. -/ |
| 61 | |
| 62 | def threeSignedCoordinates (c : ℂ) (hc : c ≠ 0) : |
| 63 | (Fin 3 → ℂ) ≃ₗ[ℂ] ((Fin 2 → ℂ) × (Fin 1 → ℂ)) where |
| 64 | toFun x := (![x 0, x 1], ![c * x 2]) |
| 65 | invFun p := ![p.1 0, p.1 1, p.2 0 / c] |
| 66 | left_inv x := by |
| 67 | ext i |
| 68 | fin_cases i <;> simp [hc] |
| 69 | right_inv p := by |
| 70 | apply Prod.ext |
| 71 | · ext i |
| 72 | fin_cases i <;> simp |
| 73 | · ext i |
| 74 | fin_cases i |
| 75 | change c * (p.2 0 / c) = p.2 0 |
| 76 | field_simp |
| 77 | map_add' x y := by |
| 78 | apply Prod.ext |
| 79 | · ext i |
| 80 | fin_cases i <;> simp |
| 81 | · ext i |
| 82 | fin_cases i |
| 83 | simp [mul_add] |
| 84 | map_smul' a x := by |
| 85 | apply Prod.ext |
| 86 | · ext i |
| 87 | fin_cases i <;> simp |
| 88 | · ext i |
| 89 | fin_cases i |
| 90 | simp [mul_left_comm] |
| 91 | |
| 92 | theorem complexHermitianMatrixForm_diagonal (β : ℂ) (x y : Fin 3 → ℂ) : |
| 93 | ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) x y = |
| 94 | x 0 * star (y 0) + x 1 * star (y 1) + β * x 2 * star (y 2) := by |
| 95 | rw [ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm_apply] |
| 96 | simp [Fin.sum_univ_succ, Matrix.diagonal] |
| 97 | ring |
| 98 | |
| 99 | theorem negativeReal_sqrt_factor (β : ℂ) (hreal : β.im = 0) (hneg : β.re < 0) : |
| 100 | let c : ℂ := (Real.sqrt (-β.re) : ℂ) |
| 101 | c ≠ 0 ∧ c * star c = -β := by |
| 102 | have hp : 0 < Real.sqrt (-β.re) := Real.sqrt_pos.2 (neg_pos.mpr hneg) |
| 103 | refine ⟨by exact_mod_cast hp.ne', ?_⟩ |
| 104 | apply Complex.ext |
| 105 | · simp only [Complex.mul_re, Complex.star_def, Complex.conj_re, Complex.conj_im, |
| 106 | Complex.ofReal_re, Complex.ofReal_im, neg_zero, mul_zero, sub_zero, Complex.neg_re] |
| 107 | exact Real.mul_self_sqrt (neg_nonneg.mpr hneg.le) |
| 108 | · simp [hreal] |
| 109 | |
| 110 | theorem threeSignedCoordinates_form (β : ℂ) (c : ℂ) (hc : c ≠ 0) |
| 111 | (hfactor : c * star c = -β) (x y : Fin 3 → ℂ) : |
| 112 | (∑ i, (threeSignedCoordinates c hc x).1 i * star ((threeSignedCoordinates c hc y).1 i)) - |
| 113 | ∑ j, (threeSignedCoordinates c hc x).2 j * star ((threeSignedCoordinates c hc y).2 j) = |
| 114 | ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) x y := by |
| 115 | rw [complexHermitianMatrixForm_diagonal] |
| 116 | change (∑ i, (![x 0, x 1] : Fin 2 → ℂ) i * star ((![y 0, y 1] : Fin 2 → ℂ) i)) - |
| 117 | (∑ j, (![c * x 2] : Fin 1 → ℂ) j * star ((![c * y 2] : Fin 1 → ℂ) j)) = _ |
| 118 | simp only [Fin.sum_univ_succ, Matrix.cons_val_zero, Matrix.cons_val_succ, |
| 119 | Fin.sum_univ_zero, add_zero, star_mul] |
| 120 | calc |
| 121 | _ = x 0 * star (y 0) + x 1 * star (y 1) - (c * star c) * x 2 * star (y 2) := by ring |
| 122 | _ = _ := by rw [hfactor]; ring |
| 123 | |
| 124 | theorem exists_prescribedDiagonal_normalizer |
| 125 | (F : (Fin 3 → ℂ) →ₗ[ℂ] (Fin 3 → ℂ) →ₗ⋆[ℂ] ℂ) |
| 126 | (e : (Fin 3 → ℂ) ≃ₗ[ℂ] ((Fin 2 → ℂ) × (Fin 1 → ℂ))) |
| 127 | (he : ∀ x y, F x y = (∑ i, (e x).1 i * star ((e y).1 i)) - |
| 128 | ∑ j, (e x).2 j * star ((e y).2 j)) |
| 129 | (β : ℂ) (hreal : β.im = 0) (hneg : β.re < 0) : |
| 130 | ∃ n : (Fin 3 → ℂ) ≃ₗ[ℂ] (Fin 3 → ℂ), ∀ x y, |
| 131 | F (n x) (n y) = ReferenceFamily.Complex.HermitianMatrixForm.complexHermitianMatrixForm (Matrix.diagonal ![1, 1, β]) x y := by |
| 132 | obtain ⟨hc, hfactor⟩ := negativeReal_sqrt_factor β hreal hneg |
| 133 | let c : ℂ := (Real.sqrt (-β.re) : ℂ) |
| 134 | let d := threeSignedCoordinates c hc |
| 135 | let n := d.trans e.symm |
| 136 | refine ⟨n, ?_⟩ |
| 137 | intro x y |
| 138 | have hn (z : Fin 3 → ℂ) : e (n z) = d z := e.apply_symm_apply (d z) |
| 139 | rw [he, hn, hn] |
| 140 | exact threeSignedCoordinates_form β c hc hfactor x y |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.OrthogonalHermitianCoordinates |