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.EtaleDescentLocal |
| 2 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 3 | |
| 4 | /-! # Group Descent Is -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily.GroupDescentIs.GroupDescent |
| 11 | |
| 12 | /-! Effective descent preserves the actual group-scheme operations. |
| 13 | Faithfulness of monoidal pullback reflects the two group-map equations. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.Functor.LaxMonoidal |
| 17 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 18 | |
| 19 | theorem isMonHom_of_map {C D : Type*} [Category C] [Category D] |
| 20 | [MonoidalCategory C] [MonoidalCategory D] (F : C ⥤ D) [F.Monoidal] [F.Faithful] |
| 21 | {X Y : C} [MonObj X] [MonObj Y] (f : X ⟶ Y) [IsMonHom (F.map f)] : IsMonHom f where |
| 22 | one_hom := by |
| 23 | apply F.map_injective |
| 24 | apply (cancel_epi (ε F)).mp |
| 25 | have h := IsMonHom.one_hom (F.map f) |
| 26 | simpa only [Functor.obj.η_def, Category.assoc, F.map_comp] using h |
| 27 | mul_hom := by |
| 28 | apply F.map_injective |
| 29 | apply (cancel_epi (Functor.LaxMonoidal.μ F X X)).mp |
| 30 | have h := IsMonHom.mul_hom (F.map f) |
| 31 | simpa only [Functor.obj.μ_def, Category.assoc, Functor.LaxMonoidal.μ_natural_assoc, |
| 32 | F.map_comp] using h |
| 33 | |
| 34 | variable {S S' : Scheme.{0}} (u : S' ⟶ S) |
| 35 | [Flat u] [Surjective u] [LocallyOfFinitePresentation u] |
| 36 | {X Y : Over S} [GrpObj X] [GrpObj Y] |
| 37 | |
| 38 | /-- An overlap-compatible local group isomorphism descends uniquely as |
| 39 | an actual group-scheme isomorphism over the original base. -/ |
| 40 | theorem exists_unique_groupIso |
| 41 | (e : Grp.mk ((Over.pullback u).obj X) ≅ Grp.mk ((Over.pullback u).obj Y)) |
| 42 | (hh : EtaleDescentLocal.EtaleDescent.Compatible u e.hom.hom.hom) |
| 43 | (hi : EtaleDescentLocal.EtaleDescent.Compatible u e.inv.hom.hom) : |
| 44 | ∃! q : Grp.mk X ≅ Grp.mk Y, |
| 45 | (Over.pullback u).mapIso ((Grp.forget (Over S)).mapIso q) = |
| 46 | (Grp.forget (Over S')).mapIso e := by |
| 47 | obtain ⟨q, hq, huniq⟩ := EtaleDescentLocal.EtaleDescent.exists_unique_iso u |
| 48 | ((Grp.forget (Over S')).mapIso e) hh hi |
| 49 | have he : (Over.pullback u).map q.hom = e.hom.hom.hom := congrArg Iso.hom hq |
| 50 | have hlocal : IsMonHom ((Over.pullback u).map q.hom) := by |
| 51 | rw [he] |
| 52 | exact e.hom.hom.isMonHom_hom |
| 53 | let : IsMonHom ((Over.pullback u).map q.hom) := hlocal |
| 54 | let : IsMonHom q.hom := isMonHom_of_map (Over.pullback u) q.hom |
| 55 | let r := Grp.mkIso' q |
| 56 | refine ⟨r, hq, ?_⟩ |
| 57 | intro z hz |
| 58 | apply Iso.ext |
| 59 | apply Grp.hom_ext |
| 60 | exact congrArg Iso.hom (huniq ((Grp.forget (Over S)).mapIso z) hz) |
| 61 | |
| 62 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily.GroupDescentIs.GroupDescent |
| 63 | |
| 64 | namespace AlgebraicGeometry.AbelianModuli.ReferenceFamily.GroupDescentIs.GroupBaseChange |
| 65 | |
| 66 | /-! Canonical group-compatible base change for arbitrary group schemes. |
| 67 | The pullback adjunction preserves multiplication on actual scheme points. |
| 68 | This generalizes the HilbertConstruction abelian-scheme point calculation to torsion and |
| 69 | constant group schemes. -/ |
| 70 | |
| 71 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 72 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 73 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 74 | |
| 75 | variable {S S' : Scheme.{0}} |
| 76 | |
| 77 | /-- The pullback adjunction identifies points over a changed base. -/ |
| 78 | def baseChangePointsEquiv (H : Over S) [GrpObj H] (f : S' ⟶ S) (T : Over S') : |
| 79 | (T ⟶ (Over.pullback f).obj H) ≃ ((Over.map f).obj T ⟶ H) := |
| 80 | ((Over.mapPullbackAdj f).homEquiv T H).symm |
| 81 | |
| 82 | @[simp] |
| 83 | theorem baseChangePointsEquiv_apply (H : Over S) [GrpObj H] (f : S' ⟶ S) |
| 84 | (T : Over S') (x : (T ⟶ (Over.pullback f).obj H)) : |
| 85 | (baseChangePointsEquiv H f T x).left = |
| 86 | x.left ≫ Limits.pullback.fst H.hom f := rfl |
| 87 | |
| 88 | /-- The base-change identification preserves the group law on points. -/ |
| 89 | def baseChangePointsMulEquiv (H : Over S) [GrpObj H] (f : S' ⟶ S) (T : Over S') : |
| 90 | (T ⟶ (Over.pullback f).obj H) ≃* ((Over.map f).obj T ⟶ H) where |
| 91 | toEquiv := baseChangePointsEquiv H f T |
| 92 | map_mul' x y := by |
| 93 | let F := Over.pullback f |
| 94 | let p := Limits.pullback.fst H.hom f |
| 95 | let p₂ := Limits.pullback.fst (H ⊗ H).hom f |
| 96 | have hμ : μ[(Over.pullback f).obj H].left ≫ p = |
| 97 | (Functor.LaxMonoidal.μ F H H).left ≫ p₂ ≫ μ[H].left := by |
| 98 | change (Functor.LaxMonoidal.μ F H H ≫ F.map μ[H]).left ≫ p = _ |
| 99 | simp only [F, p, p₂, Over.comp_left, Over.pullback_map_left, |
| 100 | Category.assoc, Limits.pullback.lift_fst] |
| 101 | have hassoc (z : (H ⊗ H).left ⟶ H.left) : |
| 102 | ((lift x y).left ≫ (Functor.LaxMonoidal.μ F H H).left ≫ p₂) ≫ z = |
| 103 | (lift x y).left ≫ ((Functor.LaxMonoidal.μ F H H).left ≫ p₂ ≫ z) := |
| 104 | (Category.assoc _ _ _).trans |
| 105 | (congrArg (fun a => (lift x y).left ≫ a) (Category.assoc _ _ _)) |
| 106 | have hpair : (lift x y).left ≫ (Functor.LaxMonoidal.μ F H H).left ≫ p₂ = |
| 107 | (lift (baseChangePointsEquiv H f T x) (baseChangePointsEquiv H f T y)).left := by |
| 108 | apply Over.tensorObj_ext |
| 109 | · calc |
| 110 | _ = (lift x y).left ≫ |
| 111 | ((Functor.LaxMonoidal.μ F H H).left ≫ p₂ ≫ |
| 112 | Limits.pullback.fst H.hom H.hom) := hassoc _ |
| 113 | _ = (lift x y).left ≫ |
| 114 | (Limits.pullback.fst ((Over.pullback f).obj H).hom ((Over.pullback f).obj H).hom ≫ p) := |
| 115 | congrArg (fun a => (lift x y).left ≫ a) |
| 116 | (Over.μ_pullback_left_fst_fst (f := f) H H) |
| 117 | _ = x.left ≫ p := (Category.assoc _ _ _).symm.trans |
| 118 | (congrArg (fun a => a ≫ p) (show (lift x y).left ≫ |
| 119 | Limits.pullback.fst ((Over.pullback f).obj H).hom ((Over.pullback f).obj H).hom = x.left by |
| 120 | simp only [Over.lift_left, Limits.pullback.lift_fst])) |
| 121 | _ = _ := by |
| 122 | simp only [Over.lift_left, Limits.pullback.lift_fst, baseChangePointsEquiv_apply, p] |
| 123 | · calc |
| 124 | _ = (lift x y).left ≫ |
| 125 | ((Functor.LaxMonoidal.μ F H H).left ≫ p₂ ≫ |
| 126 | Limits.pullback.snd H.hom H.hom) := hassoc _ |
| 127 | _ = (lift x y).left ≫ |
| 128 | (Limits.pullback.snd ((Over.pullback f).obj H).hom ((Over.pullback f).obj H).hom ≫ p) := |
| 129 | congrArg (fun a => (lift x y).left ≫ a) |
| 130 | (Over.μ_pullback_left_fst_snd (f := f) H H) |
| 131 | _ = y.left ≫ p := (Category.assoc _ _ _).symm.trans |
| 132 | (congrArg (fun a => a ≫ p) (show (lift x y).left ≫ |
| 133 | Limits.pullback.snd ((Over.pullback f).obj H).hom ((Over.pullback f).obj H).hom = y.left by |
| 134 | simp only [Over.lift_left, Limits.pullback.lift_snd])) |
| 135 | _ = _ := by |
| 136 | simp only [Over.lift_left, Limits.pullback.lift_snd, baseChangePointsEquiv_apply, p] |
| 137 | apply Over.OverMorphism.ext |
| 138 | change ((lift x y).left ≫ μ[(Over.pullback f).obj H].left) ≫ p = |
| 139 | (lift (baseChangePointsEquiv H f T x) (baseChangePointsEquiv H f T y)).left ≫ μ[H].left |
| 140 | calc |
| 141 | _ = (lift x y).left ≫ (μ[(Over.pullback f).obj H].left ≫ p) := Category.assoc _ _ _ |
| 142 | _ = (lift x y).left ≫ |
| 143 | ((Functor.LaxMonoidal.μ F H H).left ≫ p₂ ≫ μ[H].left) := |
| 144 | congrArg (fun a => (lift x y).left ≫ a) hμ |
| 145 | _ = ((lift x y).left ≫ (Functor.LaxMonoidal.μ F H H).left ≫ p₂) ≫ |
| 146 | μ[H].left := (hassoc μ[H].left).symm |
| 147 | _ = _ := congrArg (fun a => a ≫ μ[H].left) hpair |
| 148 | |
| 149 | def baseChangeYonedaIso (H : Over S) [GrpObj H] (f : S' ⟶ S) : |
| 150 | yonedaGrpObj ((Over.pullback f).obj H) ≅ (Over.map f).op ⋙ yonedaGrpObj H := |
| 151 | NatIso.ofComponents (fun T => MulEquiv.toGrpIso (baseChangePointsMulEquiv H f T.unop)) (by |
| 152 | intro T U j |
| 153 | apply GrpCat.hom_ext |
| 154 | apply MonoidHom.ext |
| 155 | intro x |
| 156 | apply Over.OverMorphism.ext |
| 157 | exact Category.assoc _ _ _) |
| 158 | |
| 159 | end AlgebraicGeometry.AbelianModuli.ReferenceFamily.GroupDescentIs.GroupBaseChange |
| 160 | |
| 161 | end |
| 162 | |
| 163 | end OAI |