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.SourceSpecialEquation |
| 2 | import OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.TransportedSpecialEquation |
| 3 | |
| 4 | /-! # Equation Images -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.EquationImages.CM.Transported |
| 11 | |
| 12 | /-! Transport the reduced source equation through the actual source |
| 13 | and group identifications, retaining the same algebraic specialization |
| 14 | and every specialized neighbor, including multiplicity. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 18 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ComparisonModel.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ModelNeighborFormula.CM |
| 19 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.SourceSpecialEquation.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ValuativePoints.CM |
| 20 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.PointSpecializationFormula.CM.Points OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.SpecialEndEvaluation.CM |
| 21 | |
| 22 | variable {K : Type} [Field K] [NumberField K] |
| 23 | {q : ℕ} [Fact q.Prime] {jq : K →+* ℚ_[q]} (A : NumberTheory.PadicHodge.GeometricComparison.Geometry.AbelianH1Model K q jq) |
| 24 | (M : ComparisonModel.CM.SourceMap A) [IsProper M.integralSource.hom] |
| 25 | {R L : Type} [CommRing R] [IsDomain R] [ValuationRing R] |
| 26 | [Field L] [Algebra R L] [IsFractionRing R L] |
| 27 | (bR : Spec (.of R) ⟶ NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase ℤ_[q]) (c : Spec (.of L) ⟶ NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase ℚ_[q]) |
| 28 | (w : c ≫ NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (algebraMap ℤ_[q] ℚ_[q]) = ValuativePoints.CM.genericBase (R := R) (L := L) ≫ bR) |
| 29 | {k : Type} [Field k] (res : R →+* k) |
| 30 | (U : Over (NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase (ZMod q))) |
| 31 | (test : (Over.map (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q))).obj U ≅ ValuativePoints.CM.specialTest bR res) |
| 32 | (H : CommGrp (Over (NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase (ZMod q)))) (e : A.specialFiber.scheme ≅ H.X) |
| 33 | [IsMonHom e.hom] {Y : Over (NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase (ZMod q))} |
| 34 | (s : SourceSpecialEquation.CM.specialSource A M ≅ Y) (b : Y ⟶ H.X) |
| 35 | |
| 36 | local notation "red" => OAI.NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q) |
| 37 | local notation "T" => Over.mk c |
| 38 | local notation "X" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ModelNeighborFormula.CM.localSource A M |
| 39 | local notation "px" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.SourceSpecialEquation.CM.specialPoint A M bR c w res U test |
| 40 | local notation "pn" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.SourceSpecialEquation.CM.specialNeighbor A M bR c w res U test |
| 41 | |
| 42 | def Equation (f : A.ExtendingEndomorphism) (x y : T ⟶ X) |
| 43 | (Nx Ny : Multiset ((Over.map (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap jq)).obj T ⟶ M.genericSource)) : Prop := |
| 44 | TransportedSpecialEquation.CM.Equation A H e U s b f (px x) (px y) |
| 45 | (Nx.map pn) (Ny.map pn) |
| 46 | |
| 47 | theorem equation_from_special |
| 48 | (hs : (Over.pullback red).map M.integralMap ≫ e.hom = s.hom ≫ b) |
| 49 | (f : A.ExtendingEndomorphism) (x y : T ⟶ X) |
| 50 | (Nx Ny : Multiset ((Over.map (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap jq)).obj T ⟶ M.genericSource)) |
| 51 | (h : SourceSpecialEquation.CM.SpecialEquation A M bR c w res U test f x y Nx Ny) : |
| 52 | Equation A M bR c w res U test H e s b f x y Nx Ny := by |
| 53 | apply TransportedSpecialEquation.CM.equation_from_integral A H e U s |
| 54 | ((Over.pullback red).map M.integralMap) b hs f (px x) (px y) (Nx.map pn) (Ny.map pn) |
| 55 | rw [SpecialEndEvaluation.CM.specialIntegralEnd_eq] |
| 56 | simp only [SourceSpecialEquation.CM.SpecialEquation, Multiset.map_map, Function.comp_def] at h ⊢ |
| 57 | exact h |
| 58 | |
| 59 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.EquationImages.CM.Transported |
| 60 | |
| 61 | namespace AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.EquationImages.CM |
| 62 | |
| 63 | /-! Normalize the transported source equation before instantiating the |
| 64 | arithmetic model. The same specialized-neighbor image is used for both |
| 65 | source points and every original neighbor, retaining multiplicities. -/ |
| 66 | |
| 67 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 68 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 69 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ComparisonModel.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ModelNeighborFormula.CM |
| 70 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.SourceSpecialEquation.CM OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ValuativePoints.CM |
| 71 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.PointSpecializationFormula.CM.Points OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.SpecialEndEvaluation.CM |
| 72 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.NeighborFormula.CM |
| 73 | |
| 74 | def ImageEquation {S G : Type} [AddCommGroup G] (u : G → G) (a : S → G) |
| 75 | (x y : S) (Nx Ny : Multiset S) : Prop := |
| 76 | u (a x - a y) = (Nx.map a).sum - (Ny.map a).sum |
| 77 | |
| 78 | theorem imageEquation_congr {S G : Type} [AddCommGroup G] |
| 79 | (u v : G → G) (hu : u = v) (a b : S → G) (hab : a = b) |
| 80 | (x y : S) (Nx Ny : Multiset S) (h : ImageEquation u a x y Nx Ny) : |
| 81 | ImageEquation v b x y Nx Ny := by |
| 82 | subst v |
| 83 | subst b |
| 84 | exact h |
| 85 | |
| 86 | theorem change_image {S G : Type} [AddCommGroup G] |
| 87 | (u v : G → G) (hu : u = v) (a b : S → G) (hab : a = b) |
| 88 | (x y : S) (Nx Ny : Multiset S) |
| 89 | (h : u (a x - a y) = (Nx.map a).sum - (Ny.map a).sum) : |
| 90 | v (b x - b y) = (Nx.map b).sum - (Ny.map b).sum := by |
| 91 | subst v |
| 92 | subst b |
| 93 | exact h |
| 94 | |
| 95 | theorem evaluated_points {S G : Type} [AddCommGroup G] |
| 96 | (u : G → G) (a : S → G) (x y : S) (Nx Ny : Multiset S) |
| 97 | (sx sy : G) (rx ry : Multiset G) |
| 98 | (hx : a x = sx) (hy : a y = sy) (hNx : Nx.map a = rx) (hNy : Ny.map a = ry) |
| 99 | (h : ImageEquation u a x y Nx Ny) : u (sx - sy) = rx.sum - ry.sum := by |
| 100 | unfold ImageEquation at h |
| 101 | rw [hx, hy, hNx, hNy] at h |
| 102 | exact h |
| 103 | |
| 104 | variable {K : Type} [Field K] [NumberField K] |
| 105 | {q : ℕ} [Fact q.Prime] {jq : K →+* ℚ_[q]} (A : NumberTheory.PadicHodge.GeometricComparison.Geometry.AbelianH1Model K q jq) |
| 106 | (M : ComparisonModel.CM.SourceMap A) [IsProper M.integralSource.hom] |
| 107 | {R L : Type} [CommRing R] [IsDomain R] [ValuationRing R] |
| 108 | [Field L] [Algebra R L] [IsFractionRing R L] |
| 109 | (bR : Spec (.of R) ⟶ NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase ℤ_[q]) (c : Spec (.of L) ⟶ NumberTheory.PadicHodge.GeometricComparison.Geometry.ringBase ℚ_[q]) |
| 110 | (w : c ≫ NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (algebraMap ℤ_[q] ℚ_[q]) = ValuativePoints.CM.genericBase (R := R) (L := L) ≫ bR) |
| 111 | {k : Type} [Field k] (res : R →+* k) |
| 112 | (U : Over (Spec (.of (ZMod q)))) |
| 113 | (test : (Over.map (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q))).obj U ≅ ValuativePoints.CM.specialTest bR res) |
| 114 | (H : CommGrp (Over (Spec (.of (ZMod q))))) (e : A.specialFiber.scheme ≅ H.X) |
| 115 | [IsMonHom e.hom] {Y : Over (Spec (.of (ZMod q)))} |
| 116 | (s : SourceSpecialEquation.CM.specialSource A M ≅ Y) (b : Y ⟶ H.X) |
| 117 | |
| 118 | local notation "red" => OAI.NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap (PadicInt.toZMod : ℤ_[q] →+* ZMod q) |
| 119 | local notation "T" => Over.mk c |
| 120 | local notation "X" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.ModelNeighborFormula.CM.localSource A M |
| 121 | local notation "px" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.SourceSpecialEquation.CM.specialPoint A M bR c w res U test |
| 122 | local notation "pn" => OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.SourceSpecialEquation.CM.specialNeighbor A M bR c w res U test |
| 123 | |
| 124 | variable (U₀ : Over (Spec (.of K))) (p : (Over.map (NumberTheory.PadicHodge.GeometricComparison.Geometry.scalarBaseMap jq)).obj (Over.mk c) ⟶ U₀) |
| 125 | |
| 126 | def image (z : U₀ ⟶ M.genericSource) : Additive (U ⟶ H.X) := |
| 127 | Additive.ofMul ((SourceSpecialEquation.CM.specialNeighbor A M bR c w res U test (p ≫ z) ≫ s.hom) ≫ b) |
| 128 | |
| 129 | def specializedAction (f : A.ExtendingEndomorphism) : |
| 130 | Additive (U ⟶ H.X) → Additive (U ⟶ H.X) := |
| 131 | PointEvaluation.CM.action H U |
| 132 | (SpecialEndEvaluation.CM.TransportedSpecialization.algebraicSpecialization A H e f.generic) |
| 133 | |
| 134 | def Equation (f : A.ExtendingEndomorphism) (x y : U₀ ⟶ M.genericSource) |
| 135 | (Nx Ny : Multiset (U₀ ⟶ M.genericSource)) : Prop := |
| 136 | ImageEquation (specializedAction A U H e f) |
| 137 | (image A M bR c w res U test H s b U₀ p) x y Nx Ny |
| 138 | |
| 139 | theorem equation_from_transported (f : A.ExtendingEndomorphism) (x y : U₀ ⟶ M.genericSource) |
| 140 | (Nx Ny : Multiset (U₀ ⟶ M.genericSource)) |
| 141 | (h : Transported.Equation A M bR c w res U test H e s b f |
| 142 | (Local.NeighborFormula.CM.liftedNeighbor T M.sourceIso (p ≫ x)) (Local.NeighborFormula.CM.liftedNeighbor T M.sourceIso (p ≫ y)) |
| 143 | (Nx.map (p ≫ ·)) (Ny.map (p ≫ ·))) : |
| 144 | Equation A M bR c w res U test H e s b U₀ p f x y Nx Ny := by |
| 145 | unfold Equation ImageEquation image specializedAction |
| 146 | simpa only [Transported.Equation, TransportedSpecialEquation.CM.Equation, |
| 147 | SourceSpecialEquation.CM.specialPoint, SourceSpecialEquation.CM.specialNeighbor, EvaluatedFormula.CM.reducedRawNeighbor, |
| 148 | Multiset.map_map, Function.comp_def] using h |
| 149 | |
| 150 | theorem equation_with_images (f : A.ExtendingEndomorphism) (g : FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd H.X) |
| 151 | (hg : SpecialEndEvaluation.CM.TransportedSpecialization.algebraicSpecialization A H e f.generic = g) |
| 152 | (a : (U₀ ⟶ M.genericSource) → Additive (U ⟶ H.X)) |
| 153 | (ha : ∀ z, image A M bR c w res U test H s b U₀ p z = a z) |
| 154 | (x y : U₀ ⟶ M.genericSource) (Nx Ny : Multiset (U₀ ⟶ M.genericSource)) |
| 155 | (h : Equation A M bR c w res U test H e s b U₀ p f x y Nx Ny) : |
| 156 | ImageEquation (PointEvaluation.CM.action H U g) a x y Nx Ny := |
| 157 | change_image _ _ (congrArg (fun z => ⇑(PointEvaluation.CM.action H U z)) hg) |
| 158 | _ a (funext ha) x y Nx Ny h |
| 159 | |
| 160 | end AlgebraicGeometry.HodgeConjecture.HeckeCycles.Source.EquationImages.CM |
| 161 | |
| 162 | end |
| 163 | |
| 164 | end OAI |