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.Projective.PresentationBaseChange |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RelativeProjective.BaseMaps |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Pullback.Comparisons |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.EqualBasePullbackProjections |
| 5 | |
| 6 | /-! # Base Change Iso Projections -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.BaseChangeIsoProjections |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The existing categorical base-change isomorphism for relative |
| 13 | projective space has the explicit geometric projective base map as its |
| 14 | first projection. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | |
| 18 | theorem pullbackComp_inv_fst {S T U : Scheme.{u}} (A : Over S) (f : T ⟶ S) (h : U ⟶ T) : |
| 19 | ((Over.pullbackComp h f).inv.app A).left ≫ pullback.fst A.hom (h ≫ f) = |
| 20 | pullback.fst (pullback.snd A.hom f) h ≫ pullback.fst A.hom f := |
| 21 | (((Over.forget U).mapIso ((Over.pullbackComp h f).app A)).inv_comp_eq).mpr |
| 22 | (Pullback.Comparisons.pullbackComp_hom_fst_fst A f h).symm |
| 23 | |
| 24 | private theorem projection_chain {C : Type*} [Category C] |
| 25 | {A₀ A₁ A₂ A₃ A₄ B₀ B₁ B₂ B₃ : C} |
| 26 | (m : A₀ ⟶ A₁) (b : A₁ ⟶ A₂) (c : A₂ ⟶ A₃) (d : A₃ ⟶ A₄) |
| 27 | (e : A₄ ⟶ B₀) (f : B₀ ⟶ B₁) (z : A₃ ⟶ B₁) (w : A₂ ⟶ B₁) |
| 28 | (v : A₁ ⟶ B₂) (k : B₂ ⟶ B₁) (u : A₀ ⟶ B₃) (a : B₃ ⟶ B₂) (t : B₃ ⟶ B₁) |
| 29 | (hd : d ≫ e ≫ f = z) (hc : c ≫ z = w) (hb : b ≫ w = v ≫ k) |
| 30 | (hm : m ≫ v = u ≫ a) (ha : a ≫ k = t) : |
| 31 | (m ≫ b ≫ c ≫ d) ≫ e ≫ f = u ≫ t := by |
| 32 | simp only [Category.assoc] at hd hc hb hm ha ⊢ |
| 33 | rw [hd, hc, hb, ← Category.assoc m v k, hm, Category.assoc, ha] |
| 34 | |
| 35 | private def pullbackBaseChangeHom {S T : Scheme.{u}} (f : T ⟶ S) |
| 36 | (P : Over (Spec Γ(S, ⊤))) (Q : Over (Spec Γ(T, ⊤))) |
| 37 | (a : Q ≅ (Over.pullback (Spec.map f.appTop)).obj P) : |
| 38 | ((Over.pullback T.toSpecΓ).obj Q).left ⟶ |
| 39 | ((Over.pullback f).obj ((Over.pullback S.toSpecΓ).obj P)).left := |
| 40 | ((Over.pullback T.toSpecΓ).map a.hom).left ≫ |
| 41 | ((Over.pullbackComp T.toSpecΓ (Spec.map f.appTop)).symm.app P).hom.left ≫ |
| 42 | (eqToIso (congrArg (fun h : T ⟶ Spec Γ(S, ⊤) => (Over.pullback h).obj P) |
| 43 | (Scheme.toSpecΓ_naturality f).symm)).hom.left ≫ |
| 44 | ((Over.pullbackComp f S.toSpecΓ).app P).hom.left |
| 45 | |
| 46 | private def factoredBaseChangeHom {S T : Scheme.{u}} (f : T ⟶ S) (n : ℕ) : |
| 47 | (ProjectivePresentations.projectiveSpaceOver T n).left ⟶ |
| 48 | ((Over.pullback f).obj (ProjectivePresentations.projectiveSpaceOver S n)).left := by |
| 49 | let : Algebra Γ(S, ⊤) Γ(T, ⊤) := f.appTop.hom.toAlgebra |
| 50 | exact pullbackBaseChangeHom f (ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n) |
| 51 | (ProjectivePresentations.affineProjectiveSpace Γ(T, ⊤) n) |
| 52 | (SpaceBaseChange.affineProjectiveSpaceBaseChangeIso (R := Γ(S, ⊤)) (A := Γ(T, ⊤)) n) |
| 53 | |
| 54 | private theorem mapped_trans4_hom_left {S T : Scheme.{u}} |
| 55 | {A B : Over S} {C D E : Over T} |
| 56 | (F : Over S ⥤ Over T) (a : A ≅ B) (b : F.obj B ≅ C) (c : C ≅ D) (d : D ≅ E) : |
| 57 | ((F.mapIso a) ≪≫ b ≪≫ c ≪≫ d).hom.left = |
| 58 | (F.map a.hom).left ≫ b.hom.left ≫ c.hom.left ≫ d.hom.left := rfl |
| 59 | |
| 60 | private theorem baseChange_hom_factorization {S T : Scheme.{u}} (f : T ⟶ S) (n : ℕ) : |
| 61 | (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).hom.left = factoredBaseChangeHom f n := by |
| 62 | let : Algebra Γ(S, ⊤) Γ(T, ⊤) := f.appTop.hom.toAlgebra |
| 63 | let P := ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n |
| 64 | exact mapped_trans4_hom_left (Over.pullback T.toSpecΓ) |
| 65 | (SpaceBaseChange.affineProjectiveSpaceBaseChangeIso (R := Γ(S, ⊤)) (A := Γ(T, ⊤)) n) |
| 66 | ((Over.pullbackComp T.toSpecΓ (Spec.map f.appTop)).symm.app P) |
| 67 | (eqToIso (congrArg (fun h : T ⟶ Spec Γ(S, ⊤) => (Over.pullback h).obj P) |
| 68 | (Scheme.toSpecΓ_naturality f).symm)) |
| 69 | ((Over.pullbackComp f S.toSpecΓ).app P) |
| 70 | |
| 71 | private theorem pullbackBaseChangeHom_coefficients |
| 72 | {S T : Scheme.{u}} (f : T ⟶ S) |
| 73 | (P : Over (Spec Γ(S, ⊤))) (Q : Over (Spec Γ(T, ⊤))) |
| 74 | (a : Q ≅ (Over.pullback (Spec.map f.appTop)).obj P) : |
| 75 | pullbackBaseChangeHom f P Q a ≫ |
| 76 | pullback.fst (pullback.snd P.hom S.toSpecΓ) f ≫ pullback.fst P.hom S.toSpecΓ = |
| 77 | pullback.fst Q.hom T.toSpecΓ ≫ a.hom.left ≫ pullback.fst P.hom (Spec.map f.appTop) := by |
| 78 | let b := (Over.pullbackComp T.toSpecΓ (Spec.map f.appTop)).symm.app P |
| 79 | let c := eqToIso (congrArg (fun h : T ⟶ Spec Γ(S, ⊤) => (Over.pullback h).obj P) |
| 80 | (Scheme.toSpecΓ_naturality f).symm) |
| 81 | let d := (Over.pullbackComp f S.toSpecΓ).app P |
| 82 | have hd : d.hom.left ≫ pullback.fst (pullback.snd P.hom S.toSpecΓ) f ≫ |
| 83 | pullback.fst P.hom S.toSpecΓ = pullback.fst P.hom (f ≫ S.toSpecΓ) := |
| 84 | Pullback.Comparisons.pullbackComp_hom_fst_fst P S.toSpecΓ f |
| 85 | have hc : c.hom.left ≫ pullback.fst P.hom (f ≫ S.toSpecΓ) = |
| 86 | pullback.fst P.hom (T.toSpecΓ ≫ Spec.map f.appTop) := |
| 87 | EqualBasePullbackProjections.equalBasePullback_hom_fst P _ _ (Scheme.toSpecΓ_naturality f).symm |
| 88 | have hb : b.hom.left ≫ pullback.fst P.hom (T.toSpecΓ ≫ Spec.map f.appTop) = |
| 89 | pullback.fst (pullback.snd P.hom (Spec.map f.appTop)) T.toSpecΓ ≫ |
| 90 | pullback.fst P.hom (Spec.map f.appTop) := |
| 91 | pullbackComp_inv_fst P (Spec.map f.appTop) T.toSpecΓ |
| 92 | let m := ((Over.pullback T.toSpecΓ).map a.hom).left |
| 93 | exact projection_chain m b.hom.left c.hom.left d.hom.left |
| 94 | (pullback.fst (pullback.snd P.hom S.toSpecΓ) f) (pullback.fst P.hom S.toSpecΓ) |
| 95 | (pullback.fst P.hom (f ≫ S.toSpecΓ)) |
| 96 | (pullback.fst P.hom (T.toSpecΓ ≫ Spec.map f.appTop)) |
| 97 | (pullback.fst (pullback.snd P.hom (Spec.map f.appTop)) T.toSpecΓ) |
| 98 | (pullback.fst P.hom (Spec.map f.appTop)) |
| 99 | (pullback.fst Q.hom T.toSpecΓ) a.hom.left |
| 100 | (a.hom.left ≫ pullback.fst P.hom (Spec.map f.appTop)) |
| 101 | hd hc hb (Pullback.Comparisons.overPullback_map_left_fst a.hom T.toSpecΓ) rfl |
| 102 | |
| 103 | private theorem factoredBaseChangeHom_coefficients |
| 104 | {S T : Scheme.{u}} (f : T ⟶ S) (n : ℕ) : |
| 105 | factoredBaseChangeHom f n ≫ pullback.fst (ProjectivePresentations.projectiveSpaceOver S n).hom f ≫ |
| 106 | RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection S n = |
| 107 | RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection T n ≫ CoefficientFunctoriality.polynomialProjectiveMap f.appTop n := by |
| 108 | let : Algebra Γ(S, ⊤) Γ(T, ⊤) := f.appTop.hom.toAlgebra |
| 109 | exact (pullbackBaseChangeHom_coefficients f (ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n) |
| 110 | (ProjectivePresentations.affineProjectiveSpace Γ(T, ⊤) n) |
| 111 | (SpaceBaseChange.affineProjectiveSpaceBaseChangeIso (R := Γ(S, ⊤)) (A := Γ(T, ⊤)) n)).trans |
| 112 | (congrArg (fun k => pullback.fst (ProjectivePresentations.affineProjectiveSpace Γ(T, ⊤) n).hom T.toSpecΓ ≫ k) |
| 113 | (SpaceBaseChange.affineProjectiveSpaceBaseChangeIso_hom_fst (R := Γ(S, ⊤)) (A := Γ(T, ⊤)) n)) |
| 114 | |
| 115 | theorem projectiveSpaceOverBaseChangeIso_hom_coefficients |
| 116 | {S T : Scheme.{u}} (f : T ⟶ S) (n : ℕ) : |
| 117 | (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).hom.left ≫ |
| 118 | pullback.fst (ProjectivePresentations.projectiveSpaceOver S n).hom f ≫ RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection S n = |
| 119 | RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection T n ≫ CoefficientFunctoriality.polynomialProjectiveMap f.appTop n := by |
| 120 | exact (congrArg (fun k => k ≫ pullback.fst (ProjectivePresentations.projectiveSpaceOver S n).hom f ≫ |
| 121 | RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection S n) (baseChange_hom_factorization f n)).trans |
| 122 | (factoredBaseChangeHom_coefficients f n) |
| 123 | |
| 124 | theorem projectiveSpaceOverBaseChangeIso_hom_fst |
| 125 | {S T : Scheme.{u}} (f : T ⟶ S) (n : ℕ) : |
| 126 | (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).hom.left ≫ |
| 127 | pullback.fst (ProjectivePresentations.projectiveSpaceOver S n).hom f = RelativeProjective.BaseMaps.relativeProjectiveBaseMap f n := by |
| 128 | apply (RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection_isPullback S n).hom_ext |
| 129 | · exact (Category.assoc _ _ _).trans |
| 130 | ((projectiveSpaceOverBaseChangeIso_hom_coefficients f n).trans |
| 131 | (RelativeProjective.BaseMaps.relativeProjectiveBaseMap_fst f n).symm) |
| 132 | · rw [Category.assoc, pullback.condition, ← Category.assoc] |
| 133 | exact (congrArg (fun k => k ≫ f) (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).hom.w).trans |
| 134 | (RelativeProjective.BaseMaps.relativeProjectiveBaseMap_over f n).symm |
| 135 | |
| 136 | theorem projectiveSpaceOverBaseChangeIso_inv_baseMap |
| 137 | {S T : Scheme.{u}} (f : T ⟶ S) (n : ℕ) : |
| 138 | (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).inv.left ≫ RelativeProjective.BaseMaps.relativeProjectiveBaseMap f n = |
| 139 | pullback.fst (ProjectivePresentations.projectiveSpaceOver S n).hom f := |
| 140 | (((Over.forget T).mapIso (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n)).inv_comp_eq).mpr |
| 141 | (projectiveSpaceOverBaseChangeIso_hom_fst f n).symm |
| 142 | |
| 143 | end |
| 144 | |
| 145 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.BaseChangeIsoProjections |