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 |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.CMAbelianVariety |
| 3 | |
| 4 | /-! # End -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.End |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | Integral endomorphisms are natural additive endomorphisms of the actual |
| 12 | functor of points. Yoneda reconstructs their underlying scheme maps. |
| 13 | The ring operations therefore act by point addition and composition, not |
| 14 | by arbitrary linear operators supplied as an external realization. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | open scoped _root_.CategoryTheory.MonObj TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {S : Scheme.{u}} (A : Over S) [GrpObj A] [IsCommMonObj A] |
| 23 | |
| 24 | /-- The actual functor of points, written additively. -/ |
| 25 | def additivePoints : (Over S)ᵒᵖ ⥤ AddCommGrpCat.{u} where |
| 26 | obj T := AddCommGrpCat.of (Additive (T.unop ⟶ A)) |
| 27 | map f := AddCommGrpCat.ofHom |
| 28 | (((yonedaGrpObj A).map f).hom.toAdditive) |
| 29 | map_id T := by |
| 30 | apply AddCommGrpCat.hom_ext |
| 31 | apply AddMonoidHom.ext |
| 32 | intro x |
| 33 | change 𝟙 T.unop ≫ x.toMul = x.toMul |
| 34 | exact Category.id_comp x.toMul |
| 35 | map_comp f g := by |
| 36 | apply AddCommGrpCat.hom_ext |
| 37 | apply AddMonoidHom.ext |
| 38 | intro x |
| 39 | change (g.unop ≫ f.unop) ≫ x.toMul = g.unop ≫ f.unop ≫ x.toMul |
| 40 | exact Category.assoc _ _ x.toMul |
| 41 | |
| 42 | /-- Integral algebraic group endomorphisms, via their faithful point functor. -/ |
| 43 | abbrev IntegralEnd := CategoryTheory.End (additivePoints A) |
| 44 | |
| 45 | /-- Rational endomorphisms are the scalar extension of the integral ring. -/ |
| 46 | abbrev RationalEnd := ℚ ⊗[ℤ] IntegralEnd A |
| 47 | |
| 48 | /-- The natural inclusion into rational endomorphisms. -/ |
| 49 | def endToRational : IntegralEnd A →+* RationalEnd A := |
| 50 | Algebra.TensorProduct.includeRight.toRingHom |
| 51 | |
| 52 | /-- Recover the scheme morphism by evaluation on the universal point. -/ |
| 53 | def endSchemeMap (f : IntegralEnd A) : A ⟶ A := |
| 54 | ((f.app (.op A)).hom (Additive.ofMul (𝟙 A))).toMul |
| 55 | |
| 56 | /-- The recovered scheme map acts on every test-scheme point as prescribed. -/ |
| 57 | theorem endSchemeMap_points (f : IntegralEnd A) (T : Over S) (x : T ⟶ A) : |
| 58 | ((f.app (.op T)).hom (Additive.ofMul x)).toMul = x ≫ endSchemeMap A f := by |
| 59 | have h := congrArg |
| 60 | (fun k : (additivePoints A).obj (.op A) ⟶ (additivePoints A).obj (.op T) => |
| 61 | (k.hom (Additive.ofMul (𝟙 A))).toMul) (f.naturality x.op) |
| 62 | change ((f.app (.op T)).hom (Additive.ofMul (x ≫ 𝟙 A))).toMul = |
| 63 | x ≫ endSchemeMap A f at h |
| 64 | simpa only [Category.comp_id] using h |
| 65 | |
| 66 | /-- Algebraic group homomorphisms induce natural additive maps on points. -/ |
| 67 | def endOfSchemeMap (f : A ⟶ A) [IsMonHom f] : IntegralEnd A where |
| 68 | app T := AddCommGrpCat.ofHom ((IsMonHom.monoidHom f T.unop).toAdditive) |
| 69 | naturality {X Y} h := by |
| 70 | apply AddCommGrpCat.hom_ext |
| 71 | apply AddMonoidHom.ext |
| 72 | intro x |
| 73 | change (h.unop ≫ x.toMul) ≫ f = h.unop ≫ x.toMul ≫ f |
| 74 | exact Category.assoc _ _ _ |
| 75 | |
| 76 | @[simp] |
| 77 | theorem endSchemeMap_ofSchemeMap (f : A ⟶ A) [IsMonHom f] : |
| 78 | endSchemeMap A (endOfSchemeMap A f) = f := by |
| 79 | change 𝟙 A ≫ f = f |
| 80 | exact Category.id_comp f |
| 81 | |
| 82 | /-- The scheme-map reconstruction loses no natural endomorphism. -/ |
| 83 | theorem endSchemeMap_injective : Function.Injective (endSchemeMap A) := by |
| 84 | intro f g h |
| 85 | apply NatTrans.ext |
| 86 | funext T |
| 87 | apply AddCommGrpCat.hom_ext |
| 88 | apply AddMonoidHom.ext |
| 89 | intro x |
| 90 | change ((f.app T).hom x).toMul = ((g.app T).hom x).toMul |
| 91 | exact (endSchemeMap_points A f T.unop x.toMul).trans |
| 92 | ((congrArg (fun k => x.toMul ≫ k) h).trans |
| 93 | (endSchemeMap_points A g T.unop x.toMul).symm) |
| 94 | |
| 95 | theorem endSchemeMap_mul_points (f : IntegralEnd A) (T : Over S) (x y : T ⟶ A) : |
| 96 | (x * y) ≫ endSchemeMap A f = |
| 97 | (x ≫ endSchemeMap A f) * (y ≫ endSchemeMap A f) := by |
| 98 | rw [← endSchemeMap_points, ← endSchemeMap_points, ← endSchemeMap_points] |
| 99 | exact congrArg Additive.toMul ((f.app (.op T)).hom.map_add |
| 100 | (Additive.ofMul x) (Additive.ofMul y)) |
| 101 | |
| 102 | theorem endSchemeMap_one_points (f : IntegralEnd A) (T : Over S) : |
| 103 | (1 : T ⟶ A) ≫ endSchemeMap A f = 1 := by |
| 104 | rw [← endSchemeMap_points] |
| 105 | exact congrArg Additive.toMul ((f.app (.op T)).hom.map_zero) |
| 106 | |
| 107 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 108 | |
| 109 | /-- The scheme map reconstructed by Yoneda preserves the algebraic group law. -/ |
| 110 | instance endSchemeMap_isMonHom (f : IntegralEnd A) : IsMonHom (endSchemeMap A f) where |
| 111 | one_hom := by |
| 112 | have h := endSchemeMap_one_points A f (𝟙_ (Over S)) |
| 113 | simpa only [MonObj.one_eq_one] using h |
| 114 | mul_hom := by |
| 115 | have h := endSchemeMap_mul_points A f (A ⊗ A) (fst A A) (snd A A) |
| 116 | simpa only [CategoryTheory.Hom.mul_def, lift_fst_snd, Category.id_comp, |
| 117 | lift_fst_comp_snd_comp] using h |
| 118 | |
| 119 | /-- Endomorphisms of the point functor are exactly algebraic group maps. -/ |
| 120 | def endSchemeEquiv : IntegralEnd A ≃ {f : A ⟶ A // IsMonHom f} where |
| 121 | toFun f := ⟨endSchemeMap A f, inferInstance⟩ |
| 122 | invFun f := @endOfSchemeMap _ A _ _ f.val f.property |
| 123 | left_inv f := endSchemeMap_injective A (endSchemeMap_ofSchemeMap A _) |
| 124 | right_inv f := by |
| 125 | let : IsMonHom f.val := f.property |
| 126 | exact Subtype.ext (endSchemeMap_ofSchemeMap A f.val) |
| 127 | |
| 128 | end |
| 129 | |
| 130 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.End |