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.FactorTheta |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.SourceAdelic.Projection |
| 3 | |
| 4 | /-! # Rational Away Topology -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.RationalAwayTopology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual commuting rational away range carries the topology |
| 11 | induced by its complementary finite-place coordinates. -/ |
| 12 | |
| 13 | attribute [local instance 2000] Subgroup.toGroup Prod.instGroup |
| 14 | open scoped Classical _root_.NumberField |
| 15 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.GeometricSource.CM |
| 16 | |
| 17 | namespace CM |
| 18 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.FactorTheta.CM.RationalWeilFactorization |
| 19 | |
| 20 | private def subgroupFirstCoordinate {A B : Type*} [Group A] [Group B] |
| 21 | (H : Subgroup (A × B)) : H →* A where |
| 22 | toFun g := g.val.1 |
| 23 | map_one' := rfl |
| 24 | map_mul' _ _ := rfl |
| 25 | |
| 26 | private def pairedCoordinates {G A M B : Type*} [Group G] [Group A] [Group M] [Group B] |
| 27 | (a : G →* A) (active : A →* M) (rho : G →* M) |
| 28 | (hc : ∀ g u, Commute (CommutingFactorization.CM.remainder a active rho g) (active u)) |
| 29 | (b : G →* B) := |
| 30 | a.prod (CommutingFactorization.CM.awayWithCoordinates a active rho hc b) |
| 31 | |
| 32 | variable (E : IntermediateField ℚ ℂ) [NumberField E] [NumberField.IsCMField E] |
| 33 | {B : GeometricSource.CM.BallDatum E} {places : GeometricSource.CM.Places E} {d : Gal(E/ℚ) → Bool} |
| 34 | (L : GeometricSource.CM.LinePeriod E B places d) {q : ℕ} [Fact q.Prime] (f : E →+* ℚ_[q]) |
| 35 | |
| 36 | local instance awayGroup : Group (FactorTheta.CM.RationalWeilFactorization.Away E L f) := Subgroup.toGroup (FactorTheta.CM.RationalWeilFactorization.Away E L f) |
| 37 | local instance awayMulOneClass : MulOneClass (FactorTheta.CM.RationalWeilFactorization.Away E L f) := |
| 38 | (awayGroup E L f).toMulOneClass |
| 39 | |
| 40 | def nativeCoordinates := subgroupFirstCoordinate (FactorTheta.CM.RationalWeilFactorization.Away E L f) |
| 41 | |
| 42 | def coordinates := |
| 43 | (RestrictedAwayComparison.CM.forget |
| 44 | (SourceFinite.Product.CM.levels E (OppositeCoordinates.CM.coordinates E L.coordinates)) |
| 45 | (QadicPlace.CM.place E f)).comp (nativeCoordinates E L f) |
| 46 | |
| 47 | instance topology : TopologicalSpace (FactorTheta.CM.RationalWeilFactorization.Away E L f) := |
| 48 | TopologicalSpace.induced (CM.coordinates E L f) inferInstance |
| 49 | |
| 50 | instance topologicalGroup : IsTopologicalGroup (FactorTheta.CM.RationalWeilFactorization.Away E L f) := by |
| 51 | let : IsTopologicalGroup (CMExtraction.RestrictedAwaySame.Approximation.RestrictedAway |
| 52 | (SourceFinite.Product.CM.levels E (OppositeCoordinates.CM.coordinates E L.coordinates)) |
| 53 | (QadicPlace.CM.place E f)) := |
| 54 | RestrictedAwayComparison.CM.away_topologicalGroup |
| 55 | (SourceFinite.Product.CM.levels E (OppositeCoordinates.CM.coordinates E L.coordinates)) |
| 56 | (QadicPlace.CM.place E f) |
| 57 | exact isTopologicalGroup_induced (CM.coordinates E L f) |
| 58 | |
| 59 | theorem coordinates_inducing : Topology.IsInducing (CM.coordinates E L f) := ⟨rfl⟩ |
| 60 | |
| 61 | theorem coordinates_continuous : Continuous (CM.coordinates E L f) := |
| 62 | (coordinates_inducing E L f).continuous |
| 63 | |
| 64 | def rational := pairedCoordinates |
| 65 | (RationalFactorProjection.CM.activeLocal E f) |
| 66 | (ReferenceActiveWeil.CM.Reference.lift E L.coordinates f) |
| 67 | (WeilData.CM.finiteHom E L) (FactorTheta.CM.RationalWeilFactorization.remainder_commutes E L f) |
| 68 | (SourceFinite.Product.CM.awayHom E (OppositeCoordinates.CM.coordinates E L.coordinates) f) |
| 69 | |
| 70 | theorem away_surjective : Function.Surjective (FactorTheta.CM.RationalWeilFactorization.away E L f) := by |
| 71 | rintro ⟨g, ⟨γ, hγ⟩⟩ |
| 72 | exact ⟨γ, Subtype.ext hγ⟩ |
| 73 | |
| 74 | theorem compatible (g : Geometry.ComplexBall.ArithmeticQuotientEquationsData.RationalSU B.b) : |
| 75 | Prod.map id (CM.coordinates E L f) (rational E L f g) = |
| 76 | SourceAdelic.Projection.CM.rational E (OppositeCoordinates.CM.coordinates E L.coordinates) f g := by |
| 77 | apply Prod.ext |
| 78 | · exact (SourceAdelic.Projection.CM.rational_first E |
| 79 | (OppositeCoordinates.CM.coordinates E L.coordinates) f g).symm |
| 80 | · exact (SourceAdelic.Projection.CM.rational_away E |
| 81 | (OppositeCoordinates.CM.coordinates E L.coordinates) f g).symm |
| 82 | |
| 83 | end CM |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.RationalAwayTopology |