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.ArithmeticGeometry.Descent.CMVariety.CoefficientEndomorphismComparison |
| 2 | import OAI.ArithmeticGeometry.Descent.CMVariety.FiniteCoefficientTuples |
| 3 | import OAI.ArithmeticGeometry.Descent.CMVariety.FiniteCoefficientGroupLaws |
| 4 | |
| 5 | /-! # Abelian Endomorphism -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.AbelianEndomorphism |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Compact, separate proofs for the two stages of simultaneous group-map spreading. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 17 | |
| 18 | variable (R B : Type) [CommRing R] [CommRing B] [Algebra R B] |
| 19 | {Index : Type} [Fintype Index] {g : ℕ} |
| 20 | |
| 21 | theorem finite_abelian_endomorphisms_first_stage |
| 22 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of R))) |
| 23 | (k : Index → ((A.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).scheme ⟶ |
| 24 | (A.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).scheme)) |
| 25 | [∀ i, IsMonHom (k i)] : |
| 26 | ∃ (s : (Finset B)ᵒᵖ) |
| 27 | (a : Index → ((A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).scheme ⟶ |
| 28 | (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).scheme)), |
| 29 | ∀ i, CoefficientEndomorphismComparison.Abelian.ConjugateEndomorphisms (AbelianCoefficientComparison.abelianCoefficientComparison R B A s) |
| 30 | (CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)) |
| 31 | (AbelianCoefficientComparison.coefficientInclusion R B s) (a i)) (k i) ∧ |
| 32 | IsMonHom (CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism |
| 33 | (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)) (AbelianCoefficientComparison.coefficientInclusion R B s) (a i)) := by |
| 34 | obtain ⟨s, a, ha⟩ := FiniteCoefficientTuples.Abelian.finite_over_endomorphisms_descend_to_finite_coefficients R B A.scheme k |
| 35 | exact ⟨s, a, fun i => ⟨CoefficientEndomorphismComparison.Abelian.coefficient_endomorphism_baseChange_eq R B A s (a i) (k i) (ha i), |
| 36 | CoefficientEndomorphismComparison.Abelian.coefficient_endomorphism_baseChange_group R B A s (a i) (k i) (ha i)⟩⟩ |
| 37 | |
| 38 | theorem finite_abelian_endomorphisms_group_stage |
| 39 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of R))) (a : Index → (A.scheme ⟶ A.scheme)) |
| 40 | (h : ∀ i, IsMonHom |
| 41 | (CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism A (Spec.map (CommRingCat.ofHom (algebraMap R B))) (a i))) : |
| 42 | ∃ (s : (Finset B)ᵒᵖ) |
| 43 | (b : Index → ((A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).scheme ⟶ |
| 44 | (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).scheme)), |
| 45 | ∀ i, IsMonHom (b i) ∧ |
| 46 | CoefficientEndomorphismComparison.Abelian.ConjugateEndomorphisms (AbelianCoefficientComparison.abelianCoefficientComparison R B A s) |
| 47 | (CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)) |
| 48 | (AbelianCoefficientComparison.coefficientInclusion R B s) (b i)) |
| 49 | (CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism A (Spec.map (CommRingCat.ofHom (algebraMap R B))) (a i)) := by |
| 50 | obtain ⟨s, hs⟩ := FiniteCoefficientGroupLaws.Abelian.finite_isMonHom_descends_to_finite_coefficients R B A.scheme a h |
| 51 | refine ⟨s, fun i => CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism A (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) (a i), |
| 52 | fun i => ⟨hs i, ?_⟩⟩ |
| 53 | exact CoefficientEndomorphismComparison.Abelian.abelianCoefficientComparison_conjugation R B A s (a i) |
| 54 | |
| 55 | theorem abelian_iso_trans_group |
| 56 | {S : Scheme} (A B C : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 57 | (e : A.scheme ≅ B.scheme) (d : B.scheme ≅ C.scheme) |
| 58 | (he : IsMonHom e.hom) (hd : IsMonHom d.hom) : IsMonHom (e ≪≫ d).hom := by |
| 59 | let : IsMonHom e.hom := he |
| 60 | let : IsMonHom d.hom := hd |
| 61 | change IsMonHom (e.hom ≫ d.hom) |
| 62 | infer_instance |
| 63 | |
| 64 | end |
| 65 | |
| 66 | section |
| 67 | |
| 68 | /-! |
| 69 | An actual group endomorphism of a coefficient fiber extends after two |
| 70 | finite coefficient extensions. The first spreads the morphism and the |
| 71 | second spreads its group equations. The original fiber map is recovered |
| 72 | under an actual group-preserving isomorphism. |
| 73 | -/ |
| 74 | |
| 75 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 76 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 77 | |
| 78 | variable (R B : Type) [CommRing R] [CommRing B] [Algebra R B] |
| 79 | |
| 80 | def twoStageCoefficientBaseMap (s t : (Finset B)ᵒᵖ) : |
| 81 | Spec (CommRingCat.of |
| 82 | (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t.unop)) ⟶ |
| 83 | Spec (CommRingCat.of R) := |
| 84 | FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t.unop ≫ |
| 85 | FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop |
| 86 | |
| 87 | instance twoStageCoefficientBaseMap_locallyFiniteType (s t : (Finset B)ᵒᵖ) : |
| 88 | LocallyOfFiniteType (twoStageCoefficientBaseMap R B s t) := by |
| 89 | dsimp only [twoStageCoefficientBaseMap] |
| 90 | infer_instance |
| 91 | |
| 92 | theorem twoStageCoefficientInclusion_base (s t : (Finset B)ᵒᵖ) : |
| 93 | AbelianCoefficientComparison.coefficientInclusion (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t ≫ |
| 94 | twoStageCoefficientBaseMap R B s t = |
| 95 | Spec.map (CommRingCat.ofHom (algebraMap R B)) := by |
| 96 | dsimp only [twoStageCoefficientBaseMap] |
| 97 | rw [← Category.assoc, AbelianCoefficientComparison.coefficientInclusion_base] |
| 98 | exact AbelianCoefficientComparison.coefficientInclusion_base R B s |
| 99 | |
| 100 | def twoStageCoefficientFamily {g : ℕ} |
| 101 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of R))) |
| 102 | (s t : (Finset B)ᵒᵖ) : |
| 103 | AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of |
| 104 | (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t.unop))) := |
| 105 | (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).pullback |
| 106 | (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t.unop) |
| 107 | |
| 108 | def twoStageCoefficientComparison {g : ℕ} |
| 109 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of R))) |
| 110 | (s t : (Finset B)ᵒᵖ) : |
| 111 | ((twoStageCoefficientFamily R B A s t).pullback |
| 112 | (AbelianCoefficientComparison.coefficientInclusion (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t)).scheme ≅ |
| 113 | (A.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).scheme := |
| 114 | AbelianCoefficientComparison.abelianCoefficientComparison (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B |
| 115 | (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)) t ≪≫ |
| 116 | AbelianCoefficientComparison.abelianCoefficientComparison R B A s |
| 117 | |
| 118 | instance twoStageCoefficientComparison_group {g : ℕ} |
| 119 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of R))) |
| 120 | (s t : (Finset B)ᵒᵖ) : |
| 121 | IsMonHom (twoStageCoefficientComparison R B A s t).hom := by |
| 122 | exact abelian_iso_trans_group |
| 123 | ((twoStageCoefficientFamily R B A s t).pullback |
| 124 | (AbelianCoefficientComparison.coefficientInclusion (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t)) |
| 125 | ((A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)).pullback (AbelianCoefficientComparison.coefficientInclusion R B s)) |
| 126 | (A.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))) |
| 127 | (AbelianCoefficientComparison.abelianCoefficientComparison (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B |
| 128 | (A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop)) t) |
| 129 | (AbelianCoefficientComparison.abelianCoefficientComparison R B A s) |
| 130 | (AbelianCoefficientComparison.abelianCoefficientComparison_group _ _ _ _) (AbelianCoefficientComparison.abelianCoefficientComparison_group _ _ _ _) |
| 131 | |
| 132 | theorem finite_abelian_group_endomorphisms_spread {g : ℕ} |
| 133 | {Index : Type} [Fintype Index] |
| 134 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of R))) |
| 135 | (k : Index → ((A.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).scheme ⟶ |
| 136 | (A.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B)))).scheme)) |
| 137 | [∀ i, IsMonHom (k i)] : |
| 138 | ∃ (s t : (Finset B)ᵒᵖ) |
| 139 | (a : Index → ((twoStageCoefficientFamily R B A s t).scheme ⟶ |
| 140 | (twoStageCoefficientFamily R B A s t).scheme)), |
| 141 | ∀ i, IsMonHom (a i) ∧ |
| 142 | CoefficientEndomorphismComparison.Abelian.ConjugateEndomorphisms (twoStageCoefficientComparison R B A s t) |
| 143 | (CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism (twoStageCoefficientFamily R B A s t) |
| 144 | (AbelianCoefficientComparison.coefficientInclusion (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t) (a i)) (k i) := by |
| 145 | obtain ⟨s, a, ha⟩ := finite_abelian_endomorphisms_first_stage R B A k |
| 146 | let Aₛ := A.pullback (FiniteCoefficientDiagram.Abelian.finiteCoefficientBaseMap R B s.unop) |
| 147 | obtain ⟨t, b, hb⟩ := finite_abelian_endomorphisms_group_stage |
| 148 | (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B Aₛ a (fun i => (ha i).2) |
| 149 | refine ⟨s, t, b, fun i => ⟨(hb i).1, ?_⟩⟩ |
| 150 | exact CoefficientEndomorphismComparison.Abelian.ConjugateEndomorphisms.trans |
| 151 | (AbelianCoefficientComparison.abelianCoefficientComparison (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B Aₛ t) |
| 152 | (AbelianCoefficientComparison.abelianCoefficientComparison R B A s) _ _ _ (hb i).2 (ha i).1 |
| 153 | |
| 154 | end |
| 155 | |
| 156 | /-! Actual finite tuples, their group-preserving pullbacks, and exact fiber comparisons. -/ |
| 157 | |
| 158 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 159 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 160 | |
| 161 | structure AbelianEndomorphismTuple (Index : Type) {g : ℕ} {S : Scheme} |
| 162 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) where |
| 163 | map : Index → (A.scheme ⟶ A.scheme) |
| 164 | group : ∀ i, IsMonHom (map i) |
| 165 | |
| 166 | attribute [instance] AbelianEndomorphismTuple.group |
| 167 | |
| 168 | def AbelianEndomorphismTuple.pullback |
| 169 | {Index : Type} {g : ℕ} {S T : Scheme} {A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} |
| 170 | (a : AbelianEndomorphismTuple Index A) (f : T ⟶ S) : |
| 171 | AbelianEndomorphismTuple Index (A.pullback f) where |
| 172 | map i := CoefficientEndomorphismComparison.Abelian.abelianPullbackEndomorphism A f (a.map i) |
| 173 | group i := by |
| 174 | change IsMonHom ((Over.pullback f).map (a.map i)) |
| 175 | infer_instance |
| 176 | |
| 177 | def ConjugateAbelianTuples |
| 178 | {Index : Type} {g : ℕ} {S : Scheme} {A B : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} |
| 179 | (e : A.scheme ≅ B.scheme) (a : AbelianEndomorphismTuple Index A) |
| 180 | (b : AbelianEndomorphismTuple Index B) : Prop := |
| 181 | ∀ i, CoefficientEndomorphismComparison.Abelian.ConjugateEndomorphisms e (a.map i) (b.map i) |
| 182 | |
| 183 | theorem ConjugateAbelianTuples.trans |
| 184 | {Index : Type} {g : ℕ} {S : Scheme} {A B C : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} |
| 185 | (e : A.scheme ≅ B.scheme) (d : B.scheme ≅ C.scheme) |
| 186 | (a : AbelianEndomorphismTuple Index A) (b : AbelianEndomorphismTuple Index B) |
| 187 | (c : AbelianEndomorphismTuple Index C) |
| 188 | (he : ConjugateAbelianTuples e a b) (hd : ConjugateAbelianTuples d b c) : |
| 189 | ConjugateAbelianTuples (e ≪≫ d) a c := |
| 190 | fun i => CoefficientEndomorphismComparison.Abelian.ConjugateEndomorphisms.trans e d (a.map i) (b.map i) (c.map i) (he i) (hd i) |
| 191 | |
| 192 | theorem AbelianEndomorphismTuple.pullback_comparison |
| 193 | {Index : Type} {g : ℕ} {S T U : Scheme} {A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S} |
| 194 | (a : AbelianEndomorphismTuple Index A) |
| 195 | (f : T ⟶ S) (h : U ⟶ T) (p : U ⟶ S) (hp : h ≫ f = p) : |
| 196 | ConjugateAbelianTuples (AbelianCoefficientComparison.iteratedAbelianPullbackIso A f h p hp) |
| 197 | ((a.pullback f).pullback h) (a.pullback p) := |
| 198 | fun i => CoefficientEndomorphismComparison.Abelian.iteratedAbelianPullbackIso_conjugation A f h p hp (a.map i) |
| 199 | |
| 200 | theorem abelian_endomorphism_tuple_spreads |
| 201 | (R B : Type) [CommRing R] [CommRing B] [Algebra R B] |
| 202 | {Index : Type} [Fintype Index] {g : ℕ} |
| 203 | (A : AlgebraicGeometry.AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g (Spec (CommRingCat.of R))) |
| 204 | (k : AbelianEndomorphismTuple Index |
| 205 | (A.pullback (Spec.map (CommRingCat.ofHom (algebraMap R B))))) : |
| 206 | ∃ (s t : (Finset B)ᵒᵖ) (a : AbelianEndomorphismTuple Index (twoStageCoefficientFamily R B A s t)), |
| 207 | ConjugateAbelianTuples (twoStageCoefficientComparison R B A s t) |
| 208 | (a.pullback (AbelianCoefficientComparison.coefficientInclusion (FiniteCoefficientDiagram.Abelian.finiteCoefficientAlgebra R B s.unop) B t)) k := by |
| 209 | obtain ⟨s, t, a, ha⟩ := finite_abelian_group_endomorphisms_spread R B A k.map |
| 210 | exact ⟨s, t, ⟨a, fun i => (ha i).1⟩, fun i => (ha i).2⟩ |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.ArithmeticGeometry.Descent.CMVariety.AbelianEndomorphism |