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.ArithmeticGeometry.OrdinaryLocus.Openness.TangentOperations |
| 2 | import Mathlib.AlgebraicGeometry.Group.Abelian |
| 3 | |
| 4 | /-! # Group Tangents Eq -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GroupTangentsEq.Construction.GroupTangents |
| 7 | |
| 8 | /-! |
| 9 | # Openness: infinitesimal points of group schemes |
| 10 | |
| 11 | The identity section supplies the base point for the intrinsic lift module. |
| 12 | Relative infinitesimal points are the kernel of the map to base lifts. |
| 13 | All morphisms here are the actual morphisms of the group scheme. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | instance one_isMonHom {S : Scheme.{u}} (A B : Over S) [MonObj A] [MonObj B] : |
| 23 | IsMonHom (1 : A ⟶ B) := by |
| 24 | change IsMonHom (toUnit A ≫ η[B]) |
| 25 | infer_instance |
| 26 | |
| 27 | variable {S : Scheme.{u}} {C : CommRingCat.{u}} [IsLocalRing C] |
| 28 | variable (s : Spec C ⟶ S) (J : Ideal C) (hJ : J ^ 2 = ⊥) |
| 29 | |
| 30 | noncomputable def unitPoint (A : Over S) [MonObj A] : Under (Spec C) := |
| 31 | Under.mk ((1 : Over.mk s ⟶ A).left) |
| 32 | |
| 33 | noncomputable def unitMap {A B : Over S} [MonObj A] [MonObj B] |
| 34 | (f : A ⟶ B) [IsMonHom f] : unitPoint s A ⟶ unitPoint s B := |
| 35 | Under.homMk f.left (congrArg (fun z : Over.mk s ⟶ B => z.left) (MonObj.one_comp f)) |
| 36 | |
| 37 | omit [IsLocalRing C] in |
| 38 | theorem unitMap_comp_eq_id {A B : Over S} [MonObj A] [MonObj B] |
| 39 | (f : A ⟶ B) (g : B ⟶ A) [IsMonHom f] [IsMonHom g] (h : f ≫ g = 𝟙 A) : |
| 40 | unitMap s f ≫ unitMap s g = 𝟙 (unitPoint s A) := by |
| 41 | apply Under.UnderMorphism.ext |
| 42 | exact congrArg (fun z : A ⟶ A => z.left) h |
| 43 | |
| 44 | omit [IsLocalRing C] in |
| 45 | theorem unitMap_comp_eq {A B D E : Over S} [MonObj A] [MonObj B] [MonObj D] [MonObj E] |
| 46 | (f : A ⟶ B) (g : B ⟶ D) (f' : A ⟶ E) (g' : E ⟶ D) |
| 47 | [IsMonHom f] [IsMonHom g] [IsMonHom f'] [IsMonHom g'] (h : f ≫ g = f' ≫ g') : |
| 48 | unitMap s f ≫ unitMap s g = unitMap s f' ≫ unitMap s g' := by |
| 49 | apply Under.UnderMorphism.ext |
| 50 | exact congrArg (fun z : A ⟶ D => z.left) h |
| 51 | |
| 52 | abbrev Space (A : Over S) [MonObj A] := PointedTangentAt.Construction.PointedTangent.Space J hJ (unitPoint s A).hom |
| 53 | |
| 54 | noncomputable def point (A : Over S) [MonObj A] (v : Space s J hJ A) : Spec C ⟶ A.left := |
| 55 | PointedTangentAt.Construction.PointedTangent.point J hJ (unitPoint s A).hom v |
| 56 | |
| 57 | @[simp] theorem point_zero (A : Over S) [MonObj A] : |
| 58 | point s J hJ A 0 = (1 : Over.mk s ⟶ A).left := |
| 59 | PointedTangentAt.Construction.PointedTangent.point_zero J hJ (unitPoint s A).hom |
| 60 | |
| 61 | theorem point_injective (A : Over S) [MonObj A] : Function.Injective (point s J hJ A) := |
| 62 | PointedTangentAt.Construction.PointedTangent.point_injective J hJ (unitPoint s A).hom |
| 63 | |
| 64 | noncomputable def tangent {A B : Over S} [MonObj A] [MonObj B] |
| 65 | (f : A ⟶ B) [IsMonHom f] : Space s J hJ A →ₗ[C] Space s J hJ B := |
| 66 | PointedTangentAt.Construction.PointedTangent.map J hJ (unitMap s f) |
| 67 | |
| 68 | theorem point_tangent {A B : Over S} [MonObj A] [MonObj B] |
| 69 | (f : A ⟶ B) [IsMonHom f] (v : Space s J hJ A) : |
| 70 | point s J hJ B (tangent s J hJ f v) = point s J hJ A v ≫ f.left := |
| 71 | PointedTangentAt.Construction.PointedTangent.point_map J hJ (unitMap s f) v |
| 72 | |
| 73 | theorem tangent_id (A : Over S) [MonObj A] : |
| 74 | tangent s J hJ (𝟙 A) = LinearMap.id := by |
| 75 | apply LinearMap.ext |
| 76 | intro v |
| 77 | apply point_injective s J hJ A |
| 78 | rw [point_tangent] |
| 79 | rfl |
| 80 | |
| 81 | theorem tangent_comp {A B D : Over S} [MonObj A] [MonObj B] [MonObj D] |
| 82 | (f : A ⟶ B) (g : B ⟶ D) [IsMonHom f] [IsMonHom g] : |
| 83 | tangent s J hJ (f ≫ g) = (tangent s J hJ g).comp (tangent s J hJ f) := by |
| 84 | apply LinearMap.ext |
| 85 | intro v |
| 86 | apply point_injective s J hJ D |
| 87 | change point s J hJ D (tangent s J hJ (f ≫ g) v) = |
| 88 | point s J hJ D (tangent s J hJ g (tangent s J hJ f v)) |
| 89 | rw [point_tangent, point_tangent, point_tangent, Over.comp_left, Category.assoc] |
| 90 | |
| 91 | /-- The actual base map on infinitesimal points. -/ |
| 92 | noncomputable def relative (A : Over S) [MonObj A] : Submodule C (Space s J hJ A) := |
| 93 | LinearMap.ker (tangent s J hJ (toUnit A)) |
| 94 | |
| 95 | theorem point_over (A : Over S) [MonObj A] (v : relative s J hJ A) : |
| 96 | point s J hJ A v.val ≫ A.hom = s := by |
| 97 | have hv : tangent s J hJ (toUnit A) v.val = 0 := v.property |
| 98 | have hp := point_tangent s J hJ (toUnit A) v.val |
| 99 | rw [hv, point_zero] at hp |
| 100 | exact hp.symm |
| 101 | |
| 102 | /-- A relative tangent is realized as an actual point over the fixed base. -/ |
| 103 | noncomputable def overPoint (A : Over S) [MonObj A] (v : relative s J hJ A) : Over.mk s ⟶ A := |
| 104 | Over.homMk (point s J hJ A v.val) (point_over s J hJ A v) |
| 105 | |
| 106 | theorem overPoint_injective (A : Over S) [MonObj A] : |
| 107 | Function.Injective (overPoint s J hJ A) := by |
| 108 | intro v w h |
| 109 | apply Subtype.ext |
| 110 | apply point_injective s J hJ A |
| 111 | exact congrArg (fun z : Over.mk s ⟶ A => z.left) h |
| 112 | |
| 113 | @[simp] theorem overPoint_zero (A : Over S) [MonObj A] : overPoint s J hJ A 0 = 1 := by |
| 114 | apply Over.OverMorphism.ext |
| 115 | exact point_zero s J hJ A |
| 116 | |
| 117 | theorem tangent_one {A B : Over S} [MonObj A] [MonObj B] |
| 118 | (v : relative s J hJ A) : tangent s J hJ (1 : A ⟶ B) v.val = 0 := by |
| 119 | change tangent s J hJ (toUnit A ≫ η[B]) v.val = 0 |
| 120 | rw [tangent_comp, LinearMap.comp_apply] |
| 121 | have hv : tangent s J hJ (toUnit A) v.val = 0 := v.property |
| 122 | rw [hv, map_zero] |
| 123 | |
| 124 | /-- The module addition is the actual group multiplication on infinitesimal |
| 125 | points. The proof uses the two unit insertions and the scheme fiber product. -/ |
| 126 | theorem overPoint_add (A : Over S) [MonObj A] [IsCommMonObj A] |
| 127 | (v w : relative s J hJ A) : |
| 128 | overPoint s J hJ A (v + w) = overPoint s J hJ A v * overPoint s J hJ A w := by |
| 129 | let i₁ : A ⟶ A ⊗ A := lift (𝟙 A) (1 : A ⟶ A) |
| 130 | let i₂ : A ⟶ A ⊗ A := lift (1 : A ⟶ A) (𝟙 A) |
| 131 | obtain ⟨z, hp, hq, hm⟩ := TangentOperations.Construction.PointedTangent.exists_product_point J hJ |
| 132 | (unitMap s (toUnit A)) (unitMap s η[A]) |
| 133 | (unitMap s (fst A A)) (unitMap s (snd A A)) (unitMap s μ[A]) |
| 134 | (unitMap s i₁) (unitMap s i₂) |
| 135 | (unitMap_comp_eq_id s i₁ (fst A A) (lift_fst _ _)) |
| 136 | (unitMap_comp_eq s i₁ (snd A A) (toUnit A) η[A] (lift_snd _ _)) |
| 137 | (unitMap_comp_eq s i₂ (fst A A) (toUnit A) η[A] (lift_fst _ _)) |
| 138 | (unitMap_comp_eq_id s i₂ (snd A A) (lift_snd _ _)) |
| 139 | (unitMap_comp_eq_id s i₁ μ[A] ((Hom.mul_def _ _).symm.trans (mul_one _))) |
| 140 | (unitMap_comp_eq_id s i₂ μ[A] ((Hom.mul_def _ _).symm.trans (one_mul _))) |
| 141 | v.val w.val v.property w.property |
| 142 | have hz : z = |
| 143 | (lift (overPoint s J hJ A v) (overPoint s J hJ A w)).left := by |
| 144 | apply Over.tensorObj_ext |
| 145 | · exact hp.trans (by simp only [Over.lift_left, pullback.lift_fst]; rfl) |
| 146 | · exact hq.trans (by simp only [Over.lift_left, pullback.lift_snd]; rfl) |
| 147 | apply Over.OverMorphism.ext |
| 148 | change point s J hJ A (v.val + w.val) = |
| 149 | (overPoint s J hJ A v * overPoint s J hJ A w).left |
| 150 | have hm' : point s J hJ A (v.val + w.val) = z ≫ μ[A].left := hm.symm |
| 151 | rw [Hom.mul_def, Over.comp_left] |
| 152 | exact hm'.trans (congrArg (fun t => t ≫ μ[A].left) hz) |
| 153 | |
| 154 | /-- Multiplication by n on actual infinitesimal group points is n times |
| 155 | the corresponding tangent vector. -/ |
| 156 | theorem overPoint_nsmul (A : Over S) [MonObj A] [IsCommMonObj A] |
| 157 | (v : relative s J hJ A) (n : ℕ) : |
| 158 | overPoint s J hJ A (n • v) = overPoint s J hJ A v ^ n := by |
| 159 | induction n with |
| 160 | | zero => simp only [zero_smul, overPoint_zero, pow_zero] |
| 161 | | succ n ih => rw [succ_nsmul, overPoint_add, ih, pow_succ] |
| 162 | |
| 163 | theorem overPoint_natCast_smul (A : Over S) [MonObj A] [IsCommMonObj A] |
| 164 | (v : relative s J hJ A) (n : ℕ) : |
| 165 | overPoint s J hJ A ((n : C) • v) = overPoint s J hJ A v ^ n := by |
| 166 | rw [Nat.cast_smul_eq_nsmul, overPoint_nsmul] |
| 167 | |
| 168 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.GroupTangentsEq.Construction.GroupTangents |