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.MinimalPrimeFiltration |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Tor |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.BaseChangeSupport |
| 4 | |
| 5 | /-! # Point Support Localization -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PointSupportLocalization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Localizing a finite module supported at one maximal point preserves |
| 12 | its native length. The proof uses the same prime filtration before and |
| 13 | after localization, whose factors are all that point's residue field. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] |
| 24 | (p : PrimeSpectrum R) [p.asIdeal.IsMaximal] |
| 25 | |
| 26 | theorem length (M : ModuleCat.{u} R) [Module.Finite R M] |
| 27 | (hp : Module.support R M ⊆ {p}) : |
| 28 | Module.length (Localization.AtPrime p.asIdeal) (Localization.AtPrime p.asIdeal ⊗[R] M) = |
| 29 | Module.length R M := by |
| 30 | classical |
| 31 | obtain ⟨s, h₀, ht⟩ := IsNoetherianRing.exists_relSeries_isQuotientEquivQuotientPrime R M |
| 32 | choose q e using fun i => (s.step i).2 |
| 33 | have hq (i : Fin s.length) : q i = p := by |
| 34 | have hsup : Module.support R (R ⧸ (q i).asIdeal) ⊆ Module.support R M := by |
| 35 | rw [← (e i).some.support_eq] |
| 36 | exact (Module.support_subset_of_surjective ((s i.castSucc).submoduleOf (s i.succ)).mkQ |
| 37 | (Submodule.mkQ_surjective _)).trans |
| 38 | (Module.support_subset_of_injective (s i.succ).subtype (Submodule.subtype_injective _)) |
| 39 | exact Set.mem_singleton_iff.mp (hp (hsup (MinimalPrimeFiltration.prime_mem_support R (q i)))) |
| 40 | change FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) M = _ |
| 41 | rw [FiltrationBaseLength.filtration_sum R (Localization.AtPrime p.asIdeal) M s h₀ ht] |
| 42 | have hself := FiltrationBaseLength.filtration_sum R R M s h₀ ht |
| 43 | have hid : FiltrationBaseLength.length R R M = Module.length R M := (TensorProduct.lid R M).length_eq |
| 44 | rw [← hid, hself] |
| 45 | apply Finset.sum_congr rfl |
| 46 | intro i _ |
| 47 | rw [FiltrationBaseLength.length_iso R (Localization.AtPrime p.asIdeal) (e i).some.toModuleIso, |
| 48 | FiltrationBaseLength.length_iso R R (e i).some.toModuleIso, hq i] |
| 49 | rw [MinimalPrimeFiltration.localized_prime_length R p p (fun _ => rfl), ite_eq_left rfl] |
| 50 | change 1 = Module.length R (R ⊗[R] (R ⧸ p.asIdeal)) |
| 51 | rw [(TensorProduct.lid R (R ⧸ p.asIdeal)).length_eq] |
| 52 | rw [Module.length_eq_of_surjective (R := R ⧸ p.asIdeal) (S := R) (M := R ⧸ p.asIdeal) |
| 53 | (show Function.Surjective (algebraMap R (R ⧸ p.asIdeal)) from Ideal.Quotient.mk_surjective)] |
| 54 | let : Field (R ⧸ p.asIdeal) := Ideal.Quotient.field p.asIdeal |
| 55 | exact (Module.length_eq_one (R ⧸ p.asIdeal) (R ⧸ p.asIdeal)).symm |
| 56 | |
| 57 | theorem tor_length (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] |
| 58 | (hp : Module.support R M ∩ Module.support R N ⊆ {p}) (n : ℕ) : |
| 59 | Module.length (Localization.AtPrime p.asIdeal) |
| 60 | (((Tor (ModuleCat (Localization.AtPrime p.asIdeal)) n).obj |
| 61 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj M)).obj |
| 62 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj N)) = |
| 63 | Module.length R (((Tor (ModuleCat R) n).obj M).obj N) := by |
| 64 | let := ProjectionFormula.Finite.Tor.finite R M N n |
| 65 | exact (Flat.Extension.torBaseChangeIso R (Localization.AtPrime p.asIdeal) M N n).toLinearEquiv.length_eq.trans |
| 66 | (PointSupportLocalization.length R p (((Tor (ModuleCat R) n).obj M).obj N) ((ProjectionFormula.Tor.Support.support_subset R M N n).trans hp)) |
| 67 | |
| 68 | theorem euler (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] |
| 69 | (hp : Module.support R M ∩ Module.support R N ⊆ {p}) (d : ℕ) : |
| 70 | ProjectionFormula.Tor.Euler.euler (Localization.AtPrime p.asIdeal) |
| 71 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj M) |
| 72 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj N) d = |
| 73 | ProjectionFormula.Tor.Euler.euler R M N d := by |
| 74 | apply Finset.sum_congr rfl |
| 75 | intro i _ |
| 76 | exact congrArg (fun l : ℕ∞ => (-1 : ℚ) ^ i * (l.toNat : ℚ)) (tor_length R p M N hp i) |
| 77 | |
| 78 | omit [p.asIdeal.IsMaximal] [IsNoetherianRing R] in |
| 79 | theorem isolated (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] |
| 80 | (hp : Module.support R M ∩ Module.support R N ⊆ {p}) : |
| 81 | Module.support (Localization.AtPrime p.asIdeal) |
| 82 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj M) ∩ |
| 83 | Module.support (Localization.AtPrime p.asIdeal) |
| 84 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj N) ⊆ |
| 85 | {IsLocalRing.closedPoint (Localization.AtPrime p.asIdeal)} := by |
| 86 | intro q hq |
| 87 | have he : PrimeSpectrum.comap (algebraMap R (Localization.AtPrime p.asIdeal)) q = p := |
| 88 | Set.mem_singleton_iff.mp (hp ⟨BaseChangeSupport.mem_image R (Localization.AtPrime p.asIdeal) M q hq.1, |
| 89 | BaseChangeSupport.mem_image R (Localization.AtPrime p.asIdeal) N q hq.2⟩) |
| 90 | apply Set.mem_singleton_iff.mpr |
| 91 | apply PrimeSpectrum.ext |
| 92 | exact Localization.AtPrime.eq_maximalIdeal_iff_under_eq.mp (congrArg PrimeSpectrum.asIdeal he) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PointSupportLocalization |