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.AlgebraicGeometry.Sites.Fpqc |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 3 | import Mathlib.CategoryTheory.Monoidal.Cartesian.Grp |
| 4 | import Mathlib.Algebra.Group.Subgroup.Ker |
| 5 | import Mathlib.CategoryTheory.Subobject.Basic |
| 6 | |
| 7 | /-! # Scheme -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Kernel.Scheme |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # Scheme-theoretic kernels for PoincareBundle |
| 15 | |
| 16 | The kernel is the fiber product over the identity section. Its universal |
| 17 | property identifies its points over every test object with the group |
| 18 | kernel, so infinitesimal points are retained. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.AlgebraicGeometry |
| 22 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 23 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 24 | |
| 25 | universe u v |
| 26 | |
| 27 | section |
| 28 | |
| 29 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] [HasPullbacks C] |
| 30 | {A B : C} [GrpObj A] [GrpObj B] (f : A ⟶ B) [IsMonHom f] |
| 31 | |
| 32 | /-- Postcomposition with a group-object morphism on all test objects. -/ |
| 33 | def pointsMap (T : C) : (T ⟶ A) →* (T ⟶ B) where |
| 34 | toFun x := x ≫ f |
| 35 | map_one' := MonObj.one_comp f |
| 36 | map_mul' x y := MonObj.mul_comp x y f |
| 37 | |
| 38 | /-- The scheme-theoretic kernel object, defined as a fiber product. -/ |
| 39 | abbrev kernelObject : C := pullback f η[B] |
| 40 | |
| 41 | /-- The kernel inclusion. -/ |
| 42 | def kernelInclusion : kernelObject f ⟶ A := pullback.fst f η[B] |
| 43 | |
| 44 | instance : Mono (kernelInclusion f) := by |
| 45 | have : Mono η[B] := ⟨fun _ _ _ => Subsingleton.elim _ _⟩ |
| 46 | constructor |
| 47 | intro T x y h |
| 48 | apply pullback.hom_ext |
| 49 | · exact h |
| 50 | · exact Subsingleton.elim _ _ |
| 51 | |
| 52 | /-- Its test-object points are exactly the kernel of postcomposition. -/ |
| 53 | def kernelPointsEquiv (T : C) : |
| 54 | (T ⟶ kernelObject f) ≃ (pointsMap f T).ker where |
| 55 | toFun x := ⟨x ≫ kernelInclusion f, by |
| 56 | change (x ≫ kernelInclusion f) ≫ f = 1 |
| 57 | rw [Category.assoc, kernelInclusion, pullback.condition] |
| 58 | rw [← Category.assoc] |
| 59 | change (x ≫ pullback.snd f η[B]) ≫ η[B] = toUnit T ≫ η[B] |
| 60 | rw [Subsingleton.elim (x ≫ pullback.snd f η[B]) (toUnit T)]⟩ |
| 61 | invFun x := pullback.lift x.1 (toUnit T) x.2 |
| 62 | left_inv x := by |
| 63 | apply pullback.hom_ext |
| 64 | · exact pullback.lift_fst _ _ _ |
| 65 | · apply Subsingleton.elim |
| 66 | right_inv x := by |
| 67 | apply Subtype.ext |
| 68 | exact pullback.lift_fst _ _ _ |
| 69 | |
| 70 | /-- Kernel points form a presheaf of groups. -/ |
| 71 | def kernelPointFunctor : Cᵒᵖ ⥤ GrpCat.{v} where |
| 72 | obj T := GrpCat.of (pointsMap f T.unop).ker |
| 73 | map {T U} a := GrpCat.ofHom { |
| 74 | toFun x := ⟨a.unop ≫ x.1, by |
| 75 | change (a.unop ≫ x.1) ≫ f = 1 |
| 76 | rw [Category.assoc, show x.1 ≫ f = 1 from x.2, MonObj.comp_one]⟩ |
| 77 | map_one' := by |
| 78 | apply Subtype.ext |
| 79 | exact MonObj.comp_one a.unop |
| 80 | map_mul' x y := by |
| 81 | apply Subtype.ext |
| 82 | exact MonObj.comp_mul a.unop x.1 y.1 } |
| 83 | map_id T := by |
| 84 | ext x |
| 85 | exact Category.id_comp x.1 |
| 86 | map_comp a b := by |
| 87 | ext x |
| 88 | exact Category.assoc b.unop a.unop x.1 |
| 89 | |
| 90 | /-- The fiber product represents the full group-valued kernel presheaf. -/ |
| 91 | def kernelRepresentableBy : |
| 92 | (kernelPointFunctor f ⋙ forget GrpCat).RepresentableBy (kernelObject f) where |
| 93 | homEquiv := kernelPointsEquiv f _ |
| 94 | homEquiv_comp a x := by |
| 95 | apply Subtype.ext |
| 96 | exact Category.assoc a x (kernelInclusion f) |
| 97 | |
| 98 | /-- The group structure on the scheme-theoretic kernel is constructed |
| 99 | from its represented group-valued functor. -/ |
| 100 | @[instance_reducible] |
| 101 | def kernelGroup : GrpObj (kernelObject f) := |
| 102 | GrpObj.ofRepresentableBy _ (kernelPointFunctor f) (kernelRepresentableBy f) |
| 103 | |
| 104 | attribute [local instance] kernelGroup |
| 105 | |
| 106 | /-- The represented point identification respects the group operations. -/ |
| 107 | def kernelPointsMulEquiv (T : C) : |
| 108 | (T ⟶ kernelObject f) ≃* (pointsMap f T).ker := |
| 109 | ((yonedaGrpObjIsoOfRepresentableBy _ (kernelPointFunctor f) |
| 110 | (kernelRepresentableBy f)).app (op T)).groupIsoToMulEquiv |
| 111 | |
| 112 | /-- Inclusion of the kernel as a natural transformation of group presheaves. -/ |
| 113 | def kernelPointInclusion : kernelPointFunctor f ⟶ yonedaGrpObj A where |
| 114 | app T := GrpCat.ofHom (pointsMap f T.unop).ker.subtype |
| 115 | naturality _ _ a := by |
| 116 | ext x |
| 117 | rfl |
| 118 | |
| 119 | /-- The kernel inclusion constructed as a morphism of group objects. -/ |
| 120 | def kernelInclusionAsGroup : Grp.mk (kernelObject f) ⟶ Grp.mk A := |
| 121 | yonedaGrpFullyFaithful.preimage |
| 122 | ((yonedaGrpObjIsoOfRepresentableBy _ (kernelPointFunctor f) |
| 123 | (kernelRepresentableBy f)).hom ≫ kernelPointInclusion f) |
| 124 | |
| 125 | theorem kernelInclusionAsGroup_hom : (kernelInclusionAsGroup f).hom.hom = kernelInclusion f := by |
| 126 | change (𝟙 (kernelObject f)) ≫ kernelInclusion f = kernelInclusion f |
| 127 | exact Category.id_comp _ |
| 128 | |
| 129 | instance kernelInclusion_isMonHom : IsMonHom (kernelInclusion f) := by |
| 130 | rw [← kernelInclusionAsGroup_hom f] |
| 131 | infer_instance |
| 132 | |
| 133 | /-- Kernels of morphisms between commutative group objects are commutative. -/ |
| 134 | theorem kernelGroup_commutative [BraidedCategory C] [IsCommMonObj A] : IsCommMonObj (kernelObject f) := by |
| 135 | apply (isCommMonObj_iff_isMulCommutative _).mpr |
| 136 | intro T |
| 137 | refine ⟨⟨fun x y => ?_⟩⟩ |
| 138 | apply (kernelPointsMulEquiv f T).injective |
| 139 | rw [map_mul, map_mul, mul_comm] |
| 140 | |
| 141 | /-- The defining kernel inclusion is annihilated by the original map. -/ |
| 142 | theorem kernelInclusion_comp : kernelInclusion f ≫ f = 1 := by |
| 143 | have h := (kernelPointsEquiv f (kernelObject f) (𝟙 _)).property |
| 144 | change ((𝟙 (kernelObject f)) ≫ kernelInclusion f) ≫ f = 1 at h |
| 145 | simpa only [Category.id_comp] using h |
| 146 | |
| 147 | /-- A scheme-theoretic kernel as an actual subobject of its source. -/ |
| 148 | def kernelSubobject : Subobject A := Subobject.mk (kernelInclusion f) |
| 149 | |
| 150 | variable {D : C} [GrpObj D] (g : A ⟶ D) [IsMonHom g] |
| 151 | |
| 152 | /-- Containment of kernels can be checked on all test objects. -/ |
| 153 | theorem kernelSubobject_le_iff : kernelSubobject f ≤ kernelSubobject g ↔ |
| 154 | ∀ (T : C) (x : T ⟶ A), x ≫ f = 1 → x ≫ g = 1 := by |
| 155 | constructor |
| 156 | · intro h T x hx |
| 157 | let i := Subobject.ofMkLEMk (kernelInclusion f) (kernelInclusion g) h |
| 158 | let y := (kernelPointsEquiv f T).symm ⟨x, hx⟩ |
| 159 | have hy : y ≫ kernelInclusion f = x := pullback.lift_fst _ _ _ |
| 160 | rw [← hy, ← Subobject.ofMkLEMk_comp h, Category.assoc, Category.assoc, |
| 161 | kernelInclusion_comp g, MonObj.comp_one, MonObj.comp_one] |
| 162 | · intro h |
| 163 | let i := (kernelPointsEquiv g (kernelObject f)).symm |
| 164 | ⟨kernelInclusion f, h _ _ (kernelInclusion_comp f)⟩ |
| 165 | exact Subobject.mk_le_mk_of_comm i (pullback.lift_fst _ _ _) |
| 166 | |
| 167 | end |
| 168 | |
| 169 | variable {S : Scheme.{u}} {A B : Over S} [GrpObj B] (f : A ⟶ B) |
| 170 | |
| 171 | /-- The kernel square remains a pullback after forgetting to schemes. -/ |
| 172 | theorem kernel_isPullback : |
| 173 | IsPullback (kernelInclusion f).left (pullback.snd f η[B]).left f.left η[B].left := |
| 174 | (Over.forget S).map_isPullback (IsPullback.of_hasPullback f η[B]) |
| 175 | |
| 176 | /-- The structural map of the kernel is the second fiber-product projection. -/ |
| 177 | theorem kernel_hom_eq_snd : (kernelObject f).hom = (pullback.snd f η[B]).left := by |
| 178 | simpa using (Over.w (pullback.snd f η[B])).symm |
| 179 | |
| 180 | /-- The scheme-theoretic kernel of a finite homomorphism is finite over the base. -/ |
| 181 | theorem kernel_isFinite [IsFinite f.left] : IsFinite (kernelObject f).hom := by |
| 182 | rw [kernel_hom_eq_snd f] |
| 183 | exact MorphismProperty.of_isPullback (P := @IsFinite) (kernel_isPullback f) inferInstance |
| 184 | |
| 185 | /-- The scheme-theoretic kernel of a flat homomorphism is flat over the base. -/ |
| 186 | theorem kernel_flat [Flat f.left] : Flat (kernelObject f).hom := by |
| 187 | rw [kernel_hom_eq_snd f] |
| 188 | exact MorphismProperty.of_isPullback (P := @Flat) (kernel_isPullback f) inferInstance |
| 189 | |
| 190 | end |
| 191 | |
| 192 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Kernel.Scheme |