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.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.RationalDensity |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.RationalAwayCoordinates |
| 3 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.DenseHomClosure |
| 4 | |
| 5 | /-! # Intrinsic Active Closure -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.IntrinsicActiveClosure |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual supported active SL3 subgroup lies in the closure of the |
| 12 | actual rational unitary subgroup inside the full finite unitary group. -/ |
| 13 | |
| 14 | attribute [local instance 2000] Subgroup.toGroup Prod.instGroup |
| 15 | open scoped Classical _root_.NumberField |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 17 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.FactorTheta.CM.RationalWeilFactorization |
| 18 | |
| 19 | namespace CM.Intrinsic |
| 20 | |
| 21 | private def assembleHom {X A B G : Type*} [Group X] [Group A] [Group B] [Group G] |
| 22 | (e : X × B ≃* G) (p : A →* B) := |
| 23 | e.toMonoidHom.comp ((MonoidHom.id X).prodMap p) |
| 24 | |
| 25 | private theorem comp_eq_of_values {G H K : Type*} [Group G] [Group H] [Group K] |
| 26 | (a : G →* H) (b : H →* K) (c : G →* K) |
| 27 | (h : ∀ x, b (a x) = c x) : b.comp a = c := |
| 28 | MonoidHom.ext h |
| 29 | |
| 30 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 31 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} {d : Gal(E/ℚ) → Bool} |
| 32 | (L : GeometricSource.CM.LinePeriod E B places d) {q : ℕ} [Fact q.Prime] (f : E →+* ℚ_[q]) |
| 33 | |
| 34 | local instance awayGroup : Group (FactorTheta.CM.RationalWeilFactorization.Away E L f) := Subgroup.toGroup (FactorTheta.CM.RationalWeilFactorization.Away E L f) |
| 35 | local instance awayMulOneClass : MulOneClass (FactorTheta.CM.RationalWeilFactorization.Away E L f) := |
| 36 | SubmonoidClass.toMulOneClass (FactorTheta.CM.RationalWeilFactorization.Away E L f) |
| 37 | local instance sourceMulOneClass : |
| 38 | MulOneClass (Matrix.SpecialLinearGroup (Fin 3) ℚ_[q] × FactorTheta.CM.RationalWeilFactorization.Away E L f) := |
| 39 | (show Group (Matrix.SpecialLinearGroup (Fin 3) ℚ_[q] × FactorTheta.CM.RationalWeilFactorization.Away E L f) from Prod.instGroup).toMulOneClass |
| 40 | local instance awayTopologicalGroup : IsTopologicalGroup (FactorTheta.CM.RationalWeilFactorization.Away E L f) := |
| 41 | RationalAwayTopology.CM.topologicalGroup E L f |
| 42 | local instance sourceTopologicalGroup : |
| 43 | IsTopologicalGroup (Matrix.SpecialLinearGroup (Fin 3) ℚ_[q] × FactorTheta.CM.RationalWeilFactorization.Away E L f) := |
| 44 | Prod.instIsTopologicalGroup |
| 45 | |
| 46 | def assemble := assembleHom |
| 47 | (SourceFinite.Product.CM.equivalence E (OppositeCoordinates.CM.coordinates E L.coordinates) f) |
| 48 | (RationalAwayTopology.CM.nativeCoordinates E L f) |
| 49 | |
| 50 | theorem continuous : Continuous (assemble E L f) := |
| 51 | (SourceFinite.Topology.CM.equivalence_continuous E |
| 52 | (OppositeCoordinates.CM.coordinates E L.coordinates) f).comp |
| 53 | (continuous_id.prodMap (RationalAwayCoordinates.CM.native_continuous E L f)) |
| 54 | |
| 55 | theorem rational (g : Geometry.ComplexBall.ArithmeticQuotientEquationsData.RationalSU B.b) : |
| 56 | assemble E L f (RationalAwayTopology.CM.rational E L f g) = |
| 57 | RationalLocal.CM.finiteHom E (OppositeCoordinates.CM.coordinates E L.coordinates) g := |
| 58 | SourceFinite.Product.CM.rational_factorization E |
| 59 | (OppositeCoordinates.CM.coordinates E L.coordinates) f g |
| 60 | |
| 61 | theorem active (u : Matrix.SpecialLinearGroup (Fin 3) ℚ_[q]) : |
| 62 | assemble E L f (u, 1) = ActiveMetaplectic.CM.inclusion E L.coordinates f u := by |
| 63 | exact congrArg (fun b : SourceFinite.Product.CM.Away E |
| 64 | (OppositeCoordinates.CM.coordinates E L.coordinates) f => |
| 65 | SourceFinite.Product.CM.equivalence E (OppositeCoordinates.CM.coordinates E L.coordinates) f (u, b)) |
| 66 | (RationalAwayTopology.CM.nativeCoordinates E L f).map_one |
| 67 | |
| 68 | private abbrev homProof := comp_eq_of_values |
| 69 | (RationalAwayTopology.CM.rational E L f) (assemble E L f) |
| 70 | (RationalLocal.CM.finiteHom E (OppositeCoordinates.CM.coordinates E L.coordinates)) |
| 71 | (rational E L f) |
| 72 | |
| 73 | theorem hom : type_of% (homProof E L f) := homProof E L f |
| 74 | |
| 75 | theorem image_mem_closure (a : Matrix.SpecialLinearGroup (Fin 3) ℚ_[q] × FactorTheta.CM.RationalWeilFactorization.Away E L f) : |
| 76 | assemble E L f a ∈ |
| 77 | (RationalLocal.CM.finiteHom E (OppositeCoordinates.CM.coordinates E L.coordinates)).range.topologicalClosure := by |
| 78 | let := SourceFinite.Topology.CM.levels_open E (OppositeCoordinates.CM.coordinates E L.coordinates) |
| 79 | exact DenseHomClosure.CM.mem |
| 80 | (RationalAwayTopology.CM.rational E L f) (RationalDensity.CM.dense E L f) |
| 81 | (assemble E L f) (continuous E L f) |
| 82 | (RationalLocal.CM.finiteHom E (OppositeCoordinates.CM.coordinates E L.coordinates)) |
| 83 | (rational E L f) a (assemble E L f a) rfl |
| 84 | |
| 85 | end CM.Intrinsic |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.IntrinsicActiveClosure |