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.DifferentialDerivationCore |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.Infinitesimal.CoefficientMap |
| 3 | |
| 4 | /-! # Matrix Differential -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.MatrixDifferential.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Polynomial equations of the algebraic hull of a family of matrix |
| 13 | directions. These equations vanish at the identity and are preserved by |
| 14 | every specified infinitesimal direction. -/ |
| 15 | |
| 16 | open scoped Classical |
| 17 | |
| 18 | def matrixDifferentialCore {k : Type} [Field k] {n : ℕ} |
| 19 | (S : Set (Matrix (Fin n) (Fin n) k)) : Ideal (Algebraic.CoordinatePolynomial n k) := |
| 20 | DifferentialDerivationCore.Construction.differentialCore (Infinitesimal.Action.Construction.rightInfinitesimal '' S) |
| 21 | (RingHom.ker (Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k))) |
| 22 | |
| 23 | theorem matrixDifferentialCore_eval_one {k : Type} [Field k] {n : ℕ} |
| 24 | (S : Set (Matrix (Fin n) (Fin n) k)) {p : Algebraic.CoordinatePolynomial n k} |
| 25 | (hp : p ∈ matrixDifferentialCore S) : |
| 26 | Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k) p = 0 := |
| 27 | DifferentialDerivationCore.Construction.differentialCore_le _ _ hp |
| 28 | |
| 29 | theorem matrixDifferentialCore_derivative {k : Type} [Field k] {n : ℕ} |
| 30 | (S : Set (Matrix (Fin n) (Fin n) k)) {A : Matrix (Fin n) (Fin n) k} (hA : A ∈ S) |
| 31 | {p : Algebraic.CoordinatePolynomial n k} (hp : p ∈ matrixDifferentialCore S) : |
| 32 | Infinitesimal.Action.Construction.rightInfinitesimal A p ∈ matrixDifferentialCore S := |
| 33 | DifferentialDerivationCore.Construction.differentialCore_derivation (Infinitesimal.Action.Construction.rightInfinitesimal '' S) |
| 34 | (RingHom.ker (Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k))) |
| 35 | (Infinitesimal.Action.Construction.rightInfinitesimal A) ⟨A, hA, rfl⟩ hp |
| 36 | |
| 37 | theorem vanishingIdeal_le_matrixDifferentialCore {k : Type} [Field k] {n : ℕ} |
| 38 | (G : Algebraic.MatrixAlgebraicGroup k n) (S : Set (Matrix (Fin n) (Fin n) k)) |
| 39 | (hS : S ⊆ Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 40 | VanishingIdeal.Construction.coordinateVanishingIdeal G ≤ matrixDifferentialCore S := by |
| 41 | apply DifferentialDerivationCore.Construction.le_differentialCore |
| 42 | · intro p hp |
| 43 | exact hp k (RingHom.id k) (1 : G.RationalPoints) |
| 44 | · rintro D ⟨A, hA, rfl⟩ p hp |
| 45 | exact (Infinitesimal.Action.Construction.mem_infinitesimalStabilizer G A).mp (hS hA) p hp |
| 46 | |
| 47 | theorem matrixDifferentialCore_isRadical {k : Type} [Field k] [CharZero k] {n : ℕ} |
| 48 | (S : Set (Matrix (Fin n) (Fin n) k)) : (matrixDifferentialCore S).IsRadical := |
| 49 | DifferentialDerivationCore.Construction.differentialCore_isRadical _ _ (RingHom.ker_isPrime _).isRadical |
| 50 | |
| 51 | theorem leftTranslate_mem_matrixDifferentialCore {k : Type} [Field k] {n : ℕ} |
| 52 | (S : Set (Matrix (Fin n) (Fin n) k)) (g : Algebraic.SL n k) |
| 53 | (hg : ∀ p ∈ matrixDifferentialCore S, Algebraic.evaluateMatrix (RingHom.id k) g p = 0) |
| 54 | {p : Algebraic.CoordinatePolynomial n k} (hp : p ∈ matrixDifferentialCore S) : |
| 55 | LeftTranslation.Construction.leftTranslate (g : Matrix (Fin n) (Fin n) k) p ∈ matrixDifferentialCore S := by |
| 56 | apply Ideal.mem_iInf.mpr |
| 57 | intro m |
| 58 | induction m generalizing p with |
| 59 | | zero => |
| 60 | change Algebraic.evaluateMatrix (RingHom.id k) (1 : Algebraic.SL n k) (LeftTranslation.Construction.leftTranslate _ p) = 0 |
| 61 | rw [TangentIdentity.Construction.leftTranslate_evaluate_one] |
| 62 | exact hg p hp |
| 63 | | succ m ih => |
| 64 | refine ⟨ih hp, ?_⟩ |
| 65 | rintro D ⟨A, hA, rfl⟩ |
| 66 | rw [LeftTranslation.Construction.rightInfinitesimal_leftTranslate] |
| 67 | exact ih (matrixDifferentialCore_derivative S hA hp) |
| 68 | |
| 69 | theorem leftTranslate_evaluate_rational {k : Type} [Field k] {n : ℕ} |
| 70 | (g x : Algebraic.SL n k) (p : Algebraic.CoordinatePolynomial n k) : |
| 71 | Algebraic.evaluateMatrix (RingHom.id k) x (LeftTranslation.Construction.leftTranslate (g : Matrix (Fin n) (Fin n) k) p) = |
| 72 | Algebraic.evaluateMatrix (RingHom.id k) (g * x) p := by |
| 73 | have hg : Matrix.SpecialLinearGroup.map (RingHom.id k) g = g := by |
| 74 | apply Matrix.SpecialLinearGroup.ext |
| 75 | intro i j |
| 76 | rfl |
| 77 | rw [LeftTranslation.Construction.leftTranslate_evaluate, hg] |
| 78 | |
| 79 | end |
| 80 | |
| 81 | /-! Coordinate polynomials for a matrix acting on a vector, tested by a |
| 82 | linear functional. Infinitesimal right translation differentiates the |
| 83 | input vector. -/ |
| 84 | |
| 85 | open scoped Classical |
| 86 | open _root_.MvPolynomial |
| 87 | |
| 88 | def matrixVectorPolynomial {k : Type} [Field k] {n : ℕ} |
| 89 | (w : Fin n → k) (i : Fin n) : Algebraic.CoordinatePolynomial n k := |
| 90 | ∑ j, X (i, j) * C (w j) |
| 91 | |
| 92 | theorem evaluate_matrixVectorPolynomial {k : Type} [Field k] {n : ℕ} |
| 93 | (g : Algebraic.SL n k) (w : Fin n → k) (i : Fin n) : |
| 94 | Algebraic.evaluateMatrix (RingHom.id k) g (matrixVectorPolynomial w i) = |
| 95 | (g : Matrix (Fin n) (Fin n) k).mulVec w i := by |
| 96 | simp [matrixVectorPolynomial, Algebraic.evaluateMatrix, Matrix.mulVec, dotProduct] |
| 97 | |
| 98 | theorem derivative_matrixVectorPolynomial {k : Type} [Field k] {n : ℕ} |
| 99 | (A : Matrix (Fin n) (Fin n) k) (w : Fin n → k) (i : Fin n) : |
| 100 | Infinitesimal.Action.Construction.rightInfinitesimal A (matrixVectorPolynomial w i) = matrixVectorPolynomial (A.mulVec w) i := by |
| 101 | exact Infinitesimal.Action.Construction.rightInfinitesimal_on_linear_entry A (fun j _ => w j) i i |
| 102 | |
| 103 | def matrixFunctionalPolynomial {k : Type} [Field k] {n : ℕ} |
| 104 | (φ : Module.Dual k (Fin n → k)) (w : Fin n → k) : Algebraic.CoordinatePolynomial n k := |
| 105 | ∑ i, C (φ (Pi.single i 1)) * matrixVectorPolynomial w i |
| 106 | |
| 107 | theorem dual_apply_eq_coordinate_sum {k : Type} [Field k] {n : ℕ} |
| 108 | (φ : Module.Dual k (Fin n → k)) (w : Fin n → k) : |
| 109 | φ w = ∑ i, φ (Pi.single i 1) * w i := by |
| 110 | have he : (∑ i : Fin n, w i • Pi.single i (1 : k)) = w := by |
| 111 | ext j |
| 112 | simp [Pi.single_apply] |
| 113 | rw [← he, map_sum] |
| 114 | apply Finset.sum_congr rfl |
| 115 | intro i _ |
| 116 | rw [map_smul, smul_eq_mul] |
| 117 | rw [he, mul_comm] |
| 118 | |
| 119 | theorem evaluate_matrixFunctionalPolynomial {k : Type} [Field k] {n : ℕ} |
| 120 | (g : Algebraic.SL n k) (φ : Module.Dual k (Fin n → k)) (w : Fin n → k) : |
| 121 | Algebraic.evaluateMatrix (RingHom.id k) g (matrixFunctionalPolynomial φ w) = |
| 122 | φ ((g : Matrix (Fin n) (Fin n) k).mulVec w) := by |
| 123 | unfold matrixFunctionalPolynomial |
| 124 | simp only [map_sum, map_mul, evaluate_matrixVectorPolynomial] |
| 125 | have hC (a : k) : Algebraic.evaluateMatrix (RingHom.id k) g (C a) = a := by simp [Algebraic.evaluateMatrix] |
| 126 | simp only [hC] |
| 127 | exact (dual_apply_eq_coordinate_sum _ _).symm |
| 128 | |
| 129 | theorem derivative_matrixFunctionalPolynomial {k : Type} [Field k] {n : ℕ} |
| 130 | (A : Matrix (Fin n) (Fin n) k) (φ : Module.Dual k (Fin n → k)) (w : Fin n → k) : |
| 131 | Infinitesimal.Action.Construction.rightInfinitesimal A (matrixFunctionalPolynomial φ w) = |
| 132 | matrixFunctionalPolynomial φ (A.mulVec w) := by |
| 133 | unfold matrixFunctionalPolynomial |
| 134 | simp only [map_sum, LeftTranslation.Construction.rightInfinitesimal_C_mul, derivative_matrixVectorPolynomial] |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.NumberTheory.ArithmeticGroups.Lattices.MatrixDifferential.Construction |