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.Projective.PresentationBaseChange |
| 3 | |
| 4 | /-! # Spec Iso Projections -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.SpecIsoProjections |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The affine-base comparison already used by projective presentations |
| 11 | preserves the coefficient projection. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | set_option cleanup.letToHave false |
| 17 | |
| 18 | def polynomialProjectiveMapIso {R A : CommRingCat.{u}} (e : R ≅ A) (n : ℕ) : |
| 19 | (ProjectivePresentations.affineProjectiveSpace A n).left ≅ (ProjectivePresentations.affineProjectiveSpace R n).left where |
| 20 | hom := CoefficientFunctoriality.polynomialProjectiveMap e.hom n |
| 21 | inv := CoefficientFunctoriality.polynomialProjectiveMap e.inv n |
| 22 | hom_inv_id := by rw [← CoefficientFunctoriality.polynomialProjectiveMap_comp, e.inv_hom_id, CoefficientFunctoriality.polynomialProjectiveMap_id] |
| 23 | inv_hom_id := by rw [← CoefficientFunctoriality.polynomialProjectiveMap_comp, e.hom_inv_id, CoefficientFunctoriality.polynomialProjectiveMap_id] |
| 24 | |
| 25 | theorem equalBasePullback_inv_fst {S T : Scheme.{u}} (A : Over S) |
| 26 | (f g : T ⟶ S) (h : f = g) : |
| 27 | (eqToIso (congrArg (fun b => (Over.pullback b).obj A) h)).inv.left ≫ pullback.fst A.hom f = |
| 28 | pullback.fst A.hom g := |
| 29 | (((Over.forget T).mapIso (eqToIso (congrArg (fun b => (Over.pullback b).obj A) h))).inv_comp_eq).mpr |
| 30 | (EqualBasePullbackProjections.equalBasePullback_hom_fst A f g h).symm |
| 31 | |
| 32 | private theorem over_trans_inv_left_comp {S : Scheme.{u}} {X Y Z : Over S} {W : Scheme.{u}} |
| 33 | (e : X ≅ Y) (f : Y ≅ Z) (p : X.left ⟶ W) (q : Y.left ⟶ W) (r : Z.left ⟶ W) |
| 34 | (he : e.inv.left ≫ p = q) (hf : f.inv.left ≫ q = r) : |
| 35 | (e ≪≫ f).inv.left ≫ p = r := by |
| 36 | change (f.inv.left ≫ e.inv.left) ≫ p = r |
| 37 | rw [Category.assoc, he, hf] |
| 38 | |
| 39 | private theorem changed_base_inv_fst {S T : Scheme.{u}} (P : Over S) |
| 40 | (f g : T ⟶ S) (h : f = g) {Q : Over T} |
| 41 | (a : Q ≅ (Over.pullback g).obj P) : |
| 42 | ((eqToIso (congrArg (fun b => (Over.pullback b).obj P) h)) ≪≫ a.symm).inv.left ≫ |
| 43 | pullback.fst P.hom f = a.hom.left ≫ pullback.fst P.hom g := |
| 44 | over_trans_inv_left_comp _ a.symm _ _ _ (equalBasePullback_inv_fst P f g h) rfl |
| 45 | |
| 46 | theorem projectiveSpaceOverSpecIso_inv_coefficients (R : CommRingCat.{u}) (n : ℕ) : |
| 47 | (SpaceBaseChange.projectiveSpaceOverSpecIso R n).inv.left ≫ RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection (Spec R) n = |
| 48 | CoefficientFunctoriality.polynomialProjectiveMap (Scheme.ΓSpecIso R).hom n := by |
| 49 | let : Algebra Γ(Spec R, ⊤) R := (Scheme.ΓSpecIso R).hom.hom.toAlgebra |
| 50 | let P := ProjectivePresentations.affineProjectiveSpace Γ(Spec R, ⊤) n |
| 51 | let a := SpaceBaseChange.affineProjectiveSpaceBaseChangeIso (R := Γ(Spec R, ⊤)) (A := R) n |
| 52 | have h := changed_base_inv_fst P _ _ (SpecMap_ΓSpecIso_hom R).symm a |
| 53 | exact h.trans (SpaceBaseChange.affineProjectiveSpaceBaseChangeIso_hom_fst (R := Γ(Spec R, ⊤)) (A := R) n) |
| 54 | |
| 55 | /-- The composite target comparison appearing in the existing product presentation. -/ |
| 56 | def projectiveCoefficientReturnIso (S : Scheme.{u}) (n : ℕ) : |
| 57 | ProjectivePresentations.projectiveSpaceOver S n ≅ ProjectivePresentations.projectiveSpaceOver S n := |
| 58 | (PresentationBaseChange.nativeAffineProjectivePresentation Γ(S, ⊤) n).baseChangeIso S.toSpecΓ |
| 59 | |
| 60 | theorem projectiveCoefficientReturnIso_hom_coefficients (S : Scheme.{u}) (n : ℕ) : |
| 61 | (projectiveCoefficientReturnIso S n).hom.left ≫ RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection S n = |
| 62 | RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection S n := by |
| 63 | let e := Scheme.ΓSpecIso Γ(S, ⊤) |
| 64 | let a := CoefficientFunctoriality.polynomialProjectiveMap e.hom n |
| 65 | let : IsIso a := inferInstanceAs (IsIso (polynomialProjectiveMapIso e n).hom) |
| 66 | let j := (SpaceBaseChange.projectiveSpaceOverSpecIso Γ(S, ⊤) n).inv |
| 67 | let b := (SpaceBaseChange.projectiveSpaceOverBaseChangeIso S.toSpecΓ n).inv.left |
| 68 | let k := ((Over.pullback S.toSpecΓ).map j).left |
| 69 | let q := RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection S n |
| 70 | let q' := RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection (Spec Γ(S, ⊤)) n |
| 71 | have hbase : RelativeProjective.BaseMaps.relativeProjectiveBaseMap S.toSpecΓ n ≫ q' = q ≫ a := by |
| 72 | have h := RelativeProjective.BaseMaps.relativeProjectiveBaseMap_fst S.toSpecΓ n |
| 73 | rw [Scheme.toSpecΓ_appTop] at h |
| 74 | exact h |
| 75 | apply (cancel_mono a).mp |
| 76 | change ((k ≫ b) ≫ q) ≫ a = q ≫ a |
| 77 | calc |
| 78 | _ = k ≫ b ≫ (q ≫ a) := by simp only [Category.assoc] |
| 79 | _ = k ≫ b ≫ (RelativeProjective.BaseMaps.relativeProjectiveBaseMap S.toSpecΓ n ≫ q') := |
| 80 | congrArg (fun v => k ≫ b ≫ v) hbase.symm |
| 81 | _ = (k ≫ pullback.fst (ProjectivePresentations.projectiveSpaceOver (Spec Γ(S, ⊤)) n).hom S.toSpecΓ) ≫ q' := by |
| 82 | rw [← Category.assoc b, BaseChangeIsoProjections.projectiveSpaceOverBaseChangeIso_inv_baseMap] |
| 83 | exact (Category.assoc _ _ _).symm |
| 84 | _ = (q ≫ j.left) ≫ q' := congrArg (fun v => v ≫ q') (Pullback.Comparisons.overPullback_map_left_fst j S.toSpecΓ) |
| 85 | _ = q ≫ a := by rw [Category.assoc, projectiveSpaceOverSpecIso_inv_coefficients] |
| 86 | |
| 87 | theorem projectiveCoefficientReturnIso_hom (S : Scheme.{u}) (n : ℕ) : |
| 88 | (projectiveCoefficientReturnIso S n).hom = 𝟙 (ProjectivePresentations.projectiveSpaceOver S n) := by |
| 89 | apply Over.OverMorphism.ext |
| 90 | apply (RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection_isPullback S n).hom_ext |
| 91 | · exact (projectiveCoefficientReturnIso_hom_coefficients S n).trans (Category.id_comp _).symm |
| 92 | · exact (projectiveCoefficientReturnIso S n).hom.w.trans (Category.id_comp _).symm |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.SpecIsoProjections |