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.Lattices.TangentIdentity |
| 2 | |
| 3 | /-! # Coefficient Map -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Infinitesimal.CoefficientMap.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Compatibility of matrix infinitesimal differentiation with extension |
| 12 | of the coefficient field. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | open _root_.MvPolynomial |
| 16 | |
| 17 | theorem rightInfinitesimal_coefficient_map |
| 18 | {k K : Type} [Field k] [Field K] {n : ℕ} (ι : k →+* K) |
| 19 | (A : Matrix (Fin n) (Fin n) k) (p : Algebraic.CoordinatePolynomial n k) : |
| 20 | Action.Construction.rightInfinitesimal (A.map ι) (MvPolynomial.map ι p) = |
| 21 | MvPolynomial.map ι (Action.Construction.rightInfinitesimal A p) := by |
| 22 | induction p using MvPolynomial.induction_on with |
| 23 | | C c => simp |
| 24 | | add p q hp hq => simp only [map_add, hp, hq] |
| 25 | | mul_X p ij hp => |
| 26 | rcases ij with ⟨i, j⟩ |
| 27 | simp only [map_mul, MvPolynomial.map_X, Derivation.leibniz, |
| 28 | smul_eq_mul, map_add, hp, Action.Construction.rightInfinitesimal_X, map_sum, |
| 29 | MvPolynomial.map_C, Matrix.map_apply] |
| 30 | |
| 31 | theorem evaluate_one_coefficient_map |
| 32 | {k K : Type} [Field k] [Field K] {n : ℕ} (ι : k →+* K) |
| 33 | (p : Algebraic.CoordinatePolynomial n k) : |
| 34 | Algebraic.evaluateMatrix (RingHom.id K) (1 : Algebraic.SL n K) (MvPolynomial.map ι p) = |
| 35 | ι (Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k) p) := by |
| 36 | induction p using MvPolynomial.induction_on with |
| 37 | | C c => simp [Algebraic.evaluateMatrix] |
| 38 | | add p q hp hq => simp only [map_add, hp, hq] |
| 39 | | mul_X p ij hp => |
| 40 | rcases ij with ⟨i, j⟩ |
| 41 | simp only [map_mul, hp] |
| 42 | congr 1 |
| 43 | simp [Algebraic.evaluateMatrix, Matrix.one_apply] |
| 44 | |
| 45 | theorem tangent_coefficient_map |
| 46 | {k K : Type} [Field k] [Field K] {n : ℕ} (ι : k →+* K) |
| 47 | (A : Matrix (Fin n) (Fin n) k) (p : Algebraic.CoordinatePolynomial n k) : |
| 48 | Algebraic.evaluateMatrix (RingHom.id K) (1 : Algebraic.SL n K) |
| 49 | (Action.Construction.rightInfinitesimal (A.map ι) (MvPolynomial.map ι p)) = |
| 50 | ι (Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k) (Action.Construction.rightInfinitesimal A p)) := by |
| 51 | rw [rightInfinitesimal_coefficient_map, evaluate_one_coefficient_map] |
| 52 | |
| 53 | end |
| 54 | |
| 55 | /-! Polynomials vanishing to first order at the identity form an ideal. |
| 56 | This allows tangent equations to be checked on ideal generators. -/ |
| 57 | |
| 58 | open scoped Classical |
| 59 | |
| 60 | def identityTangentIdeal {k : Type} [Field k] {n : ℕ} |
| 61 | (A : Matrix (Fin n) (Fin n) k) : Ideal (Algebraic.CoordinatePolynomial n k) where |
| 62 | carrier := {p | Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k) p = 0 ∧ |
| 63 | Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k) (Action.Construction.rightInfinitesimal A p) = 0} |
| 64 | zero_mem' := by simp |
| 65 | add_mem' := by |
| 66 | rintro p q ⟨hp, hp'⟩ ⟨hq, hq'⟩ |
| 67 | simp only [Set.mem_ofPred_eq, map_add, hp, hp', hq, hq', add_zero, and_self] |
| 68 | smul_mem' := by |
| 69 | rintro r p ⟨hp, hp'⟩ |
| 70 | change _ = 0 ∧ _ = 0 |
| 71 | simp only [smul_eq_mul, map_mul, Derivation.leibniz, map_add, hp, hp', |
| 72 | mul_zero, zero_mul, zero_add, and_self] |
| 73 | |
| 74 | theorem vanishingIdeal_le_identityTangentIdeal_iff |
| 75 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 76 | (A : Matrix (Fin n) (Fin n) k) : |
| 77 | VanishingIdeal.Construction.coordinateVanishingIdeal G ≤ identityTangentIdeal A ↔ |
| 78 | ∀ p ∈ VanishingIdeal.Construction.coordinateVanishingIdeal G, |
| 79 | Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k) (Action.Construction.rightInfinitesimal A p) = 0 := by |
| 80 | constructor |
| 81 | · intro h p hp |
| 82 | exact (h hp).2 |
| 83 | · intro h p hp |
| 84 | exact ⟨hp k (RingHom.id k) (1 : G.RationalPoints), h p hp⟩ |
| 85 | |
| 86 | theorem identityTangentIdeal_coefficient_map |
| 87 | {k K : Type} [Field k] [Field K] {n : ℕ} (ι : k →+* K) |
| 88 | (A : Matrix (Fin n) (Fin n) k) : |
| 89 | (identityTangentIdeal A).map (MvPolynomial.map ι) ≤ identityTangentIdeal (A.map ι) := by |
| 90 | rw [Ideal.map_le_iff_le_comap] |
| 91 | intro p hp |
| 92 | change _ = 0 ∧ _ = 0 |
| 93 | rw [evaluate_one_coefficient_map, tangent_coefficient_map, hp.1, hp.2, map_zero] |
| 94 | exact ⟨rfl, rfl⟩ |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Infinitesimal.CoefficientMap.Construction |