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 | /-! # Realizations -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Polynomial zero sets are closed in archimedean matrix topology. These |
| 10 | lemmas relate the algebraic presentation to its actual topological groups. -/ |
| 11 | |
| 12 | open scoped Classical |
| 13 | open _root_.Topology |
| 14 | |
| 15 | section |
| 16 | |
| 17 | variable {k K : Type} [Field k] [Field K] {n : ℕ} |
| 18 | variable (G : Algebraic.MatrixAlgebraicGroup k n) (ι : k →+* K) |
| 19 | variable [TopologicalSpace K] [IsTopologicalRing K] [T2Space K] |
| 20 | |
| 21 | omit [T2Space K] in |
| 22 | theorem Algebraic.MatrixAlgebraicGroup.continuous_evaluateMatrix (p : Algebraic.CoordinatePolynomial n k) : |
| 23 | Continuous (fun g : Algebraic.SL n K => Algebraic.evaluateMatrix ι g p) := by |
| 24 | have h : Continuous (fun g : Algebraic.SL n K => fun ij : Fin n × Fin n => g ij.1 ij.2) := by |
| 25 | fun_prop |
| 26 | convert (MvPolynomial.continuous_eval (MvPolynomial.map ι p)).comp h using 1 |
| 27 | ext g |
| 28 | simp only [Function.comp_apply, Algebraic.evaluateMatrix, MvPolynomial.eval_map] |
| 29 | rfl |
| 30 | |
| 31 | theorem Algebraic.MatrixAlgebraicGroup.subgroup_isClosed : IsClosed (G.subgroup K ι : Set (Algebraic.SL n K)) := by |
| 32 | have he : (G.subgroup K ι : Set (Algebraic.SL n K)) = |
| 33 | ⋂ p ∈ G.equations, {g : Algebraic.SL n K | Algebraic.evaluateMatrix ι g p = 0} := by |
| 34 | ext g |
| 35 | simp only [Set.mem_iInter, Set.mem_ofPred_eq, SetLike.mem_coe] |
| 36 | exact G.mem_iff K ι g |
| 37 | rw [he] |
| 38 | apply isClosed_iInter |
| 39 | intro p |
| 40 | apply isClosed_iInter |
| 41 | intro _ |
| 42 | exact isClosed_eq (Algebraic.MatrixAlgebraicGroup.continuous_evaluateMatrix ι p) continuous_const |
| 43 | |
| 44 | theorem Algebraic.MatrixAlgebraicGroup.points_isClosedEmbedding : |
| 45 | IsClosedEmbedding (fun g : G.Points ι => (g.val : Matrix (Fin n) (Fin n) K)) := |
| 46 | Matrix.SpecialLinearGroup.isClosedEmbedding_val.comp |
| 47 | (G.subgroup_isClosed ι).isClosedEmbedding_subtypeVal |
| 48 | |
| 49 | instance Algebraic.MatrixAlgebraicGroup.pointsLocallyCompact [LocallyCompactSpace K] : LocallyCompactSpace (G.Points ι) := by |
| 50 | let : LocallyCompactSpace (Matrix (Fin n) (Fin n) K) := |
| 51 | inferInstanceAs (LocallyCompactSpace (Fin n → Fin n → K)) |
| 52 | exact (G.points_isClosedEmbedding ι).locallyCompactSpace |
| 53 | |
| 54 | instance Algebraic.MatrixAlgebraicGroup.pointsSecondCountable [SecondCountableTopology K] : |
| 55 | SecondCountableTopology (G.Points ι) := by |
| 56 | let : SecondCountableTopology (Matrix (Fin n) (Fin n) K) := |
| 57 | inferInstanceAs (SecondCountableTopology (Fin n → Fin n → K)) |
| 58 | exact (G.points_isClosedEmbedding ι).isEmbedding.secondCountableTopology |
| 59 | |
| 60 | omit [IsTopologicalRing K] [T2Space K] in |
| 61 | theorem Algebraic.MatrixAlgebraicGroup.continuous_map {L : Type} [Field L] [TopologicalSpace L] |
| 62 | (f : K →+* L) (hf : Continuous f) : Continuous (G.map ι f) := by |
| 63 | exact IsInducing.subtypeVal.continuous_iff.mpr |
| 64 | (hf.specialLinearGroup_map.comp continuous_subtype_val) |
| 65 | |
| 66 | /-- Scalar extension along an isomorphism of fields is an isomorphism of |
| 67 | the actual polynomial point groups. -/ |
| 68 | def Algebraic.MatrixAlgebraicGroup.pointsEquiv {L : Type} [Field L] (e : K ≃+* L) : |
| 69 | G.Points ι ≃* G.Points (e.toRingHom.comp ι) where |
| 70 | toFun := G.map ι e.toRingHom |
| 71 | invFun g := ⟨Matrix.SpecialLinearGroup.map e.symm.toRingHom g.val, by |
| 72 | apply (G.mem_iff K ι _).mpr |
| 73 | intro p hp |
| 74 | apply e.injective |
| 75 | change e.toRingHom (Algebraic.evaluateMatrix ι |
| 76 | (Matrix.SpecialLinearGroup.map e.symm.toRingHom g.val) p) = e.toRingHom 0 |
| 77 | have h := (G.mem_iff L (e.toRingHom.comp ι) g.val).mp g.property p hp |
| 78 | simpa only [Algebraic.evaluateMatrix, MvPolynomial.map_eval₂Hom, |
| 79 | Matrix.SpecialLinearGroup.map_apply_coe, RingHom.mapMatrix_apply, |
| 80 | Matrix.map_apply, RingEquiv.toRingHom_apply_symm_toRingHom_apply, |
| 81 | map_zero] using h⟩ |
| 82 | left_inv g := by |
| 83 | apply Subtype.ext |
| 84 | apply Matrix.SpecialLinearGroup.ext |
| 85 | intro i j |
| 86 | exact e.symm_apply_apply (g.val i j) |
| 87 | right_inv g := by |
| 88 | apply Subtype.ext |
| 89 | apply Matrix.SpecialLinearGroup.ext |
| 90 | intro i j |
| 91 | exact e.apply_symm_apply (g.val i j) |
| 92 | map_mul' := map_mul (G.map ι e.toRingHom) |
| 93 | |
| 94 | /-- A topological field isomorphism induces a topological group isomorphism. -/ |
| 95 | def Algebraic.MatrixAlgebraicGroup.pointsContinuousMulEquiv {L : Type} [Field L] [TopologicalSpace L] |
| 96 | (e : K ≃+* L) (he : Continuous e) (he' : Continuous e.symm) : |
| 97 | G.Points ι ≃ₜ* G.Points (e.toRingHom.comp ι) where |
| 98 | toMulEquiv := G.pointsEquiv ι e |
| 99 | continuous_toFun := G.continuous_map ι e.toRingHom he |
| 100 | continuous_invFun := IsInducing.subtypeVal.continuous_iff.mpr |
| 101 | (he'.specialLinearGroup_map.comp continuous_subtype_val) |
| 102 | |
| 103 | end |
| 104 | |
| 105 | variable {k : Type} [Field k] [NumberField k] {n : ℕ} |
| 106 | variable (G : Algebraic.MatrixAlgebraicGroup k n) |
| 107 | |
| 108 | omit [NumberField k] in |
| 109 | theorem Algebraic.MatrixAlgebraicGroup.realPlaceEmbedding_eq (v : NumberField.InfinitePlace k) (hv : v.IsReal) : |
| 110 | (NumberField.InfinitePlace.Completion.ringEquivRealOfIsReal hv).toRingHom.comp |
| 111 | (algebraMap k v.Completion) = v.embedding_of_isReal hv := by |
| 112 | ext x |
| 113 | exact NumberField.InfinitePlace.Completion.extensionEmbeddingOfIsReal_coe hv |
| 114 | ((WithAbs.equiv v.val).symm x) |
| 115 | |
| 116 | /-- The completion at a real place gives the same topological point group |
| 117 | as extension along its real embedding. -/ |
| 118 | def Algebraic.MatrixAlgebraicGroup.realPlaceEquiv (v : NumberField.InfinitePlace k) (hv : v.IsReal) : |
| 119 | G.AtPlace v ≃ₜ* G.Points (v.embedding_of_isReal hv) := by |
| 120 | rw [← Algebraic.MatrixAlgebraicGroup.realPlaceEmbedding_eq v hv] |
| 121 | exact G.pointsContinuousMulEquiv (algebraMap k v.Completion) |
| 122 | (NumberField.InfinitePlace.Completion.ringEquivRealOfIsReal hv) |
| 123 | (NumberField.InfinitePlace.Completion.isometryEquivRealOfIsReal hv).continuous |
| 124 | (NumberField.InfinitePlace.Completion.isometryEquivRealOfIsReal hv).symm.continuous |
| 125 | |
| 126 | end |
| 127 | |
| 128 | end OAI.NumberTheory.ArithmeticGroups.Lattices |