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.AbelianScheme.TorsionQuotient.SubgroupFunctor |
| 2 | import Mathlib.CategoryTheory.Monoidal.Cartesian.CommGrp_ |
| 3 | |
| 4 | /-! # Subgroup -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Subgroup.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | A geometric model of a relative subgroup carries its canonical commutative |
| 12 | group-scheme structure over the parameter scheme. The group laws are obtained |
| 13 | from the actual subgroup presheaf by Yoneda, not included as an extra field |
| 14 | of the geometric model. The iterated-slice equivalence then regards the result |
| 15 | as a group scheme over the underlying parameter scheme. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | open scoped _root_.CategoryTheory.MonObj |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable {S : Scheme.{u}} {A P : Over S} [GrpObj A] [IsCommMonObj A] |
| 24 | |
| 25 | local instance : CartesianMonoidalCategory (Over P) := Over.cartesianMonoidalCategory P |
| 26 | local instance : BraidedCategory (Over P) := Over.braidedCategory P |
| 27 | |
| 28 | /-- Pullback of a section of the relative subgroup along a parameter map. -/ |
| 29 | def relativePointsPullback (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) |
| 30 | {X Y : Over P} (f : X ⟶ Y) : |
| 31 | F.points Y.left Y.hom →* F.points X.left X.hom where |
| 32 | toFun a := ⟨f.left ≫ a.val, by |
| 33 | have h := F.naturality f.left Y.hom a.property |
| 34 | rw [f.w] at h |
| 35 | exact h⟩ |
| 36 | map_one' := by |
| 37 | apply Subtype.ext |
| 38 | change f.left ≫ (1 : Y.left ⟶ A) = 1 |
| 39 | exact MonObj.comp_one f.left |
| 40 | map_mul' a b := by |
| 41 | apply Subtype.ext |
| 42 | change f.left ≫ (a.val * b.val) = (f.left ≫ a.val) * (f.left ≫ b.val) |
| 43 | rw [MonObj.comp_mul] |
| 44 | |
| 45 | /-- The genuine presheaf of commutative groups of a relative subgroup. -/ |
| 46 | def relativePointGroups (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) : |
| 47 | (Over P)ᵒᵖ ⥤ CommGrpCat.{u} where |
| 48 | obj X := CommGrpCat.of (F.points X.unop.left X.unop.hom) |
| 49 | map f := CommGrpCat.ofHom (relativePointsPullback F f.unop) |
| 50 | map_id X := by |
| 51 | apply CommGrpCat.hom_ext |
| 52 | apply MonoidHom.ext |
| 53 | intro a |
| 54 | apply Subtype.ext |
| 55 | exact Category.id_comp a.val |
| 56 | map_comp f g := by |
| 57 | apply CommGrpCat.hom_ext |
| 58 | apply MonoidHom.ext |
| 59 | intro a |
| 60 | apply Subtype.ext |
| 61 | exact Category.assoc g.unop.left f.unop.left a.val |
| 62 | |
| 63 | /-- The model's universal property is a natural representation of the |
| 64 | relative subgroup presheaf on the parameter's slice category. -/ |
| 65 | def relativePointGroups_representable |
| 66 | (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) (R : F.Model) : |
| 67 | (relativePointGroups F ⋙ forget CommGrpCat).RepresentableBy (Over.mk R.toBase) := by |
| 68 | let toPoint {X : Over P} (h : X ⟶ Over.mk R.toBase) : F.points X.left X.hom := |
| 69 | ⟨h.left ≫ R.toGroup, (R.points_iff X.left X.hom _).mpr ⟨h.left, h.w, rfl⟩⟩ |
| 70 | have hinj (X : Over P) : Function.Injective (@toPoint X) := by |
| 71 | intro h k hhk |
| 72 | apply Over.OverMorphism.ext |
| 73 | apply R.jointly_monic X.left |
| 74 | · exact h.w.trans k.w.symm |
| 75 | · exact congrArg Subtype.val hhk |
| 76 | have hsurj (X : Over P) : Function.Surjective (@toPoint X) := by |
| 77 | intro a |
| 78 | obtain ⟨h, hbase, hgroup⟩ := (R.points_iff X.left X.hom a.val).mp a.property |
| 79 | exact ⟨Over.homMk h hbase, Subtype.ext hgroup⟩ |
| 80 | refine { |
| 81 | homEquiv := fun {X} => Equiv.ofBijective (@toPoint X) ⟨hinj X, hsurj X⟩ |
| 82 | homEquiv_comp := ?_ |
| 83 | } |
| 84 | intro X X' f g |
| 85 | apply Subtype.ext |
| 86 | change (f.left ≫ g.left) ≫ R.toGroup = f.left ≫ (g.left ≫ R.toGroup) |
| 87 | exact Category.assoc f.left g.left R.toGroup |
| 88 | |
| 89 | /-- Commutativity and the group laws are constructed from the represented |
| 90 | point groups, using the standard Yoneda theorem for group objects. -/ |
| 91 | def relativeModelCommGroup |
| 92 | (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) (R : F.Model) : CommGrp (Over P) := by |
| 93 | letI : CommGrpObj (Over.mk R.toBase) := |
| 94 | CommGrpObj.ofRepresentableBy (Over.mk R.toBase) (relativePointGroups F) |
| 95 | (relativePointGroups_representable F R) |
| 96 | exact CommGrp.mk (Over.mk R.toBase) |
| 97 | |
| 98 | /-- The constructed relative subgroup is an actual commutative group |
| 99 | scheme over the underlying parameter scheme. -/ |
| 100 | def subgroupGroupScheme |
| 101 | (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) (R : F.Model) : CommGrp (Over P.left) := by |
| 102 | let e := Over.iteratedSliceEquiv P |
| 103 | letI : e.functor.Braided := Functor.Braided.ofChosenFiniteProducts e.functor |
| 104 | exact e.functor.mapCommGrp.obj (relativeModelCommGroup F R) |
| 105 | |
| 106 | /-- The group construction keeps the original finite subgroup scheme |
| 107 | and its structure map; no replacement by a different object is made. -/ |
| 108 | theorem subgroupGroupScheme_structureMap |
| 109 | (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) (R : F.Model) : |
| 110 | (subgroupGroupScheme F R).X.hom = R.toBase.left := rfl |
| 111 | |
| 112 | theorem subgroupGroupScheme_finiteLocallyFree |
| 113 | (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) (R : F.Model) : |
| 114 | IsFinite (subgroupGroupScheme F R).X.hom ∧ |
| 115 | Flat (subgroupGroupScheme F R).X.hom ∧ |
| 116 | LocallyOfFinitePresentation (subgroupGroupScheme F R).X.hom := by |
| 117 | rw [subgroupGroupScheme_structureMap] |
| 118 | exact ⟨R.finite, R.flat, R.finitePresentation⟩ |
| 119 | |
| 120 | set_option backward.isDefEq.respectTransparency false in |
| 121 | /-- Scheme-theoretic n-torsion of the modeled relative subgroup, obtained |
| 122 | from its actual point groups rather than just its geometric points. -/ |
| 123 | theorem relativeModelCommGroup_killed |
| 124 | (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) (R : F.Model) |
| 125 | (n : ℕ) (hkilled : F.KilledBy n) : |
| 126 | (𝟙 (relativeModelCommGroup F R).X : |
| 127 | (relativeModelCommGroup F R).X ⟶ (relativeModelCommGroup F R).X) ^ n = 1 := by |
| 128 | let G := relativeModelCommGroup F R |
| 129 | let e := yonedaGrpObjIsoOfRepresentableBy G.X |
| 130 | (relativePointGroups F ⋙ forget₂ CommGrpCat GrpCat) |
| 131 | (relativePointGroups_representable F R) |
| 132 | apply (e.app (Opposite.op G.X)).groupIsoToMulEquiv.injective |
| 133 | change (e.hom.app (Opposite.op G.X)).hom ((𝟙 G.X) ^ n) = |
| 134 | (e.hom.app (Opposite.op G.X)).hom 1 |
| 135 | calc |
| 136 | (e.hom.app (Opposite.op G.X)).hom ((𝟙 G.X) ^ n) = |
| 137 | ((e.hom.app (Opposite.op G.X)).hom (𝟙 G.X)) ^ n := |
| 138 | (e.hom.app (Opposite.op G.X)).hom.map_pow _ n |
| 139 | _ = 1 := by |
| 140 | apply Subtype.ext |
| 141 | change R.toGroup ^ n = 1 |
| 142 | exact R.toGroup_pow_eq_one hkilled |
| 143 | _ = (e.hom.app (Opposite.op G.X)).hom 1 := |
| 144 | (e.hom.app (Opposite.op G.X)).hom.map_one.symm |
| 145 | |
| 146 | open scoped _root_.CategoryTheory.Obj in |
| 147 | set_option backward.isDefEq.respectTransparency false in |
| 148 | /-- The corresponding commutative group scheme over the parameter is |
| 149 | killed by n as a scheme morphism. -/ |
| 150 | theorem subgroupGroupScheme_killed |
| 151 | (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A P) (R : F.Model) |
| 152 | (n : ℕ) (hkilled : F.KilledBy n) : |
| 153 | (𝟙 (subgroupGroupScheme F R).X : |
| 154 | (subgroupGroupScheme F R).X ⟶ (subgroupGroupScheme F R).X) ^ n = 1 := by |
| 155 | let e := Over.iteratedSliceEquiv P |
| 156 | let _ : e.functor.Braided := Functor.Braided.ofChosenFiniteProducts e.functor |
| 157 | let G := relativeModelCommGroup F R |
| 158 | let m : (G.X ⟶ G.X) →* (e.functor.obj G.X ⟶ e.functor.obj G.X) := |
| 159 | e.functor.homMonoidHom |
| 160 | have h := congrArg m (relativeModelCommGroup_killed F R n hkilled) |
| 161 | have hpow : (m (𝟙 G.X)) ^ n = 1 := by simpa only [map_pow, map_one] using h |
| 162 | change (e.functor.map (𝟙 G.X)) ^ n = 1 at hpow |
| 163 | rw [e.functor.map_id] at hpow |
| 164 | exact hpow |
| 165 | |
| 166 | end |
| 167 | |
| 168 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Subgroup.Construction |