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.Principal.Order |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.LocalTwoBound |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PrimeFiltrationEuler |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SurfacePrimeEuler |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PrimeQuotientLocalization |
| 6 | |
| 7 | /-! # Prime Euler -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.PrimeEuler |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! A proper local parameter fiber is computed by an actual prime |
| 14 | filtration. Closed-point factors contribute zero, and every remaining |
| 15 | factor contributes its native order of vanishing of the parameter. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open _root_.CategoryTheory IsLocalRing |
| 20 | open scoped Pointwise Classical |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsLocalRing R] |
| 25 | |
| 26 | def quotientEquiv (r : R) : (R ⧸ Ideal.span {r}) ≃ₗ[R] QuotSMulTop r R := |
| 27 | Submodule.quotEquivOfEq _ _ (by |
| 28 | rw [← Submodule.ideal_span_singleton_smul, smul_eq_mul, Ideal.mul_top]) |
| 29 | |
| 30 | omit [IsNoetherianRing R] [IsLocalRing R] in |
| 31 | theorem quotient_bound (r : R) (hr : r ≠ 0) : |
| 32 | HasProjectiveDimensionLE (ModuleCat.of R (R ⧸ Ideal.span {r})) 1 := by |
| 33 | let : HasProjectiveDimensionLE (ModuleCat.of R (QuotSMulTop r R)) 1 := |
| 34 | Regular.LocalTwoBound.quotient_bound R (.of R R) r (IsSMulRegular.of_ne_zero hr) 0 |
| 35 | exact hasProjectiveDimensionLT_of_iso (quotientEquiv R r).symm.toModuleIso 2 |
| 36 | |
| 37 | theorem closed_euler_zero (r : R) (hr : r ≠ 0) : |
| 38 | Tor.Euler.euler R (.of R (R ⧸ maximalIdeal R)) (.of R (R ⧸ Ideal.span {r})) 1 = 0 := by |
| 39 | let := quotient_bound R r hr |
| 40 | exact SurfacePrimeEuler.maximal_quotient_euler_zero R (.of R (R ⧸ Ideal.span {r})) 1 |
| 41 | (fun x => ⟨r, hr, PrimeQuotientLocalization.annihilated R (Ideal.span {r}) r (Ideal.subset_span rfl) x⟩) |
| 42 | |
| 43 | omit [IsNoetherianRing R] [IsLocalRing R] in |
| 44 | theorem prime_euler (r : R) (hr : r ≠ 0) (p : PrimeSpectrum R) (hp : r ∉ p.asIdeal) : |
| 45 | Tor.Euler.euler R (.of R (R ⧸ p.asIdeal)) (.of R (R ⧸ Ideal.span {r})) 1 = |
| 46 | ((Ring.ord (R ⧸ p.asIdeal) (Ideal.Quotient.mk p.asIdeal r)).toNat : ℚ) := |
| 47 | Principal.Order.euler_eq_order_of_equiv R (R ⧸ p.asIdeal) Ideal.Quotient.mk_surjective |
| 48 | r (IsSMulRegular.of_ne_zero hr) (Ideal.Quotient.eq_zero_iff_mem.not.mpr hp) |
| 49 | (.of R (R ⧸ Ideal.span {r})) (quotientEquiv R r) 1 |
| 50 | |
| 51 | theorem exists_order_sum (r : R) (hr : r ≠ 0) (M : ModuleCat.{u} R) [Module.Finite R M] |
| 52 | (hisolated : Module.support R M ∩ Module.support R (R ⧸ Ideal.span {r}) ⊆ {closedPoint R}) : |
| 53 | ∃ (k : ℕ) (primes : Fin k → PrimeSpectrum R), |
| 54 | (∀ i, Module.support R (R ⧸ (primes i).asIdeal) ⊆ Module.support R M) ∧ |
| 55 | (∀ i, primes i ≠ closedPoint R → r ∉ (primes i).asIdeal) ∧ |
| 56 | Tor.Euler.euler R M (.of R (R ⧸ Ideal.span {r})) 1 = |
| 57 | ∑ i ∈ Finset.univ.filter (fun i => primes i ≠ closedPoint R), |
| 58 | ((Ring.ord (R ⧸ (primes i).asIdeal) (Ideal.Quotient.mk (primes i).asIdeal r)).toNat : ℚ) := by |
| 59 | let := quotient_bound R r hr |
| 60 | obtain ⟨k, primes, hsupp, he⟩ := PrimeFiltrationEuler.exists_prime_sum R M |
| 61 | (.of R (R ⧸ Ideal.span {r})) 1 (closedPoint R) hisolated |
| 62 | have havoid (i : Fin k) (hi : primes i ≠ closedPoint R) : r ∉ (primes i).asIdeal := by |
| 63 | intro hri |
| 64 | apply hi |
| 65 | apply Set.mem_singleton_iff.mp (hisolated ?_) |
| 66 | constructor |
| 67 | · apply hsupp i |
| 68 | rw [Module.mem_support_iff'] |
| 69 | refine ⟨1, fun a ha hz => ha ?_⟩ |
| 70 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 71 | change algebraMap R (R ⧸ (primes i).asIdeal) a = 0 |
| 72 | simpa only [Algebra.smul_def, mul_one] using hz |
| 73 | · rw [Module.support_of_algebra, Ideal.Quotient.algebraMap_eq, Ideal.mk_ker] |
| 74 | exact Ideal.span_le.mpr (fun a ha => (Set.mem_singleton_iff.mp ha).symm ▸ hri) |
| 75 | refine ⟨k, primes, hsupp, havoid, ?_⟩ |
| 76 | have hfilter : (∑ i ∈ Finset.univ.filter (fun i => primes i ≠ closedPoint R), |
| 77 | Tor.Euler.euler R (.of R (R ⧸ (primes i).asIdeal)) (.of R (R ⧸ Ideal.span {r})) 1) = |
| 78 | ∑ i : Fin k, Tor.Euler.euler R (.of R (R ⧸ (primes i).asIdeal)) (.of R (R ⧸ Ideal.span {r})) 1 := by |
| 79 | apply Finset.sum_subset (Finset.filter_subset _ _) |
| 80 | intro i _ hi |
| 81 | have hp : primes i = closedPoint R := by simpa only [Finset.mem_filter, Finset.mem_univ, true_and, not_not] using hi |
| 82 | rw [hp] |
| 83 | exact closed_euler_zero R r hr |
| 84 | rw [he, ← hfilter] |
| 85 | apply Finset.sum_congr rfl |
| 86 | intro i hi |
| 87 | exact prime_euler R r hr (primes i) (havoid i (Finset.mem_filter.mp hi).2) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.PrimeEuler |