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.FixedPrimeFiltration |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ExternalDimension |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum |
| 4 | |
| 5 | /-! # Local Weighted Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalWeightedEuler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The native finite modules of a smooth stalk admit a top-dimensional |
| 12 | Euler expansion. The weights are the lengths at the actual stalk primes; |
| 13 | no affine presentation of the modules is required. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory |
| 19 | open scoped Classical |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SpectrumRank |
| 22 | |
| 23 | theorem quotient_bound (K A R : Type) [Field K] [CommRing A] [CommRing R] |
| 24 | [Algebra K A] [Algebra.FiniteType K A] [Algebra A R] |
| 25 | (q p : PrimeSpectrum R) (hp : p ∈ Module.support R (R ⧸ q.asIdeal)) : |
| 26 | Affine.SpectrumRank.dimension K A (PrimeSpectrum.comap (algebraMap A R) p) ≤ |
| 27 | Affine.SpectrumRank.dimension K A (PrimeSpectrum.comap (algebraMap A R) q) := by |
| 28 | have hle : q.asIdeal ≤ p.asIdeal := by |
| 29 | simpa only [Module.support_of_algebra, Ideal.Quotient.algebraMap_eq, Ideal.mk_ker, |
| 30 | PrimeSpectrum.mem_zeroLocus, SetLike.coe_subset_coe] using hp |
| 31 | exact (Affine.SpectrumRank.strict K A).antitone (Ideal.comap_mono hle) |
| 32 | |
| 33 | theorem exists_data (K A R : Type) [Field K] [CommRing A] [CommRing R] |
| 34 | [Algebra K A] [Algebra K R] [Algebra A R] [IsScalarTower K A R] [IsLocalRing R] |
| 35 | (d : ℕ) [Algebra.IsStandardSmoothOfRelativeDimension d K A] |
| 36 | (x : PrimeSpectrum A) [IsLocalization x.asIdeal.primeCompl R] |
| 37 | (M : ModuleCat R) [Module.Finite R M] (r : ℕ) |
| 38 | (hM : ∀ q ∈ Module.support R M, |
| 39 | Affine.SpectrumRank.dimension K A (PrimeSpectrum.comap (algebraMap A R) q) ≤ r) : |
| 40 | ∃ F : Finset (PrimeSpectrum R), |
| 41 | (∀ q ∈ F, q ∈ Module.support R M ∧ |
| 42 | Affine.SpectrumRank.dimension K A (PrimeSpectrum.comap (algebraMap A R) q) = r ∧ |
| 43 | FiltrationBaseLength.length R (Localization.AtPrime q.asIdeal) M ≠ ⊤) ∧ |
| 44 | (∀ q, Affine.SpectrumRank.dimension K A (PrimeSpectrum.comap (algebraMap A R) q) = r → q ∉ F → |
| 45 | FiltrationBaseLength.length R (Localization.AtPrime q.asIdeal) M = 0) ∧ |
| 46 | ∀ (N : ModuleCat R) [Module.Finite R N] [HasProjectiveDimensionLE N d] (s : ℕ) |
| 47 | (_hN : ∀ q ∈ Module.support R N, |
| 48 | Affine.SpectrumRank.dimension K A (PrimeSpectrum.comap (algebraMap A R) q) ≤ s) |
| 49 | (_heq : r + s = d + Affine.SpectrumRank.dimension K A x) |
| 50 | (_hi : Module.support R M ∩ Module.support R N ⊆ {IsLocalRing.closedPoint R}), |
| 51 | Tor.Euler.euler R M N d = |
| 52 | ∑ q ∈ F, ((FiltrationBaseLength.length R (Localization.AtPrime q.asIdeal) M).toNat : ℚ) * |
| 53 | Tor.Euler.euler R (.of R (R ⧸ q.asIdeal)) N d := by |
| 54 | let : Algebra.IsStandardSmooth K A := Algebra.IsStandardSmoothOfRelativeDimension.isStandardSmooth d |
| 55 | let : IsNoetherianRing A := Algebra.FiniteType.isNoetherianRing K A |
| 56 | let : IsNoetherianRing R := IsLocalization.isNoetherianRing x.asIdeal.primeCompl R inferInstance |
| 57 | let ρ : PrimeSpectrum R → ℕ := fun q => Affine.SpectrumRank.dimension K A (PrimeSpectrum.comap (algebraMap A R) q) |
| 58 | have hρ : StrictAnti ρ := (Affine.SpectrumRank.strict K A).comp_strictMono |
| 59 | (Tensor.LocalizationSpectrum.strict_comap A R x.asIdeal.primeCompl) |
| 60 | obtain ⟨k, q, hsupp, hcount, he⟩ := FixedPrimeFiltration.exists_data R M |
| 61 | have hdim (i : Fin k) : ρ (q i) ≤ r := |
| 62 | hM (q i) (hsupp i (MinimalPrimeFiltration.prime_mem_support R (q i))) |
| 63 | let P := fun v : PrimeSpectrum R => ρ v = r |
| 64 | let F := (Finset.univ.image q).filter P |
| 65 | have hc (v : PrimeSpectrum R) (hv : P v) : |
| 66 | FiltrationBaseLength.length R (Localization.AtPrime v.asIdeal) M = |
| 67 | (Finset.univ.filter (fun i => q i = v)).card := by |
| 68 | apply hcount |
| 69 | intro w hw hwv |
| 70 | by_contra hne |
| 71 | have hlt := hρ (lt_of_le_of_ne hwv hne) |
| 72 | have hwr := hM w hw |
| 73 | change ρ w ≤ r at hwr |
| 74 | change ρ v = r at hv |
| 75 | omega |
| 76 | refine ⟨F, ?_, ?_, ?_⟩ |
| 77 | · intro v hv |
| 78 | have hP := (Finset.mem_filter.mp hv).2 |
| 79 | have hs : v ∈ Module.support R M := by |
| 80 | obtain ⟨i, _, rfl⟩ := Finset.mem_image.mp (Finset.mem_filter.mp hv).1 |
| 81 | exact hsupp i (MinimalPrimeFiltration.prime_mem_support R (q i)) |
| 82 | refine ⟨hs, hP, ?_⟩ |
| 83 | rw [hc v hP] |
| 84 | exact ENat.natCast_ne_top _ |
| 85 | · intro v hv hvF |
| 86 | rw [hc v hv] |
| 87 | have hempty : Finset.univ.filter (fun i => q i = v) = ∅ := by |
| 88 | apply Finset.eq_empty_iff_forall_notMem.mpr |
| 89 | intro i hi |
| 90 | exact hvF (Finset.mem_filter.mpr ⟨Finset.mem_image.mpr |
| 91 | ⟨i, Finset.mem_univ _, (Finset.mem_filter.mp hi).2⟩, hv⟩) |
| 92 | rw [hempty, Finset.card_empty, Nat.cast_zero] |
| 93 | · intro N _ _ s hN heq hi |
| 94 | rw [he N d (IsLocalRing.closedPoint R) hi] |
| 95 | have hfilter : (∑ i ∈ Finset.univ.filter (fun i => P (q i)), |
| 96 | Tor.Euler.euler R (.of R (R ⧸ (q i).asIdeal)) N d) = |
| 97 | ∑ i : Fin k, Tor.Euler.euler R (.of R (R ⧸ (q i).asIdeal)) N d := by |
| 98 | apply Finset.sum_subset (Finset.filter_subset _ _) |
| 99 | intro i hi' hnot |
| 100 | have hne : ρ (q i) ≠ r := fun h => hnot (Finset.mem_filter.mpr ⟨hi', h⟩) |
| 101 | have hsmall : ρ (q i) + s < d + Affine.SpectrumRank.dimension K A x := by |
| 102 | have hle := hdim i |
| 103 | omega |
| 104 | apply Affine.ExternalDimension.StandardSmoothEuler.euler_zero K A R d x (.of R (R ⧸ (q i).asIdeal)) N |
| 105 | (ρ (q i)) s (quotient_bound K A R (q i)) hN hsmall |
| 106 | exact (Set.inter_subset_inter_left _ (hsupp i)).trans hi |
| 107 | rw [← hfilter] |
| 108 | simpa only [P, F, Finset.filter_congr_decidable] using ProjectionFormula.Finite.MultiplicitySum.reindex k q P |
| 109 | (fun v => FiltrationBaseLength.length R (Localization.AtPrime v.asIdeal) M) hc |
| 110 | (fun v => Tor.Euler.euler R (.of R (R ⧸ v.asIdeal)) N d) |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalWeightedEuler |