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.Generated.AlgebraRationalPointIdeal |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.StalkScalarResidue |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Coefficient.GlobalSectionsPushforward |
| 4 | import Mathlib.AlgebraicGeometry.AffineScheme |
| 5 | |
| 6 | /-! # Point Global Evaluation -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.PointGlobalEvaluation |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Evaluation of global functions at an actual rational section has the |
| 13 | structural coefficient map as a right inverse. Generating functions on |
| 14 | an affine scheme then distinguish this point from every other point. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | universe u v |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | variable {K : Type u} [Field K] {X : Scheme.{u}} |
| 21 | |
| 22 | def rationalPointGlobalEvaluation (p : X ⟶ Spec (.of K)) |
| 23 | (s : Spec (.of K) ⟶ X) (hs : s ≫ p = 𝟙 _) : Γ(X, ⊤) →+* K := |
| 24 | (X.Γevaluation (s (IsLocalRing.closedPoint K)) ≫ |
| 25 | (PointResidue.rationalPointResidueIso p s hs).hom).hom |
| 26 | |
| 27 | theorem rationalPointGlobalEvaluation_coefficient (p : X ⟶ Spec (.of K)) |
| 28 | (s : Spec (.of K) ⟶ X) (hs : s ≫ p = 𝟙 _) (c : K) : |
| 29 | rationalPointGlobalEvaluation p s hs (Coefficient.ModulePresheaf.schemeCoefficientMap p c) = c := by |
| 30 | have h := congrArg (fun f : CommRingCat.of K ⟶ CommRingCat.of K => f c) |
| 31 | (StalkScalarResidue.rationalStalkResidueCoefficient_comp_residueIso p s hs) |
| 32 | change (PointResidue.rationalPointResidueIso p s hs).hom (StalkScalarResidue.rationalStalkResidueCoefficient p s c) = c at h |
| 33 | exact h |
| 34 | |
| 35 | theorem rationalPointGlobalEvaluation_eq_zero (p : X ⟶ Spec (.of K)) |
| 36 | (s : Spec (.of K) ⟶ X) (hs : s ≫ p = 𝟙 _) (r : Γ(X, ⊤)) : |
| 37 | rationalPointGlobalEvaluation p s hs r = 0 ↔ |
| 38 | s (IsLocalRing.closedPoint K) ∉ X.basicOpen r := by |
| 39 | let e := (PointResidue.rationalPointResidueIso p s hs).commRingCatIsoToRingEquiv |
| 40 | change e (X.Γevaluation (s (IsLocalRing.closedPoint K)) r) = 0 ↔ _ |
| 41 | constructor |
| 42 | · intro h |
| 43 | apply (X.evaluation_eq_zero_iff_notMem_basicOpen (U := ⊤) (s (IsLocalRing.closedPoint K)) trivial r).mp |
| 44 | apply e.injective |
| 45 | simpa only [map_zero] using h |
| 46 | · intro h |
| 47 | rw [(X.evaluation_eq_zero_iff_notMem_basicOpen (U := ⊤) (s (IsLocalRing.closedPoint K)) trivial r).mpr h, map_zero] |
| 48 | |
| 49 | theorem globalSection_mem_toSpecPrime (x : X) (r : Γ(X, ⊤)) : |
| 50 | r ∈ (X.toSpecΓ x).asIdeal ↔ x ∉ X.basicOpen r := by |
| 51 | have h := (congrArg (fun U : X.Opens => x ∈ U) |
| 52 | (Scheme.toSpecΓ_preimage_basicOpen X r)).to_iff |
| 53 | change (r ∉ (X.toSpecΓ x).asIdeal ↔ x ∈ X.basicOpen r) at h |
| 54 | simpa only [not_not] using not_congr h |
| 55 | |
| 56 | theorem rationalPointGlobalEvaluation_kernel (p : X ⟶ Spec (.of K)) |
| 57 | (s : Spec (.of K) ⟶ X) (hs : s ≫ p = 𝟙 _) : |
| 58 | RingHom.ker (rationalPointGlobalEvaluation p s hs) = |
| 59 | (X.toSpecΓ (s (IsLocalRing.closedPoint K))).asIdeal := by |
| 60 | ext r |
| 61 | exact (rationalPointGlobalEvaluation_eq_zero p s hs r).trans |
| 62 | (globalSection_mem_toSpecPrime _ r).symm |
| 63 | |
| 64 | theorem affineScheme_eq_rationalPoint_of_generators [IsAffine X] |
| 65 | (p : X ⟶ Spec (.of K)) (s : Spec (.of K) ⟶ X) (hs : s ≫ p = 𝟙 _) |
| 66 | {ι : Type v} (v : ι → Γ(X, ⊤)) |
| 67 | (hv : letI := (Coefficient.ModulePresheaf.schemeCoefficientMap p).toAlgebra; |
| 68 | Algebra.adjoin K (Set.range v) = ⊤) |
| 69 | (x : X) |
| 70 | (hx : ∀ i, x ∉ X.basicOpen |
| 71 | (v i - Coefficient.ModulePresheaf.schemeCoefficientMap p (rationalPointGlobalEvaluation p s hs (v i)))) : |
| 72 | x = s (IsLocalRing.closedPoint K) := by |
| 73 | let := (Coefficient.ModulePresheaf.schemeCoefficientMap p).toAlgebra |
| 74 | let φ : Γ(X, ⊤) →ₐ[K] K := |
| 75 | { __ := rationalPointGlobalEvaluation p s hs |
| 76 | commutes' := rationalPointGlobalEvaluation_coefficient p s hs } |
| 77 | have : (X.toSpecΓ x).asIdeal.IsPrime := (X.toSpecΓ x).isPrime |
| 78 | have hP : (X.toSpecΓ x).asIdeal = RingHom.ker φ.toRingHom := |
| 79 | Generated.AlgebraRationalPointIdeal.generatedAlgebra_prime_eq_rationalPoint v hv φ (X.toSpecΓ x).asIdeal |
| 80 | (fun i => (globalSection_mem_toSpecPrime x _).mpr (hx i)) |
| 81 | have he : X.toSpecΓ x = X.toSpecΓ (s (IsLocalRing.closedPoint K)) := by |
| 82 | apply PrimeSpectrum.ext |
| 83 | exact hP.trans (rationalPointGlobalEvaluation_kernel p s hs) |
| 84 | have he' : X.isoSpec.hom x = X.isoSpec.hom (s (IsLocalRing.closedPoint K)) := he |
| 85 | have h := congrArg (fun y => X.isoSpec.inv y) he' |
| 86 | simpa using h |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.PointGlobalEvaluation |