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.Integral.Lie |
| 2 | import Mathlib.RingTheory.Algebraic.Integral |
| 3 | import Mathlib.LinearAlgebra.FreeModule.PID |
| 4 | import Mathlib.RingTheory.Localization.Integral |
| 5 | |
| 6 | /-! # Mixed Lattice -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Lie.MixedLattice.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | section |
| 13 | |
| 14 | /-! The integral Lie order also spans the rational restriction of |
| 15 | scalars, and admits an integral basis. -/ |
| 16 | |
| 17 | open scoped Classical _root_.NumberField |
| 18 | |
| 19 | theorem integralLieLattice_integer_denominator |
| 20 | {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 21 | (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 22 | ∃ d : ℤ, d ≠ 0 ∧ d • A ∈ Lattices.Integral.Lie.Construction.integralLieLattice G := by |
| 23 | let : Algebra.IsAlgebraic ℤ k := IsFractionRing.comap_isAlgebraic_iff (K := ℚ) |>.mpr inferInstance |
| 24 | obtain ⟨d, hd, hA⟩ := Algebra.IsAlgebraic.exists_integral_multiples ℤ |
| 25 | (Finset.univ.image (fun ij : Fin n × Fin n => A.val ij.1 ij.2)) |
| 26 | have hi (i j : Fin n) : IsIntegral ℤ (d • A.val i j) := |
| 27 | hA _ (Finset.mem_image.mpr ⟨(i, j), Finset.mem_univ _, rfl⟩) |
| 28 | refine ⟨d, hd, (Lattices.Integral.Lie.Construction.mem_integralLieLattice G _).mpr ⟨fun i j => ⟨d • A.val i j, hi i j⟩, ?_⟩⟩ |
| 29 | rfl |
| 30 | |
| 31 | theorem integralLieLattice_full_rational |
| 32 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 33 | Submodule.span ℚ (Lattices.Integral.Lie.Construction.integralLieLattice G : Set (Infinitesimal.Action.Construction.infinitesimalStabilizer G)) = ⊤ := by |
| 34 | apply top_unique |
| 35 | intro A _ |
| 36 | obtain ⟨d, hd, hA⟩ := integralLieLattice_integer_denominator G A |
| 37 | have hdq : (d : ℚ) ≠ 0 := Int.cast_ne_zero.mpr hd |
| 38 | have h := (Submodule.span ℚ (Lattices.Integral.Lie.Construction.integralLieLattice G : Set (Infinitesimal.Action.Construction.infinitesimalStabilizer G))).smul_mem |
| 39 | (d : ℚ)⁻¹ (Submodule.subset_span hA) |
| 40 | rwa [← Int.cast_smul_eq_zsmul ℚ, inv_smul_smul₀ hdq] at h |
| 41 | |
| 42 | theorem integralLieOrder_free |
| 43 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 44 | Module.Free ℤ (Lattices.Integral.Lie.Construction.integralLieOrder G) := by |
| 45 | let : Module.Finite ℤ (Lattices.Integral.Lie.Construction.integralLieOrder G) := Lattices.Integral.Lie.Construction.integralLieOrder_finite G |
| 46 | let : Module.IsTorsionFree ℤ (Matrix (Fin n) (Fin n) k) := |
| 47 | inferInstanceAs (Module.IsTorsionFree ℤ (Fin n → Fin n → k)) |
| 48 | let f : Lattices.Integral.Lie.Construction.integralLieOrder G → Matrix (Fin n) (Fin n) k := fun A => A.val.val |
| 49 | let : Module.IsTorsionFree ℤ (Lattices.Integral.Lie.Construction.integralLieOrder G) := |
| 50 | Function.Injective.moduleIsTorsionFree f |
| 51 | (Subtype.val_injective.comp Subtype.val_injective) (fun _ _ => rfl) |
| 52 | infer_instance |
| 53 | |
| 54 | end |
| 55 | |
| 56 | section |
| 57 | |
| 58 | /-! The integral Lie order embeds as a discrete full lattice in its |
| 59 | real Minkowski span. -/ |
| 60 | |
| 61 | open scoped Classical _root_.NumberField _root_.Matrix.Norms.Elementwise |
| 62 | open _root_.NumberField _root_.NumberField.mixedEmbedding |
| 63 | |
| 64 | attribute [local instance] LieRing.ofAssociativeRing |
| 65 | |
| 66 | def lieMixedEmbedding |
| 67 | {k : Type} [Field k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 68 | Infinitesimal.Action.Construction.infinitesimalStabilizer G →ₗ[ℤ] Matrix (Fin n) (Fin n) (mixedSpace k) := |
| 69 | ((mixedEmbedding k).toIntAlgHom.toLinearMap.mapMatrix).comp |
| 70 | ((Infinitesimal.Action.Construction.infinitesimalStabilizer G).toSubmodule.subtype.restrictScalars ℤ) |
| 71 | |
| 72 | def lieMixedLattice |
| 73 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 74 | Submodule ℤ (Matrix (Fin n) (Fin n) (mixedSpace k)) := |
| 75 | ((Lattices.Integral.Lie.Construction.integralLieLattice G).restrictScalars ℤ).map (lieMixedEmbedding G) |
| 76 | |
| 77 | theorem lieMixedLattice_discrete |
| 78 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 79 | DiscreteTopology (lieMixedLattice G) := by |
| 80 | let f : lieMixedLattice G → ((Fin n × Fin n) → mixedEmbedding.integerLattice k) := fun x ij => |
| 81 | ⟨x.val ij.1 ij.2, by |
| 82 | obtain ⟨A, hA, hAx⟩ := x.property |
| 83 | rw [← hAx] |
| 84 | obtain ⟨C, hC⟩ := (Lattices.Integral.Lie.Construction.mem_integralLieLattice G A).mp hA |
| 85 | refine ⟨C ij.1 ij.2, ?_⟩ |
| 86 | change mixedEmbedding k (C ij.1 ij.2 : k) = mixedEmbedding k (A.val ij.1 ij.2) |
| 87 | exact congrArg (mixedEmbedding k) (congrFun (congrFun hC ij.1) ij.2)⟩ |
| 88 | apply DiscreteTopology.of_continuous_injective (f := f) |
| 89 | · apply continuous_pi |
| 90 | intro ij |
| 91 | apply Continuous.subtype_mk |
| 92 | exact (continuous_apply ij.2).comp ((continuous_apply ij.1).comp continuous_subtype_val) |
| 93 | · intro x y h |
| 94 | apply Subtype.ext |
| 95 | ext i j : 1 |
| 96 | exact congrArg (fun z => (z (i, j)).val) h |
| 97 | |
| 98 | def lieMixedSpan |
| 99 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 100 | Submodule ℝ (Matrix (Fin n) (Fin n) (mixedSpace k)) := |
| 101 | Submodule.span ℝ (lieMixedLattice G : Set (Matrix (Fin n) (Fin n) (mixedSpace k))) |
| 102 | |
| 103 | def lieMixedLatticeInSpan |
| 104 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 105 | Submodule ℤ (lieMixedSpan G) := |
| 106 | (lieMixedLattice G).comap ((lieMixedSpan G).subtype.restrictScalars ℤ) |
| 107 | |
| 108 | instance lieMixedLatticeInSpan_discrete |
| 109 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 110 | DiscreteTopology (lieMixedLatticeInSpan G) := by |
| 111 | let : DiscreteTopology (lieMixedLattice G) := lieMixedLattice_discrete G |
| 112 | let f : lieMixedLatticeInSpan G → lieMixedLattice G := fun x => ⟨x.val.val, x.property⟩ |
| 113 | apply DiscreteTopology.of_continuous_injective (f := f) |
| 114 | · exact (continuous_subtype_val.comp continuous_subtype_val).subtype_mk _ |
| 115 | · intro x y h |
| 116 | apply Subtype.ext |
| 117 | apply Subtype.ext |
| 118 | exact congrArg (fun z : lieMixedLattice G => z.val) h |
| 119 | |
| 120 | theorem lieMixedLatticeInSpan_full |
| 121 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 122 | Submodule.span ℝ (lieMixedLatticeInSpan G : Set (lieMixedSpan G)) = ⊤ := by |
| 123 | have himage : (lieMixedSpan G).subtype '' (lieMixedLatticeInSpan G : Set (lieMixedSpan G)) = |
| 124 | (lieMixedLattice G : Set (Matrix (Fin n) (Fin n) (mixedSpace k))) := by |
| 125 | ext x |
| 126 | constructor |
| 127 | · rintro ⟨y, hy, rfl⟩ |
| 128 | exact hy |
| 129 | · intro hx |
| 130 | exact ⟨⟨x, Submodule.subset_span hx⟩, hx, rfl⟩ |
| 131 | apply (Submodule.map_injective_of_injective (lieMixedSpan G).injective_subtype).eq_iff.mp |
| 132 | rw [Submodule.map_span, himage, Submodule.map_top, Submodule.range_subtype] |
| 133 | rfl |
| 134 | |
| 135 | theorem lieMixedLatticeInSpan_isZLattice |
| 136 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 137 | @IsZLattice ℝ _ (lieMixedSpan G) _ _ (lieMixedLatticeInSpan G) |
| 138 | (lieMixedLatticeInSpan_discrete G) := by |
| 139 | exact @IsZLattice.mk ℝ _ (lieMixedSpan G) _ _ (lieMixedLatticeInSpan G) |
| 140 | (lieMixedLatticeInSpan_discrete G) (lieMixedLatticeInSpan_full G) |
| 141 | |
| 142 | end |
| 143 | |
| 144 | section |
| 145 | |
| 146 | /-! The real span of the integral Lie lattice is stable under the full |
| 147 | Minkowski coefficient algebra. -/ |
| 148 | |
| 149 | open scoped Classical _root_.NumberField _root_.Matrix.Norms.Elementwise |
| 150 | open _root_.NumberField _root_.NumberField.mixedEmbedding |
| 151 | |
| 152 | attribute [local instance] LieRing.ofAssociativeRing |
| 153 | |
| 154 | theorem lieMixedEmbedding_integer_scalar |
| 155 | {k : Type} [Field k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) |
| 156 | (a : 𝓞 k) (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) : |
| 157 | lieMixedEmbedding G (a • A) = mixedEmbedding k (a : k) • lieMixedEmbedding G A := by |
| 158 | ext i j : 1 |
| 159 | change mixedEmbedding k ((a : k) * A.val i j) = mixedEmbedding k (a : k) * mixedEmbedding k (A.val i j) |
| 160 | exact map_mul _ _ _ |
| 161 | |
| 162 | theorem lieMixedLattice_integer_scalar_mem |
| 163 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) |
| 164 | (a : 𝓞 k) {x : Matrix (Fin n) (Fin n) (mixedSpace k)} (hx : x ∈ lieMixedLattice G) : |
| 165 | mixedEmbedding k (a : k) • x ∈ lieMixedLattice G := by |
| 166 | obtain ⟨A, hA, rfl⟩ := hx |
| 167 | exact ⟨a • A, (Lattices.Integral.Lie.Construction.integralLieLattice G).smul_mem a hA, lieMixedEmbedding_integer_scalar G a A⟩ |
| 168 | |
| 169 | theorem lieMixedSpan_integer_scalar_mem |
| 170 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) |
| 171 | (a : 𝓞 k) {x : Matrix (Fin n) (Fin n) (mixedSpace k)} (hx : x ∈ lieMixedSpan G) : |
| 172 | mixedEmbedding k (a : k) • x ∈ lieMixedSpan G := by |
| 173 | induction hx using Submodule.span_induction with |
| 174 | | mem y hy => exact Submodule.subset_span (lieMixedLattice_integer_scalar_mem G a hy) |
| 175 | | zero => simpa only [smul_zero] using (lieMixedSpan G).zero_mem |
| 176 | | add y z _ _ hy hz => simpa only [smul_add] using (lieMixedSpan G).add_mem hy hz |
| 177 | | smul r y _ hy => simpa only [smul_comm (mixedEmbedding k (a : k)) r y] using (lieMixedSpan G).smul_mem r hy |
| 178 | |
| 179 | theorem lieMixedSpan_scalar_mem |
| 180 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) |
| 181 | (a : mixedSpace k) {x : Matrix (Fin n) (Fin n) (mixedSpace k)} (hx : x ∈ lieMixedSpan G) : |
| 182 | a • x ∈ lieMixedSpan G := by |
| 183 | have ha : a ∈ Submodule.span ℝ (mixedEmbedding.integerLattice k : Set (mixedSpace k)) := by |
| 184 | rw [IsZLattice.span_top] |
| 185 | trivial |
| 186 | induction ha using Submodule.span_induction with |
| 187 | | mem y hy => |
| 188 | obtain ⟨b, rfl⟩ := hy |
| 189 | exact lieMixedSpan_integer_scalar_mem G b hx |
| 190 | | zero => simpa only [zero_smul] using (lieMixedSpan G).zero_mem |
| 191 | | add y z _ _ hy hz => simpa only [add_smul] using (lieMixedSpan G).add_mem hy hz |
| 192 | | smul r y _ hy => simpa only [smul_assoc] using (lieMixedSpan G).smul_mem r hy |
| 193 | |
| 194 | def lieMixedModule |
| 195 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 196 | Submodule (mixedSpace k) (Matrix (Fin n) (Fin n) (mixedSpace k)) where |
| 197 | carrier := lieMixedSpan G |
| 198 | zero_mem' := (lieMixedSpan G).zero_mem |
| 199 | add_mem' := (lieMixedSpan G).add_mem |
| 200 | smul_mem' := fun a _ hx => lieMixedSpan_scalar_mem G a hx |
| 201 | |
| 202 | end |
| 203 | |
| 204 | /-! The Minkowski Lie space is the span over the Minkowski coefficient |
| 205 | algebra of the original rational Lie algebra. -/ |
| 206 | |
| 207 | open scoped Classical _root_.NumberField _root_.Matrix.Norms.Elementwise |
| 208 | open _root_.NumberField _root_.NumberField.mixedEmbedding |
| 209 | |
| 210 | attribute [local instance] LieRing.ofAssociativeRing |
| 211 | |
| 212 | def lieMixedRationalMap |
| 213 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 214 | Infinitesimal.Action.Construction.infinitesimalStabilizer G →ₗ[ℚ] Matrix (Fin n) (Fin n) (mixedSpace k) where |
| 215 | toFun := lieMixedEmbedding G |
| 216 | map_add' := (lieMixedEmbedding G).map_add |
| 217 | map_smul' q A := by |
| 218 | ext i j : 1 |
| 219 | change mixedEmbedding k (q • A.val i j) = q • mixedEmbedding k (A.val i j) |
| 220 | exact (mixedEmbedding k).toRatAlgHom.toLinearMap.map_smul q _ |
| 221 | |
| 222 | theorem lieMixedEmbedding_mem_span |
| 223 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) |
| 224 | (A : Infinitesimal.Action.Construction.infinitesimalStabilizer G) : lieMixedEmbedding G A ∈ lieMixedSpan G := by |
| 225 | have hA : A ∈ Submodule.span ℚ (Lattices.Integral.Lie.Construction.integralLieLattice G : Set (Infinitesimal.Action.Construction.infinitesimalStabilizer G)) := by |
| 226 | rw [integralLieLattice_full_rational] |
| 227 | trivial |
| 228 | change lieMixedRationalMap G A ∈ lieMixedSpan G |
| 229 | induction hA using Submodule.span_induction with |
| 230 | | mem x hx => exact Submodule.subset_span ⟨x, hx, rfl⟩ |
| 231 | | zero => simpa only [map_zero] using (lieMixedSpan G).zero_mem |
| 232 | | add x y _ _ hx hy => simpa only [map_add] using (lieMixedSpan G).add_mem hx hy |
| 233 | | smul q x _ hx => |
| 234 | rw [map_smul] |
| 235 | simpa only [Rat.cast_smul_eq_qsmul] using (lieMixedSpan G).smul_mem (q : ℝ) hx |
| 236 | |
| 237 | theorem lieMixedModule_eq_span |
| 238 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 239 | lieMixedModule G = Submodule.span (mixedSpace k) (Set.range (lieMixedEmbedding G)) := by |
| 240 | apply le_antisymm |
| 241 | · have h : lieMixedSpan G ≤ |
| 242 | (Submodule.span (mixedSpace k) (Set.range (lieMixedEmbedding G))).restrictScalars ℝ := by |
| 243 | apply Submodule.span_le.mpr |
| 244 | rintro _ ⟨A, _, rfl⟩ |
| 245 | exact Submodule.subset_span (Set.mem_range_self A) |
| 246 | exact h |
| 247 | · apply Submodule.span_le.mpr |
| 248 | rintro _ ⟨A, rfl⟩ |
| 249 | exact lieMixedEmbedding_mem_span G A |
| 250 | |
| 251 | theorem lieMixedModule_eq_matrix_span |
| 252 | {k : Type} [Field k] [NumberField k] {n : ℕ} (G : Lattices.Algebraic.MatrixAlgebraicGroup k n) : |
| 253 | lieMixedModule G = Submodule.span (mixedSpace k) |
| 254 | ((fun A : Matrix (Fin n) (Fin n) k => A.map (mixedEmbedding k)) '' |
| 255 | (Infinitesimal.Action.Construction.infinitesimalStabilizer G : Set (Matrix (Fin n) (Fin n) k))) := by |
| 256 | rw [lieMixedModule_eq_span] |
| 257 | congr 1 |
| 258 | ext x |
| 259 | constructor |
| 260 | · rintro ⟨A, rfl⟩ |
| 261 | exact ⟨A.val, A.property, rfl⟩ |
| 262 | · rintro ⟨A, hA, rfl⟩ |
| 263 | exact ⟨⟨A, hA⟩, rfl⟩ |
| 264 | |
| 265 | end |
| 266 | |
| 267 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Lie.MixedLattice.Construction |