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.Lie.CharacteristicGap |
| 2 | import OAI.NumberTheory.ArithmeticGroups.Lattices.ExponentialNormal |
| 3 | import Mathlib.RingTheory.Localization.Integer |
| 4 | |
| 5 | /-! # Lie -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Integral.Lie.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Integral matrices in the rational Lie algebra form a finitely |
| 14 | generated full lattice. -/ |
| 15 | |
| 16 | open scoped Classical _root_.NumberField |
| 17 | open _root_.NumberField |
| 18 | |
| 19 | attribute [local instance] LieRing.ofAssociativeRing |
| 20 | |
| 21 | def integralMatrixModule {k : Type} [Field k] (n : ℕ) : |
| 22 | Submodule (𝓞 k) (Matrix (Fin n) (Fin n) k) := |
| 23 | ((Algebra.linearMap (𝓞 k) k).mapMatrix (m := Fin n) (n := Fin n)).range |
| 24 | |
| 25 | theorem mem_integralMatrixModule {k : Type} [Field k] {n : ℕ} |
| 26 | (A : Matrix (Fin n) (Fin n) k) : |
| 27 | A ∈ integralMatrixModule n ↔ |
| 28 | ∃ B : Matrix (Fin n) (Fin n) (𝓞 k), B.map (algebraMap (𝓞 k) k) = A := Iff.rfl |
| 29 | |
| 30 | theorem integralMatrixModule_fg {k : Type} [Field k] (n : ℕ) : |
| 31 | (integralMatrixModule (k := k) n).FG := by |
| 32 | have h : (⊤ : Submodule (𝓞 k) (Matrix (Fin n) (Fin n) (𝓞 k))).FG := Module.Finite.fg_top |
| 33 | simpa only [integralMatrixModule, Submodule.map_top] using |
| 34 | h.map ((Algebra.linearMap (𝓞 k) k).mapMatrix (m := Fin n) (n := Fin n)) |
| 35 | |
| 36 | def integralLieLattice {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 37 | Submodule (𝓞 k) (Infinitesimal.Action.Construction.infinitesimalStabilizer G) := |
| 38 | (integralMatrixModule n).comap ((Infinitesimal.Action.Construction.infinitesimalStabilizer G).toSubmodule.subtype.restrictScalars (𝓞 k)) |
| 39 | |
| 40 | theorem mem_integralLieLattice {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 41 | (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 42 | A ∈ integralLieLattice G ↔ |
| 43 | ∃ B : Matrix (Fin n) (Fin n) (𝓞 k), B.map (algebraMap (𝓞 k) k) = A.val := Iff.rfl |
| 44 | |
| 45 | theorem integralLieLattice_fg |
| 46 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 47 | (integralLieLattice G).FG := by |
| 48 | let f := (Infinitesimal.Action.Construction.infinitesimalStabilizer G).toSubmodule.subtype.restrictScalars (𝓞 k) |
| 49 | apply Submodule.fg_of_fg_map_injective f Subtype.val_injective |
| 50 | apply (integralMatrixModule_fg n).of_le |
| 51 | change ((integralMatrixModule n).comap f).map f ≤ integralMatrixModule n |
| 52 | exact Submodule.map_comap_le _ _ |
| 53 | |
| 54 | theorem integralLieLattice_denominator |
| 55 | {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 56 | (G : Algebraic.MatrixAlgebraicGroup k n) (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 57 | ∃ d : 𝓞 k, d ≠ 0 ∧ d • A ∈ integralLieLattice G := by |
| 58 | obtain ⟨d, hd⟩ := IsLocalization.exist_integer_multiples_of_finite (nonZeroDivisors (𝓞 k)) |
| 59 | (fun ij : Fin n × Fin n => A.val ij.1 ij.2) |
| 60 | choose B hB using hd |
| 61 | refine ⟨d.val, mem_nonZeroDivisors_iff_ne_zero.mp d.property, ?_⟩ |
| 62 | apply (mem_integralLieLattice G _).mpr |
| 63 | refine ⟨fun i j => B (i, j), ?_⟩ |
| 64 | ext i j : 1 |
| 65 | exact hB (i, j) |
| 66 | |
| 67 | theorem integralLieLattice_full |
| 68 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 69 | Submodule.span k (integralLieLattice G : Set (Infinitesimal.Action.Construction.infinitesimalStabilizer G)) = ⊤ := by |
| 70 | apply top_unique |
| 71 | intro A _ |
| 72 | obtain ⟨d, hd, hA⟩ := integralLieLattice_denominator G A |
| 73 | have hdk : (algebraMap (𝓞 k) k d) ≠ 0 := by |
| 74 | intro h |
| 75 | exact hd (Subtype.ext h) |
| 76 | have h := (Submodule.span k (integralLieLattice G : Set (Infinitesimal.Action.Construction.infinitesimalStabilizer G))).smul_mem |
| 77 | (algebraMap (𝓞 k) k d)⁻¹ (Submodule.subset_span hA) |
| 78 | have he : d • A = (algebraMap (𝓞 k) k d) • A := (IsScalarTower.algebraMap_smul k d A).symm |
| 79 | rwa [he, inv_smul_smul₀ hdk] at h |
| 80 | |
| 81 | end |
| 82 | |
| 83 | section |
| 84 | |
| 85 | /-! The actual standard arithmetic subgroup preserves the integral Lie |
| 86 | lattice through its adjoint action. -/ |
| 87 | |
| 88 | open scoped Classical _root_.NumberField |
| 89 | |
| 90 | theorem standard_arithmetic_adjoint_preserves_integralLieLattice |
| 91 | {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 92 | (G : Algebraic.MatrixAlgebraicGroup k n) (g : G.RationalPoints) |
| 93 | (hg : g ∈ G.latticeStabilizer (IntegralLattice.FullLattice.standard k n)) |
| 94 | (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) (hA : A ∈ integralLieLattice G) : |
| 95 | ExponentialNormal.Construction.infinitesimalAdjoint G g A ∈ integralLieLattice G := by |
| 96 | obtain ⟨B, hB⟩ := (Matrices.Construction.standard_lattice_stabilizer_iff_integral G g).mp hg |
| 97 | obtain ⟨C, hC⟩ := (mem_integralLieLattice G A).mp hA |
| 98 | let ι := algebraMap (𝓞 k) k |
| 99 | have hBv : ι.mapMatrix (B : Matrix (Fin n) (Fin n) (𝓞 k)) = |
| 100 | (g.val : Matrix (Fin n) (Fin n) k) := congrArg Subtype.val hB |
| 101 | have hBi : Matrix.SpecialLinearGroup.map ι (B⁻¹) = g.val⁻¹ := by |
| 102 | rw [map_inv, hB] |
| 103 | have hBiv : ι.mapMatrix ((B⁻¹ : Matrix.SpecialLinearGroup (Fin n) (𝓞 k)) : |
| 104 | Matrix (Fin n) (Fin n) (𝓞 k)) = |
| 105 | ((g.val⁻¹ : Algebraic.SL n k) : Matrix (Fin n) (Fin n) k) := congrArg Subtype.val hBi |
| 106 | have hCv : ι.mapMatrix C = A.val := hC |
| 107 | apply (mem_integralLieLattice G _).mpr |
| 108 | refine ⟨(B : Matrix (Fin n) (Fin n) (𝓞 k)) * C * |
| 109 | ((B⁻¹ : Matrix.SpecialLinearGroup (Fin n) (𝓞 k)) : Matrix (Fin n) (Fin n) (𝓞 k)), ?_⟩ |
| 110 | rw [ExponentialNormal.Construction.infinitesimalAdjoint_apply] |
| 111 | change ι.mapMatrix (_ * _ * _) = _ |
| 112 | rw [map_mul, map_mul, hBv, hCv, hBiv] |
| 113 | |
| 114 | theorem infinitesimalAdjoint_inverse_apply |
| 115 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 116 | (g : G.RationalPoints) (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 117 | ExponentialNormal.Construction.infinitesimalAdjoint G g⁻¹ (ExponentialNormal.Construction.infinitesimalAdjoint G g A) = A := by |
| 118 | apply Subtype.ext |
| 119 | rw [ExponentialNormal.Construction.infinitesimalAdjoint_apply, ExponentialNormal.Construction.infinitesimalAdjoint_apply] |
| 120 | change ((g.val⁻¹ : Algebraic.SL n k) : Matrix (Fin n) (Fin n) k) * |
| 121 | ((g.val : Matrix (Fin n) (Fin n) k) * A.val * (g.val⁻¹ : Algebraic.SL n k)) * |
| 122 | ((g.val⁻¹ : Algebraic.SL n k)⁻¹ : Algebraic.SL n k) = A.val |
| 123 | rw [inv_inv, ← mul_assoc, ← mul_assoc, |
| 124 | ← Matrix.SpecialLinearGroup.coe_mul, inv_mul_cancel, Matrix.SpecialLinearGroup.coe_one, one_mul, |
| 125 | mul_assoc, ← Matrix.SpecialLinearGroup.coe_mul, inv_mul_cancel, |
| 126 | Matrix.SpecialLinearGroup.coe_one, mul_one] |
| 127 | |
| 128 | theorem standard_arithmetic_adjoint_integralLieLattice_iff |
| 129 | {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 130 | (G : Algebraic.MatrixAlgebraicGroup k n) (g : G.RationalPoints) |
| 131 | (hg : g ∈ G.latticeStabilizer (IntegralLattice.FullLattice.standard k n)) |
| 132 | (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 133 | ExponentialNormal.Construction.infinitesimalAdjoint G g A ∈ integralLieLattice G ↔ A ∈ integralLieLattice G := by |
| 134 | constructor |
| 135 | · intro h |
| 136 | have hi := standard_arithmetic_adjoint_preserves_integralLieLattice G g⁻¹ |
| 137 | ((G.latticeStabilizer (IntegralLattice.FullLattice.standard k n)).inv_mem hg) _ h |
| 138 | rwa [infinitesimalAdjoint_inverse_apply] at hi |
| 139 | · exact standard_arithmetic_adjoint_preserves_integralLieLattice G g hg A |
| 140 | |
| 141 | end |
| 142 | |
| 143 | /-! The integral Lie lattice is closed under brackets, so it is a |
| 144 | finitely generated Lie algebra over the integers. -/ |
| 145 | |
| 146 | open scoped Classical _root_.NumberField |
| 147 | |
| 148 | attribute [local instance] LieRing.ofAssociativeRing |
| 149 | |
| 150 | theorem integralLieLattice_lie_mem |
| 151 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) |
| 152 | (A B : Infinitesimal.Action.Construction.infinitesimalStabilizer G) |
| 153 | (hA : A ∈ integralLieLattice G) (hB : B ∈ integralLieLattice G) : |
| 154 | ⁅A, B⁆ ∈ integralLieLattice G := by |
| 155 | obtain ⟨C, hC⟩ := (mem_integralLieLattice G A).mp hA |
| 156 | obtain ⟨D, hD⟩ := (mem_integralLieLattice G B).mp hB |
| 157 | apply (mem_integralLieLattice G _).mpr |
| 158 | refine ⟨C * D - D * C, ?_⟩ |
| 159 | let ι := algebraMap (𝓞 k) k |
| 160 | have hC' : ι.mapMatrix C = A.val := hC |
| 161 | have hD' : ι.mapMatrix D = B.val := hD |
| 162 | change ι.mapMatrix (C * D - D * C) = A.val * B.val - B.val * A.val |
| 163 | rw [map_sub, map_mul, map_mul, hC', hD'] |
| 164 | |
| 165 | def integralLieOrder |
| 166 | {k : Type} [Field k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 167 | LieSubalgebra ℤ (Infinitesimal.Action.Construction.infinitesimalStabilizer G) where |
| 168 | toSubmodule := (integralLieLattice G).restrictScalars ℤ |
| 169 | lie_mem' := fun {A B} hA hB => integralLieLattice_lie_mem G A B hA hB |
| 170 | |
| 171 | theorem integralLieOrder_finite |
| 172 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Algebraic.MatrixAlgebraicGroup k n) : |
| 173 | Module.Finite ℤ (integralLieOrder G) := by |
| 174 | let : Module.Finite (𝓞 k) (integralLieLattice G) := Module.Finite.of_fg (integralLieLattice_fg G) |
| 175 | change Module.Finite ℤ (integralLieLattice G) |
| 176 | exact Module.Finite.trans (𝓞 k) (integralLieLattice G) |
| 177 | |
| 178 | end |
| 179 | |
| 180 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Integral.Lie.Construction |