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 Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 3 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 4 | import Mathlib.Algebra.Group.Subgroup.Basic |
| 5 | import Lean.Util.CollectAxioms |
| 6 | |
| 7 | /-! # Isogeny Factorization Is -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.IsogenyFactorizationIs.IsogenyFactorization |
| 10 | |
| 11 | /-! The elementary quotient-factorization part of the proved PoincareBundle argument, |
| 12 | reproduced from c513c6952388259cb3bee49fc59d39ce8dd1bb5f. This owned module |
| 13 | retains only the native effective-epimorphism and group-object proof, so the |
| 14 | IntegralModel isogeny construction is independent of concurrent edits to PoincareBundle's |
| 15 | unrelated line-bundle descent imports. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 18 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 19 | open _root_.CategoryTheory.MonObj _root_.AlgebraicGeometry |
| 20 | |
| 21 | universe u v |
| 22 | |
| 23 | section Categorical |
| 24 | |
| 25 | variable {C : Type u} [Category.{v} C] |
| 26 | |
| 27 | /-- Pullback along an epimorphism is injective when the target is a dual |
| 28 | object for a contravariant equivalence. -/ |
| 29 | theorem dual_pullback_injective |
| 30 | (D : Cᵒᵖ ≌ C) {A B : C} (f : A ⟶ B) [Epi f] : |
| 31 | Function.Injective |
| 32 | (fun p : B ⟶ D.functor.obj (op B) => f ≫ p ≫ D.functor.map f.op) := by |
| 33 | intro p r h |
| 34 | have : Mono (D.functor.map f.op) := inferInstance |
| 35 | apply (cancel_mono (D.functor.map f.op)).mp |
| 36 | apply (cancel_epi f).mp |
| 37 | simpa only [Category.assoc] using h |
| 38 | |
| 39 | /-- Relations in the slice detect the underlying relations. -/ |
| 40 | theorem over_coequalizes_left {S : C} {A B W : Over S} |
| 41 | (f : A ⟶ B) (g : A ⟶ W) |
| 42 | (hg : ∀ {T : Over S} (x y : T ⟶ A), |
| 43 | x ≫ f = y ≫ f → x ≫ g = y ≫ g) : |
| 44 | ∀ {T : C} (x y : T ⟶ A.left), |
| 45 | x ≫ f.left = y ≫ f.left → x ≫ g.left = y ≫ g.left := by |
| 46 | intro T x y hxy |
| 47 | let T' : Over S := Over.mk (x ≫ A.hom) |
| 48 | let x' : T' ⟶ A := Over.homMk x rfl |
| 49 | let y' : T' ⟶ A := Over.homMk y (by |
| 50 | change y ≫ A.hom = x ≫ A.hom |
| 51 | rw [← Over.w f, ← Category.assoc, ← Category.assoc, hxy]) |
| 52 | exact congrArg Over.Hom.left (hg x' y' (Over.OverMorphism.ext hxy)) |
| 53 | |
| 54 | /-- Effective epimorphisms of the underlying objects remain effective |
| 55 | epimorphisms in a slice category. -/ |
| 56 | theorem effectiveEpi_over_of_left {S : C} {A B : Over S} |
| 57 | (f : A ⟶ B) [EffectiveEpi f.left] : EffectiveEpi f := by |
| 58 | constructor |
| 59 | refine ⟨{ |
| 60 | desc := fun {W} g hg => ?_ |
| 61 | fac := ?_ |
| 62 | uniq := ?_ |
| 63 | }⟩ |
| 64 | · have hrel : ∀ {T : C} (x y : T ⟶ A.left), |
| 65 | x ≫ f.left = y ≫ f.left → x ≫ g.left = y ≫ g.left := |
| 66 | over_coequalizes_left f g hg |
| 67 | let d := EffectiveEpi.desc f.left g.left hrel |
| 68 | refine Over.homMk d ?_ |
| 69 | apply (cancel_epi f.left).mp |
| 70 | rw [← Category.assoc, EffectiveEpi.fac, Over.w g, Over.w f] |
| 71 | · intro W g hg |
| 72 | apply Over.OverMorphism.ext |
| 73 | dsimp |
| 74 | apply EffectiveEpi.fac |
| 75 | exact over_coequalizes_left f g hg |
| 76 | · intro W g hg m hm |
| 77 | apply Over.OverMorphism.ext |
| 78 | exact EffectiveEpi.uniq f.left g.left (over_coequalizes_left f g hg) |
| 79 | m.left (congrArg Over.Hom.left hm) |
| 80 | |
| 81 | end Categorical |
| 82 | |
| 83 | section GroupObjects |
| 84 | |
| 85 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 86 | variable {A B Z : C} [GrpObj A] [GrpObj B] [GrpObj Z] |
| 87 | |
| 88 | /-- A homomorphism which kills the kernel of an effective quotient |
| 89 | descends uniquely as a morphism. The hypothesis tests the kernel on all |
| 90 | objects, so it also detects nonreduced subgroup schemes. -/ |
| 91 | theorem exists_unique_morphism_of_kernel_trivial |
| 92 | (f : A ⟶ B) [IsMonHom f] [EffectiveEpi f] |
| 93 | (g : A ⟶ Z) [IsMonHom g] |
| 94 | (hker : ∀ (T : C) (x : T ⟶ A), x ≫ f = 1 → x ≫ g = 1) : |
| 95 | ∃! d : B ⟶ Z, f ≫ d = g := by |
| 96 | have hrel : ∀ {T : C} (x y : T ⟶ A), |
| 97 | x ≫ f = y ≫ f → x ≫ g = y ≫ g := by |
| 98 | intro T x y hxy |
| 99 | have hk : (x / y) ≫ f = 1 := by rw [GrpObj.div_comp, hxy, div_self'] |
| 100 | have hd := hker T (x / y) hk |
| 101 | rw [GrpObj.div_comp, div_eq_one] at hd |
| 102 | exact hd |
| 103 | exact ⟨EffectiveEpi.desc f g hrel, EffectiveEpi.fac f g hrel, |
| 104 | fun d hd => EffectiveEpi.uniq f g hrel d hd⟩ |
| 105 | |
| 106 | /-- The descended morphism preserves the group law when the product |
| 107 | of the quotient with itself is epimorphic. -/ |
| 108 | theorem isMonHom_of_comp |
| 109 | (f : A ⟶ B) [IsMonHom f] [Epi (f ⊗ₘ f)] |
| 110 | (g : A ⟶ Z) [IsMonHom g] (d : B ⟶ Z) |
| 111 | (hd : f ≫ d = g) : IsMonHom d := by |
| 112 | constructor |
| 113 | · rw [← IsMonHom.one_hom f, Category.assoc, hd, IsMonHom.one_hom g] |
| 114 | · apply (cancel_epi (f ⊗ₘ f)).mp |
| 115 | rw [← Category.assoc, ← IsMonHom.mul_hom f, Category.assoc, hd, |
| 116 | IsMonHom.mul_hom g] |
| 117 | rw [← Category.assoc, tensorHom_comp_tensorHom, hd] |
| 118 | |
| 119 | /-- Descent of a group homomorphism from the kernel criterion. -/ |
| 120 | theorem exists_unique_hom_of_kernel_trivial |
| 121 | (f : A ⟶ B) [IsMonHom f] [EffectiveEpi f] [Epi (f ⊗ₘ f)] |
| 122 | (g : A ⟶ Z) [IsMonHom g] |
| 123 | (hker : ∀ (T : C) (x : T ⟶ A), x ≫ f = 1 → x ≫ g = 1) : |
| 124 | ∃! d : B ⟶ Z, IsMonHom d ∧ f ≫ d = g := by |
| 125 | obtain ⟨d, hd, hu⟩ := exists_unique_morphism_of_kernel_trivial f g hker |
| 126 | exact ⟨d, ⟨isMonHom_of_comp f g d hd, hd⟩, fun e he => hu e he.2⟩ |
| 127 | |
| 128 | variable [BraidedCategory C] |
| 129 | |
| 130 | /-- Pointwise integer multiplication of a homomorphism into a commutative |
| 131 | group object is again a homomorphism. Multiplicative notation is used |
| 132 | because mathlib's group-object API uses `GrpObj`. -/ |
| 133 | theorem isMonHom_pow [IsCommMonObj Z] |
| 134 | (g : A ⟶ Z) [IsMonHom g] (n : ℕ) : IsMonHom (g ^ n) := by |
| 135 | induction n with |
| 136 | | zero => |
| 137 | change IsMonHom (1 : A ⟶ Z) |
| 138 | change IsMonHom (toUnit A ≫ η[Z]) |
| 139 | infer_instance |
| 140 | | succ n ih => |
| 141 | have : IsMonHom (g ^ n) := ih |
| 142 | rw [pow_succ, Hom.mul_def] |
| 143 | infer_instance |
| 144 | |
| 145 | /-- If the quotient kernel is killed by n, then n times any homomorphism |
| 146 | out of the source descends uniquely through the quotient. -/ |
| 147 | theorem exists_unique_multiple_descent |
| 148 | [IsCommMonObj Z] |
| 149 | (f : A ⟶ B) [IsMonHom f] [EffectiveEpi f] [Epi (f ⊗ₘ f)] |
| 150 | (g : A ⟶ Z) [IsMonHom g] (n : ℕ) |
| 151 | (hker : ∀ (T : C) (x : T ⟶ A), x ≫ f = 1 → x ^ n = 1) : |
| 152 | ∃! d : B ⟶ Z, IsMonHom d ∧ f ≫ d = g ^ n := by |
| 153 | have : IsMonHom (g ^ n) := isMonHom_pow g n |
| 154 | apply exists_unique_hom_of_kernel_trivial f (g ^ n) |
| 155 | intro T x hx |
| 156 | rw [MonObj.comp_pow, ← MonObj.pow_comp, hker T x hx, MonObj.one_comp] |
| 157 | |
| 158 | end GroupObjects |
| 159 | |
| 160 | /-- Flat surjections which are quasi-compact are effective quotients |
| 161 | also as morphisms over their base scheme. -/ |
| 162 | theorem effectiveEpi_over_of_fpqc |
| 163 | {S : Scheme.{u}} {A B : Over S} (f : A ⟶ B) |
| 164 | [Flat f.left] [Surjective f.left] [QuasiCompact f.left] : |
| 165 | EffectiveEpi f := |
| 166 | effectiveEpi_over_of_left f |
| 167 | |
| 168 | /-- A property stable under composition and base change is preserved |
| 169 | by products of morphisms over a fixed base. -/ |
| 170 | theorem property_tensor_over |
| 171 | (P : MorphismProperty Scheme.{u}) |
| 172 | [P.IsStableUnderBaseChange] [P.IsStableUnderComposition] |
| 173 | {S : Scheme.{u}} {A B X Y : Over S} |
| 174 | (f : A ⟶ B) (g : X ⟶ Y) (hf : P f.left) (hg : P g.left) : |
| 175 | P (f ⊗ₘ g).left := by |
| 176 | rw [Over.tensorHom_left] |
| 177 | exact MorphismProperty.pullbackMap hf hg (Over.w f).symm (Over.w g).symm |
| 178 | |
| 179 | /-- The product of two fpqc quotient morphisms is still an effective |
| 180 | epimorphism in the slice category. -/ |
| 181 | theorem effectiveEpi_tensor_over_of_fpqc |
| 182 | {S : Scheme.{u}} {A B X Y : Over S} |
| 183 | (f : A ⟶ B) (g : X ⟶ Y) |
| 184 | [Flat f.left] [Surjective f.left] [QuasiCompact f.left] |
| 185 | [Flat g.left] [Surjective g.left] [QuasiCompact g.left] : |
| 186 | EffectiveEpi (f ⊗ₘ g) := by |
| 187 | let : MorphismProperty.IsStableUnderComposition |
| 188 | (@AlgebraicGeometry.Surjective.{u}) := |
| 189 | ⟨fun _ _ hf hg => ⟨hg.1.comp hf.1⟩⟩ |
| 190 | have : Flat (f ⊗ₘ g).left := property_tensor_over (@Flat) f g inferInstance inferInstance |
| 191 | have : Surjective (f ⊗ₘ g).left := |
| 192 | property_tensor_over (@AlgebraicGeometry.Surjective) f g inferInstance inferInstance |
| 193 | have : QuasiCompact (f ⊗ₘ g).left := |
| 194 | property_tensor_over (@QuasiCompact) f g inferInstance inferInstance |
| 195 | exact effectiveEpi_over_of_fpqc (f ⊗ₘ g) |
| 196 | |
| 197 | /-- A group-scheme homomorphism which vanishes on the scheme-theoretic |
| 198 | kernel of an fpqc quotient has a unique descended group-scheme homomorphism. |
| 199 | Testing all S-schemes retains infinitesimal, nonreduced kernel data. -/ |
| 200 | theorem fpqc_group_hom_descent |
| 201 | {S : Scheme.{u}} {A B Z : Over S} |
| 202 | [GrpObj A] [GrpObj B] [GrpObj Z] |
| 203 | (f : A ⟶ B) [IsMonHom f] |
| 204 | [Flat f.left] [Surjective f.left] [QuasiCompact f.left] |
| 205 | (g : A ⟶ Z) [IsMonHom g] |
| 206 | (hker : ∀ (T : Over S) (x : T ⟶ A), x ≫ f = 1 → x ≫ g = 1) : |
| 207 | ∃! d : B ⟶ Z, IsMonHom d ∧ f ≫ d = g := by |
| 208 | have : EffectiveEpi f := effectiveEpi_over_of_fpqc f |
| 209 | have : EffectiveEpi (f ⊗ₘ f) := effectiveEpi_tensor_over_of_fpqc f f |
| 210 | exact exists_unique_hom_of_kernel_trivial f g hker |
| 211 | |
| 212 | /-- First factorization in PoincareBundle: containment of the isogeny kernel in |
| 213 | A[n] makes n times a homomorphism factor through the quotient. |
| 214 | This is a scheme-theoretic statement in every characteristic. -/ |
| 215 | theorem fpqc_multiple_descent |
| 216 | {S : Scheme.{u}} {A B Z : Over S} |
| 217 | [GrpObj A] [GrpObj B] [GrpObj Z] [IsCommMonObj Z] |
| 218 | (f : A ⟶ B) [IsMonHom f] |
| 219 | [Flat f.left] [Surjective f.left] [QuasiCompact f.left] |
| 220 | (g : A ⟶ Z) [IsMonHom g] (n : ℕ) |
| 221 | (hker : ∀ (T : Over S) (x : T ⟶ A), x ≫ f = 1 → x ^ n = 1) : |
| 222 | ∃! d : B ⟶ Z, IsMonHom d ∧ f ≫ d = g ^ n := by |
| 223 | have : EffectiveEpi f := effectiveEpi_over_of_fpqc f |
| 224 | have : EffectiveEpi (f ⊗ₘ f) := effectiveEpi_tensor_over_of_fpqc f f |
| 225 | exact exists_unique_multiple_descent f g n hker |
| 226 | |
| 227 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.IsogenyFactorizationIs.IsogenyFactorization |