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.Picard.PoincareBundle.Kernel.Scheme |
| 2 | |
| 3 | /-! # Pair -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.Kernel.Pair |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # The kernel-pair torsor isomorphism for PoincareBundle |
| 11 | |
| 12 | Two points of a group-scheme quotient have the same image exactly when |
| 13 | their difference lies in its scheme-theoretic kernel. This is an actual |
| 14 | isomorphism between the corresponding fiber product and the product |
| 15 | with the kernel, including for nonreduced kernels. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 20 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | variable {C : Type u} [Category.{v} C] [CartesianMonoidalCategory C] [HasPullbacks C] |
| 25 | {A B : C} [GrpObj A] [GrpObj B] (f : A ⟶ B) [IsMonHom f] |
| 26 | |
| 27 | /-- The kernel element measuring the difference between two points in one fiber. -/ |
| 28 | def difference : pullback f f ⟶ Scheme.kernelObject f := |
| 29 | (Scheme.kernelPointsEquiv f (pullback f f)).symm |
| 30 | ⟨(pullback.fst f f)⁻¹ * pullback.snd f f, by |
| 31 | change ((pullback.fst f f)⁻¹ * pullback.snd f f) ≫ f = 1 |
| 32 | rw [MonObj.mul_comp, GrpObj.inv_comp, pullback.condition, inv_mul_cancel]⟩ |
| 33 | |
| 34 | /-- The difference map has its expected inclusion in the original group. -/ |
| 35 | theorem difference_comp_inclusion : |
| 36 | difference f ≫ Scheme.kernelInclusion f = |
| 37 | (pullback.fst f f)⁻¹ * pullback.snd f f := |
| 38 | pullback.lift_fst _ _ _ |
| 39 | |
| 40 | /-- A point and a kernel element give two points of the same fiber. -/ |
| 41 | def kernelPairHom : A ⊗ Scheme.kernelObject f ⟶ pullback f f := |
| 42 | pullback.lift (fst _ _) ((fst _ _) * (snd _ _ ≫ Scheme.kernelInclusion f)) (by |
| 43 | rw [MonObj.mul_comp, Category.assoc, Scheme.kernelInclusion_comp, |
| 44 | MonObj.comp_one, mul_one]) |
| 45 | |
| 46 | @[simp] |
| 47 | theorem kernelPairHom_fst : kernelPairHom f ≫ pullback.fst f f = fst _ _ := |
| 48 | pullback.lift_fst _ _ _ |
| 49 | |
| 50 | @[simp] |
| 51 | theorem kernelPairHom_snd : kernelPairHom f ≫ pullback.snd f f = |
| 52 | (fst _ _) * (snd _ _ ≫ Scheme.kernelInclusion f) := |
| 53 | pullback.lift_snd _ _ _ |
| 54 | |
| 55 | /-- Recover the first point and their difference. -/ |
| 56 | def kernelPairInv : pullback f f ⟶ A ⊗ Scheme.kernelObject f := |
| 57 | lift (pullback.fst f f) (difference f) |
| 58 | |
| 59 | @[simp] |
| 60 | theorem kernelPairInv_fst : kernelPairInv f ≫ fst _ _ = pullback.fst f f := |
| 61 | lift_fst _ _ |
| 62 | |
| 63 | @[simp] |
| 64 | theorem kernelPairInv_snd : kernelPairInv f ≫ snd _ _ = difference f := |
| 65 | lift_snd _ _ |
| 66 | |
| 67 | /-- The fiber relation is canonically the action relation of the full kernel scheme. -/ |
| 68 | def kernelPairIso : A ⊗ Scheme.kernelObject f ≅ pullback f f where |
| 69 | hom := kernelPairHom f |
| 70 | inv := kernelPairInv f |
| 71 | hom_inv_id := by |
| 72 | apply hom_ext |
| 73 | · simp only [Category.assoc, kernelPairInv_fst, kernelPairHom_fst, Category.id_comp] |
| 74 | · apply (cancel_mono (Scheme.kernelInclusion f)).mp |
| 75 | simp only [Category.assoc, kernelPairInv_snd, difference_comp_inclusion, |
| 76 | MonObj.comp_mul, GrpObj.comp_inv, kernelPairHom_fst, kernelPairHom_snd, |
| 77 | Category.id_comp, inv_mul_cancel_left] |
| 78 | inv_hom_id := by |
| 79 | apply pullback.hom_ext |
| 80 | · simp only [Category.assoc, kernelPairHom_fst, kernelPairInv_fst, Category.id_comp] |
| 81 | · rw [Category.assoc, kernelPairHom_snd, MonObj.comp_mul, |
| 82 | kernelPairInv_fst, ← Category.assoc, kernelPairInv_snd, |
| 83 | difference_comp_inclusion, Category.id_comp, mul_inv_cancel_left] |
| 84 | |
| 85 | attribute [local instance] Scheme.kernelGroup |
| 86 | |
| 87 | /-- The kernel-valued difference of any two equal-image test points. -/ |
| 88 | def pointDifference {T : C} (x y : T ⟶ A) (h : x ≫ f = y ≫ f) : |
| 89 | T ⟶ Scheme.kernelObject f := |
| 90 | pullback.lift x y h ≫ difference f |
| 91 | |
| 92 | @[simp] |
| 93 | theorem pointDifference_comp_inclusion {T : C} (x y : T ⟶ A) (h : x ≫ f = y ≫ f) : |
| 94 | pointDifference f x y h ≫ Scheme.kernelInclusion f = x⁻¹ * y := by |
| 95 | rw [pointDifference, Category.assoc, difference_comp_inclusion, |
| 96 | MonObj.comp_mul, GrpObj.comp_inv, pullback.lift_fst, pullback.lift_snd] |
| 97 | |
| 98 | /-- The difference cocycle is the group law on the scheme-theoretic kernel. -/ |
| 99 | theorem pointDifference_cocycle {T : C} (x y z : T ⟶ A) |
| 100 | (hxy : x ≫ f = y ≫ f) (hyz : y ≫ f = z ≫ f) : |
| 101 | pointDifference f x z (hxy.trans hyz) = |
| 102 | pointDifference f x y hxy * pointDifference f y z hyz := by |
| 103 | apply (cancel_mono (Scheme.kernelInclusion f)).mp |
| 104 | rw [MonObj.mul_comp, pointDifference_comp_inclusion, |
| 105 | pointDifference_comp_inclusion, pointDifference_comp_inclusion] |
| 106 | simp only [mul_assoc, mul_inv_cancel_left] |
| 107 | |
| 108 | @[simp] |
| 109 | theorem pointDifference_self {T : C} (x : T ⟶ A) : |
| 110 | pointDifference f x x rfl = 1 := by |
| 111 | apply (cancel_mono (Scheme.kernelInclusion f)).mp |
| 112 | rw [pointDifference_comp_inclusion, MonObj.one_comp, inv_mul_cancel] |
| 113 | |
| 114 | /-- Reversing a fiber relation inverts the corresponding kernel element. -/ |
| 115 | theorem pointDifference_reverse {T : C} (x y : T ⟶ A) (h : x ≫ f = y ≫ f) : |
| 116 | pointDifference f y x h.symm = (pointDifference f x y h)⁻¹ := by |
| 117 | apply (cancel_mono (Scheme.kernelInclusion f)).mp |
| 118 | rw [GrpObj.inv_comp, pointDifference_comp_inclusion, pointDifference_comp_inclusion, |
| 119 | mul_inv_rev, inv_inv] |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.Kernel.Pair |