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.IntegralLattice |
| 2 | |
| 3 | /-! # Matrices -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.Integral.Matrices.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Integral special-linear matrices are exactly the matrices preserving |
| 10 | the standard integral coordinate lattice. -/ |
| 11 | |
| 12 | open scoped Classical _root_.NumberField |
| 13 | open OAI.NumberTheory.ArithmeticGroups.Lattices.IntegralLattice |
| 14 | |
| 15 | def integralCoordinateMap {R k : Type} [CommRing R] [Field k] [Algebra R k] (n : ℕ) : |
| 16 | (Fin n → R) →ₗ[R] (Fin n → k) := |
| 17 | LinearMap.pi fun i => (Algebra.linearMap R k).comp (LinearMap.proj i) |
| 18 | |
| 19 | def integralCoordinateLattice {R k : Type} [CommRing R] [Field k] [Algebra R k] (n : ℕ) : |
| 20 | Submodule R (Fin n → k) := (integralCoordinateMap (R := R) (k := k) n).range |
| 21 | |
| 22 | theorem mem_integralCoordinateLattice |
| 23 | {R k : Type} [CommRing R] [Field k] [Algebra R k] {n : ℕ} (x : Fin n → k) : |
| 24 | x ∈ integralCoordinateLattice (R := R) n ↔ |
| 25 | ∀ i, ∃ a : R, algebraMap R k a = x i := by |
| 26 | constructor |
| 27 | · rintro ⟨a, rfl⟩ i |
| 28 | exact ⟨a i, rfl⟩ |
| 29 | · intro h |
| 30 | choose a ha using h |
| 31 | exact ⟨a, funext ha⟩ |
| 32 | |
| 33 | theorem integralCoordinateLattice_eq_span |
| 34 | {R k : Type} [CommRing R] [Field k] [Algebra R k] (n : ℕ) : |
| 35 | integralCoordinateLattice (R := R) (k := k) n = |
| 36 | Submodule.span R (Set.range (Pi.basisFun k (Fin n))) := by |
| 37 | unfold integralCoordinateLattice |
| 38 | rw [LinearMap.range_eq_map, ← (Pi.basisFun R (Fin n)).span_eq, Submodule.map_span, |
| 39 | ← Set.range_comp] |
| 40 | congr 1 |
| 41 | congr 1 |
| 42 | funext j |
| 43 | ext i |
| 44 | simp [integralCoordinateMap, Pi.basisFun_apply, Pi.single_apply] |
| 45 | |
| 46 | theorem specialLinear_lift_of_integral_entries |
| 47 | {R k : Type} [CommRing R] [Field k] [Algebra R k] [FaithfulSMul R k] {n : ℕ} |
| 48 | (g : Algebraic.SL n k) (h : ∀ i j, ∃ a : R, algebraMap R k a = g i j) : |
| 49 | ∃ A : Matrix.SpecialLinearGroup (Fin n) R, |
| 50 | Matrix.SpecialLinearGroup.map (algebraMap R k) A = g := by |
| 51 | choose A hA using h |
| 52 | let B : Matrix (Fin n) (Fin n) R := Matrix.of A |
| 53 | have hmap : B.map (algebraMap R k) = (g : Matrix (Fin n) (Fin n) k) := by |
| 54 | ext i j |
| 55 | exact hA i j |
| 56 | have hdet : Matrix.det B = 1 := by |
| 57 | apply FaithfulSMul.algebraMap_injective R k |
| 58 | rw [RingHom.map_det, RingHom.mapMatrix_apply, hmap, Matrix.SpecialLinearGroup.det_coe, map_one] |
| 59 | refine ⟨⟨B, hdet⟩, ?_⟩ |
| 60 | exact Subtype.ext hmap |
| 61 | |
| 62 | theorem specialLinear_integralCoordinateLattice_mem |
| 63 | {R k : Type} [CommRing R] [Field k] [Algebra R k] {n : ℕ} |
| 64 | (A : Matrix.SpecialLinearGroup (Fin n) R) {x : Fin n → k} |
| 65 | (hx : x ∈ integralCoordinateLattice (R := R) n) : |
| 66 | Matrix.SpecialLinearGroup.toLin' (Matrix.SpecialLinearGroup.map (algebraMap R k) A) x ∈ |
| 67 | integralCoordinateLattice (R := R) n := by |
| 68 | obtain ⟨a, rfl⟩ := hx |
| 69 | refine ⟨(A : Matrix (Fin n) (Fin n) R).mulVec a, ?_⟩ |
| 70 | ext i |
| 71 | simp [integralCoordinateMap, Matrix.SpecialLinearGroup.toLin'_apply, Matrix.mulVec, |
| 72 | dotProduct] |
| 73 | |
| 74 | theorem specialLinear_lift_iff_preserves_integral_coordinates |
| 75 | {R k : Type} [CommRing R] [Field k] [Algebra R k] [FaithfulSMul R k] {n : ℕ} |
| 76 | (g : Algebraic.SL n k) : |
| 77 | (∃ A : Matrix.SpecialLinearGroup (Fin n) R, |
| 78 | Matrix.SpecialLinearGroup.map (algebraMap R k) A = g) ↔ |
| 79 | ∀ x ∈ integralCoordinateLattice (R := R) n, |
| 80 | Matrix.SpecialLinearGroup.toLin' g x ∈ integralCoordinateLattice (R := R) n := by |
| 81 | constructor |
| 82 | · rintro ⟨A, rfl⟩ x hx |
| 83 | exact specialLinear_integralCoordinateLattice_mem A hx |
| 84 | · intro h |
| 85 | apply specialLinear_lift_of_integral_entries g |
| 86 | intro i j |
| 87 | have hj : Pi.basisFun k (Fin n) j ∈ integralCoordinateLattice (R := R) n := by |
| 88 | rw [integralCoordinateLattice_eq_span] |
| 89 | exact Submodule.subset_span (Set.mem_range_self j) |
| 90 | have hi := (mem_integralCoordinateLattice _).mp (h _ hj) i |
| 91 | simpa [Matrix.SpecialLinearGroup.toLin'_apply, Pi.basisFun_apply, |
| 92 | Matrix.mulVec_single] using hi |
| 93 | |
| 94 | theorem specialLinear_integralCoordinateLattice_iff |
| 95 | {R k : Type} [CommRing R] [Field k] [Algebra R k] {n : ℕ} |
| 96 | (A : Matrix.SpecialLinearGroup (Fin n) R) (x : Fin n → k) : |
| 97 | Matrix.SpecialLinearGroup.toLin' (Matrix.SpecialLinearGroup.map (algebraMap R k) A) x ∈ |
| 98 | integralCoordinateLattice (R := R) n ↔ x ∈ integralCoordinateLattice (R := R) n := by |
| 99 | constructor |
| 100 | · intro h |
| 101 | have hi := specialLinear_integralCoordinateLattice_mem A⁻¹ h |
| 102 | simp only [map_inv] at hi |
| 103 | change (Matrix.SpecialLinearGroup.toLin' |
| 104 | (Matrix.SpecialLinearGroup.map (algebraMap R k) A)).symm |
| 105 | (Matrix.SpecialLinearGroup.toLin' |
| 106 | (Matrix.SpecialLinearGroup.map (algebraMap R k) A) x) ∈ _ at hi |
| 107 | simpa only [LinearEquiv.symm_apply_apply] using hi |
| 108 | · exact specialLinear_integralCoordinateLattice_mem A |
| 109 | |
| 110 | theorem standard_lattice_stabilizer_iff_integral |
| 111 | {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 112 | (G : Algebraic.MatrixAlgebraicGroup k n) (g : G.RationalPoints) : |
| 113 | g ∈ G.latticeStabilizer (IntegralLattice.FullLattice.standard k n) ↔ |
| 114 | ∃ A : Matrix.SpecialLinearGroup (Fin n) (𝓞 k), |
| 115 | Matrix.SpecialLinearGroup.map (algebraMap (𝓞 k) k) A = g.val := by |
| 116 | have hΛ : (IntegralLattice.FullLattice.standard k n).module = |
| 117 | integralCoordinateLattice (R := 𝓞 k) n := (integralCoordinateLattice_eq_span n).symm |
| 118 | rw [G.mem_latticeStabilizer, hΛ] |
| 119 | constructor |
| 120 | · intro h |
| 121 | exact (specialLinear_lift_iff_preserves_integral_coordinates g.val).mpr |
| 122 | (fun x hx => (h x).mpr hx) |
| 123 | · rintro ⟨A, hA⟩ x |
| 124 | rw [← hA] |
| 125 | exact specialLinear_integralCoordinateLattice_iff A x |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.NumberTheory.ArithmeticGroups.Lattices.Integral.Matrices.Construction |