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.TateComparison.Subgroups |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.SubgroupLocus |
| 3 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.GroupMaps |
| 4 | import Mathlib.CategoryTheory.Monoidal.Cartesian.CommGrp_ |
| 5 | |
| 6 | /-! # Relative Point Subgroups -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Convert TorsionQuotient's actual relative subgroup over the base into the TateComparison |
| 13 | point-subgroup interface. The finite etale group structure is constructed |
| 14 | on its representing scheme from the genuine subgroup presheaf. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 17 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 18 | |
| 19 | universe u |
| 20 | variable {S : Scheme.{u}} {g : ℕ} (A : AbelianModuli.HilbertConstruction.Abelian.Schemes.AbelianScheme g S) |
| 21 | |
| 22 | def RelativePointSubgroups.testToBase (T : Over S) : T ⟶ Over.mk (𝟙 S) := |
| 23 | Over.homMk T.hom (Category.comp_id _) |
| 24 | |
| 25 | theorem RelativePointSubgroups.testToBase_unique (T : Over S) (t : T ⟶ Over.mk (𝟙 S)) : t = RelativePointSubgroups.testToBase T := by |
| 26 | apply Over.OverMorphism.ext |
| 27 | change t.left = T.hom |
| 28 | have h := t.w |
| 29 | change t.left ≫ 𝟙 S = T.hom at h |
| 30 | exact (Category.comp_id t.left).symm.trans h |
| 31 | |
| 32 | def RelativePointSubgroups.relativeToPointSubgroup (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A.scheme (Over.mk (𝟙 S))) : Subgroups.PointSubgroup A where |
| 33 | atTest T := F.points T (RelativePointSubgroups.testToBase T) |
| 34 | pullback_mem {T U} f x hx := by |
| 35 | have h := F.naturality f (RelativePointSubgroups.testToBase U) hx |
| 36 | rwa [RelativePointSubgroups.testToBase_unique T (f ≫ RelativePointSubgroups.testToBase U)] at h |
| 37 | |
| 38 | def RelativePointSubgroups.pointToRelativeSubgroup (F : Subgroups.PointSubgroup A) : |
| 39 | TorsionQuotient.SubgroupFunctor.RelativeSubgroup A.scheme (Over.mk (𝟙 S)) where |
| 40 | points T _ := F.atTest T |
| 41 | naturality := by |
| 42 | intro T U f t x hx |
| 43 | exact F.pullback_mem f x hx |
| 44 | |
| 45 | theorem RelativePointSubgroups.relativeToPoint_pointToRelative (F : Subgroups.PointSubgroup A) : |
| 46 | RelativePointSubgroups.relativeToPointSubgroup A (RelativePointSubgroups.pointToRelativeSubgroup A F) = F := by |
| 47 | apply Subgroups.PointSubgroup.ext |
| 48 | intro T |
| 49 | rfl |
| 50 | |
| 51 | theorem RelativePointSubgroups.pointToRelative_relativeToPoint (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A.scheme (Over.mk (𝟙 S))) : |
| 52 | RelativePointSubgroups.pointToRelativeSubgroup A (RelativePointSubgroups.relativeToPointSubgroup A F) = F := by |
| 53 | ext T t x |
| 54 | change x ∈ F.points T (RelativePointSubgroups.testToBase T) ↔ x ∈ F.points T t |
| 55 | rw [RelativePointSubgroups.testToBase_unique T t] |
| 56 | |
| 57 | theorem RelativePointSubgroups.pointToRelative_hasModel (F : Subgroups.PointSubgroup A) (hF : F.HasFiniteEtaleModel) : |
| 58 | Nonempty (RelativePointSubgroups.pointToRelativeSubgroup A F).Model := by |
| 59 | obtain ⟨H, i, _, hi, hf, he, hpoints⟩ := hF |
| 60 | have : Mono i := hi |
| 61 | have : Etale H.X.hom := he |
| 62 | refine ⟨{ |
| 63 | carrier := H.X |
| 64 | toBase := RelativePointSubgroups.testToBase H.X |
| 65 | toGroup := i |
| 66 | finite := hf |
| 67 | flat := inferInstanceAs (Flat H.X.hom) |
| 68 | finitePresentation := inferInstanceAs (LocallyOfFinitePresentation H.X.hom) |
| 69 | jointly_monic := fun _ _ _ _ hab => (cancel_mono i).mp hab |
| 70 | points_iff := ?_ }⟩ |
| 71 | intro T t x |
| 72 | constructor |
| 73 | · intro hx |
| 74 | obtain ⟨f, hf⟩ := (hpoints T x).mp hx |
| 75 | exact ⟨f, (RelativePointSubgroups.testToBase_unique T _).trans (RelativePointSubgroups.testToBase_unique T t).symm, hf⟩ |
| 76 | · rintro ⟨f, _, hf⟩ |
| 77 | exact (hpoints T x).mpr ⟨f, hf⟩ |
| 78 | |
| 79 | section |
| 80 | |
| 81 | variable {A} |
| 82 | |
| 83 | def Subgroups.PointSubgroup.pointGroups (F : Subgroups.PointSubgroup A) : (Over S)ᵒᵖ ⥤ CommGrpCat.{u} where |
| 84 | obj T := CommGrpCat.of (F.atTest T.unop) |
| 85 | map f := CommGrpCat.ofHom { |
| 86 | toFun x := ⟨f.unop ≫ x.val, F.pullback_mem f.unop x.val x.property⟩ |
| 87 | map_one' := Subtype.ext (MonObj.comp_one _) |
| 88 | map_mul' x y := Subtype.ext (MonObj.comp_mul _ _ _) } |
| 89 | map_id T := by |
| 90 | apply CommGrpCat.hom_ext |
| 91 | apply MonoidHom.ext |
| 92 | intro x |
| 93 | exact Subtype.ext (Category.id_comp x.val) |
| 94 | map_comp f h := by |
| 95 | apply CommGrpCat.hom_ext |
| 96 | apply MonoidHom.ext |
| 97 | intro x |
| 98 | exact Subtype.ext (Category.assoc _ _ _) |
| 99 | |
| 100 | end |
| 101 | |
| 102 | variable (F : TorsionQuotient.SubgroupFunctor.RelativeSubgroup A.scheme (Over.mk (𝟙 S))) (R : F.Model) |
| 103 | |
| 104 | def RelativePointSubgroups.relativeToPointRepresentable : |
| 105 | ((RelativePointSubgroups.relativeToPointSubgroup A F).pointGroups ⋙ forget CommGrpCat).RepresentableBy R.carrier := by |
| 106 | let toPoint {T : Over S} (f : T ⟶ R.carrier) : (RelativePointSubgroups.relativeToPointSubgroup A F).atTest T := |
| 107 | ⟨f ≫ R.toGroup, (R.points_iff T (RelativePointSubgroups.testToBase T) _).mpr |
| 108 | ⟨f, RelativePointSubgroups.testToBase_unique T (f ≫ R.toBase), rfl⟩⟩ |
| 109 | have hinj (T : Over S) : Function.Injective (@toPoint T) := by |
| 110 | intro f h he |
| 111 | apply R.jointly_monic T f h |
| 112 | · exact (RelativePointSubgroups.testToBase_unique T _).trans (RelativePointSubgroups.testToBase_unique T _).symm |
| 113 | · exact congrArg Subtype.val he |
| 114 | have hsurj (T : Over S) : Function.Surjective (@toPoint T) := by |
| 115 | intro x |
| 116 | obtain ⟨f, _, hf⟩ := (R.points_iff T (RelativePointSubgroups.testToBase T) x.val).mp x.property |
| 117 | exact ⟨f, Subtype.ext hf⟩ |
| 118 | exact { |
| 119 | homEquiv := Equiv.ofBijective toPoint ⟨hinj _, hsurj _⟩ |
| 120 | homEquiv_comp f h := Subtype.ext (Category.assoc _ _ _) } |
| 121 | |
| 122 | def RelativePointSubgroups.relativeToPointGroup : CommGrp (Over S) := by |
| 123 | letI := CommGrpObj.ofRepresentableBy R.carrier (RelativePointSubgroups.relativeToPointSubgroup A F).pointGroups |
| 124 | (RelativePointSubgroups.relativeToPointRepresentable A F R) |
| 125 | exact CommGrp.mk R.carrier |
| 126 | |
| 127 | theorem RelativePointSubgroups.relativeToPointInclusion_isMonHom : |
| 128 | letI : GrpObj R.carrier := (RelativePointSubgroups.relativeToPointGroup A F R).grp |
| 129 | IsMonHom R.toGroup := by |
| 130 | let : GrpObj R.carrier := (RelativePointSubgroups.relativeToPointGroup A F R).grp |
| 131 | let e := yonedaGrpObjIsoOfRepresentableBy R.carrier |
| 132 | ((RelativePointSubgroups.relativeToPointSubgroup A F).pointGroups ⋙ forget₂ CommGrpCat GrpCat) |
| 133 | (RelativePointSubgroups.relativeToPointRepresentable A F R) |
| 134 | let pointMap (T : Over S) : (T ⟶ R.carrier) →* (T ⟶ A.scheme) := |
| 135 | ((RelativePointSubgroups.relativeToPointSubgroup A F).atTest T).subtype.comp ((e.hom.app (op T)).hom) |
| 136 | have hpoint (T : Over S) (x : T ⟶ R.carrier) : pointMap T x = x ≫ R.toGroup := rfl |
| 137 | apply IsogenyQuotient.GroupMaps.Construction.isMonHom_of_pointwise |
| 138 | · intro T |
| 139 | rw [← hpoint] |
| 140 | exact (pointMap T).map_one |
| 141 | · intro T x y |
| 142 | rw [← hpoint, ← hpoint, ← hpoint] |
| 143 | exact (pointMap T).map_mul x y |
| 144 | |
| 145 | include R in |
| 146 | theorem RelativePointSubgroups.relativeToPoint_hasFiniteEtaleModel (n : ℕ) (hk : F.KilledBy n) |
| 147 | (ht : Etale (TorsionQuotient.SubgroupFunctor.torsionScheme A.scheme n).hom) : |
| 148 | (RelativePointSubgroups.relativeToPointSubgroup A F).HasFiniteEtaleModel := by |
| 149 | let G := RelativePointSubgroups.relativeToPointGroup A F R |
| 150 | let : GrpObj R.carrier := G.grp |
| 151 | have hi : IsMonHom R.toGroup := RelativePointSubgroups.relativeToPointInclusion_isMonHom A F R |
| 152 | have hm : Mono R.toGroup := by |
| 153 | constructor |
| 154 | intro T f h he |
| 155 | exact R.jointly_monic T f h |
| 156 | ((RelativePointSubgroups.testToBase_unique T _).trans (RelativePointSubgroups.testToBase_unique T _).symm) he |
| 157 | have hstruct : R.toBase.left = R.carrier.hom := by |
| 158 | have h := R.toBase.w |
| 159 | change R.toBase.left ≫ 𝟙 S = R.carrier.hom at h |
| 160 | exact (Category.comp_id R.toBase.left).symm.trans h |
| 161 | have hf : IsFinite R.carrier.hom := hstruct ▸ R.finite |
| 162 | have he : Etale R.carrier.hom := hstruct ▸ IsogenyQuotient.SubgroupLocus.Construction.subgroup_model_etale F R n hk ht |
| 163 | refine ⟨G, R.toGroup, hi, hm, hf, he, ?_⟩ |
| 164 | intro T x |
| 165 | exact ⟨fun hx => (R.points_iff T (RelativePointSubgroups.testToBase T) x).mp hx |>.imp |
| 166 | (fun _ hf => hf.2), fun ⟨f, hf⟩ => (R.points_iff T (RelativePointSubgroups.testToBase T) x).mpr |
| 167 | ⟨f, RelativePointSubgroups.testToBase_unique T _, hf⟩⟩ |
| 168 | |
| 169 | end |
| 170 | |
| 171 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison |