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.CoefficientFunctoriality |
| 2 | |
| 3 | /-! # Charts -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineProjective.Charts |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Explicit affine charts of relative projective space, compatible with every affine base map. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {S : Scheme.{u}} {R A : CommRingCat.{u}} |
| 16 | |
| 17 | def affinePointCoefficients (x : Spec R ⟶ S) : Γ(S, ⊤) ⟶ R := |
| 18 | x.appTop ≫ (Scheme.ΓSpecIso R).hom |
| 19 | |
| 20 | theorem affinePointCoefficients_spec (x : Spec R ⟶ S) : |
| 21 | Spec.map (affinePointCoefficients x) = x ≫ S.toSpecΓ := by |
| 22 | change Spec.map (x.appTop ≫ (Scheme.ΓSpecIso R).hom) = _ |
| 23 | rw [Spec.map_comp, SpecMap_ΓSpecIso_hom] |
| 24 | exact (Scheme.toSpecΓ_naturality x).symm |
| 25 | |
| 26 | theorem affinePointCoefficients_comp (φ : R ⟶ A) (x : Spec R ⟶ S) : |
| 27 | affinePointCoefficients (Spec.map φ ≫ x) = affinePointCoefficients x ≫ φ := by |
| 28 | change (x.appTop ≫ (Spec.map φ).appTop) ≫ (Scheme.ΓSpecIso A).hom = |
| 29 | (x.appTop ≫ (Scheme.ΓSpecIso R).hom) ≫ φ |
| 30 | rw [Category.assoc, Scheme.ΓSpecIso_naturality, Category.assoc] |
| 31 | |
| 32 | def affineProjectiveChartMap (x : Spec R ⟶ S) (n : ℕ) : |
| 33 | (Projective.ProjectivePresentations.affineProjectiveSpace R n).left ⟶ (Projective.ProjectivePresentations.projectiveSpaceOver S n).left := |
| 34 | pullback.lift (Projective.CoefficientFunctoriality.polynomialProjectiveMap (affinePointCoefficients x) n) |
| 35 | ((Projective.ProjectivePresentations.affineProjectiveSpace R n).hom ≫ x) (by |
| 36 | rw [Projective.CoefficientFunctoriality.polynomialProjectiveMap_over, affinePointCoefficients_spec, Category.assoc]) |
| 37 | |
| 38 | theorem affineProjectiveChartMap_fst (x : Spec R ⟶ S) (n : ℕ) : |
| 39 | affineProjectiveChartMap x n ≫ |
| 40 | pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ = |
| 41 | Projective.CoefficientFunctoriality.polynomialProjectiveMap (affinePointCoefficients x) n := |
| 42 | pullback.lift_fst _ _ _ |
| 43 | |
| 44 | theorem affineProjectiveChartMap_over (x : Spec R ⟶ S) (n : ℕ) : |
| 45 | affineProjectiveChartMap x n ≫ (Projective.ProjectivePresentations.projectiveSpaceOver S n).hom = |
| 46 | (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom ≫ x := |
| 47 | pullback.lift_snd _ _ _ |
| 48 | |
| 49 | theorem affineProjectiveChartMap_isPullback (x : Spec R ⟶ S) (n : ℕ) : |
| 50 | IsPullback (affineProjectiveChartMap x n) (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom |
| 51 | (Projective.ProjectivePresentations.projectiveSpaceOver S n).hom x := by |
| 52 | have h := Projective.CoefficientFunctoriality.polynomialProjectiveMap_isPullback (affinePointCoefficients x) n |
| 53 | rw [affinePointCoefficients_spec] at h |
| 54 | let p : (Projective.ProjectivePresentations.projectiveSpaceOver S n).left ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).left := |
| 55 | pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ |
| 56 | have hs : IsPullback (affineProjectiveChartMap x n ≫ p) |
| 57 | (Projective.ProjectivePresentations.affineProjectiveSpace R n).hom (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom |
| 58 | (x ≫ S.toSpecΓ) := by |
| 59 | rw [show affineProjectiveChartMap x n ≫ p = |
| 60 | Projective.CoefficientFunctoriality.polynomialProjectiveMap (affinePointCoefficients x) n from affineProjectiveChartMap_fst x n] |
| 61 | exact h |
| 62 | exact hs.of_right (affineProjectiveChartMap_over x n) |
| 63 | (IsPullback.of_hasPullback (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ) |
| 64 | |
| 65 | theorem affineProjectiveChartMap_naturality (φ : R ⟶ A) (x : Spec R ⟶ S) (n : ℕ) : |
| 66 | Projective.CoefficientFunctoriality.polynomialProjectiveMap φ n ≫ affineProjectiveChartMap x n = |
| 67 | affineProjectiveChartMap (Spec.map φ ≫ x) n := by |
| 68 | apply pullback.hom_ext |
| 69 | · let p : (Projective.ProjectivePresentations.projectiveSpaceOver S n).left ⟶ (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).left := |
| 70 | pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(S, ⊤) n).hom S.toSpecΓ |
| 71 | change (Projective.CoefficientFunctoriality.polynomialProjectiveMap φ n ≫ affineProjectiveChartMap x n) ≫ p = |
| 72 | affineProjectiveChartMap (Spec.map φ ≫ x) n ≫ p |
| 73 | exact (Category.assoc _ _ p).trans |
| 74 | ((congrArg (fun k => Projective.CoefficientFunctoriality.polynomialProjectiveMap φ n ≫ k) (affineProjectiveChartMap_fst x n)).trans |
| 75 | ((Projective.CoefficientFunctoriality.polynomialProjectiveMap_comp (affinePointCoefficients x) φ n).symm.trans |
| 76 | ((congrArg (fun k => Projective.CoefficientFunctoriality.polynomialProjectiveMap k n) (affinePointCoefficients_comp φ x).symm).trans |
| 77 | (affineProjectiveChartMap_fst (Spec.map φ ≫ x) n).symm))) |
| 78 | · change (Projective.CoefficientFunctoriality.polynomialProjectiveMap φ n ≫ affineProjectiveChartMap x n) ≫ |
| 79 | (Projective.ProjectivePresentations.projectiveSpaceOver S n).hom = |
| 80 | affineProjectiveChartMap (Spec.map φ ≫ x) n ≫ (Projective.ProjectivePresentations.projectiveSpaceOver S n).hom |
| 81 | rw [Category.assoc, affineProjectiveChartMap_over, affineProjectiveChartMap_over, |
| 82 | ← Category.assoc, Projective.CoefficientFunctoriality.polynomialProjectiveMap_over, Category.assoc] |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineProjective.Charts |