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.BaseChangeIsoProjections |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ClosedFamily.PullbackRecoveryIso |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RelativeProjective.FamilyBaseChange |
| 4 | |
| 5 | /-! # Closed Family Intrinsic Pullback -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ClosedFamilyIntrinsicPullback |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The geometric inverse-image family in relative projective space |
| 12 | recovers the native categorical pullback compatibly with the precise |
| 13 | projective-presentation base-change embedding. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | universe u |
| 16 | set_option cleanup.letToHave false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | private theorem comp_comparison_inv {C : Type*} [Category C] |
| 21 | {W X Y Z : C} (e : Y ≅ Z) (p : W ⟶ X) (q : X ⟶ Z) (r : W ⟶ Y) |
| 22 | (h : p ≫ q = r ≫ e.hom) : p ≫ (q ≫ e.inv) = r := by |
| 23 | rw [← Category.assoc, h, Category.assoc, e.hom_inv_id, Category.comp_id] |
| 24 | |
| 25 | private theorem functorReturnMap_comp |
| 26 | {C D : Type*} [Category C] [Category D] (F : C ⥤ D) |
| 27 | {X Y : C} {Z W : D} (j : X ⟶ Y) (k : Z ≅ F.obj Y) |
| 28 | (a : W ⟶ F.obj X) (b : W ⟶ Z) (h : a ≫ F.map j = b ≫ k.hom) : |
| 29 | a ≫ CategoryTheory.Functors.FunctorReturnIsomorphism.functorReturnMap F j k = b := by |
| 30 | unfold CategoryTheory.Functors.FunctorReturnIsomorphism.functorReturnMap |
| 31 | rw [← Category.assoc, h, Category.assoc, Iso.hom_inv_id, Category.comp_id] |
| 32 | |
| 33 | private theorem pullbackAlongIso_embedding {S T : Scheme.{u}} {P : Over S} {Q : Over T} |
| 34 | (F : Closed.Families.FlatClosedFamily P) (p : Q.left ⟶ P.left) (f : T ⟶ S) |
| 35 | (hp : IsPullback p Q.hom P.hom f) |
| 36 | (e : Q ≅ (Over.pullback f).obj P) (he : ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso p f hp = e) : |
| 37 | (F.pullbackAlongIso p f hp).hom ≫ |
| 38 | CategoryTheory.Functors.FunctorReturnIsomorphism.functorReturnMap (Over.pullback f) F.inclusion e = |
| 39 | (F.pullbackAlong p f hp).inclusion := |
| 40 | functorReturnMap_comp (Over.pullback f) F.inclusion e _ _ |
| 41 | ((F.pullbackAlongIso_inclusion p f hp).trans |
| 42 | (congrArg (fun z => (F.pullbackAlong p f hp).inclusion ≫ z.hom) he)) |
| 43 | |
| 44 | theorem relativeProjectiveCartesianIso_eq_native |
| 45 | {S T : Scheme.{u}} (f : T ⟶ S) (n : ℕ) : |
| 46 | ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (RelativeProjective.BaseMaps.relativeProjectiveBaseMap f n) f (RelativeProjective.BaseMaps.relativeProjectiveBaseMap_isPullback f n) = |
| 47 | SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n := by |
| 48 | apply Iso.ext |
| 49 | apply Over.OverMorphism.ext |
| 50 | apply pullback.hom_ext |
| 51 | · exact (RelativeProjective.BaseMaps.relativeProjectiveBaseMap_isPullback f n).isoPullback_hom_fst.trans |
| 52 | (BaseChangeIsoProjections.projectiveSpaceOverBaseChangeIso_hom_fst f n).symm |
| 53 | · exact (ClosedFamily.PullbackRecoveryIso.cartesianAmbientOverIso (RelativeProjective.BaseMaps.relativeProjectiveBaseMap f n) f |
| 54 | (RelativeProjective.BaseMaps.relativeProjectiveBaseMap_isPullback f n)).hom.w.trans |
| 55 | (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n).hom.w.symm |
| 56 | |
| 57 | variable {S T : Scheme.{u}} {n : ℕ} (F : Closed.Families.FlatClosedFamily (ProjectivePresentations.projectiveSpaceOver S n)) (f : T ⟶ S) |
| 58 | |
| 59 | def _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed.Families.FlatClosedFamily.projectiveBaseChangeSchemeIso : |
| 60 | (F.projectiveBaseChange f).scheme ≅ (Over.pullback f).obj F.scheme := |
| 61 | F.pullbackAlongIso (RelativeProjective.BaseMaps.relativeProjectiveBaseMap f n) f (RelativeProjective.BaseMaps.relativeProjectiveBaseMap_isPullback f n) |
| 62 | |
| 63 | /-- The inverse-image comparison identifies the native base-change embedding. -/ |
| 64 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Closed.Families.FlatClosedFamily.projectiveBaseChangeSchemeIso_embedding : |
| 65 | (F.projectiveBaseChangeSchemeIso f).hom ≫ |
| 66 | CategoryTheory.Functors.FunctorReturnIsomorphism.functorReturnMap (Over.pullback f) F.inclusion |
| 67 | (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n) = (F.projectiveBaseChange f).inclusion := by |
| 68 | convert (pullbackAlongIso_embedding F (RelativeProjective.BaseMaps.relativeProjectiveBaseMap f n) f |
| 69 | (RelativeProjective.BaseMaps.relativeProjectiveBaseMap_isPullback f n) (SpaceBaseChange.projectiveSpaceOverBaseChangeIso f n) |
| 70 | (relativeProjectiveCartesianIso_eq_native f n)) using 2 <;> rfl |
| 71 | |
| 72 | theorem relativeHilbertFamily_eqSchemeIso_inclusion {S : Scheme.{u}} {n : ℕ} {P : Polynomial ℚ} |
| 73 | {F G : RelativeProjective.Families.RelativeProjectiveHilbertFamily S n P} (h : F = G) : |
| 74 | (eqToIso (congrArg (fun H : RelativeProjective.Families.RelativeProjectiveHilbertFamily S n P => H.family.scheme) h)).hom ≫ |
| 75 | G.family.inclusion = F.family.inclusion := by |
| 76 | cases h |
| 77 | exact Category.id_comp _ |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ClosedFamilyIntrinsicPullback |