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.IntersectionTheory.ProjectionFormula.Affine.SpectrumRank |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.SupportSpectrum |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.SupportDimensionDrop |
| 4 | |
| 5 | /-! # Geometric Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.GeometricRank |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The affine transcendence rank equals the actual dimension of the |
| 12 | closure of the corresponding geometric point. Support containment in |
| 13 | the scheme therefore bounds every contracted stalk prime. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | |
| 20 | variable {K : Type} [Field K] {X : Scheme} |
| 21 | |
| 22 | def support (U : X.affineOpens) (p : PrimeSpectrum Γ(X, U)) : IrreducibleCloseds X := |
| 23 | irreducibleSetEquivPoints.symm (U.2.fromSpec p) |
| 24 | |
| 25 | theorem ideal (U : X.affineOpens) (p : PrimeSpectrum Γ(X, U)) : |
| 26 | (CycleClass.Geometric.GenericPoint.reducedSupportIdeal (support U p)).ideal U = p.asIdeal := by |
| 27 | change PrimeSpectrum.vanishingIdeal (U.2.fromSpec ⁻¹' closure ({U.2.fromSpec p} : Set X)) = _ |
| 28 | have he := U.2.fromSpec.isOpenEmbedding.isInducing.closure_eq_preimage_closure_image ({p} : Set (Spec Γ(X, U))) |
| 29 | rw [Set.image_singleton] at he |
| 30 | rw [← he, PrimeSpectrum.vanishingIdeal_closure, PrimeSpectrum.vanishingIdeal_singleton] |
| 31 | |
| 32 | theorem dimension (f : X ⟶ Spec (.of K)) (U : X.affineOpens) (p : PrimeSpectrum Γ(X, U)) : |
| 33 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 34 | SpectrumRank.dimension K Γ(X, U) p = Foundations.Scheme.SupportDimension.supportTranscendenceDimension (support U p) f := by |
| 35 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 36 | let : Nonempty (Foundations.Scheme.SupportAffineQuotient.supportAffineOpen (support U p) U) := |
| 37 | (Foundations.Scheme.SupportAffineInclusion.supportAffineOpen_nonempty_iff (support U p) U).mpr ⟨U.2.fromSpec p, |
| 38 | subset_closure (Set.mem_singleton _), U.2.range_fromSpec ▸ Set.mem_range_self p⟩ |
| 39 | rw [Foundations.Scheme.SupportDimension.supportTranscendenceDimension_eq_affineQuotient (support U p) f U] |
| 40 | change (Algebra.trdeg K (Γ(X, U) ⧸ p.asIdeal)).toNat = |
| 41 | (Algebra.trdeg K (Γ(X, U) ⧸ (CycleClass.Geometric.GenericPoint.reducedSupportIdeal (support U p)).ideal U)).toNat |
| 42 | rw [GeometricRank.ideal] |
| 43 | |
| 44 | theorem point_dimension (f : X ⟶ Spec (.of K)) (U : X.affineOpens) (x : X) (hx : x ∈ U.1) : |
| 45 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 46 | SpectrumRank.dimension K Γ(X, U) (U.2.primeIdealOf ⟨x, hx⟩) = |
| 47 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm x) f := by |
| 48 | rw [dimension] |
| 49 | simp only [support, U.2.fromSpec_primeIdealOf] |
| 50 | |
| 51 | theorem stalk_image (U : X.affineOpens) (x : X) (hx : x ∈ U.1) |
| 52 | (p : PrimeSpectrum (X.presheaf.stalk x)) : |
| 53 | U.2.fromSpec (PrimeSpectrum.comap (X.presheaf.germ U.1 x hx).hom p) = X.fromSpecStalk x p := |
| 54 | congrArg (fun g : Spec (X.presheaf.stalk x) ⟶ X => g p) |
| 55 | (U.2.fromSpecStalk_eq_fromSpecStalk hx) |
| 56 | |
| 57 | theorem support_le (U : X.affineOpens) (x : X) (hx : x ∈ U.1) |
| 58 | (W : IrreducibleCloseds X) (p : PrimeSpectrum (X.presheaf.stalk x)) |
| 59 | (hp : X.fromSpecStalk x p ∈ (W : Set X)) : |
| 60 | support U (PrimeSpectrum.comap (X.presheaf.germ U.1 x hx).hom p) ≤ W := by |
| 61 | change closure ({U.2.fromSpec (PrimeSpectrum.comap (X.presheaf.germ U.1 x hx).hom p)} : Set X) ⊆ _ |
| 62 | rw [stalk_image] |
| 63 | exact closure_minimal (Set.singleton_subset_iff.mpr hp) W.isClosed |
| 64 | |
| 65 | theorem bound (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 66 | (U : X.affineOpens) (x : X) (hx : x ∈ U.1) |
| 67 | (W : IrreducibleCloseds X) (p : PrimeSpectrum (X.presheaf.stalk x)) |
| 68 | (hp : X.fromSpecStalk x p ∈ (W : Set X)) : |
| 69 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 70 | SpectrumRank.dimension K Γ(X, U) (PrimeSpectrum.comap (X.presheaf.germ U.1 x hx).hom p) ≤ |
| 71 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension W f := by |
| 72 | rw [dimension] |
| 73 | exact (Foundations.Scheme.SupportDimensionDrop.supportTranscendenceDimension_strictMono f).monotone (support_le U x hx W p hp) |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.GeometricRank |