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.Intrinsic.ProjectiveFamily |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Hilbert.ParameterUniversality |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ClosedFamilyIntrinsicPullback |
| 4 | |
| 5 | /-! # Classification -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.Classification |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual native Hilbert classification on a Noetherian parameter, with |
| 12 | exact recovery over every test scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u |
| 18 | variable {S : Scheme.{u}} |
| 19 | variable (n : ℕ) (T : Over S) (F : HilbertScheme.Presentations.Hilbert.Functor.Family (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T) |
| 20 | variable (P : Polynomial ℚ) (hP : HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial F P) |
| 21 | |
| 22 | private def relativeProjectiveHilbertPullbackIso |
| 23 | {U M : Scheme.{u}} {n : ℕ} {P : Polynomial ℚ} |
| 24 | (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) (f : U ⟶ M) : |
| 25 | (G.pullback f).family.scheme ≅ (Over.pullback f).obj G.family.scheme := |
| 26 | G.family.projectiveBaseChangeSchemeIso f |
| 27 | |
| 28 | private theorem postcompose_inverse |
| 29 | {C : Type*} [Category* C] {A B D E : C} |
| 30 | (a : A ⟶ B) (b : B ⟶ D) (c : A ⟶ E) (e : E ≅ D) |
| 31 | (h : a ≫ b = c ≫ e.hom) : a ≫ (b ≫ e.inv) = c := by |
| 32 | rw [← Category.assoc, h, Category.assoc, e.hom_inv_id, Category.comp_id] |
| 33 | |
| 34 | private theorem compose_triangles |
| 35 | {C : Type*} [Category* C] {A B D E F : C} |
| 36 | (a : A ⟶ B) (b : B ⟶ D) (c : D ⟶ E) (j : E ⟶ F) |
| 37 | (k : D ⟶ F) (l : B ⟶ F) (hc : c ≫ j = k) (hb : b ≫ k = l) : |
| 38 | (a ≫ b ≫ c) ≫ j = a ≫ l := by |
| 39 | calc |
| 40 | (a ≫ b ≫ c) ≫ j = a ≫ (b ≫ (c ≫ j)) := by simp only [Category.assoc] |
| 41 | _ = a ≫ (b ≫ k) := congrArg (fun h => a ≫ (b ≫ h)) hc |
| 42 | _ = a ≫ l := congrArg (fun h => a ≫ h) hb |
| 43 | |
| 44 | private theorem inverse_triangle |
| 45 | {C : Type*} [Category* C] {A B D E : C} |
| 46 | (e : A ≅ B) (j : A ⟶ D) (k : D ⟶ E) (l : B ⟶ E) |
| 47 | (h : e.hom ≫ l = j ≫ k) : (e.inv ≫ j) ≫ k = l := by |
| 48 | rw [Category.assoc, ← h, ← Category.assoc, e.inv_hom_id, Category.id_comp] |
| 49 | |
| 50 | private theorem relativeProjectiveHilbertPullbackIso_embedding_left |
| 51 | {U M : Scheme.{u}} {n : ℕ} {P : Polynomial ℚ} |
| 52 | (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) (f : U ⟶ M) : |
| 53 | (relativeProjectiveHilbertPullbackIso G f).hom.left ≫ |
| 54 | (((Over.pullback f).map G.family.inclusion).left ≫ |
| 55 | (Projective.SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).inv.left) = |
| 56 | (G.pullback f).family.inclusion.left := by |
| 57 | exact congrArg Over.Hom.left (G.family.projectiveBaseChangeSchemeIso_embedding f) |
| 58 | |
| 59 | private def relativeFamilyEqIso {U : Scheme.{u}} {n : ℕ} {P : Polynomial ℚ} |
| 60 | {G H : RelativeProjective.Families.RelativeProjectiveHilbertFamily U n P} (h : G = H) : |
| 61 | G.family.scheme ≅ H.family.scheme := |
| 62 | eqToIso (congrArg (fun F : RelativeProjective.Families.RelativeProjectiveHilbertFamily U n P => F.family.scheme) h) |
| 63 | |
| 64 | private theorem relativeFamilyEqIso_inclusion_left |
| 65 | {U : Scheme.{u}} {n : ℕ} {P : Polynomial ℚ} |
| 66 | {G H : RelativeProjective.Families.RelativeProjectiveHilbertFamily U n P} (h : G = H) : |
| 67 | (relativeFamilyEqIso h).hom.left ≫ H.family.inclusion.left = G.family.inclusion.left := |
| 68 | congrArg (fun a : G.family.scheme ⟶ Projective.ProjectivePresentations.projectiveSpaceOver U n => a.left) |
| 69 | (Projective.ClosedFamilyIntrinsicPullback.relativeHilbertFamily_eqSchemeIso_inclusion h) |
| 70 | |
| 71 | private def composeOverIsos {U : Scheme.{u}} {X₀ X₁ X₂ X₃ : Over U} |
| 72 | (e₀ : X₀ ≅ X₁) (e₁ : X₁ ≅ X₂) (e₂ : X₂ ≅ X₃) : X₀ ≅ X₃ := |
| 73 | e₀ ≪≫ e₁ ≪≫ e₂ |
| 74 | |
| 75 | private theorem composeOverIsos_hom_left {U : Scheme.{u}} {X₀ X₁ X₂ X₃ : Over U} |
| 76 | (e₀ : X₀ ≅ X₁) (e₁ : X₁ ≅ X₂) (e₂ : X₂ ≅ X₃) : |
| 77 | (composeOverIsos e₀ e₁ e₂).hom.left = e₀.hom.left ≫ e₁.hom.left ≫ e₂.hom.left := rfl |
| 78 | |
| 79 | private theorem composeOverIsos_triangle_left |
| 80 | {U : Scheme.{u}} {X₀ X₁ X₂ X₃ : Over U} {Y : Scheme.{u}} |
| 81 | (e₀ : X₀ ≅ X₁) (e₁ : X₁ ≅ X₂) (e₂ : X₂ ≅ X₃) |
| 82 | (j : X₃.left ⟶ Y) (k : X₂.left ⟶ Y) (l : X₁.left ⟶ Y) |
| 83 | (hc : e₂.hom.left ≫ j = k) (hb : e₁.hom.left ≫ k = l) : |
| 84 | (composeOverIsos e₀ e₁ e₂).hom.left ≫ j = e₀.hom.left ≫ l := |
| 85 | (congrArg (fun a : X₀.left ⟶ X₃.left => a ≫ j) (composeOverIsos_hom_left e₀ e₁ e₂)).trans |
| 86 | (compose_triangles e₀.hom.left e₁.hom.left e₂.hom.left j k l hc hb) |
| 87 | |
| 88 | private def relativeHilbertRecoveryIso |
| 89 | {U M : Scheme.{u}} {n : ℕ} {P : Polynomial ℚ} |
| 90 | (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) (H : RelativeProjective.Families.RelativeProjectiveHilbertFamily U n P) |
| 91 | (f : U ⟶ M) (h : G.pullback f = H) {X : Over U} (e : X ≅ H.family.scheme) : |
| 92 | X ≅ (Over.pullback f).obj G.family.scheme := |
| 93 | composeOverIsos e (relativeFamilyEqIso h.symm) (relativeProjectiveHilbertPullbackIso G f) |
| 94 | |
| 95 | private theorem relativeHilbertRecoveryIso_embedding_left |
| 96 | {U M : Scheme.{u}} {n : ℕ} {P : Polynomial ℚ} |
| 97 | (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) (H : RelativeProjective.Families.RelativeProjectiveHilbertFamily U n P) |
| 98 | (f : U ⟶ M) (h : G.pullback f = H) {X : Over U} (e : X ≅ H.family.scheme) : |
| 99 | (relativeHilbertRecoveryIso G H f h e).hom.left ≫ |
| 100 | (((Over.pullback f).map G.family.inclusion).left ≫ |
| 101 | (Projective.SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).inv.left) = e.hom.left ≫ H.family.inclusion.left := by |
| 102 | cases h |
| 103 | exact composeOverIsos_triangle_left e (Iso.refl _) |
| 104 | (relativeProjectiveHilbertPullbackIso G f) |
| 105 | (((Over.pullback f).map G.family.inclusion).left ≫ |
| 106 | (Projective.SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).inv.left) |
| 107 | (G.pullback f).family.inclusion.left (G.pullback f).family.inclusion.left |
| 108 | (relativeProjectiveHilbertPullbackIso_embedding_left G f) |
| 109 | (Category.id_comp _) |
| 110 | |
| 111 | def nativeProjectiveHilbertRecoveryIso {M : Scheme.{u}} (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) |
| 112 | (f : T.left ⟶ M) (h : G.pullback f = ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) : |
| 113 | FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T F ≅ (Over.pullback f).obj G.family.scheme := |
| 114 | relativeHilbertRecoveryIso G (ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) f h |
| 115 | (ProjectiveFamily.nativeProjectiveClosedFamilyIso n T F).symm |
| 116 | |
| 117 | private theorem nativeProjectiveHilbertRecoveryIso_embedding_left |
| 118 | {M : Scheme.{u}} (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) |
| 119 | (f : T.left ⟶ M) (h : G.pullback f = ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) : |
| 120 | (nativeProjectiveHilbertRecoveryIso n T F P hP G f h).hom.left ≫ |
| 121 | (((Over.pullback f).map G.family.inclusion).left ≫ |
| 122 | (Projective.SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).inv.left) = |
| 123 | (ProjectiveFamily.nativeProjectiveClosedFamilyIso n T F).inv.left ≫ |
| 124 | (ProjectiveFamily.nativeProjectiveClosedFamily n T F).inclusion.left := |
| 125 | relativeHilbertRecoveryIso_embedding_left G (ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) |
| 126 | f h (ProjectiveFamily.nativeProjectiveClosedFamilyIso n T F).symm |
| 127 | |
| 128 | theorem nativeProjectiveHilbertRecoveryIso_embedding |
| 129 | {M : Scheme.{u}} (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) |
| 130 | (f : T.left ⟶ M) (h : G.pullback f = ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) : |
| 131 | let Q : Projective.ProjectivePresentations.ProjectivePresentation G.family.scheme := ⟨n, G.family.inclusion, inferInstance⟩ |
| 132 | (nativeProjectiveHilbertRecoveryIso n T F P hP G f h).hom ≫ (Q.baseChange f).embedding = |
| 133 | (ProjectiveFamily.nativeProjectiveClosedFamilyIso n T F).inv ≫ (ProjectiveFamily.nativeProjectiveClosedFamily n T F).inclusion := by |
| 134 | apply Over.OverMorphism.ext |
| 135 | exact nativeProjectiveHilbertRecoveryIso_embedding_left n T F P hP G f h |
| 136 | |
| 137 | theorem nativeProjectiveHilbertRecoveryIso_ambient_left |
| 138 | {M : Scheme.{u}} (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) |
| 139 | (f : T.left ⟶ M) (h : G.pullback f = ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) : |
| 140 | (nativeProjectiveHilbertRecoveryIso n T F P hP G f h).hom.left ≫ |
| 141 | (((Over.pullback f).map G.family.inclusion).left ≫ |
| 142 | (Projective.SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).inv.left) ≫ |
| 143 | (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom = F.val.subschemeι := by |
| 144 | have hleft := nativeProjectiveHilbertRecoveryIso_embedding_left n T F P hP G f h |
| 145 | exact (Category.assoc _ _ _).symm.trans |
| 146 | ((congrArg (fun a : (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T F).left ⟶ |
| 147 | (Projective.ProjectivePresentations.projectiveSpaceOver T.left n).left => a ≫ (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom) hleft).trans |
| 148 | (inverse_triangle ((Over.forget T.left).mapIso (ProjectiveFamily.nativeProjectiveClosedFamilyIso n T F)) |
| 149 | (ProjectiveFamily.nativeProjectiveClosedFamily n T F).inclusion.left (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom |
| 150 | F.val.subschemeι (ProjectiveFamily.nativeProjectiveClosedFamilyIso_embedding n T F))) |
| 151 | |
| 152 | theorem nativeProjectiveHilbertRecoveryIso_ambient |
| 153 | {M : Scheme.{u}} (G : RelativeProjective.Families.RelativeProjectiveHilbertFamily M n P) |
| 154 | (f : T.left ⟶ M) (h : G.pullback f = ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) : |
| 155 | let Q : Projective.ProjectivePresentations.ProjectivePresentation G.family.scheme := ⟨n, G.family.inclusion, inferInstance⟩ |
| 156 | ((nativeProjectiveHilbertRecoveryIso n T F P hP G f h).hom ≫ (Q.baseChange f).embedding).left ≫ |
| 157 | (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom = F.val.subschemeι := by |
| 158 | have hleft := nativeProjectiveHilbertRecoveryIso_embedding_left n T F P hP G f h |
| 159 | exact (congrArg (fun a : (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T F).left ⟶ |
| 160 | (Projective.ProjectivePresentations.projectiveSpaceOver T.left n).left => a ≫ (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom) hleft).trans |
| 161 | (inverse_triangle ((Over.forget T.left).mapIso (ProjectiveFamily.nativeProjectiveClosedFamilyIso n T F)) |
| 162 | (ProjectiveFamily.nativeProjectiveClosedFamily n T F).inclusion.left (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom |
| 163 | F.val.subschemeι (ProjectiveFamily.nativeProjectiveClosedFamilyIso_embedding n T F)) |
| 164 | |
| 165 | variable [IsLocallyNoetherian T.left] |
| 166 | |
| 167 | def nativeHilbertClassifier : T ⟶ Hilbert.ParameterScheme.hilbertParameterScheme S n P := |
| 168 | Hilbert.ParameterEquivalence.hilbertParameterEquiv n P (ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) |
| 169 | |
| 170 | theorem nativeHilbertClassifier_classifies : |
| 171 | (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).pullback (nativeHilbertClassifier n T F P hP).left = |
| 172 | ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP := |
| 173 | Hilbert.ParameterUniversality.hilbertUniversalFamily_classifies (ProjectiveFamily.nativeProjectiveHilbertFamily n T F P hP) |
| 174 | |
| 175 | def nativeHilbertClassifierIso : |
| 176 | FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) T F ≅ |
| 177 | (Over.pullback (nativeHilbertClassifier n T F P hP).left).obj (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme := |
| 178 | nativeProjectiveHilbertRecoveryIso n T F P hP (Hilbert.ParameterScheme.hilbertUniversalFamily S n P) |
| 179 | (nativeHilbertClassifier n T F P hP).left (nativeHilbertClassifier_classifies n T F P hP) |
| 180 | |
| 181 | private theorem nativeHilbertClassifierIso_eq : |
| 182 | nativeHilbertClassifierIso n T F P hP = |
| 183 | nativeProjectiveHilbertRecoveryIso n T F P hP (Hilbert.ParameterScheme.hilbertUniversalFamily S n P) |
| 184 | (nativeHilbertClassifier n T F P hP).left (nativeHilbertClassifier_classifies n T F P hP) := rfl |
| 185 | |
| 186 | theorem nativeHilbertClassifierIso_ambient : |
| 187 | let Q : Projective.ProjectivePresentations.ProjectivePresentation (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme := |
| 188 | ⟨n, (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.inclusion, inferInstance⟩ |
| 189 | ((nativeHilbertClassifierIso n T F P hP).hom ≫ |
| 190 | (Q.baseChange (nativeHilbertClassifier n T F P hP).left).embedding).left ≫ |
| 191 | (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom = F.val.subschemeι := by |
| 192 | rw [nativeHilbertClassifierIso_eq] |
| 193 | exact nativeProjectiveHilbertRecoveryIso_ambient n T F P hP (Hilbert.ParameterScheme.hilbertUniversalFamily S n P) |
| 194 | (nativeHilbertClassifier n T F P hP).left (nativeHilbertClassifier_classifies n T F P hP) |
| 195 | |
| 196 | theorem nativeHilbertClassifier_pullback_classifies {U : Over S} (a : U ⟶ T) : |
| 197 | (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).pullback (a ≫ nativeHilbertClassifier n T F P hP).left = |
| 198 | ProjectiveFamily.nativeProjectiveHilbertFamily n U (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F) |
| 199 | P (hP.pullback a) := |
| 200 | ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).pullback_comp (nativeHilbertClassifier n T F P hP).left a.left).symm.trans |
| 201 | ((congrArg (fun H : RelativeProjective.Families.RelativeProjectiveHilbertFamily T.left n P => H.pullback a.left) |
| 202 | (nativeHilbertClassifier_classifies n T F P hP)).trans (ProjectiveFamily.nativeProjectiveHilbertFamily_pullback n F P hP a).symm) |
| 203 | |
| 204 | def nativeHilbertClassifierPullbackIso {U : Over S} (a : U ⟶ T) : |
| 205 | FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) U (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F) ≅ |
| 206 | (Over.pullback (a ≫ nativeHilbertClassifier n T F P hP).left).obj (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme := |
| 207 | nativeProjectiveHilbertRecoveryIso n U (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F) |
| 208 | P (hP.pullback a) (Hilbert.ParameterScheme.hilbertUniversalFamily S n P) (a ≫ nativeHilbertClassifier n T F P hP).left |
| 209 | (nativeHilbertClassifier_pullback_classifies n T F P hP a) |
| 210 | |
| 211 | private theorem nativeHilbertClassifierPullbackIso_eq {U : Over S} (a : U ⟶ T) : |
| 212 | nativeHilbertClassifierPullbackIso n T F P hP a = |
| 213 | nativeProjectiveHilbertRecoveryIso n U (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F) |
| 214 | P (hP.pullback a) (Hilbert.ParameterScheme.hilbertUniversalFamily S n P) (a ≫ nativeHilbertClassifier n T F P hP).left |
| 215 | (nativeHilbertClassifier_pullback_classifies n T F P hP a) := rfl |
| 216 | |
| 217 | theorem nativeHilbertClassifierPullbackIso_ambient {U : Over S} (a : U ⟶ T) : |
| 218 | let Q : Projective.ProjectivePresentations.ProjectivePresentation (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme := |
| 219 | ⟨n, (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.inclusion, inferInstance⟩ |
| 220 | ((nativeHilbertClassifierPullbackIso n T F P hP a).hom ≫ |
| 221 | (Q.baseChange (a ≫ nativeHilbertClassifier n T F P hP).left).embedding).left ≫ |
| 222 | (ProjectiveAmbient.nativeHilbertAmbientIso U n).hom = (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F).val.subschemeι := by |
| 223 | rw [nativeHilbertClassifierPullbackIso_eq] |
| 224 | exact nativeProjectiveHilbertRecoveryIso_ambient n U (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F) |
| 225 | P (hP.pullback a) (Hilbert.ParameterScheme.hilbertUniversalFamily S n P) (a ≫ nativeHilbertClassifier n T F P hP).left |
| 226 | (nativeHilbertClassifier_pullback_classifies n T F P hP a) |
| 227 | |
| 228 | end |
| 229 | |
| 230 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.Classification |