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.AbelianModuli.ReferenceFamily.Frame.Map |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Level.Scheme |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FormallyUnramified |
| 4 | |
| 5 | /-! # Finiteness -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Frame.Finiteness.LevelCover |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The frame-locus geometry is derived from the actual torsion scheme. |
| 12 | Finite etaleness of torsion is a lower-level hypothesis; no finiteness or |
| 13 | etaleness of the frame scheme is assumed. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | |
| 18 | variable {S : Scheme} |
| 19 | |
| 20 | section Products |
| 21 | variable (X : Over S) |
| 22 | |
| 23 | /-- Ordered finite tuples, built by successive fiber products. -/ |
| 24 | def pointTuple : ℕ → Over S |
| 25 | | 0 => Over.mk (𝟙 S) |
| 26 | | n + 1 => Over.mk (pullback.fst (pointTuple n).hom X.hom ≫ (pointTuple n).hom) |
| 27 | |
| 28 | def pointTupleHead (n : ℕ) : LevelCover.pointTuple X (n + 1) ⟶ X := |
| 29 | Over.homMk (pullback.snd (LevelCover.pointTuple X n).hom X.hom) pullback.condition.symm |
| 30 | |
| 31 | def pointTupleTail (n : ℕ) : LevelCover.pointTuple X (n + 1) ⟶ LevelCover.pointTuple X n := |
| 32 | Over.homMk (pullback.fst (LevelCover.pointTuple X n).hom X.hom) |
| 33 | |
| 34 | def pointTupleProjection : (n : ℕ) → Fin n → (LevelCover.pointTuple X n ⟶ X) |
| 35 | | 0, i => Fin.elim0 i |
| 36 | | n + 1, i => Fin.cases (pointTupleHead X n) |
| 37 | (fun j => pointTupleTail X n ≫ pointTupleProjection n j) i |
| 38 | |
| 39 | def pointTupleLift {T : Over S} : (n : ℕ) → (Fin n → (T ⟶ X)) → (T ⟶ LevelCover.pointTuple X n) |
| 40 | | 0, _ => Over.homMk T.hom |
| 41 | | n + 1, v => Over.homMk |
| 42 | (pullback.lift (pointTupleLift n (fun i => v i.succ)).left (v 0).left (by simp)) (by |
| 43 | change pullback.lift _ _ _ ≫ |
| 44 | (pullback.fst (LevelCover.pointTuple X n).hom X.hom ≫ (LevelCover.pointTuple X n).hom) = T.hom |
| 45 | rw [pullback.lift_fst_assoc] |
| 46 | exact (pointTupleLift n (fun i => v i.succ)).w) |
| 47 | |
| 48 | @[simp] theorem pointTupleLift_projection {T : Over S} (n : ℕ) (v : Fin n → (T ⟶ X)) |
| 49 | (i : Fin n) : LevelCover.pointTupleLift X n v ≫ LevelCover.pointTupleProjection X n i = v i := by |
| 50 | induction n with |
| 51 | | zero => exact Fin.elim0 i |
| 52 | | succ n ih => |
| 53 | refine Fin.cases ?_ (fun j => ?_) i |
| 54 | · apply Over.OverMorphism.ext |
| 55 | exact pullback.lift_snd _ _ _ |
| 56 | · change LevelCover.pointTupleLift X (n + 1) v ≫ |
| 57 | (pointTupleTail X n ≫ LevelCover.pointTupleProjection X n j) = v j.succ |
| 58 | rw [← Category.assoc] |
| 59 | have ht : LevelCover.pointTupleLift X (n + 1) v ≫ pointTupleTail X n = |
| 60 | LevelCover.pointTupleLift X n (fun i => v i.succ) := by |
| 61 | apply Over.OverMorphism.ext |
| 62 | exact pullback.lift_fst _ _ _ |
| 63 | rw [ht] |
| 64 | exact ih (fun i => v i.succ) j |
| 65 | |
| 66 | theorem pointTuple_hom_ext {T : Over S} (n : ℕ) (f h : T ⟶ LevelCover.pointTuple X n) |
| 67 | (heq : ∀ i, f ≫ LevelCover.pointTupleProjection X n i = h ≫ LevelCover.pointTupleProjection X n i) : f = h := by |
| 68 | induction n with |
| 69 | | zero => |
| 70 | apply Over.OverMorphism.ext |
| 71 | exact (Category.comp_id f.left).symm.trans |
| 72 | (f.w.trans (h.w.symm.trans (Category.comp_id h.left))) |
| 73 | | succ n ih => |
| 74 | apply Over.OverMorphism.ext |
| 75 | apply pullback.hom_ext |
| 76 | · exact congrArg (fun q => q.left) (ih (f ≫ pointTupleTail X n) |
| 77 | (h ≫ pointTupleTail X n) (fun i => by |
| 78 | have hi := heq i.succ |
| 79 | change f ≫ (pointTupleTail X n ≫ LevelCover.pointTupleProjection X n i) = |
| 80 | h ≫ (pointTupleTail X n ≫ LevelCover.pointTupleProjection X n i) at hi |
| 81 | simpa only [Category.assoc] using hi)) |
| 82 | · exact congrArg (fun q => q.left) (heq 0) |
| 83 | |
| 84 | def pointTupleProductIso (n : ℕ) : LevelCover.pointTuple X n ≅ Limits.piObj (fun _ : Fin n => X) where |
| 85 | hom := Pi.lift (LevelCover.pointTupleProjection X n) |
| 86 | inv := LevelCover.pointTupleLift X n (fun i => Pi.π (fun _ : Fin n => X) i) |
| 87 | hom_inv_id := by |
| 88 | apply pointTuple_hom_ext |
| 89 | intro i |
| 90 | simp only [Category.assoc, pointTupleLift_projection, Pi.lift_comp_π, Category.id_comp] |
| 91 | inv_hom_id := by |
| 92 | apply Pi.hom_ext |
| 93 | intro i |
| 94 | simp only [Category.assoc, Pi.lift_comp_π, pointTupleLift_projection, Category.id_comp] |
| 95 | |
| 96 | theorem pointTuple_etale [Etale X.hom] (n : ℕ) : Etale (LevelCover.pointTuple X n).hom := by |
| 97 | induction n with |
| 98 | | zero => change Etale (𝟙 S); infer_instance |
| 99 | | succ n ih => |
| 100 | have := ih |
| 101 | change Etale (pullback.fst (LevelCover.pointTuple X n).hom X.hom ≫ (LevelCover.pointTuple X n).hom) |
| 102 | infer_instance |
| 103 | |
| 104 | theorem pointTuple_finite [IsFinite X.hom] (n : ℕ) : IsFinite (LevelCover.pointTuple X n).hom := by |
| 105 | induction n with |
| 106 | | zero => change IsFinite (𝟙 S); infer_instance |
| 107 | | succ n ih => |
| 108 | have := ih |
| 109 | change IsFinite (pullback.fst (LevelCover.pointTuple X n).hom X.hom ≫ (LevelCover.pointTuple X n).hom) |
| 110 | infer_instance |
| 111 | |
| 112 | theorem finite_product_etale [Etale X.hom] (n : ℕ) : |
| 113 | Etale (Limits.piObj (fun _ : Fin n => X)).hom := by |
| 114 | have := pointTuple_etale X n |
| 115 | let e := pointTupleProductIso X n |
| 116 | have : IsIso e.inv.left := inferInstanceAs (IsIso (((Over.forget S).mapIso e).inv)) |
| 117 | rw [← e.inv.w] |
| 118 | infer_instance |
| 119 | |
| 120 | theorem finite_product_finite [IsFinite X.hom] (n : ℕ) : |
| 121 | IsFinite (Limits.piObj (fun _ : Fin n => X)).hom := by |
| 122 | have := pointTuple_finite X n |
| 123 | let e := pointTupleProductIso X n |
| 124 | have : IsIso e.inv.left := inferInstanceAs (IsIso (((Over.forget S).mapIso e).inv)) |
| 125 | rw [← e.inv.w] |
| 126 | infer_instance |
| 127 | |
| 128 | end Products |
| 129 | |
| 130 | /-- Equalizers with an unramified, locally finite-type target are open: |
| 131 | they are base changes of its open diagonal. -/ |
| 132 | theorem equalizer_open {X Y : Over S} [FormallyUnramified Y.hom] |
| 133 | [LocallyOfFiniteType Y.hom] (f h : X ⟶ Y) : |
| 134 | IsOpenImmersion (equalizer.ι f h).left := by |
| 135 | refine MorphismProperty.of_isPullback |
| 136 | ((Limits.isPullback_equalizer_prod f h).map (Over.forget _)).flip ?_ |
| 137 | change IsOpenImmersion (Limits.prod.lift (𝟙 Y) (𝟙 Y)).left |
| 138 | rw [← MorphismProperty.cancel_right_of_respectsIso @IsOpenImmersion _ |
| 139 | (Over.prodLeftIsoPullback Y Y).hom] |
| 140 | convert! (inferInstance : IsOpenImmersion (pullback.diagonal Y.hom)) |
| 141 | ext1 <;> simp [← Over.comp_left] |
| 142 | |
| 143 | variable {g N : ℕ} (B : HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 144 | |
| 145 | def torsionRepresentable : (B.torsionFunctor N ⋙ forget GrpCat).RepresentableBy (Level.Cover.LevelCover.torsion B N) where |
| 146 | homEquiv := Level.Cover.LevelCover.torsionPointsEquiv B N _ |
| 147 | homEquiv_comp f x := by apply Subtype.ext; exact Category.assoc _ _ _ |
| 148 | |
| 149 | /-- Identify the equalizer presentation with HilbertConstruction's zero-fiber presentation |
| 150 | using their proved universal properties. -/ |
| 151 | def torsionModelIso : Level.Cover.LevelCover.torsion B N ≅ B.torsionScheme N := |
| 152 | (LevelCover.torsionRepresentable B).uniqueUpToIso (B.torsionRepresentable N) |
| 153 | |
| 154 | theorem torsionTuples_etale [Etale (B.torsionScheme N).hom] : Etale (Level.Cover.LevelCover.torsionTuples B N).hom := by |
| 155 | let e := torsionModelIso (N := N) B |
| 156 | have : IsIso e.hom.left := inferInstanceAs (IsIso (((Over.forget S).mapIso e).hom)) |
| 157 | have : Etale (Level.Cover.LevelCover.torsion B N).hom := by rw [← e.hom.w]; infer_instance |
| 158 | exact finite_product_etale (Level.Cover.LevelCover.torsion B N) (2 * g) |
| 159 | |
| 160 | theorem torsionTuples_finite [IsFinite (B.torsionScheme N).hom] : |
| 161 | IsFinite (Level.Cover.LevelCover.torsionTuples B N).hom := by |
| 162 | let e := torsionModelIso (N := N) B |
| 163 | have : IsIso e.hom.left := inferInstanceAs (IsIso (((Over.forget S).mapIso e).hom)) |
| 164 | have : IsFinite (Level.Cover.LevelCover.torsion B N).hom := by rw [← e.hom.w]; infer_instance |
| 165 | exact finite_product_finite (Level.Cover.LevelCover.torsion B N) (2 * g) |
| 166 | |
| 167 | /-- Any open frame locus in etale torsion tuples is etale over the base. -/ |
| 168 | theorem frameScheme_etale [Etale (B.torsionScheme N).hom] : Etale (Level.Cover.LevelCover.frameScheme B N).hom := by |
| 169 | have := torsionTuples_etale (N := N) B |
| 170 | rw [← (Level.Cover.LevelCover.frameInclusion B N).w] |
| 171 | infer_instance |
| 172 | |
| 173 | theorem relation_pow (c : Fin (2 * g) → ZMod N) : Level.Cover.LevelCover.relation B N c ^ N = 1 := by |
| 174 | unfold Level.Cover.LevelCover.relation |
| 175 | rw [← Finset.prod_pow] |
| 176 | have h (i : Fin (2 * g)) : (Level.Cover.LevelCover.coordinate B N i ^ (c i).val) ^ N = 1 := by |
| 177 | rw [← pow_mul, Nat.mul_comm, pow_mul, Level.Cover.LevelCover.coordinate_pow, one_pow] |
| 178 | simp only [h, Finset.prod_const_one] |
| 179 | |
| 180 | def relationTorsion (c : Fin (2 * g) → ZMod N) : Level.Cover.LevelCover.torsionTuples B N ⟶ B.torsionScheme N := |
| 181 | (B.torsionSchemePointsEquiv N _).symm ⟨Level.Cover.LevelCover.relation B N c, relation_pow B c⟩ |
| 182 | |
| 183 | def zeroTorsion : Level.Cover.LevelCover.torsionTuples B N ⟶ B.torsionScheme N := |
| 184 | (B.torsionSchemePointsEquiv N _).symm ⟨1, one_pow N⟩ |
| 185 | |
| 186 | @[simp] theorem relationTorsion_inclusion (c : Fin (2 * g) → ZMod N) : |
| 187 | relationTorsion B c ≫ B.torsionInclusion N = Level.Cover.LevelCover.relation B N c := |
| 188 | congrArg Subtype.val ((B.torsionSchemePointsEquiv N _).apply_symm_apply _) |
| 189 | |
| 190 | @[simp] theorem zeroTorsion_inclusion : zeroTorsion (N := N) B ≫ B.torsionInclusion N = 1 := |
| 191 | congrArg Subtype.val ((B.torsionSchemePointsEquiv N _).apply_symm_apply _) |
| 192 | |
| 193 | /-- The relation locus can be computed inside the finite torsion scheme, |
| 194 | which gives its open as well as its closed nature. -/ |
| 195 | def relationZeroTorsionIso (c : Fin (2 * g) → ZMod N) : |
| 196 | equalizer (Level.Cover.LevelCover.relation B N c) (1 : Level.Cover.LevelCover.torsionTuples B N ⟶ B.scheme) ≅ |
| 197 | equalizer (relationTorsion B c) (zeroTorsion B) where |
| 198 | hom := equalizer.lift (equalizer.ι (Level.Cover.LevelCover.relation B N c) (1 : Level.Cover.LevelCover.torsionTuples B N ⟶ B.scheme)) (by |
| 199 | apply (B.torsionSchemePointsEquiv N _).injective |
| 200 | apply Subtype.ext |
| 201 | change ((equalizer.ι (Level.Cover.LevelCover.relation B N c) 1 ≫ relationTorsion B c) ≫ B.torsionInclusion N) = |
| 202 | ((equalizer.ι (Level.Cover.LevelCover.relation B N c) 1 ≫ zeroTorsion B) ≫ B.torsionInclusion N) |
| 203 | rw [Category.assoc, Category.assoc, relationTorsion_inclusion, zeroTorsion_inclusion] |
| 204 | exact equalizer.condition _ _) |
| 205 | inv := equalizer.lift (equalizer.ι (relationTorsion B c) (zeroTorsion B)) (by |
| 206 | have h := congrArg (fun f => f ≫ B.torsionInclusion N) |
| 207 | (equalizer.condition (relationTorsion B c) (zeroTorsion B)) |
| 208 | simpa only [Category.assoc, relationTorsion_inclusion, zeroTorsion_inclusion] using h) |
| 209 | hom_inv_id := by |
| 210 | apply equalizer.hom_ext |
| 211 | simp only [Category.assoc, equalizer.lift_ι, Category.id_comp] |
| 212 | inv_hom_id := by |
| 213 | apply equalizer.hom_ext |
| 214 | simp only [Category.assoc, equalizer.lift_ι, Category.id_comp] |
| 215 | |
| 216 | theorem relationZeroInclusion_open [Etale (B.torsionScheme N).hom] |
| 217 | (c : Fin (2 * g) → ZMod N) : IsOpenImmersion (Level.Cover.LevelCover.relationZeroInclusion B N c).left := by |
| 218 | let e := relationZeroTorsionIso B c |
| 219 | have : IsIso e.hom.left := inferInstanceAs (IsIso (((Over.forget S).mapIso e).hom)) |
| 220 | have := equalizer_open (relationTorsion B c) (zeroTorsion B) |
| 221 | have heOpen : IsOpenImmersion e.hom.left := inferInstance |
| 222 | have hcomp : IsOpenImmersion |
| 223 | (e.hom.left ≫ (equalizer.ι (relationTorsion B c) (zeroTorsion B)).left) := inferInstance |
| 224 | have h : e.hom ≫ equalizer.ι (relationTorsion B c) (zeroTorsion B) = |
| 225 | Level.Cover.LevelCover.relationZeroInclusion B N c := equalizer.lift_ι _ _ |
| 226 | convert! hcomp using 1 |
| 227 | exact congrArg (fun f => f.left) h.symm |
| 228 | |
| 229 | /-- There are only finitely many relation conditions at positive level, |
| 230 | and each is clopen when torsion is etale. -/ |
| 231 | theorem frameOpen_isClosed [NeZero N] [Etale (B.torsionScheme N).hom] : |
| 232 | IsClosed (Level.Cover.LevelCover.frameOpen B N : Set (Level.Cover.LevelCover.torsionTuples B N).left) := by |
| 233 | unfold Level.Cover.LevelCover.frameOpen |
| 234 | rw [TopologicalSpace.Opens.coe_iInf] |
| 235 | apply isClosed_iInter |
| 236 | intro c |
| 237 | by_cases hc : c = 0 |
| 238 | · simp [hc] |
| 239 | · rw [iInf_pos hc] |
| 240 | have := relationZeroInclusion_open B c |
| 241 | exact (IsOpenImmersion.isOpen_range (Level.Cover.LevelCover.relationZeroInclusion B N c).left).isClosed_compl |
| 242 | |
| 243 | theorem frameInclusion_closed [NeZero N] [Etale (B.torsionScheme N).hom] : |
| 244 | IsClosedImmersion (Level.Cover.LevelCover.frameInclusion B N).left := by |
| 245 | apply IsClosedImmersion.of_isPreimmersion |
| 246 | change IsClosed (Set.range (Level.Cover.LevelCover.frameOpen B N).ι) |
| 247 | rw [Scheme.Opens.range_ι] |
| 248 | exact frameOpen_isClosed B |
| 249 | |
| 250 | /-- The constructed frame locus is finite etale whenever the actual |
| 251 | torsion kernel is finite etale. This does not assume representability of |
| 252 | the full-level moduli functor. -/ |
| 253 | theorem frameScheme_finite_etale [NeZero N] |
| 254 | [IsFinite (B.torsionScheme N).hom] [Etale (B.torsionScheme N).hom] : |
| 255 | IsFinite (Level.Cover.LevelCover.frameScheme B N).hom ∧ Etale (Level.Cover.LevelCover.frameScheme B N).hom := by |
| 256 | have := torsionTuples_finite (N := N) B |
| 257 | have := frameInclusion_closed (N := N) B |
| 258 | refine ⟨?_, frameScheme_etale B⟩ |
| 259 | rw [← (Level.Cover.LevelCover.frameInclusion B N).w] |
| 260 | infer_instance |
| 261 | |
| 262 | /-- On a base where a full level is already chosen, the frame locus is |
| 263 | a finite etale surjective cover, with a constructed section. -/ |
| 264 | theorem frameScheme_split_cover [NeZero N] (α : B.FullLevel N) : |
| 265 | IsFinite (Level.Cover.LevelCover.frameScheme B N).hom ∧ Etale (Level.Cover.LevelCover.frameScheme B N).hom ∧ |
| 266 | Surjective (Level.Cover.LevelCover.frameScheme B N).hom := by |
| 267 | have := α.torsion_finite |
| 268 | have := α.torsion_etale |
| 269 | obtain ⟨hf, he⟩ := frameScheme_finite_etale (N := N) B |
| 270 | exact ⟨hf, he, Map.LevelCover.frame_projection_surjective_of_fullLevel B α⟩ |
| 271 | |
| 272 | end |
| 273 | |
| 274 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Frame.Finiteness.LevelCover |