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.IsogenyQuotient.InfinitesimalLifting |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SubgroupFunctor |
| 3 | |
| 4 | /-! # Group Kernel -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.CentralAction.GroupKernel.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual group-scheme kernel represents all test-scheme kernels. |
| 11 | A finite etale kernel forces its group homomorphism to be unramified. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 15 | open scoped _root_.CategoryTheory.MonObj |
| 16 | |
| 17 | universe u |
| 18 | variable {S : Scheme.{u}} {A B : Over S} [GrpObj A] [GrpObj B] |
| 19 | |
| 20 | def groupKernelScheme (f : A ⟶ B) : Over S := equalizer f (1 : A ⟶ B) |
| 21 | |
| 22 | def groupKernelInclusion (f : A ⟶ B) : groupKernelScheme f ⟶ A := equalizer.ι f 1 |
| 23 | |
| 24 | omit [GrpObj A] in |
| 25 | theorem groupKernelInclusion_comp (f : A ⟶ B) : |
| 26 | groupKernelInclusion f ≫ f = 1 := by |
| 27 | exact (equalizer.condition f (1 : A ⟶ B)).trans (MonObj.comp_one _) |
| 28 | |
| 29 | def groupKernelLift (f : A ⟶ B) {T : Over S} (x : T ⟶ A) (hx : x ≫ f = 1) : |
| 30 | T ⟶ groupKernelScheme f := equalizer.lift x (hx.trans (MonObj.comp_one x).symm) |
| 31 | |
| 32 | omit [GrpObj A] in |
| 33 | @[simp] theorem groupKernelLift_inclusion (f : A ⟶ B) {T : Over S} |
| 34 | (x : T ⟶ A) (hx : x ≫ f = 1) : |
| 35 | groupKernelLift f x hx ≫ groupKernelInclusion f = x := equalizer.lift_ι _ _ |
| 36 | |
| 37 | def groupKernelPointsEquiv (f : A ⟶ B) (T : Over S) : |
| 38 | (T ⟶ groupKernelScheme f) ≃ {x : T ⟶ A // x ≫ f = 1} where |
| 39 | toFun z := ⟨z ≫ groupKernelInclusion f, by |
| 40 | rw [Category.assoc, groupKernelInclusion_comp, MonObj.comp_one]⟩ |
| 41 | invFun x := groupKernelLift f x.val x.property |
| 42 | left_inv z := by apply equalizer.hom_ext; exact groupKernelLift_inclusion _ _ _ |
| 43 | right_inv x := Subtype.ext (groupKernelLift_inclusion _ _ _) |
| 44 | |
| 45 | omit [GrpObj A] in |
| 46 | theorem groupKernel_isPullback (f : A ⟶ B) : |
| 47 | IsPullback (groupKernelInclusion f) (toUnit (groupKernelScheme f)) f η[B] := by |
| 48 | apply IsPullback.mk' |
| 49 | · exact groupKernelInclusion_comp f |
| 50 | · intro T a b hab _ |
| 51 | exact equalizer.hom_ext hab |
| 52 | · intro T a b hab |
| 53 | have hb : b ≫ η[B] = (1 : T ⟶ B) := by |
| 54 | change b ≫ η[B] = toUnit T ≫ η[B] |
| 55 | rw [toUnit_unique b (toUnit T)] |
| 56 | exact ⟨groupKernelLift f a (hab.trans hb), groupKernelLift_inclusion _ _ _, |
| 57 | toUnit_unique _ _⟩ |
| 58 | |
| 59 | omit [GrpObj A] in |
| 60 | theorem groupKernel_isPullback_left (f : A ⟶ B) : |
| 61 | IsPullback (groupKernelInclusion f).left (groupKernelScheme f).hom f.left η[B].left := |
| 62 | (groupKernel_isPullback f).map (Over.forget S) |
| 63 | |
| 64 | theorem groupHom_unramified_of_etale_kernel (f : A ⟶ B) [IsMonHom f] |
| 65 | [IsFinite (groupKernelScheme f).hom] [Etale (groupKernelScheme f).hom] : |
| 66 | FormallyUnramified f.left := by |
| 67 | apply FormallyUnramified.of_hom_ext |
| 68 | intro C D φ _ hφ a b hab hcomp |
| 69 | let T : Over S := Over.mk (a ≫ A.hom) |
| 70 | let aa : T ⟶ A := Over.homMk a rfl |
| 71 | let bb : T ⟶ A := Over.homMk b (by |
| 72 | change b ≫ A.hom = a ≫ A.hom |
| 73 | rw [← f.w, ← Category.assoc, ← Category.assoc, hcomp]) |
| 74 | let T' : Over S := Over.mk (Spec.map φ ≫ T.hom) |
| 75 | let i : T' ⟶ T := Over.homMk (Spec.map φ) rfl |
| 76 | have hcomp' : aa ≫ f = bb ≫ f := Over.OverMorphism.ext hcomp |
| 77 | have hred : i ≫ aa = i ≫ bb := Over.OverMorphism.ext hab |
| 78 | let d := groupKernelLift f (aa / bb) (by rw [GrpObj.div_comp, hcomp', div_self']) |
| 79 | let z := groupKernelLift f (1 : T ⟶ A) (MonObj.one_comp f) |
| 80 | have hdz : i ≫ d = i ≫ z := by |
| 81 | apply equalizer.hom_ext |
| 82 | change (i ≫ d) ≫ groupKernelInclusion f = (i ≫ z) ≫ groupKernelInclusion f |
| 83 | rw [Category.assoc, Category.assoc, groupKernelLift_inclusion, |
| 84 | groupKernelLift_inclusion, GrpObj.comp_div, hred, div_self', MonObj.comp_one] |
| 85 | have he := IsogenyQuotient.InfinitesimalLifting.Construction.finite_etale_nilpotent_hom_ext (groupKernelScheme f).hom |
| 86 | φ.hom ⟨2, hφ⟩ d.left z.left (d.w.trans z.w.symm) (congrArg Over.Hom.left hdz) |
| 87 | have he' : d = z := Over.OverMorphism.ext he |
| 88 | have hd := congrArg (fun j => j ≫ groupKernelInclusion f) he' |
| 89 | change groupKernelLift f (aa / bb) _ ≫ groupKernelInclusion f = |
| 90 | groupKernelLift f 1 _ ≫ groupKernelInclusion f at hd |
| 91 | rw [groupKernelLift_inclusion, groupKernelLift_inclusion, div_eq_one] at hd |
| 92 | exact congrArg Over.Hom.left hd |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.AbelianScheme.CentralAction.GroupKernel.Construction |