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.Stalk.PrimeQuotient |
| 2 | import Mathlib.RingTheory.Localization.Ideal |
| 3 | |
| 4 | /-! # Support Stalk -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The native reduced support of an affine prime has, at every |
| 11 | specialization, the quotient of the ambient stalk by the extended |
| 12 | prime ideal. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 20 | |
| 21 | variable (R : Type) [CommRing R] |
| 22 | |
| 23 | def support (q : PrimeSpectrum R) : IrreducibleCloseds (Spec (.of R)) := |
| 24 | irreducibleSetEquivPoints.symm q |
| 25 | |
| 26 | theorem point (q : PrimeSpectrum R) : CycleClass.Thom.IntersectionGeometry.supportPoint (support R q) = q := |
| 27 | (irreducibleSetEquivPoints (α := (Spec (.of R)))).apply_symm_apply q |
| 28 | |
| 29 | theorem mem (q p : PrimeSpectrum R) (hqp : q.asIdeal ≤ p.asIdeal) : p ∈ (support R q : Set (Spec (.of R))) := by |
| 30 | change p ∈ closure ({q} : Set (Spec (.of R))) |
| 31 | exact specializes_iff_mem_closure.mp ((PrimeSpectrum.le_iff_specializes q p).mp hqp) |
| 32 | |
| 33 | theorem kernel_comap (q p : PrimeSpectrum R) (hqp : q.asIdeal ≤ p.asIdeal) : |
| 34 | (Stalk.PrimeQuotient.kernelPrime (Spec (.of R)) (support R q) p (mem R q p hqp)).asIdeal.comap |
| 35 | (StructureSheaf.toStalk R p).hom = q.asIdeal := by |
| 36 | have h := Stalk.PrimeQuotient.kernelPrime_image (Spec (.of R)) (support R q) p (mem R q p hqp) |
| 37 | rw [point, Spec.fromSpecStalk_eq'] at h |
| 38 | exact congrArg PrimeSpectrum.asIdeal h |
| 39 | |
| 40 | theorem kernel_map (q p : PrimeSpectrum R) (hqp : q.asIdeal ≤ p.asIdeal) : |
| 41 | q.asIdeal.map (StructureSheaf.toStalk R p).hom = |
| 42 | (Stalk.PrimeQuotient.kernelPrime (Spec (.of R)) (support R q) p (mem R q p hqp)).asIdeal := by |
| 43 | let : Algebra R ((Spec (.of R)).presheaf.stalk p) := (StructureSheaf.toStalk R p).hom.toAlgebra |
| 44 | let : IsLocalization p.asIdeal.primeCompl ((Spec (.of R)).presheaf.stalk p) := by |
| 45 | change IsLocalization p.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk p) |
| 46 | infer_instance |
| 47 | have h := IsLocalization.map_under p.asIdeal.primeCompl |
| 48 | ((Spec (.of R)).presheaf.stalk p) |
| 49 | (Stalk.PrimeQuotient.kernelPrime (Spec (.of R)) (support R q) p (mem R q p hqp)).asIdeal |
| 50 | change ((Stalk.PrimeQuotient.kernelPrime (Spec (.of R)) (support R q) p (mem R q p hqp)).asIdeal.comap |
| 51 | (StructureSheaf.toStalk R p).hom).map (StructureSheaf.toStalk R p).hom = _ at h |
| 52 | rwa [kernel_comap R q p hqp] at h |
| 53 | |
| 54 | def moduleEquiv (q p : PrimeSpectrum R) (hqp : q.asIdeal ≤ p.asIdeal) : |
| 55 | CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) (support R q) p (mem R q p hqp) ≃ₗ[ |
| 56 | (Spec (.of R)).presheaf.stalk p] |
| 57 | ((Spec (.of R)).presheaf.stalk p ⧸ q.asIdeal.map (StructureSheaf.toStalk R p).hom) := |
| 58 | (Stalk.PrimeQuotient.moduleEquiv (Spec (.of R)) (support R q) p (mem R q p hqp) |
| 59 | (Stalk.PrimeQuotient.kernelPrime (Spec (.of R)) (support R q) p (mem R q p hqp)) |
| 60 | (Stalk.PrimeQuotient.kernelPrime_image (Spec (.of R)) (support R q) p (mem R q p hqp))).trans |
| 61 | (Submodule.quotEquivOfEq _ _ (kernel_map R q p hqp).symm) |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportStalk |