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.PolynomialAction |
| 2 | |
| 3 | /-! # Zariski -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Zariski.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Polynomial maps and the specified geometric Zariski topology. |
| 10 | Only separate continuity of multiplication is used for algebraic groups. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open Set _root_.MvPolynomial _root_.Topology _root_.TopologicalSpace |
| 14 | |
| 15 | variable {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 16 | |
| 17 | local instance geometricPointsTopology : TopologicalSpace G.GeometricPoints := G.geometricTopology |
| 18 | |
| 19 | theorem geometric_noetherian : NoetherianSpace G.GeometricPoints := |
| 20 | (show IsInducing G.geometricPrime from ⟨rfl⟩).noetherianSpace |
| 21 | |
| 22 | theorem continuous_geometricPrime : Continuous G.geometricPrime := continuous_induced_dom |
| 23 | |
| 24 | theorem geometric_polynomial_zero_closed (p : Algebraic.CoordinatePolynomial n (AlgebraicClosure k)) : |
| 25 | IsClosed {x : G.GeometricPoints | Algebraic.evaluateMatrix (RingHom.id _) x.val p = 0} := by |
| 26 | convert (PrimeSpectrum.isClosed_zeroLocus {p}).preimage (continuous_geometricPrime G) using 1 |
| 27 | ext x |
| 28 | simp [PrimeSpectrum.mem_zeroLocus, Algebraic.MatrixAlgebraicGroup.geometricPrime] |
| 29 | |
| 30 | theorem geometric_polynomial_map_continuous (f : G.GeometricPoints → G.GeometricPoints) |
| 31 | (P : Fin n × Fin n → Algebraic.CoordinatePolynomial n (AlgebraicClosure k)) |
| 32 | (hP : ∀ x i j, (f x).val i j = Algebraic.evaluateMatrix (RingHom.id _) x.val (P (i, j))) : |
| 33 | Continuous f := by |
| 34 | have heval (x : G.GeometricPoints) (p : Algebraic.CoordinatePolynomial n (AlgebraicClosure k)) : |
| 35 | Algebraic.evaluateMatrix (RingHom.id _) (f x).val p = |
| 36 | Algebraic.evaluateMatrix (RingHom.id _) x.val (aeval P p) := by |
| 37 | induction p using MvPolynomial.induction_on with |
| 38 | | C c => simp [Algebraic.evaluateMatrix] |
| 39 | | add p q hp hq => simp only [map_add, hp, hq] |
| 40 | | mul_X p ij hp => |
| 41 | rcases ij with ⟨i, j⟩ |
| 42 | simp only [map_mul, hp, aeval_X] |
| 43 | rw [show Algebraic.evaluateMatrix (RingHom.id _) (f x).val (X (i, j)) = (f x).val i j from |
| 44 | by simp [Algebraic.evaluateMatrix], |
| 45 | hP] |
| 46 | have hprime : G.geometricPrime ∘ f = |
| 47 | PrimeSpectrum.comap (aeval P).toRingHom ∘ G.geometricPrime := by |
| 48 | funext x |
| 49 | apply PrimeSpectrum.ext |
| 50 | ext p |
| 51 | change Algebraic.evaluateMatrix (RingHom.id _) (f x).val p = 0 ↔ |
| 52 | Algebraic.evaluateMatrix (RingHom.id _) x.val (aeval P p) = 0 |
| 53 | rw [heval] |
| 54 | apply continuous_induced_rng.mpr |
| 55 | change Continuous (G.geometricPrime ∘ f) |
| 56 | rw [hprime] |
| 57 | exact (PrimeSpectrum.continuous_comap _).comp (continuous_geometricPrime G) |
| 58 | |
| 59 | theorem geometric_right_mul_continuous (g : G.GeometricPoints) : |
| 60 | Continuous (fun x : G.GeometricPoints => x * g) := by |
| 61 | apply geometric_polynomial_map_continuous G _ |
| 62 | (fun ij => ∑ l, X (ij.1, l) * C (g.val l ij.2)) |
| 63 | intro x i j |
| 64 | simp [Algebraic.evaluateMatrix, Matrix.mul_apply] |
| 65 | |
| 66 | theorem geometric_left_mul_continuous (g : G.GeometricPoints) : |
| 67 | Continuous (fun x : G.GeometricPoints => g * x) := by |
| 68 | apply geometric_polynomial_map_continuous G _ |
| 69 | (fun ij => ∑ l, C (g.val ij.1 l) * X (l, ij.2)) |
| 70 | intro x i j |
| 71 | simp [Algebraic.evaluateMatrix, Matrix.mul_apply] |
| 72 | |
| 73 | theorem geometric_inv_continuous : Continuous (Inv.inv : G.GeometricPoints → G.GeometricPoints) := by |
| 74 | let Xmat : Matrix (Fin n) (Fin n) (Algebraic.CoordinatePolynomial n (AlgebraicClosure k)) := |
| 75 | fun i j => X (i, j) |
| 76 | apply geometric_polynomial_map_continuous G _ (fun ij => Xmat.adjugate ij.1 ij.2) |
| 77 | intro x i j |
| 78 | have heval := congrArg (fun M : Matrix (Fin n) (Fin n) (AlgebraicClosure k) => M i j) |
| 79 | ((Algebraic.evaluateMatrix (RingHom.id _) x.val).map_adjugate Xmat) |
| 80 | have hX : (Algebraic.evaluateMatrix (RingHom.id _) x.val).mapMatrix Xmat = x.val := by |
| 81 | ext a b |
| 82 | change Algebraic.evaluateMatrix (RingHom.id _) x.val (X (a, b)) = x.val a b |
| 83 | simp [Algebraic.evaluateMatrix] |
| 84 | rw [hX] at heval |
| 85 | exact heval.symm |
| 86 | |
| 87 | theorem geometric_commuting_closed (g : G.GeometricPoints) : |
| 88 | IsClosed {x : G.GeometricPoints | x * g = g * x} := by |
| 89 | let P : Fin n → Fin n → Algebraic.CoordinatePolynomial n (AlgebraicClosure k) := fun i j => |
| 90 | (∑ l, X (i, l) * C (g.val l j)) - (∑ l, C (g.val i l) * X (l, j)) |
| 91 | have hset : {x : G.GeometricPoints | x * g = g * x} = |
| 92 | ⋂ i, ⋂ j, {x : G.GeometricPoints | Algebraic.evaluateMatrix (RingHom.id _) x.val (P i j) = 0} := by |
| 93 | ext x |
| 94 | simp only [mem_iInter, mem_ofPred_eq] |
| 95 | constructor |
| 96 | · intro hx i j |
| 97 | have he := congrArg (fun y : G.GeometricPoints => y.val i j) hx |
| 98 | simpa [P, Algebraic.evaluateMatrix, Matrix.mul_apply, sub_eq_zero] using he |
| 99 | · intro hx |
| 100 | apply Subtype.ext |
| 101 | apply Matrix.SpecialLinearGroup.ext |
| 102 | intro i j |
| 103 | simpa [P, Algebraic.evaluateMatrix, Matrix.mul_apply, sub_eq_zero] using hx i j |
| 104 | rw [hset] |
| 105 | exact isClosed_iInter fun i => isClosed_iInter fun j => geometric_polynomial_zero_closed G (P i j) |
| 106 | |
| 107 | theorem geometric_center_closed : |
| 108 | IsClosed (Subgroup.center G.GeometricPoints : Set G.GeometricPoints) := by |
| 109 | have hset : (Subgroup.center G.GeometricPoints : Set G.GeometricPoints) = |
| 110 | ⋂ g : G.GeometricPoints, {x : G.GeometricPoints | x * g = g * x} := by |
| 111 | ext x |
| 112 | simp only [SetLike.mem_coe, Subgroup.mem_center_iff, mem_iInter, mem_ofPred_eq] |
| 113 | exact forall_congr' fun g => eq_comm |
| 114 | rw [hset] |
| 115 | exact isClosed_iInter (geometric_commuting_closed G) |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Zariski.Construction |