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.OrdinaryLocus.Openness.DefinitionsTorsion |
| 2 | import Mathlib.GroupTheory.Coset.Basic |
| 3 | |
| 4 | /-! # Multiplication -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.Multiplication.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Finiteness of multiplication maps from finiteness of their torsion kernels. |
| 12 | These are supporting results for Openness, independent of the openness statement. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | |
| 18 | variable {S : Scheme} |
| 19 | |
| 20 | /-- A field-valued point over S is a rational point after base change. -/ |
| 21 | def fieldPointPullbackEquiv (T : Over S) |
| 22 | {K : Type*} [Field K] (x : Spec (.of K) ⟶ S) : |
| 23 | (Over.mk x ⟶ T) ≃ |
| 24 | {p : Spec (.of K) ⟶ pullback T.hom x // |
| 25 | p ≫ pullback.snd T.hom x = 𝟙 _} where |
| 26 | toFun f := ⟨pullback.lift f.left (𝟙 _) (by simp), pullback.lift_snd _ _ _⟩ |
| 27 | invFun p := Over.homMk (p.val ≫ pullback.fst T.hom x) (by |
| 28 | change (p.val ≫ pullback.fst T.hom x) ≫ T.hom = x |
| 29 | rw [Category.assoc, pullback.condition, ← Category.assoc, p.prop, Category.id_comp]) |
| 30 | left_inv f := by |
| 31 | apply Over.OverMorphism.ext |
| 32 | exact pullback.lift_fst _ _ _ |
| 33 | right_inv p := by |
| 34 | apply Subtype.ext |
| 35 | apply pullback.hom_ext |
| 36 | · exact pullback.lift_fst _ _ _ |
| 37 | · exact (pullback.lift_snd _ _ _).trans p.prop.symm |
| 38 | |
| 39 | /-- A finite S-scheme has finitely many points valued in any algebraically |
| 40 | closed field over S. -/ |
| 41 | theorem finite_fieldPoints_of_isFinite (T : Over S) [IsFinite T.hom] |
| 42 | {K : Type*} [Field K] [IsAlgClosed K] (x : Spec (.of K) ⟶ S) : |
| 43 | Finite (Over.mk x ⟶ T) := by |
| 44 | have h := (pullback.snd T.hom x).finite_preimage |
| 45 | (Set.toFinite (Set.univ : Set (Spec (.of K)))) |
| 46 | simp only [Set.preimage_univ] at h |
| 47 | have : Finite ↥(pullback T.hom x) := Set.finite_univ_iff.mp h |
| 48 | exact Finite.of_equiv _ |
| 49 | ((fieldPointPullbackEquiv T x).trans (pointEquivClosedPoint (pullback.snd T.hom x))).symm |
| 50 | |
| 51 | variable (A : Over S) [GrpObj A] [IsCommMonObj A] |
| 52 | |
| 53 | /-- Multiplication by n as a morphism of S-schemes. -/ |
| 54 | abbrev multiplicationMap (n : ℕ) : A ⟶ A := (𝟙 A) ^ n |
| 55 | |
| 56 | instance multiplicationMap_isProper (n : ℕ) [IsProper A.hom] : |
| 57 | IsProper (multiplicationMap A n).left := by |
| 58 | have : IsProper ((multiplicationMap A n).left ≫ A.hom) := by |
| 59 | rw [Over.w] |
| 60 | infer_instance |
| 61 | exact IsProper.of_comp _ A.hom |
| 62 | |
| 63 | /-- Each nonempty power fiber of the point group is a translate of the kernel. -/ |
| 64 | theorem finite_powerFiber_of_finite_torsionPoints (n : ℕ) (T : Over S) |
| 65 | [Finite (T ⟶ DefinitionsTorsion.Construction.torsionScheme A n)] (y : T ⟶ A) : |
| 66 | Finite {x : T ⟶ A // x ^ n = y} := by |
| 67 | let f : (T ⟶ A) →* (T ⟶ A) := |
| 68 | { toFun := fun x => x ^ n |
| 69 | map_one' := one_pow n |
| 70 | map_mul' := fun x z => mul_pow x z n } |
| 71 | have : Finite f.ker := Finite.of_equiv _ (DefinitionsTorsion.Construction.torsionPointsEquiv A n T) |
| 72 | by_cases hy : ∃ x, f x = y |
| 73 | · obtain ⟨x, rfl⟩ := hy |
| 74 | exact Finite.of_equiv _ (f.fiberEquivKer x).symm |
| 75 | · have : IsEmpty {x : T ⟶ A // x ^ n = y} := |
| 76 | ⟨fun x => hy ⟨x.val, x.prop⟩⟩ |
| 77 | infer_instance |
| 78 | |
| 79 | /-- Points in a geometric fiber of multiplication inject into a power fiber |
| 80 | of the group of S-valued morphisms. -/ |
| 81 | def multiplicationFiberPointEmbedding (n : ℕ) {P : Scheme} (a : P ⟶ A.left) : |
| 82 | (Over.mk a ⟶ Over.mk (multiplicationMap A n).left) ↪ |
| 83 | {x : Over.mk (a ≫ A.hom) ⟶ A // |
| 84 | x ^ n = Over.homMk a (by rfl)} where |
| 85 | toFun f := by |
| 86 | let x : Over.mk (a ≫ A.hom) ⟶ A := Over.homMk f.left (by |
| 87 | change f.left ≫ A.hom = a ≫ A.hom |
| 88 | calc |
| 89 | f.left ≫ A.hom = f.left ≫ ((multiplicationMap A n).left ≫ A.hom) := |
| 90 | congrArg (fun g => f.left ≫ g) (multiplicationMap A n).w.symm |
| 91 | _ = (f.left ≫ (multiplicationMap A n).left) ≫ A.hom := |
| 92 | (Category.assoc _ _ _).symm |
| 93 | _ = a ≫ A.hom := congrArg (fun g => g ≫ A.hom) f.w) |
| 94 | refine ⟨x, ?_⟩ |
| 95 | have h : x ≫ multiplicationMap A n = |
| 96 | (Over.homMk a (by rfl) : Over.mk (a ≫ A.hom) ⟶ A) := by |
| 97 | apply Over.OverMorphism.ext |
| 98 | exact f.w |
| 99 | simpa only [multiplicationMap, MonObj.comp_pow, Category.comp_id] using h |
| 100 | inj' := by |
| 101 | intro f g h |
| 102 | apply Over.OverMorphism.ext |
| 103 | exact congrArg (fun x => x.val.left) h |
| 104 | |
| 105 | /-- When the torsion scheme is finite, multiplication has finite geometric fibers. -/ |
| 106 | theorem finite_multiplication_geometric_points (n : ℕ) |
| 107 | [IsFinite (DefinitionsTorsion.Construction.torsionScheme A n).hom] (y : A.left) : |
| 108 | Finite (DefinitionsTorsion.geometricPoint A.left y ⟶ |
| 109 | Over.mk (multiplicationMap A n).left) := by |
| 110 | let a := (DefinitionsTorsion.geometricPoint A.left y).hom |
| 111 | have : Finite (Over.mk (a ≫ A.hom) ⟶ DefinitionsTorsion.Construction.torsionScheme A n) := |
| 112 | finite_fieldPoints_of_isFinite (DefinitionsTorsion.Construction.torsionScheme A n) |
| 113 | (K := AlgebraicClosure (A.left.residueField y)) (a ≫ A.hom) |
| 114 | have := finite_powerFiber_of_finite_torsionPoints A n |
| 115 | (Over.mk (a ≫ A.hom)) (Over.homMk a (by rfl)) |
| 116 | exact Finite.of_injective (multiplicationFiberPointEmbedding A n a) |
| 117 | (multiplicationFiberPointEmbedding A n a).injective |
| 118 | |
| 119 | /-- A proper commutative group scheme has finite multiplication-by-n |
| 120 | whenever its n-torsion scheme is finite over the base. -/ |
| 121 | theorem isFinite_multiplication_of_isFinite_torsion (n : ℕ) |
| 122 | [IsProper A.hom] [IsFinite (DefinitionsTorsion.Construction.torsionScheme A n).hom] : |
| 123 | IsFinite (multiplicationMap A n).left := by |
| 124 | have : LocallyQuasiFinite (multiplicationMap A n).left := by |
| 125 | apply LocallyQuasiFinite.of_finite_preimage_singleton |
| 126 | intro y |
| 127 | have := finite_multiplication_geometric_points A n y |
| 128 | have : LocallyOfFiniteType (Over.mk (multiplicationMap A n).left).hom := by |
| 129 | change LocallyOfFiniteType (multiplicationMap A n).left |
| 130 | infer_instance |
| 131 | exact DefinitionsTorsion.Construction.finite_preimage_of_finite_geometric_points |
| 132 | (Over.mk (multiplicationMap A n).left) y |
| 133 | exact IsFinite.of_isProper_of_locallyQuasiFinite _ |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.Multiplication.Construction |