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 Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 2 | |
| 3 | /-! # Represented Groups -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.RepresentedGroups.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Represent a group-valued functor whose values may be larger than the hom |
| 11 | universe. The group law and maps are recovered from the functor; the point |
| 12 | comparison is proved multiplicative, rather than supplied as an input. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Opposite |
| 16 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 17 | open scoped _root_.CategoryTheory.MonObj IsMulCommutative |
| 18 | |
| 19 | universe u v w |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] |
| 22 | |
| 23 | def representedGroup (F : Cᵒᵖ ⥤ GrpCat.{w}) (X : C) |
| 24 | (r : (F ⋙ forget GrpCat).RepresentableBy X) : Grp C := |
| 25 | @Grp.mk C _ _ X (GrpObj.ofRepresentableBy X F r) |
| 26 | |
| 27 | def representedGroupPoints (F : Cᵒᵖ ⥤ GrpCat.{w}) (X : C) |
| 28 | (r : (F ⋙ forget GrpCat).RepresentableBy X) (T : C) : |
| 29 | (T ⟶ (representedGroup F X r).X) ≃* F.obj (op T) where |
| 30 | toEquiv := r.homEquiv |
| 31 | map_mul' a b := by |
| 32 | change T ⟶ X at a b |
| 33 | change r.homEquiv (lift a b ≫ r.homEquiv.symm |
| 34 | (r.homEquiv (fst X X) * r.homEquiv (snd X X))) = r.homEquiv a * r.homEquiv b |
| 35 | rw [r.homEquiv_comp, Equiv.apply_symm_apply] |
| 36 | change (F.map (lift a b).op) (r.homEquiv (fst X X) * r.homEquiv (snd X X)) = _ |
| 37 | rw [map_mul] |
| 38 | exact congrArg₂ (· * ·) |
| 39 | ((r.homEquiv_comp (lift a b) (fst X X)).symm.trans |
| 40 | (congrArg r.homEquiv (lift_fst a b))) |
| 41 | ((r.homEquiv_comp (lift a b) (snd X X)).symm.trans |
| 42 | (congrArg r.homEquiv (lift_snd a b))) |
| 43 | |
| 44 | theorem representedGroup_commutative [BraidedCategory C] |
| 45 | (F : Cᵒᵖ ⥤ GrpCat.{w}) [∀ T, IsMulCommutative (F.obj T)] (X : C) |
| 46 | (r : (F ⋙ forget GrpCat).RepresentableBy X) : |
| 47 | IsCommMonObj (representedGroup F X r).X := by |
| 48 | apply (isCommMonObj_iff_isMulCommutative _).mpr |
| 49 | intro T |
| 50 | refine ⟨⟨fun x y => ?_⟩⟩ |
| 51 | apply (representedGroupPoints F X r T).injective |
| 52 | rw [map_mul, map_mul, mul_comm] |
| 53 | |
| 54 | theorem isMonHom_of_point_operations {X Y : C} [GrpObj X] [GrpObj Y] |
| 55 | (f : X ⟶ Y) |
| 56 | (h₁ : ∀ T, (1 : T ⟶ X) ≫ f = 1) |
| 57 | (hmul : ∀ T (a b : T ⟶ X), (a * b) ≫ f = (a ≫ f) * (b ≫ f)) : IsMonHom f where |
| 58 | one_hom := by |
| 59 | simpa only [Hom.one_def, toUnit_unit, Category.id_comp] using h₁ (𝟙_ C) |
| 60 | mul_hom := by |
| 61 | have hp : lift (fst X X ≫ f) (snd X X ≫ f) = f ⊗ₘ f := by |
| 62 | apply CartesianMonoidalCategory.hom_ext |
| 63 | · exact (lift_fst _ _).trans (tensorHom_fst _ _).symm |
| 64 | · exact (lift_snd _ _).trans (tensorHom_snd _ _).symm |
| 65 | exact (congrArg (fun a => a ≫ f) (MonObj.mul_eq_mul (M := X))).trans |
| 66 | ((hmul (X ⊗ X) (fst X X) (snd X X)).trans |
| 67 | (congrArg (fun a => a ≫ μ[Y]) hp)) |
| 68 | |
| 69 | variable {F G : Cᵒᵖ ⥤ GrpCat.{w}} {X Y : C} |
| 70 | variable (rF : (F ⋙ forget GrpCat).RepresentableBy X) |
| 71 | variable (rG : (G ⋙ forget GrpCat).RepresentableBy Y) |
| 72 | |
| 73 | def representedGroupMap (f : F ⟶ G) : |
| 74 | X ⟶ Y := |
| 75 | rG.homEquiv.symm (f.app (op X) (rF.homEquiv (𝟙 X))) |
| 76 | |
| 77 | omit [CartesianMonoidalCategory C] in |
| 78 | theorem representedGroupMap_action (f : F ⟶ G) {T : C} (a : T ⟶ X) : |
| 79 | rG.homEquiv (a ≫ representedGroupMap rF rG f) = f.app (op T) (rF.homEquiv a) := by |
| 80 | rw [rG.homEquiv_comp] |
| 81 | dsimp only [representedGroupMap] |
| 82 | rw [Equiv.apply_symm_apply] |
| 83 | have h := f.naturality_apply a.op (rF.homEquiv (𝟙 X)) |
| 84 | exact h.symm.trans (congrArg (fun x => f.app (op T) x) |
| 85 | ((rF.homEquiv_comp a (𝟙 X)).symm.trans |
| 86 | (congrArg rF.homEquiv (Category.comp_id a)))) |
| 87 | |
| 88 | instance representedGroupMap_isMonHom (f : F ⟶ G) : |
| 89 | letI := GrpObj.ofRepresentableBy X F rF |
| 90 | letI := GrpObj.ofRepresentableBy Y G rG |
| 91 | IsMonHom (representedGroupMap rF rG f) := by |
| 92 | let := GrpObj.ofRepresentableBy X F rF |
| 93 | let := GrpObj.ofRepresentableBy Y G rG |
| 94 | apply isMonHom_of_point_operations |
| 95 | · intro T |
| 96 | apply rG.homEquiv.injective |
| 97 | rw [representedGroupMap_action] |
| 98 | exact (congrArg (fun x => f.app (op T) x) (representedGroupPoints F X rF T).map_one).trans |
| 99 | (((f.app (op T)).hom.map_one).trans (representedGroupPoints G Y rG T).map_one.symm) |
| 100 | · intro T a b |
| 101 | apply rG.homEquiv.injective |
| 102 | rw [representedGroupMap_action] |
| 103 | exact (congrArg (fun x => f.app (op T) x) |
| 104 | ((representedGroupPoints F X rF T).map_mul a b)).trans |
| 105 | (((f.app (op T)).hom.map_mul _ _).trans |
| 106 | ((congrArg₂ (· * ·) (representedGroupMap_action rF rG f a).symm |
| 107 | (representedGroupMap_action rF rG f b).symm).trans |
| 108 | ((representedGroupPoints G Y rG T).map_mul _ _).symm)) |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.AbelianScheme.FrobeniusKernel.RepresentedGroups.Construction |