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.AbelianModuli.HilbertConstruction.Segre.EmbeddingCompatibility |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FamilyGroup.OperationsIso |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Bounded.GroupObjectClassifier |
| 4 | |
| 5 | /-! # Presented Group Graph Bounds -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PresentedGroupGraphBounds |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The prescribed multiplication and inversion Hilbert bounds form a |
| 12 | property of a group-operation diagram in a projective presentation. This |
| 13 | property survives an isomorphism preserving the original embedding. -/ |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | open _root_.CategoryTheory.MonoidalCategory |
| 16 | universe u |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | local instance presentedGroupProductFlat {S : Scheme.{u}} (X Y : Over S) [Flat X.hom] [Flat Y.hom] : |
| 21 | Flat (X ⊗ Y).hom := inferInstanceAs (Flat (CategoryTheory.Limits.pullback.fst X.hom Y.hom ≫ X.hom)) |
| 22 | |
| 23 | local instance presentedGroupProductFinitePresentation {S : Scheme.{u}} (X Y : Over S) |
| 24 | [LocallyOfFinitePresentation X.hom] [LocallyOfFinitePresentation Y.hom] : |
| 25 | LocallyOfFinitePresentation (X ⊗ Y).hom := inferInstanceAs |
| 26 | (LocallyOfFinitePresentation (CategoryTheory.Limits.pullback.fst X.hom Y.hom ≫ X.hom)) |
| 27 | |
| 28 | private def tensorPairMap {C : Type*} [Category C] [MonoidalCategory C] |
| 29 | {X Y Z Z' W : C} (i : X ⟶ Z) (j : Y ⟶ Z') (t : Z ⊗ Z' ⟶ W) : X ⊗ Y ⟶ W := |
| 30 | (i ⊗ₘ j) ≫ t |
| 31 | |
| 32 | private theorem tensorPairMap_closed {S : Scheme.{u}} {X Y Z Z' W : Over S} |
| 33 | (i : X ⟶ Z) (j : Y ⟶ Z') (t : Z ⊗ Z' ⟶ W) |
| 34 | [IsClosedImmersion i.left] [IsClosedImmersion j.left] [ht : IsClosedImmersion t.left] : |
| 35 | IsClosedImmersion (tensorPairMap i j t).left := |
| 36 | @IsClosedImmersion.comp _ _ _ _ _ (Projective.Products.overTensorMap_closed i j) ht |
| 37 | |
| 38 | private theorem tensorPairMap_compatible {C : Type*} [Category C] [MonoidalCategory C] |
| 39 | {X X' Y Y' Z Z' W : C} (a : X ⟶ X') (b : Y ⟶ Y') |
| 40 | (i : X ⟶ Z) (j : Y ⟶ Z') (i' : X' ⟶ Z) (j' : Y' ⟶ Z') |
| 41 | (t : Z ⊗ Z' ⟶ W) (hi : a ≫ i' = i) (hj : b ≫ j' = j) : |
| 42 | (a ⊗ₘ b) ≫ tensorPairMap i' j' t = tensorPairMap i j t := by |
| 43 | unfold tensorPairMap |
| 44 | rw [← Category.assoc, tensorHom_comp_tensorHom, hi, hj] |
| 45 | |
| 46 | private def productEmbedding {S : Scheme.{u}} {X Y : Over S} {n m : ℕ} |
| 47 | (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) (j : Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S m) : |
| 48 | X ⊗ Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S (Affine.SegreOver.segreProjectiveDimension.{u} n m) := |
| 49 | Projective.Products.projectiveProductEmbedding i j |
| 50 | |
| 51 | private theorem productEmbedding_eq {S : Scheme.{u}} {X Y : Over S} {n m : ℕ} |
| 52 | (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) (j : Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S m) : |
| 53 | productEmbedding i j = tensorPairMap i j (Projective.Products.nativeSegreProductEmbedding S n m) := rfl |
| 54 | |
| 55 | private instance productEmbedding_closed {S : Scheme.{u}} {X Y : Over S} {n m : ℕ} |
| 56 | (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) (j : Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S m) |
| 57 | [hi : IsClosedImmersion i.left] [hj : IsClosedImmersion j.left] : |
| 58 | IsClosedImmersion (productEmbedding i j).left := |
| 59 | Projective.Products.projectiveProductEmbedding_closed i j |
| 60 | |
| 61 | private def tensorTripleMap {C : Type*} [Category C] [MonoidalCategory C] |
| 62 | {X Z W U : C} (i : X ⟶ Z) (s₂ : Z ⊗ Z ⟶ W) (s₃ : W ⊗ Z ⟶ U) : |
| 63 | (X ⊗ X) ⊗ X ⟶ U := |
| 64 | (((i ⊗ₘ i) ≫ s₂) ⊗ₘ i) ≫ s₃ |
| 65 | |
| 66 | private theorem tensorTripleMap_pair_eq {C : Type*} [Category C] [MonoidalCategory C] |
| 67 | {X Z W U : C} (i : X ⟶ Z) (s₂ : Z ⊗ Z ⟶ W) (s₃ : W ⊗ Z ⟶ U) : |
| 68 | tensorTripleMap i s₂ s₃ = tensorPairMap (tensorPairMap i i s₂) i s₃ := rfl |
| 69 | |
| 70 | private theorem tensorTripleMap_closed {S : Scheme.{u}} {X Z W U : Over S} |
| 71 | (i : X ⟶ Z) (s₂ : Z ⊗ Z ⟶ W) (s₃ : W ⊗ Z ⟶ U) |
| 72 | [IsClosedImmersion i.left] [hs₂ : IsClosedImmersion s₂.left] [hs₃ : IsClosedImmersion s₃.left] : |
| 73 | IsClosedImmersion (tensorTripleMap i s₂ s₃).left := by |
| 74 | let : IsClosedImmersion (((i ⊗ₘ i) ≫ s₂).left) := |
| 75 | @IsClosedImmersion.comp _ _ _ _ _ (Projective.Products.overTensorMap_closed i i) hs₂ |
| 76 | exact @IsClosedImmersion.comp _ _ _ _ _ (Projective.Products.overTensorMap_closed ((i ⊗ₘ i) ≫ s₂) i) hs₃ |
| 77 | |
| 78 | private def tripleEmbedding {S : Scheme.{u}} {X : Over S} {n : ℕ} |
| 79 | (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) : |
| 80 | (X ⊗ X) ⊗ X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S |
| 81 | (Affine.SegreOver.segreProjectiveDimension.{u} (Affine.SegreOver.segreProjectiveDimension.{u} n n) n) := |
| 82 | Projective.Products.projectiveProductEmbedding (Projective.Products.projectiveProductEmbedding i i) i |
| 83 | |
| 84 | private theorem tripleEmbedding_eq {S : Scheme.{u}} {X : Over S} {n : ℕ} |
| 85 | (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) : |
| 86 | tripleEmbedding i = tensorTripleMap i (Projective.Products.nativeSegreProductEmbedding S n n) |
| 87 | (Projective.Products.nativeSegreProductEmbedding S (Affine.SegreOver.segreProjectiveDimension.{u} n n) n) := by |
| 88 | change productEmbedding (productEmbedding i i) i = _ |
| 89 | rw [productEmbedding_eq, productEmbedding_eq] |
| 90 | exact (tensorTripleMap_pair_eq i (Projective.Products.nativeSegreProductEmbedding S n n) |
| 91 | (Projective.Products.nativeSegreProductEmbedding S (Affine.SegreOver.segreProjectiveDimension.{u} n n) n)).symm |
| 92 | |
| 93 | private instance tripleEmbedding_closed {S : Scheme.{u}} {X : Over S} {n : ℕ} |
| 94 | (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) [hi : IsClosedImmersion i.left] : |
| 95 | IsClosedImmersion (tripleEmbedding i).left := |
| 96 | @Projective.Products.projectiveProductEmbedding_closed S (X ⊗ X) X |
| 97 | (Affine.SegreOver.segreProjectiveDimension.{u} n n) n (Projective.Products.projectiveProductEmbedding i i) i |
| 98 | (Projective.Products.projectiveProductEmbedding_closed i i) hi |
| 99 | |
| 100 | private theorem tensorDoubleAndTripleCompatibility {C : Type*} [Category C] [MonoidalCategory C] |
| 101 | {X Y Z W U : C} (a : X ⟶ Y) (i : X ⟶ Z) (j : Y ⟶ Z) |
| 102 | (s₂ : Z ⊗ Z ⟶ W) (s₃ : W ⊗ Z ⟶ U) (h : a ≫ j = i) : |
| 103 | ((a ⊗ₘ a) ≫ ((j ⊗ₘ j) ≫ s₂) = (i ⊗ₘ i) ≫ s₂) ∧ |
| 104 | (((a ⊗ₘ a) ⊗ₘ a) ≫ ((((j ⊗ₘ j) ≫ s₂) ⊗ₘ j) ≫ s₃) = |
| 105 | (((i ⊗ₘ i) ≫ s₂) ⊗ₘ i) ≫ s₃) := by |
| 106 | have h₂ : (a ⊗ₘ a) ≫ ((j ⊗ₘ j) ≫ s₂) = (i ⊗ₘ i) ≫ s₂ := by |
| 107 | rw [← Category.assoc, tensorHom_comp_tensorHom, h] |
| 108 | refine ⟨h₂, ?_⟩ |
| 109 | rw [← Category.assoc, tensorHom_comp_tensorHom, h₂, h] |
| 110 | |
| 111 | private theorem tensorTripleMap_compatible {C : Type*} [Category C] [MonoidalCategory C] |
| 112 | {X Y Z W U : C} (a : X ⟶ Y) (i : X ⟶ Z) (j : Y ⟶ Z) |
| 113 | (s₂ : Z ⊗ Z ⟶ W) (s₃ : W ⊗ Z ⟶ U) (h : a ≫ j = i) : |
| 114 | ((a ⊗ₘ a) ⊗ₘ a) ≫ tensorTripleMap j s₂ s₃ = tensorTripleMap i s₂ s₃ := |
| 115 | (tensorDoubleAndTripleCompatibility a i j s₂ s₃ h).2 |
| 116 | |
| 117 | private theorem tensorTripleIso_compatible |
| 118 | {C : Type*} [Category C] [MonoidalCategory C] {X Y W : C} |
| 119 | (e : X ≅ Y) (j : (Y ⊗ Y) ⊗ Y ⟶ W) (i : (X ⊗ X) ⊗ X ⟶ W) |
| 120 | (h : ((e.hom ⊗ₘ e.hom) ⊗ₘ e.hom) ≫ j = i) : |
| 121 | ((tensorIso e e).hom ⊗ₘ e.hom) ≫ j = i := by |
| 122 | simpa only [tensorIso_hom] using h |
| 123 | |
| 124 | variable {S : Scheme.{u}} {X Y : Over S} |
| 125 | variable [Flat X.hom] [LocallyOfFinitePresentation X.hom] [IsSeparated X.hom] |
| 126 | |
| 127 | private def multiplicationBound (D : FamilyGroup.Operations.FamilyGroupOperations X) |
| 128 | (P : Projective.ProjectivePresentations.ProjectivePresentation X) (Pm : Polynomial ℚ) : Prop := |
| 129 | Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial (tripleEmbedding P.embedding) Pm D.mul |
| 130 | |
| 131 | private def inversionBound (D : FamilyGroup.Operations.FamilyGroupOperations X) |
| 132 | (P : Projective.ProjectivePresentations.ProjectivePresentation X) (Pi : Polynomial ℚ) : Prop := |
| 133 | Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial (productEmbedding P.embedding P.embedding) Pi D.inv |
| 134 | |
| 135 | def _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FamilyGroup.Operations.FamilyGroupOperations.ProjectiveGraphBounds (D : FamilyGroup.Operations.FamilyGroupOperations X) |
| 136 | (P : Projective.ProjectivePresentations.ProjectivePresentation X) (Pm Pi : Polynomial ℚ) : Prop := |
| 137 | multiplicationBound D P Pm ∧ inversionBound D P Pi |
| 138 | |
| 139 | private theorem graphBounds_mul (D : FamilyGroup.Operations.FamilyGroupOperations X) (P : Projective.ProjectivePresentations.ProjectivePresentation X) |
| 140 | (Pm Pi : Polynomial ℚ) (hb : D.ProjectiveGraphBounds P Pm Pi) : |
| 141 | Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial (tripleEmbedding P.embedding) Pm D.mul := hb.1 |
| 142 | |
| 143 | private theorem graphBounds_inv (D : FamilyGroup.Operations.FamilyGroupOperations X) (P : Projective.ProjectivePresentations.ProjectivePresentation X) |
| 144 | (Pm Pi : Polynomial ℚ) (hb : D.ProjectiveGraphBounds P Pm Pi) : |
| 145 | Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial (productEmbedding P.embedding P.embedding) Pi D.inv := hb.2 |
| 146 | |
| 147 | variable [Flat Y.hom] [LocallyOfFinitePresentation Y.hom] [IsSeparated Y.hom] |
| 148 | |
| 149 | private theorem groupMulBound_transport |
| 150 | (D : FamilyGroup.Operations.FamilyGroupOperations X) (e : X ≅ Y) {d : ℕ} |
| 151 | (i : (X ⊗ X) ⊗ X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S d) |
| 152 | (j : (Y ⊗ Y) ⊗ Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S d) |
| 153 | [IsClosedImmersion i.left] [IsClosedImmersion j.left] |
| 154 | (h : ((e.hom ⊗ₘ e.hom) ⊗ₘ e.hom) ≫ j = i) |
| 155 | (P : Polynomial ℚ) (hb : Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial i P D.mul) : |
| 156 | Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial j P (D.ofIso e).mul := |
| 157 | (Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial.transport_iff (tensorIso e e) e D.mul i j h P).mp hb |
| 158 | |
| 159 | private theorem groupInvBound_transport |
| 160 | (D : FamilyGroup.Operations.FamilyGroupOperations X) (e : X ≅ Y) {d : ℕ} |
| 161 | (i : X ⊗ X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S d) (j : Y ⊗ Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S d) |
| 162 | [IsClosedImmersion i.left] [IsClosedImmersion j.left] |
| 163 | (h : (e.hom ⊗ₘ e.hom) ≫ j = i) |
| 164 | (P : Polynomial ℚ) (hb : Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial i P D.inv) : |
| 165 | Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial j P (D.ofIso e).inv := |
| 166 | (Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial.transport_iff e e D.inv i j h P).mp hb |
| 167 | |
| 168 | variable {n : ℕ} (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) (j : Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver S n) |
| 169 | variable [IsClosedImmersion i.left] [IsClosedImmersion j.left] |
| 170 | variable (e : X ≅ Y) (h : e.hom ≫ j = i) |
| 171 | |
| 172 | include h in |
| 173 | omit [Flat X.hom] [LocallyOfFinitePresentation X.hom] [IsSeparated X.hom] |
| 174 | [Flat Y.hom] [LocallyOfFinitePresentation Y.hom] [IsSeparated Y.hom] |
| 175 | [IsClosedImmersion i.left] [IsClosedImmersion j.left] in |
| 176 | private theorem productEmbeddingCompatible : |
| 177 | (e.hom ⊗ₘ e.hom) ≫ productEmbedding j j = productEmbedding i i := by |
| 178 | rw [productEmbedding_eq, productEmbedding_eq] |
| 179 | exact tensorPairMap_compatible e.hom e.hom i i j j |
| 180 | (Projective.Products.nativeSegreProductEmbedding S n n) h h |
| 181 | |
| 182 | include h in |
| 183 | omit [Flat X.hom] [LocallyOfFinitePresentation X.hom] [IsSeparated X.hom] |
| 184 | [Flat Y.hom] [LocallyOfFinitePresentation Y.hom] [IsSeparated Y.hom] |
| 185 | [IsClosedImmersion i.left] [IsClosedImmersion j.left] in |
| 186 | private theorem tripleEmbeddingCompatible : |
| 187 | ((e.hom ⊗ₘ e.hom) ⊗ₘ e.hom) ≫ tripleEmbedding j = tripleEmbedding i := by |
| 188 | rw [tripleEmbedding_eq, tripleEmbedding_eq] |
| 189 | exact tensorTripleMap_compatible e.hom i j |
| 190 | (Projective.Products.nativeSegreProductEmbedding S n n) |
| 191 | (Projective.Products.nativeSegreProductEmbedding S (Affine.SegreOver.segreProjectiveDimension.{u} n n) n) h |
| 192 | |
| 193 | include h in |
| 194 | omit [Flat X.hom] [LocallyOfFinitePresentation X.hom] [IsSeparated X.hom] |
| 195 | [Flat Y.hom] [LocallyOfFinitePresentation Y.hom] [IsSeparated Y.hom] |
| 196 | [IsClosedImmersion i.left] [IsClosedImmersion j.left] in |
| 197 | private theorem tripleEmbeddingIsoCompatible : |
| 198 | ((tensorIso e e).hom ⊗ₘ e.hom) ≫ tripleEmbedding j = tripleEmbedding i := |
| 199 | tensorTripleIso_compatible e (tripleEmbedding j) (tripleEmbedding i) |
| 200 | (tripleEmbeddingCompatible i j e h) |
| 201 | |
| 202 | include h in |
| 203 | private abbrev transportedMulBound (D : FamilyGroup.Operations.FamilyGroupOperations X) (P : Polynomial ℚ) |
| 204 | (hb : Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial (tripleEmbedding i) P D.mul) := by |
| 205 | exact (Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial.transport_iff (tensorIso e e) e D.mul |
| 206 | (tripleEmbedding i) (tripleEmbedding j) (tripleEmbeddingIsoCompatible i j e h) P).mp hb |
| 207 | |
| 208 | include h in |
| 209 | private abbrev transportedInvBound (D : FamilyGroup.Operations.FamilyGroupOperations X) (P : Polynomial ℚ) |
| 210 | (hb : Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial (productEmbedding i i) P D.inv) := by |
| 211 | exact (Embedded.GraphHilbertBaseChange.HasEmbeddedGraphHilbertPolynomial.transport_iff e e D.inv |
| 212 | (productEmbedding i i) (productEmbedding j j) (productEmbeddingCompatible i j e h) P).mp hb |
| 213 | |
| 214 | include h in |
| 215 | private abbrev transportedGraphBounds_mul (D : FamilyGroup.Operations.FamilyGroupOperations X) (Pm Pi : Polynomial ℚ) |
| 216 | (hb : D.ProjectiveGraphBounds ⟨n, i, inferInstance⟩ Pm Pi) := by |
| 217 | have hm := graphBounds_mul D ⟨n, i, inferInstance⟩ Pm Pi hb |
| 218 | exact transportedMulBound i j e h D Pm hm |
| 219 | |
| 220 | include h in |
| 221 | private abbrev transportedGraphBounds_inv (D : FamilyGroup.Operations.FamilyGroupOperations X) (Pm Pi : Polynomial ℚ) |
| 222 | (hb : D.ProjectiveGraphBounds ⟨n, i, inferInstance⟩ Pm Pi) := by |
| 223 | have hi := graphBounds_inv D ⟨n, i, inferInstance⟩ Pm Pi hb |
| 224 | exact transportedInvBound i j e h D Pi hi |
| 225 | |
| 226 | include h in |
| 227 | abbrev _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FamilyGroup.Operations.FamilyGroupOperations.ProjectiveGraphBounds.ofIso |
| 228 | (D : FamilyGroup.Operations.FamilyGroupOperations X) (Pm Pi : Polynomial ℚ) |
| 229 | (hb : D.ProjectiveGraphBounds ⟨n, i, inferInstance⟩ Pm Pi) := |
| 230 | And.intro (transportedGraphBounds_mul i j e h D Pm Pi hb) |
| 231 | (transportedGraphBounds_inv i j e h D Pm Pi hb) |
| 232 | |
| 233 | end |
| 234 | |
| 235 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PresentedGroupGraphBounds |