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 Mathlib |
| 2 | |
| 3 | /-! # Algebraic -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Algebraic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Concrete affine matrix groups for Lattices. A group is presented as the common |
| 11 | zero set of polynomials inside SL(n), over every extension field. Thus its |
| 12 | point groups and scalar-extension maps are fixed by equations, not by an |
| 13 | uninterpreted arithmetic predicate. Working in SL loses no connected |
| 14 | semisimple linear algebraic groups in characteristic zero: every character, |
| 15 | including the determinant of a faithful representation, is trivial. |
| 16 | |
| 17 | Geometric connectedness and semisimplicity use the actual Zariski topology |
| 18 | over an algebraic closure. Semisimplicity means that every connected closed |
| 19 | normal solvable subgroup is trivial. Cocharacters are uniformly polynomial |
| 20 | in t and t⁻¹ over all extension fields. None of these definitions assumes |
| 21 | discreteness, covolume, or compactness of an arithmetic quotient. |
| 22 | -/ |
| 23 | |
| 24 | open scoped Classical |
| 25 | |
| 26 | abbrev SL (n : ℕ) (K : Type) [CommRing K] := |
| 27 | Matrix.SpecialLinearGroup (Fin n) K |
| 28 | |
| 29 | abbrev CoordinatePolynomial (n : ℕ) (k : Type) [CommRing k] := |
| 30 | MvPolynomial (Fin n × Fin n) k |
| 31 | |
| 32 | def evaluateMatrix {n : ℕ} {k K : Type} [CommRing k] [CommRing K] |
| 33 | (ι : k →+* K) (g : SL n K) : CoordinatePolynomial n k →+* K := |
| 34 | MvPolynomial.eval₂Hom ι (fun ij => g ij.1 ij.2) |
| 35 | |
| 36 | /-- A reduced affine matrix group, described by equations over k. |
| 37 | The supplied subgroup structures assert only closure under the group laws. -/ |
| 38 | structure MatrixAlgebraicGroup (k : Type) [Field k] (n : ℕ) where |
| 39 | equations : Set (CoordinatePolynomial n k) |
| 40 | subgroup : (K : Type) → [Field K] → (k →+* K) → Subgroup (SL n K) |
| 41 | mem_iff : ∀ (K : Type) [Field K] (ι : k →+* K) (g : SL n K), |
| 42 | g ∈ subgroup K ι ↔ ∀ p ∈ equations, evaluateMatrix ι g p = 0 |
| 43 | |
| 44 | namespace MatrixAlgebraicGroup |
| 45 | |
| 46 | variable {k : Type} [Field k] {n : ℕ} (G : MatrixAlgebraicGroup k n) |
| 47 | |
| 48 | abbrev Points {K : Type} [Field K] (ι : k →+* K) := ↥(G.subgroup K ι) |
| 49 | |
| 50 | abbrev RationalPoints := G.Points (RingHom.id k) |
| 51 | |
| 52 | abbrev GeometricPoints := G.Points (algebraMap k (AlgebraicClosure k)) |
| 53 | |
| 54 | /-- Scalar extension is the entrywise matrix map. -/ |
| 55 | def map {K L : Type} [Field K] [Field L] (ι : k →+* K) |
| 56 | (f : K →+* L) : G.Points ι →* G.Points (f.comp ι) where |
| 57 | toFun g := ⟨Matrix.SpecialLinearGroup.map f g.val, by |
| 58 | apply (G.mem_iff L (f.comp ι) _).mpr |
| 59 | intro p hp |
| 60 | have h := congrArg f ((G.mem_iff K ι g.val).mp g.property p hp) |
| 61 | simpa only [evaluateMatrix, MvPolynomial.map_eval₂Hom, map_zero, |
| 62 | Matrix.SpecialLinearGroup.map_apply_coe, RingHom.mapMatrix_apply, |
| 63 | Matrix.map_apply] using h⟩ |
| 64 | map_one' := by apply Subtype.ext; exact map_one _ |
| 65 | map_mul' g h := by apply Subtype.ext; exact map_mul _ g.val h.val |
| 66 | |
| 67 | @[simp] theorem map_entry {K L : Type} [Field K] [Field L] |
| 68 | (ι : k →+* K) (f : K →+* L) (g : G.Points ι) (i j : Fin n) : |
| 69 | (G.map ι f g).val i j = f (g.val i j) := rfl |
| 70 | |
| 71 | theorem map_injective {K L : Type} [Field K] [Field L] |
| 72 | (ι : k →+* K) (f : K →+* L) : Function.Injective (G.map ι f) := by |
| 73 | intro g h he |
| 74 | apply Subtype.ext |
| 75 | apply Matrix.SpecialLinearGroup.ext |
| 76 | intro i j |
| 77 | apply f.injective |
| 78 | exact congrArg (fun x : G.Points (f.comp ι) => x.val i j) he |
| 79 | |
| 80 | /-- The prime ideal associated to a geometric point is its evaluation kernel. -/ |
| 81 | def geometricPrime (g : G.GeometricPoints) : |
| 82 | PrimeSpectrum (CoordinatePolynomial n (AlgebraicClosure k)) := |
| 83 | ⟨RingHom.ker (evaluateMatrix (RingHom.id _) g.val), RingHom.ker_isPrime _⟩ |
| 84 | |
| 85 | /-- The ordinary Zariski topology pulled back from the affine coordinate ring. -/ |
| 86 | @[instance_reducible] def geometricTopology : TopologicalSpace G.GeometricPoints := |
| 87 | TopologicalSpace.induced G.geometricPrime inferInstance |
| 88 | |
| 89 | def IsGeometricallyConnected : Prop := |
| 90 | @ConnectedSpace G.GeometricPoints G.geometricTopology |
| 91 | |
| 92 | def IsSemisimple : Prop := |
| 93 | letI : TopologicalSpace G.GeometricPoints := G.geometricTopology |
| 94 | ∀ N : Subgroup G.GeometricPoints, |
| 95 | N.Normal → IsClosed (N : Set G.GeometricPoints) → |
| 96 | IsConnected (N : Set G.GeometricPoints) → Group.IsSolvable N → N = ⊥ |
| 97 | |
| 98 | /-- A k-defined algebraic homomorphism G_m → G. Uniform polynomial |
| 99 | coordinates in (t,t⁻¹) encode regularity and scalar-extension compatibility. -/ |
| 100 | structure Cocharacter where |
| 101 | hom : (K : Type) → [Field K] → (ι : k →+* K) → (Kˣ →* G.Points ι) |
| 102 | coordinates : Fin n → Fin n → MvPolynomial (Fin 2) k |
| 103 | coordinate_eq : ∀ (K : Type) [Field K] (ι : k →+* K) |
| 104 | (t : Kˣ) (i j : Fin n), |
| 105 | (hom K ι t).val i j = |
| 106 | MvPolynomial.eval₂Hom ι |
| 107 | (fun a : Fin 2 => if a = 0 then (t : K) else ((t⁻¹ : Kˣ) : K)) |
| 108 | (coordinates i j) |
| 109 | |
| 110 | /-- Uniform regular coordinates force compatibility with scalar extension. -/ |
| 111 | theorem Cocharacter.map_hom (c : G.Cocharacter) |
| 112 | {K L : Type} [Field K] [Field L] (ι : k →+* K) (f : K →+* L) (t : Kˣ) : |
| 113 | G.map ι f (c.hom K ι t) = c.hom L (f.comp ι) (Units.map f.toMonoidHom t) := by |
| 114 | apply Subtype.ext |
| 115 | apply Matrix.SpecialLinearGroup.ext |
| 116 | intro i j |
| 117 | rw [map_entry, c.coordinate_eq, c.coordinate_eq, MvPolynomial.map_eval₂Hom] |
| 118 | apply congrArg (fun x : Fin 2 → L => |
| 119 | MvPolynomial.eval₂Hom (f.comp ι) x (c.coordinates i j)) |
| 120 | funext a |
| 121 | split_ifs <;> rfl |
| 122 | |
| 123 | end MatrixAlgebraicGroup |
| 124 | |
| 125 | /-- A faithful matrix realization of a connected semisimple k-group. -/ |
| 126 | structure ConnectedSemisimpleKGroup (k : Type) [Field k] where |
| 127 | dimension : ℕ |
| 128 | matrixGroup : MatrixAlgebraicGroup k dimension |
| 129 | connected : matrixGroup.IsGeometricallyConnected |
| 130 | semisimple : matrixGroup.IsSemisimple |
| 131 | |
| 132 | /-- k-rank zero: every k-defined cocharacter is trivial. -/ |
| 133 | def IsAnisotropic {k : Type} [Field k] (G : ConnectedSemisimpleKGroup k) : Prop := |
| 134 | ∀ c : G.matrixGroup.Cocharacter, |
| 135 | ∀ (K : Type) [Field K] (ι : k →+* K), c.hom K ι = 1 |
| 136 | |
| 137 | /-- Actual compactness of the group of real points at a specified embedding. -/ |
| 138 | def IsCompactAtRealPlace {k : Type} [Field k] |
| 139 | (G : ConnectedSemisimpleKGroup k) (v : k →+* ℝ) : Prop := |
| 140 | CompactSpace (G.matrixGroup.Points v) |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Algebraic |