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.AdjointKernelCenter |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.AlgebraicLocusBaseChange |
| 3 | |
| 4 | /-! # Centralizer Equations -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Infinitesimal.CentralizerEquations.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Rational polynomial equations for the centralizer of the Lie algebra. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open _root_.MvPolynomial |
| 14 | |
| 15 | attribute [local instance] LieRing.ofAssociativeRing |
| 16 | |
| 17 | def matrixCommutatorPolynomial |
| 18 | {k : Type} [Field k] {n : ℕ} (A : Matrix (Fin n) (Fin n) k) : |
| 19 | Matrix (Fin n) (Fin n) (Algebraic.CoordinatePolynomial n k) := |
| 20 | ConjugationCoordinatePolynomial.Construction.conjugationUniversalMatrix k n * A.map MvPolynomial.C - |
| 21 | A.map MvPolynomial.C * ConjugationCoordinatePolynomial.Construction.conjugationUniversalMatrix k n |
| 22 | |
| 23 | theorem evaluate_matrixCommutatorPolynomial |
| 24 | {k K : Type} [Field k] [Field K] {n : ℕ} |
| 25 | (ι : k →+* K) (g : Algebraic.SL n K) (A : Matrix (Fin n) (Fin n) k) : |
| 26 | (Algebraic.evaluateMatrix ι g).mapMatrix (matrixCommutatorPolynomial A) = |
| 27 | (g : Matrix (Fin n) (Fin n) K) * A.map ι - A.map ι * (g : Matrix (Fin n) (Fin n) K) := by |
| 28 | have hX : (Algebraic.evaluateMatrix ι g).mapMatrix (ConjugationCoordinatePolynomial.Construction.conjugationUniversalMatrix k n) = |
| 29 | (g : Matrix (Fin n) (Fin n) K) := by |
| 30 | ext i j |
| 31 | change Algebraic.evaluateMatrix ι g (X (i, j)) = _ |
| 32 | simp [Algebraic.evaluateMatrix] |
| 33 | have hA : (Algebraic.evaluateMatrix ι g).mapMatrix (A.map MvPolynomial.C) = A.map ι := by |
| 34 | ext i j |
| 35 | simp [Algebraic.evaluateMatrix] |
| 36 | rw [matrixCommutatorPolynomial, map_sub, map_mul, map_mul, hX, hA] |
| 37 | |
| 38 | def infinitesimalCentralizerEquations |
| 39 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 40 | Set (Algebraic.CoordinatePolynomial n k) := |
| 41 | insert (CoordinateIdeal.Construction.determinantEquation k n) |
| 42 | (G.equations ∪ {p | ∃ A ∈ Action.Construction.infinitesimalStabilizer G, ∃ i j, p = matrixCommutatorPolynomial A i j}) |
| 43 | |
| 44 | def infinitesimalCentralizerIdeal |
| 45 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 46 | Ideal (Algebraic.CoordinatePolynomial n k) := Ideal.span (infinitesimalCentralizerEquations G) |
| 47 | |
| 48 | theorem infinitesimalCentralizer_zeroLocus_point |
| 49 | {k K : Type} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 50 | (G : Algebraic.MatrixAlgebraicGroup k n) {x : (Fin n × Fin n) → K} |
| 51 | (hx : x ∈ zeroLocus K (infinitesimalCentralizerIdeal G)) : |
| 52 | ∃ g : G.Points (algebraMap k K), (∀ i j, g.val i j = x (i, j)) ∧ |
| 53 | ∀ A ∈ Action.Construction.infinitesimalStabilizer G, |
| 54 | (g.val : Matrix (Fin n) (Fin n) K) * A.map (algebraMap k K) = |
| 55 | A.map (algebraMap k K) * (g.val : Matrix (Fin n) (Fin n) K) := by |
| 56 | have hp : ∀ p ∈ infinitesimalCentralizerEquations G, aeval x p = 0 := |
| 57 | fun p hp => hx p (Ideal.subset_span hp) |
| 58 | have hd := hp (CoordinateIdeal.Construction.determinantEquation k n) (Set.mem_insert _ _) |
| 59 | have hdet : Matrix.det (fun i j : Fin n => x (i, j)) = 1 := by |
| 60 | apply sub_eq_zero.mp |
| 61 | simpa only [aeval_eq_eval₂Hom, CoordinateIdeal.Construction.eval_determinantEquation] using hd |
| 62 | let g : Algebraic.SL n K := ⟨fun i j => x (i, j), hdet⟩ |
| 63 | have hg : g ∈ G.subgroup K (algebraMap k K) := by |
| 64 | apply (G.mem_iff K (algebraMap k K) g).mpr |
| 65 | intro p hpG |
| 66 | exact hp p (Set.mem_insert_of_mem _ (Or.inl hpG)) |
| 67 | refine ⟨⟨g, hg⟩, fun _ _ => rfl, ?_⟩ |
| 68 | intro A hA |
| 69 | apply sub_eq_zero.mp |
| 70 | rw [← evaluate_matrixCommutatorPolynomial] |
| 71 | ext i j |
| 72 | exact hp _ (Set.mem_insert_of_mem _ (Or.inr ⟨A, hA, i, j, rfl⟩)) |
| 73 | |
| 74 | theorem point_mem_infinitesimalCentralizer_zeroLocus |
| 75 | {k K : Type} [Field k] [Field K] [Algebra k K] {n : ℕ} |
| 76 | (G : Algebraic.MatrixAlgebraicGroup k n) (g : G.Points (algebraMap k K)) |
| 77 | (hg : ∀ A ∈ Action.Construction.infinitesimalStabilizer G, |
| 78 | (g.val : Matrix (Fin n) (Fin n) K) * A.map (algebraMap k K) = |
| 79 | A.map (algebraMap k K) * (g.val : Matrix (Fin n) (Fin n) K)) : |
| 80 | (fun ij => g.val ij.1 ij.2) ∈ zeroLocus K (infinitesimalCentralizerIdeal G) := by |
| 81 | rw [infinitesimalCentralizerIdeal, zeroLocus_span] |
| 82 | intro p hp |
| 83 | rcases hp with rfl | hp |
| 84 | · change Algebraic.evaluateMatrix (algebraMap k K) g.val (CoordinateIdeal.Construction.determinantEquation k n) = 0 |
| 85 | simp only [Algebraic.evaluateMatrix, CoordinateIdeal.Construction.eval_determinantEquation, Matrix.SpecialLinearGroup.det_coe, sub_self] |
| 86 | · rcases hp with hp | ⟨A, hA, i, j, rfl⟩ |
| 87 | · exact (G.mem_iff K (algebraMap k K) g.val).mp g.property p hp |
| 88 | · have he := congrArg (fun M => M i j) (evaluate_matrixCommutatorPolynomial (algebraMap k K) g.val A) |
| 89 | rw [hg A hA, sub_self] at he |
| 90 | exact he |
| 91 | |
| 92 | theorem commutes_infinitesimal_extension_of_commutes_base |
| 93 | {k K : Type} [Field k] [CharZero k] [Field K] [Algebra k K] {n : ℕ} |
| 94 | (G : Algebraic.MatrixAlgebraicGroup k n) (hG : G.IsGeometricallyConnected) |
| 95 | (C : Matrix (Fin n) (Fin n) K) |
| 96 | (hC : ∀ A ∈ Action.Construction.infinitesimalStabilizer G, |
| 97 | C * A.map (algebraMap k K) = A.map (algebraMap k K) * C) |
| 98 | {A : Matrix (Fin n) (Fin n) K} |
| 99 | (hA : A ∈ Action.Construction.infinitesimalStabilizer (BaseChange.Construction.matrixGroupBaseChange G (algebraMap k K))) : |
| 100 | C * A = A * C := by |
| 101 | change A ∈ (Action.Construction.infinitesimalStabilizer (BaseChange.Construction.matrixGroupBaseChange G (algebraMap k K))).toSubmodule at hA |
| 102 | rw [TangentExtension.Construction.infinitesimalStabilizer_eq_span_base G hG] at hA |
| 103 | induction hA using Submodule.span_induction with |
| 104 | | mem A hA => obtain ⟨A, hA, rfl⟩ := hA; exact hC A hA |
| 105 | | zero => rw [Matrix.mul_zero, Matrix.zero_mul] |
| 106 | | add A B _ _ hA hB => rw [Matrix.mul_add, Matrix.add_mul, hA, hB] |
| 107 | | smul a A _ hA => rw [Matrix.mul_smul, Matrix.smul_mul, hA] |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Infinitesimal.CentralizerEquations.Construction |