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.AffineProjective.PointLifts |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.AffineCover |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.IdealOpenMatching |
| 4 | |
| 5 | /-! # Ideal Matching -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineProjective.IdealMatching |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Coefficient-compatible ideals on affine projective spaces agree on all overlaps. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | structure AffineProjectiveIdealData (S : Scheme.{u}) (n : ℕ) where |
| 18 | ideal : ∀ {R : CommRingCat.{u}}, (Spec R ⟶ S) → (Projective.ProjectivePresentations.affineProjectiveSpace R n).left.IdealSheafData |
| 19 | naturality : ∀ {R A : CommRingCat.{u}} (φ : R ⟶ A) (x : Spec R ⟶ S), |
| 20 | ideal (Spec.map φ ≫ x) = (ideal x).comap (Projective.CoefficientFunctoriality.polynomialProjectiveMap φ n) |
| 21 | |
| 22 | namespace AffineProjectiveIdealData |
| 23 | |
| 24 | variable {S : Scheme.{u}} {n : ℕ} (D : AffineProjectiveIdealData S n) |
| 25 | |
| 26 | theorem point_ideal {R A : CommRingCat.{u}} (x : Spec R ⟶ S) |
| 27 | (a : Spec A ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace R n).left) : |
| 28 | (D.ideal x).comap a = |
| 29 | (D.ideal (Spec.map (PointLifts.affineProjectivePointCoefficients a) ≫ x)).comap |
| 30 | (PointLifts.affineProjectivePointLift a) := |
| 31 | (congrArg (fun f => (D.ideal x).comap f) (PointLifts.affineProjectivePointLift_map a).symm).trans |
| 32 | (((D.ideal x).comap_comp _ _).trans |
| 33 | (congrArg (fun I => I.comap (PointLifts.affineProjectivePointLift a)) |
| 34 | (D.naturality (PointLifts.affineProjectivePointCoefficients a) x).symm)) |
| 35 | |
| 36 | theorem affine_compatible {R Q A : CommRingCat.{u}} (x : Spec R ⟶ S) (y : Spec Q ⟶ S) |
| 37 | (a : Spec A ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace R n).left) |
| 38 | (b : Spec A ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace Q n).left) |
| 39 | (h : a ≫ Charts.affineProjectiveChartMap x n = b ≫ Charts.affineProjectiveChartMap y n) : |
| 40 | (D.ideal x).comap a = (D.ideal y).comap b := by |
| 41 | let φ := PointLifts.affineProjectivePointCoefficients a |
| 42 | let ψ := PointLifts.affineProjectivePointCoefficients b |
| 43 | have hy : Spec.map φ ≫ x = Spec.map ψ ≫ y := by |
| 44 | calc |
| 45 | Spec.map φ ≫ x = (a ≫ (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom) ≫ x := |
| 46 | congrArg (fun f => f ≫ x) (PointLifts.affineProjectivePointCoefficients_spec a) |
| 47 | _ = (a ≫ Charts.affineProjectiveChartMap x n) ≫ (Projective.ProjectivePresentations.projectiveSpaceOver S n).hom := by |
| 48 | simp only [Category.assoc, Charts.affineProjectiveChartMap_over] |
| 49 | _ = (b ≫ Charts.affineProjectiveChartMap y n) ≫ (Projective.ProjectivePresentations.projectiveSpaceOver S n).hom := |
| 50 | congrArg (fun f => f ≫ (Projective.ProjectivePresentations.projectiveSpaceOver S n).hom) h |
| 51 | _ = (b ≫ (Projective.ProjectivePresentations.affineProjectiveSpace Q n).hom) ≫ y := by |
| 52 | simp only [Category.assoc, Charts.affineProjectiveChartMap_over] |
| 53 | _ = Spec.map ψ ≫ y := |
| 54 | congrArg (fun f => f ≫ y) (PointLifts.affineProjectivePointCoefficients_spec b).symm |
| 55 | have hz : PointLifts.affineProjectivePointLift a = PointLifts.affineProjectivePointLift b := by |
| 56 | apply (Charts.affineProjectiveChartMap_isPullback (Spec.map φ ≫ x) n).hom_ext |
| 57 | · exact (PointLifts.affineProjectivePointLift_chart a x).trans |
| 58 | (h.trans ((PointLifts.affineProjectivePointLift_chart b y).symm.trans |
| 59 | (congrArg (fun f => PointLifts.affineProjectivePointLift b ≫ Charts.affineProjectiveChartMap f n) hy.symm))) |
| 60 | · exact (PointLifts.affineProjectivePointLift_over a).trans (PointLifts.affineProjectivePointLift_over b).symm |
| 61 | rw [D.point_ideal x a, D.point_ideal y b] |
| 62 | change (D.ideal (Spec.map φ ≫ x)).comap (PointLifts.affineProjectivePointLift a) = |
| 63 | (D.ideal (Spec.map ψ ≫ y)).comap (PointLifts.affineProjectivePointLift b) |
| 64 | rw [hy, hz] |
| 65 | |
| 66 | theorem compatible {R Q : CommRingCat.{u}} {W : Scheme.{u}} |
| 67 | (x : Spec R ⟶ S) (y : Spec Q ⟶ S) |
| 68 | (a : W ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace R n).left) |
| 69 | (b : W ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace Q n).left) |
| 70 | (h : a ≫ Charts.affineProjectiveChartMap x n = b ≫ Charts.affineProjectiveChartMap y n) : |
| 71 | (D.ideal x).comap a = (D.ideal y).comap b := by |
| 72 | apply ClosedFamily.OpenEquality.ideal_eq_of_open_cover W.affineOpenCover.openCover |
| 73 | intro i |
| 74 | exact ((D.ideal x).comap_comp (W.affineOpenCover.f i) a).symm.trans |
| 75 | ((D.affine_compatible x y (W.affineOpenCover.f i ≫ a) (W.affineOpenCover.f i ≫ b) |
| 76 | ((Category.assoc _ _ _).trans |
| 77 | ((congrArg (fun f => W.affineOpenCover.f i ≫ f) h).trans (Category.assoc _ _ _).symm))).trans |
| 78 | ((D.ideal y).comap_comp (W.affineOpenCover.f i) b)) |
| 79 | |
| 80 | def matchingData (C : S.AffineOpenCover) : IdealOpenMatching.IdealOpenMatchingData (Projective.AffineCover.projectiveAffineOpenCover C n) where |
| 81 | ideal i := D.ideal (C.f i) |
| 82 | compatible i j a b h := D.compatible (C.f i) (C.f j) a b h |
| 83 | |
| 84 | end AffineProjectiveIdealData |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineProjective.IdealMatching |