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.Tensor.LocalizationSpectrum |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.DiagonalVanishing |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SpectrumRank |
| 4 | |
| 5 | /-! # Diagonal Localization -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DiagonalLocalization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The local diagonal spectrum embeds into the finite-type affine |
| 12 | product. Its closed point contracts to the original affine diagonal |
| 13 | point, whose quotient has the original residue-support dimension. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensor OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.DiagonalTensorNaturality |
| 23 | |
| 24 | variable (K A R : Type u) [Field K] [CommRing A] [CommRing R] |
| 25 | [Algebra K A] [Algebra K R] [Algebra A R] [IsScalarTower K A R] [IsLocalRing R] |
| 26 | |
| 27 | def productMap : DiagonalTensor.Ring K A →ₐ[K] DiagonalTensor.Ring K R := |
| 28 | Algebra.TensorProduct.map (IsScalarTower.toAlgHom K A R) (IsScalarTower.toAlgHom K A R) |
| 29 | |
| 30 | def map : DiagonalTensor.Ring K A →+* Local.DiagonalVanishing.localRing K R := |
| 31 | (algebraMap (DiagonalTensor.Ring K R) (Local.DiagonalVanishing.localRing K R)).comp (productMap K A R).toRingHom |
| 32 | |
| 33 | omit [IsLocalRing R] in |
| 34 | theorem product_strict (S : Submonoid A) [IsLocalization S R] : |
| 35 | StrictMono (PrimeSpectrum.comap (productMap K A R).toRingHom) := by |
| 36 | have h : (productMap K A R).toRingHom = |
| 37 | (Tensor.LocalizationSpectrum.rightMap K A R R).comp |
| 38 | (Tensor.LocalizationSpectrum.leftMap K A R A) := by |
| 39 | ext a <;> simp [productMap, Tensor.LocalizationSpectrum.rightMap, |
| 40 | Tensor.LocalizationSpectrum.leftMap] |
| 41 | intro p q hpq |
| 42 | rw [h] |
| 43 | exact Tensor.LocalizationSpectrum.left_strict K A R A S |
| 44 | (Tensor.LocalizationSpectrum.right_strict K A R R S hpq) |
| 45 | |
| 46 | theorem strict (S : Submonoid A) [IsLocalization S R] : |
| 47 | StrictMono (PrimeSpectrum.comap (DiagonalLocalization.map K A R)) := by |
| 48 | intro p q hpq |
| 49 | exact product_strict K A R S |
| 50 | (Tensor.LocalizationSpectrum.strict_comap (DiagonalTensor.Ring K R) |
| 51 | (Local.DiagonalVanishing.localRing K R) (DiagonalSupport.point K R).asIdeal.primeCompl hpq) |
| 52 | |
| 53 | omit [IsLocalRing R] in |
| 54 | theorem multiplication_natural : |
| 55 | (DiagonalTensor.multiplication K R).comp (productMap K A R).toRingHom = |
| 56 | (algebraMap A R).comp (DiagonalTensor.multiplication K A) := by |
| 57 | ext a <;> simp [DiagonalTensor.multiplication, productMap] |
| 58 | |
| 59 | theorem closed (x : PrimeSpectrum A) [IsLocalization x.asIdeal.primeCompl R] : |
| 60 | PrimeSpectrum.comap (DiagonalLocalization.map K A R) (IsLocalRing.closedPoint (Local.DiagonalVanishing.localRing K R)) = |
| 61 | PrimeSpectrum.comap (DiagonalTensor.multiplication K A) x := by |
| 62 | apply PrimeSpectrum.ext |
| 63 | change ((IsLocalRing.maximalIdeal (Local.DiagonalVanishing.localRing K R)).under |
| 64 | (DiagonalTensor.Ring K R)).comap |
| 65 | (productMap K A R).toRingHom = _ |
| 66 | rw [Localization.AtPrime.under_maximalIdeal] |
| 67 | change (IsLocalRing.maximalIdeal R).comap |
| 68 | ((DiagonalTensor.multiplication K R).comp (productMap K A R).toRingHom) = _ |
| 69 | rw [multiplication_natural] |
| 70 | change ((IsLocalRing.maximalIdeal R).under A).comap (DiagonalTensor.multiplication K A) = _ |
| 71 | rw [IsLocalization.AtPrime.under_maximalIdeal R x.asIdeal] |
| 72 | rfl |
| 73 | |
| 74 | omit [Algebra K R] [Algebra A R] [IsScalarTower K A R] [IsLocalRing R] in |
| 75 | theorem diagonal_dimension (x : PrimeSpectrum A) : |
| 76 | SpectrumRank.dimension K (DiagonalTensor.Ring K A) (PrimeSpectrum.comap (DiagonalTensor.multiplication K A) x) = |
| 77 | SpectrumRank.dimension K A x := by |
| 78 | let f : DiagonalTensor.Ring K A →ₐ[K] A ⧸ x.asIdeal := |
| 79 | (Ideal.Quotient.mkₐ K x.asIdeal).comp (Algebra.TensorProduct.lmul' K) |
| 80 | have hf : Function.Surjective f := |
| 81 | Ideal.Quotient.mk_surjective.comp (DiagonalSupport.multiplication_surjective K A) |
| 82 | have hk : RingHom.ker f.toRingHom = (PrimeSpectrum.comap (DiagonalTensor.multiplication K A) x).asIdeal := by |
| 83 | ext t |
| 84 | change Ideal.Quotient.mk x.asIdeal (DiagonalTensor.multiplication K A t) = 0 ↔ _ |
| 85 | exact Ideal.Quotient.eq_zero_iff_mem |
| 86 | let e : (DiagonalTensor.Ring K A ⧸ RingHom.ker f.toRingHom) ≃ₐ[K] (A ⧸ x.asIdeal) := |
| 87 | Ideal.quotientKerAlgEquivOfSurjective hf |
| 88 | have he := AlgEquiv.trdeg_eq (R := K) (A := DiagonalTensor.Ring K A ⧸ RingHom.ker f.toRingHom) e |
| 89 | rw [hk] at he |
| 90 | exact congrArg Cardinal.toNat he |
| 91 | |
| 92 | end |
| 93 | |
| 94 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.DiagonalLocalization |