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.PadicHodge.IntegralComparison.TopExteriorDeterminant |
| 2 | import Mathlib.RingTheory.Derivation.Basic |
| 3 | |
| 4 | /-! # Coordinate Jacobian -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.CoordinateJacobian |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Inverting one affine projective coordinate changes the top |
| 11 | differential by the exact power and sign of the usual canonical twist. -/ |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | variable {R : Type u} [CommRing R] |
| 16 | |
| 17 | theorem det_updateRow_one {ι : Type*} [Fintype ι] [DecidableEq ι] (k : ι) (v : ι → R) : |
| 18 | (Matrix.updateRow (1 : Matrix ι ι R) k v).det = v k := by |
| 19 | have hv : (∑ i, v i • (1 : Matrix ι ι R) i) = v := by |
| 20 | funext j |
| 21 | simp [Matrix.one_apply] |
| 22 | simpa only [hv, Matrix.det_one, smul_eq_mul, mul_one] using |
| 23 | Matrix.det_updateRow_sum (1 : Matrix ι ι R) k v |
| 24 | |
| 25 | variable {n : ℕ} |
| 26 | |
| 27 | def jacobian (k : Fin n) (u : Rˣ) (x : Fin n → R) : Matrix (Fin n) (Fin n) R := |
| 28 | Matrix.updateRow (((u⁻¹ : Rˣ) : R) • (1 : Matrix (Fin n) (Fin n) R)) k |
| 29 | (fun j => if j = k then -((u⁻¹ : Rˣ) : R) ^ 2 else -((u⁻¹ : Rˣ) : R) ^ 2 * x j) |
| 30 | |
| 31 | theorem jacobian_det (k : Fin n) (u : Rˣ) (x : Fin n → R) : |
| 32 | (jacobian k u x).det = -((u⁻¹ : Rˣ) : R) ^ (n + 1) := by |
| 33 | rw [jacobian, Matrix.det_updateRow_smul_left, det_updateRow_one, ite_eq_left rfl, |
| 34 | Fintype.card_fin, mul_neg, ← pow_add] |
| 35 | congr 2 |
| 36 | have := k.isLt |
| 37 | omega |
| 38 | |
| 39 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 40 | (b : Module.Basis (Fin n) R M) |
| 41 | |
| 42 | def frame (k : Fin n) (u : Rˣ) (x : Fin n → R) (j : Fin n) : M := |
| 43 | if j = k then -((u⁻¹ : Rˣ) : R) ^ 2 • b k |
| 44 | else ((u⁻¹ : Rˣ) : R) • b j - (((u⁻¹ : Rˣ) : R) ^ 2 * x j) • b k |
| 45 | |
| 46 | theorem frame_matrix (k : Fin n) (u : Rˣ) (x : Fin n → R) : |
| 47 | b.toMatrix (frame b k u x) = jacobian k u x := by |
| 48 | ext i j |
| 49 | by_cases hi : i = k <;> by_cases hj : j = k |
| 50 | all_goals simp [Module.Basis.toMatrix_apply, frame, jacobian, Matrix.updateRow_apply, |
| 51 | Matrix.one_apply, Finsupp.single_apply, hi, hj, eq_comm, sub_eq_add_neg] |
| 52 | all_goals exact fun h => (hj h.symm).elim |
| 53 | |
| 54 | theorem wedge_frame (k : Fin n) (u : Rˣ) (x : Fin n → R) : |
| 55 | exteriorPower.ιMulti R n (frame b k u x) = |
| 56 | (-((u⁻¹ : Rˣ) : R) ^ (n + 1)) • exteriorPower.ιMulti R n b := by |
| 57 | rw [TopExteriorDeterminant.alternating_apply_eq_det_smul b, |
| 58 | Module.Basis.det_apply, frame_matrix, jacobian_det] |
| 59 | |
| 60 | def coordinates (k : Fin n) (u : Rˣ) (x : Fin n → R) (j : Fin n) : R := |
| 61 | if j = k then ((u⁻¹ : Rˣ) : R) else ((u⁻¹ : Rˣ) : R) * x j |
| 62 | |
| 63 | variable {A : Type w} [CommRing A] [Algebra A R] [Module A M] [IsScalarTower A R M] |
| 64 | |
| 65 | omit [IsScalarTower A R M] in |
| 66 | theorem differential_coordinates (D : Derivation A R M) (k : Fin n) (u : Rˣ) (x : Fin n → R) |
| 67 | (hx : ∀ j, D (x j) = b j) (hk : x k = (u : R)) (j : Fin n) : |
| 68 | D (coordinates k u x j) = frame b k u x j := by |
| 69 | have hi : D ((u⁻¹ : Rˣ) : R) = -((u⁻¹ : Rˣ) : R) ^ 2 • b k := by |
| 70 | rw [D.leibniz_of_mul_eq_one (Units.inv_mul u), ← hk, hx] |
| 71 | by_cases hj : j = k |
| 72 | · simp only [coordinates, frame, ite_eq_left hj] |
| 73 | exact hi |
| 74 | · simp [coordinates, frame, hj, D.leibniz, hx, hi, sub_eq_add_neg, smul_smul, mul_comm, add_comm] |
| 75 | |
| 76 | omit [IsScalarTower A R M] in |
| 77 | theorem wedge_differential_coordinates (D : Derivation A R M) (k : Fin n) (u : Rˣ) |
| 78 | (x : Fin n → R) (hx : ∀ j, D (x j) = b j) (hk : x k = (u : R)) : |
| 79 | exteriorPower.ιMulti R n (fun j => D (coordinates k u x j)) = |
| 80 | (-((u⁻¹ : Rˣ) : R) ^ (n + 1)) • exteriorPower.ιMulti R n b := by |
| 81 | have he : (fun j => D (coordinates k u x j)) = frame b k u x := |
| 82 | funext (differential_coordinates b D k u x hx hk) |
| 83 | rw [he, wedge_frame] |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.CoordinateJacobian |