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.EquationImages |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReductionTargetIdentification |
| 3 | |
| 4 | /-! # Arithmetic Source Equation -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ArithmeticSourceEquation.CM |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The arithmetic base-change construction supplies the entire |
| 11 | specialization equation map. Its commuting source and Albanese square |
| 12 | is proved before instantiating the native arithmetic model. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 16 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ComparisonModel.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReductionComparisonModel.CM |
| 17 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ValuativePoints.CM |
| 18 | |
| 19 | variable {K : Type} [Field K] [NumberField K] |
| 20 | {q : ℕ} [Fact q.Prime] {jq : K →+* ℚ_[q]} |
| 21 | {S : Scheme} {g : ℕ} (G : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 22 | {X : Over S} [IsProper X.hom] (a : X ⟶ G.scheme) |
| 23 | (k : NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase K ⟶ S) (t : NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase ℤ_[q] ⟶ S) |
| 24 | (w : NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (algebraMap ℤ_[q] ℚ_[q]) ≫ t = NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap jq ≫ k) |
| 25 | (br : NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase (ZMod q) ⟶ S) |
| 26 | (wr : NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q) ≫ t = br) |
| 27 | |
| 28 | local notation "red" => OAI.NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q) |
| 29 | local notation "A" => @OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.BaseChangeSquare.CM.ComparisonModel.model K _ _ q _ jq S g G k t w |
| 30 | local notation "M" => @OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ComparisonModel.CM.sourceMap K _ _ q _ jq S g G X a k t w |
| 31 | local notation "redM" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReductionComparisonModel.CM.reductionMap G a red t br wr |
| 32 | |
| 33 | abbrev targetGroup : CommGrp (Over (NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase (ZMod q))) := CommGrp.mk (G.pullback br).scheme |
| 34 | |
| 35 | variable (e : ((G.pullback t).pullback |
| 36 | (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q))).scheme ≅ (G.pullback br).scheme) |
| 37 | (he : (ReductionComparisonModel.CM.reductionMap G a (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q)) t br wr).targetIso = e) |
| 38 | |
| 39 | local notation "aligned" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ReductionTargetIdentification.CM.replaceTarget G a red t br redM e |
| 40 | (congrArg Iso.hom he) |
| 41 | |
| 42 | local instance : IsProper (M).integralSource.hom := |
| 43 | inferInstanceAs (IsProper (pullback.snd X.hom t)) |
| 44 | |
| 45 | variable {R L : Type} [CommRing R] [IsDomain R] [ValuationRing R] |
| 46 | [Field L] [Algebra R L] [IsFractionRing R L] |
| 47 | (bR : Spec (.of R) ⟶ NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase ℤ_[q]) (c : Spec (.of L) ⟶ NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase ℚ_[q]) |
| 48 | (wc : c ≫ NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (algebraMap ℤ_[q] ℚ_[q]) = ValuativePoints.CM.genericBase (R := R) (L := L) ≫ bR) |
| 49 | {κ : Type} [Field κ] (res : R →+* κ) |
| 50 | (U : Over (NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase (ZMod q))) |
| 51 | (test : (Over.map (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q))).obj U ≅ ValuativePoints.CM.specialTest bR res) |
| 52 | |
| 53 | /- `PLift` packages the fully proved function as data, so its exact |
| 54 | dependent type is inferred from the checked specialization theorem. -/ |
| 55 | def transport := PLift.up ( |
| 56 | @Source.EquationImages.CM.Transported.equation_from_special K _ _ q _ jq A M |
| 57 | (inferInstanceAs (IsProper (pullback.snd X.hom t))) |
| 58 | R L _ _ _ _ _ _ bR c wc κ _ res U test (targetGroup (q := q) G br) e |
| 59 | (aligned).target_group _ (aligned).sourceIso ((Over.pullback br).map a) |
| 60 | (aligned).compatible) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ArithmeticSourceEquation.CM |