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.Classification |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.FamilyPullbackPoints |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ParameterMapNaturality |
| 4 | |
| 5 | /-! # Classifier Naturality -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.ClassifierNaturality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The native recovery of the original Hilbert family commutes with |
| 12 | arbitrary changes of the test scheme. All equations concern the original |
| 13 | family projections and the original projective closed immersion. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | |
| 18 | private theorem square_of_ambient_triangles |
| 19 | {C : Type*} [Category* C] {A A' B B' P P' Q Q' : C} |
| 20 | (r : A ⟶ B) (r' : A' ⟶ B') (f : A' ⟶ A) (g : B' ⟶ B) |
| 21 | (j : B ⟶ P) (j' : B' ⟶ P') (p : P' ⟶ P) |
| 22 | (i : P ⟶ Q) (i' : P' ⟶ Q') (q : Q' ⟶ Q) |
| 23 | (a : A ⟶ Q) (a' : A' ⟶ Q') [Mono j] [hiMono : Mono i] |
| 24 | (hj : g ≫ j = j' ≫ p) (hi : p ≫ i = i' ≫ q) |
| 25 | (hr : r ≫ j ≫ i = a) (hr' : r' ≫ j' ≫ i' = a') |
| 26 | (ha : a' ≫ q = f ≫ a) : r' ≫ g = f ≫ r := by |
| 27 | apply (cancel_mono j).mp |
| 28 | apply (cancel_mono i).mp |
| 29 | calc |
| 30 | _ = r' ≫ ((g ≫ j) ≫ i) := by simp only [Category.assoc] |
| 31 | _ = r' ≫ ((j' ≫ p) ≫ i) := congrArg (fun b => r' ≫ (b ≫ i)) hj |
| 32 | _ = (r' ≫ j') ≫ (p ≫ i) := by simp only [Category.assoc] |
| 33 | _ = (r' ≫ j') ≫ (i' ≫ q) := congrArg (fun b => (r' ≫ j') ≫ b) hi |
| 34 | _ = (r' ≫ j' ≫ i') ≫ q := by simp only [Category.assoc] |
| 35 | _ = a' ≫ q := congrArg (fun b => b ≫ q) hr' |
| 36 | _ = f ≫ a := ha |
| 37 | _ = _ := by rw [← hr]; simp only [Category.assoc] |
| 38 | |
| 39 | variable {S : Scheme.{u}} (n : ℕ) (M : Over S) |
| 40 | (F : HilbertScheme.Presentations.Hilbert.Functor.Family (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M) |
| 41 | (P : Polynomial ℚ) (hP : HilbertScheme.Presentations.CanonicalFiberPolynomial.GradedHilbert.CanonicalFiberHilbertPolynomial F P) |
| 42 | [IsLocallyNoetherian M.left] |
| 43 | |
| 44 | /-- The recovery square before converting the native family to a |
| 45 | categorical pullback. -/ |
| 46 | theorem nativeHilbertClassifierPullbackIso_projection |
| 47 | {T : Over S} (a : T ⟶ M) : |
| 48 | (Classification.nativeHilbertClassifierPullbackIso n M F P hP a).hom.left ≫ |
| 49 | Single.ParameterBaseChange.singleParameterBaseChangeMap |
| 50 | (Over.homMk a.left rfl : Over.mk (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left ⟶ Over.mk ((Classification.nativeHilbertClassifier n M F P hP)).left) ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) = |
| 51 | HilbertScheme.Presentations.Hilbert.Functor.familyMap (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F.val ≫ ((Classification.nativeHilbertClassifierIso n M F P hP)).hom.left := by |
| 52 | let Q : Projective.ProjectivePresentations.ProjectivePresentation ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) := |
| 53 | ⟨n, (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.inclusion, inferInstance⟩ |
| 54 | let ca : Over.mk (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left ⟶ Over.mk ((Classification.nativeHilbertClassifier n M F P hP)).left := Over.homMk a.left rfl |
| 55 | let r' := Classification.nativeHilbertClassifierPullbackIso n M F P hP a |
| 56 | have hr : ((Classification.nativeHilbertClassifierIso n M F P hP)).hom.left ≫ (Q.baseChange ((Classification.nativeHilbertClassifier n M F P hP)).left).embedding.left ≫ |
| 57 | (ProjectiveAmbient.nativeHilbertAmbientIso M n).hom = F.val.subschemeι := |
| 58 | (Category.assoc _ _ _).symm.trans (Classification.nativeHilbertClassifierIso_ambient n M F P hP) |
| 59 | have hr' : r'.hom.left ≫ (Q.baseChange (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left).embedding.left ≫ |
| 60 | (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom = |
| 61 | (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F).val.subschemeι := |
| 62 | (Category.assoc _ _ _).symm.trans (Classification.nativeHilbertClassifierPullbackIso_ambient n M F P hP a) |
| 63 | have hiMono : Mono (ProjectiveAmbient.nativeHilbertAmbientIso M n).hom := |
| 64 | @IsIso.mono_of_iso _ _ _ _ (ProjectiveAmbient.nativeHilbertAmbientIso M n).hom (ProjectiveAmbient.nativeHilbertAmbientIso M n).isIso_hom |
| 65 | let : IsClosedImmersion (Q.baseChange ((Classification.nativeHilbertClassifier n M F P hP)).left).embedding.left := |
| 66 | (Q.baseChange ((Classification.nativeHilbertClassifier n M F P hP)).left).closedImmersion |
| 67 | exact square_of_ambient_triangles (hiMono := hiMono) |
| 68 | ((Classification.nativeHilbertClassifierIso n M F P hP)).hom.left r'.hom.left |
| 69 | (HilbertScheme.Presentations.Hilbert.Functor.familyMap (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F.val) (Single.ParameterBaseChange.singleParameterBaseChangeMap ca ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)) |
| 70 | (Q.baseChange ((Classification.nativeHilbertClassifier n M F P hP)).left).embedding.left (Q.baseChange (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left).embedding.left |
| 71 | (RelativeProjective.BaseMaps.relativeProjectiveBaseMap a.left n) |
| 72 | (ProjectiveAmbient.nativeHilbertAmbientIso M n).hom (ProjectiveAmbient.nativeHilbertAmbientIso T n).hom |
| 73 | (HilbertScheme.Presentations.Hilbert.Functor.ambientMap (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a) F.val.subschemeι (HilbertScheme.Presentations.Hilbert.Functor.pullbackFamily (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F).val.subschemeι |
| 74 | (Projective.ParameterMapNaturality.ProjectivePullback.parameterMap_embedding Q.embedding ca) |
| 75 | (ProjectiveAmbient.nativeHilbertAmbientIso_natural a n) hr hr' |
| 76 | (HilbertScheme.Presentations.Hilbert.Functor.family_ambient_isPullback (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F.val).w |
| 77 | |
| 78 | /-- Compare the two ordinary categorical pullbacks, without changing |
| 79 | either family. -/ |
| 80 | def nativeHilbertClassifierCartesianIso {T : Over S} (a : T ⟶ M) : |
| 81 | (Over.pullback a.left).obj (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≅ |
| 82 | (Over.pullback (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left).obj ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) := |
| 83 | (FamilyPullbackIso.nativeFamilyPullbackIso (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F).symm ≪≫ Classification.nativeHilbertClassifierPullbackIso n M F P hP a |
| 84 | |
| 85 | theorem nativeHilbertClassifierCartesianIso_projection {T : Over S} (a : T ⟶ M) : |
| 86 | (nativeHilbertClassifierCartesianIso n M F P hP a).hom.left ≫ |
| 87 | Single.ParameterBaseChange.singleParameterBaseChangeMap |
| 88 | (Over.homMk a.left rfl : Over.mk (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left ⟶ Over.mk ((Classification.nativeHilbertClassifier n M F P hP)).left) ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) = |
| 89 | pullback.fst (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F).hom a.left ≫ ((Classification.nativeHilbertClassifierIso n M F P hP)).hom.left := by |
| 90 | change ((FamilyPullbackIso.nativeFamilyPullbackIso (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F).inv.left ≫ |
| 91 | (Classification.nativeHilbertClassifierPullbackIso n M F P hP a).hom.left) ≫ _ = _ |
| 92 | exact (Category.assoc _ _ _).trans |
| 93 | ((congrArg (fun q => (FamilyPullbackIso.nativeFamilyPullbackIso (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F).inv.left ≫ q) |
| 94 | (nativeHilbertClassifierPullbackIso_projection n M F P hP a)).trans |
| 95 | ((Category.assoc _ _ _).symm.trans |
| 96 | (congrArg (fun q => q ≫ (Classification.nativeHilbertClassifierIso n M F P hP).hom.left) |
| 97 | (FamilyPullbackPoints.nativeFamilyPullbackIso_inv_familyMap (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) a F)))) |
| 98 | |
| 99 | /-- The original Hilbert recovery is natural on every test scheme, |
| 100 | including non-Noetherian and nonreduced tests. -/ |
| 101 | theorem nativeHilbertClassifierCartesianIso_natural |
| 102 | {T U : Over S} (a : T ⟶ M) (u : U ⟶ T) : |
| 103 | Single.ParameterBaseChange.singleParameterBaseChangeMap |
| 104 | (Over.homMk u.left rfl : Over.mk (u ≫ a).left ⟶ Over.mk a.left) |
| 105 | (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≫ |
| 106 | (nativeHilbertClassifierCartesianIso n M F P hP a).hom.left = |
| 107 | (nativeHilbertClassifierCartesianIso n M F P hP (u ≫ a)).hom.left ≫ |
| 108 | Single.ParameterBaseChange.singleParameterBaseChangeMap |
| 109 | (Over.homMk u.left (congrArg Over.Hom.left (Category.assoc u a (Classification.nativeHilbertClassifier n M F P hP)).symm) : |
| 110 | Over.mk ((u ≫ a) ≫ (Classification.nativeHilbertClassifier n M F P hP)).left ⟶ Over.mk (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left) ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) := by |
| 111 | let ca : Over.mk (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left ⟶ Over.mk ((Classification.nativeHilbertClassifier n M F P hP)).left := Over.homMk a.left rfl |
| 112 | let cua : Over.mk ((u ≫ a) ≫ (Classification.nativeHilbertClassifier n M F P hP)).left ⟶ Over.mk ((Classification.nativeHilbertClassifier n M F P hP)).left := Over.homMk (u ≫ a).left rfl |
| 113 | let cu : Over.mk ((u ≫ a) ≫ (Classification.nativeHilbertClassifier n M F P hP)).left ⟶ Over.mk (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left := |
| 114 | Over.homMk u.left (congrArg Over.Hom.left (Category.assoc u a (Classification.nativeHilbertClassifier n M F P hP)).symm) |
| 115 | let ua : Over.mk (u ≫ a).left ⟶ Over.mk a.left := Over.homMk u.left rfl |
| 116 | let e := nativeHilbertClassifierCartesianIso n M F P hP a |
| 117 | let e' := nativeHilbertClassifierCartesianIso n M F P hP (u ≫ a) |
| 118 | have hcomp : Single.ParameterBaseChange.singleParameterBaseChangeMap cu ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) ≫ Single.ParameterBaseChange.singleParameterBaseChangeMap ca ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) = |
| 119 | Single.ParameterBaseChange.singleParameterBaseChangeMap cua ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) := by |
| 120 | have hc : cu ≫ ca = cua := by apply Over.OverMorphism.ext; rfl |
| 121 | exact (Single.ParameterFunctoriality.singleParameterBaseChangeMap_composition cu ca ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)).symm.trans |
| 122 | (congrArg (fun q => Single.ParameterBaseChange.singleParameterBaseChangeMap q ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)) hc) |
| 123 | apply (Single.ParameterBaseChange.singleParameterBaseChangeMap_isPullback ca ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)).hom_ext |
| 124 | · change (Single.ParameterBaseChange.singleParameterBaseChangeMap ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≫ e.hom.left) ≫ |
| 125 | Single.ParameterBaseChange.singleParameterBaseChangeMap ca ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) = |
| 126 | (e'.hom.left ≫ Single.ParameterBaseChange.singleParameterBaseChangeMap cu ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)) ≫ Single.ParameterBaseChange.singleParameterBaseChangeMap ca ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) |
| 127 | calc |
| 128 | _ = Single.ParameterBaseChange.singleParameterBaseChangeMap ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≫ |
| 129 | (pullback.fst (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F).hom a.left ≫ ((Classification.nativeHilbertClassifierIso n M F P hP)).hom.left) := |
| 130 | (Category.assoc _ _ _).trans (congrArg (fun q => |
| 131 | Single.ParameterBaseChange.singleParameterBaseChangeMap ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≫ q) |
| 132 | (nativeHilbertClassifierCartesianIso_projection n M F P hP a)) |
| 133 | _ = pullback.fst (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F).hom (u ≫ a).left ≫ ((Classification.nativeHilbertClassifierIso n M F P hP)).hom.left := |
| 134 | (Category.assoc _ _ _).symm.trans |
| 135 | (congrArg (fun q => q ≫ (Classification.nativeHilbertClassifierIso n M F P hP).hom.left) |
| 136 | (Single.ParameterBaseChange.singleParameterBaseChangeMap_comp ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F))) |
| 137 | _ = e'.hom.left ≫ Single.ParameterBaseChange.singleParameterBaseChangeMap cua ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme) := |
| 138 | (nativeHilbertClassifierCartesianIso_projection n M F P hP (u ≫ a)).symm |
| 139 | _ = _ := (congrArg (fun q => e'.hom.left ≫ q) hcomp.symm).trans (Category.assoc _ _ _).symm |
| 140 | · change (Single.ParameterBaseChange.singleParameterBaseChangeMap ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≫ e.hom.left) ≫ |
| 141 | ((Over.pullback (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left).obj ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)).hom = |
| 142 | (e'.hom.left ≫ Single.ParameterBaseChange.singleParameterBaseChangeMap cu ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)) ≫ |
| 143 | ((Over.pullback (a ≫ (Classification.nativeHilbertClassifier n M F P hP)).left).obj ((Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme)).hom |
| 144 | calc |
| 145 | _ = Single.ParameterBaseChange.singleParameterBaseChangeMap ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≫ |
| 146 | ((Over.pullback a.left).obj (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F)).hom := |
| 147 | (Category.assoc _ _ _).trans |
| 148 | (congrArg (fun q => Single.ParameterBaseChange.singleParameterBaseChangeMap ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) ≫ q) e.hom.w) |
| 149 | _ = ((Over.pullback (u ≫ a).left).obj (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F)).hom ≫ u.left := |
| 150 | Single.ParameterFunctoriality.singleParameterBaseChangeMap_over ua (FamilyTestPoints.nativeFamilyOver (HilbertScheme.Presentations.Intrinsic.PolynomialAmbient.GradedHilbert.relativeProjectiveOver S n) M F) |
| 151 | _ = (e'.hom.left ≫ ((Over.pullback ((u ≫ a) ≫ Classification.nativeHilbertClassifier n M F P hP).left).obj |
| 152 | (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme).hom) ≫ u.left := |
| 153 | congrArg (fun q => q ≫ u.left) e'.hom.w.symm |
| 154 | _ = e'.hom.left ≫ (((Over.pullback ((u ≫ a) ≫ Classification.nativeHilbertClassifier n M F P hP).left).obj |
| 155 | (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme).hom ≫ u.left) := Category.assoc _ _ _ |
| 156 | _ = e'.hom.left ≫ (Single.ParameterBaseChange.singleParameterBaseChangeMap cu (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme ≫ |
| 157 | ((Over.pullback (a ≫ Classification.nativeHilbertClassifier n M F P hP).left).obj |
| 158 | (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme).hom) := |
| 159 | congrArg (fun q => e'.hom.left ≫ q) |
| 160 | (Single.ParameterFunctoriality.singleParameterBaseChangeMap_over cu (Hilbert.ParameterScheme.hilbertUniversalFamily S n P).family.scheme).symm |
| 161 | _ = _ := (Category.assoc _ _ _).symm |
| 162 | |
| 163 | end |
| 164 | |
| 165 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Intrinsic.ClassifierNaturality |