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.CycleClass.Thom.TorAlgebra.PrimeEulerLength |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.PrimeFiltrationMultiplicity |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.SupportNonminimalDimension |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularSequenceVanishing |
| 5 | import OAI.AlgebraicGeometry.CycleClass.Thom.MinimalSupportPrimes |
| 6 | |
| 7 | /-! # Regular Euler Multiplicity -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularEulerMultiplicity |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Associativity of regular-sequence Euler multiplicities: only |
| 14 | minimal source primes contribute, weighted by their actual local lengths. |
| 15 | Nonminimal prime factors vanish by the proved dimension theorem. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits RingTheory.Sequence |
| 18 | open scoped Classical |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Euler.Tor |
| 21 | open OAI.AlgebraicGeometry.CycleClass.Thom.LocalizedModuleLength.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.PrimeFiltrationMultiplicity.Constructions |
| 22 | |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | |
| 25 | universe u |
| 26 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 27 | (M : ModuleCat.{u} R) [Module.Finite R M] (rs : List R) |
| 28 | (hr : IsWeaklyRegular R rs) (hm : ∀ r ∈ rs, r ∈ IsLocalRing.maximalIdeal R) |
| 29 | (hd : Module.supportDim R M ≤ (rs.length : WithBot ℕ∞)) |
| 30 | (hi : PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) ∩ Module.support R M ⊆ |
| 31 | {IsLocalRing.closedPoint R}) |
| 32 | |
| 33 | include hr hm hd hi |
| 34 | |
| 35 | theorem euler_eq_sum_minimal_localLengths (s : Finset (PrimeSpectrum R)) |
| 36 | (hs : ∀ p, p ∈ s ↔ p.asIdeal ∈ (Module.annihilator R M).minimalPrimes) : |
| 37 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) M rs.length = |
| 38 | ∑ p ∈ s, ((LocalizedModuleLength.Constructions.localLength R M p).toNat : ℚ) * |
| 39 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) (ModuleCat.of R (R ⧸ p.asIdeal)) rs.length := by |
| 40 | let T := ModuleCat.of R (R ⧸ Ideal.ofList rs) |
| 41 | let e := fun p : PrimeSpectrum R => Euler.Tor.euler R T (ModuleCat.of R (R ⧸ p.asIdeal)) rs.length |
| 42 | let := Regular.QuotientProjectiveDimension.Constructions.bound R rs hr hm |
| 43 | have hI : Module.support R (R ⧸ Ideal.ofList rs) = |
| 44 | PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) := by |
| 45 | rw [Module.support_eq_zeroLocus, Ideal.annihilator_quotient] |
| 46 | have hMT : Module.support R M ∩ Module.support R T ⊆ {IsLocalRing.closedPoint R} := by |
| 47 | change Module.support R M ∩ Module.support R (R ⧸ Ideal.ofList rs) ⊆ _ |
| 48 | rw [hI, Set.inter_comm] |
| 49 | exact hi |
| 50 | obtain ⟨ps, hps, he, hl⟩ := PrimeEulerLength.exists_prime_euler_localLength_sum |
| 51 | R T rs.length M (IsLocalRing.closedPoint R) hMT |
| 52 | have hE : Euler.Tor.euler R T M rs.length = (ps.map e).sum := by |
| 53 | rw [EulerTransport.Tor.comm R T M, he] |
| 54 | congr 1 |
| 55 | apply List.map_congr_left |
| 56 | intro p _ |
| 57 | exact EulerTransport.Tor.comm R _ T rs.length |
| 58 | have hc (p : PrimeSpectrum R) (hp : p ∈ s) : |
| 59 | ((LocalizedModuleLength.Constructions.localLength R M p).toNat : ℚ) = (ps.count p : ℚ) := by |
| 60 | rw [PrimeFiltrationMultiplicity.Constructions.localLength_eq_count R M p ((hs p).mp hp) ps hps (hl p), ENat.toNat_natCast] |
| 61 | have hz (p : PrimeSpectrum R) (hp : p ∈ ps.toFinset) (hn : p ∉ s) : e p = 0 := by |
| 62 | have hpM : p ∈ Module.support R M := hps p (List.mem_toFinset.mp hp) (by |
| 63 | rw [Module.mem_support_iff_of_finite, Ideal.annihilator_quotient]) |
| 64 | have hdim := SupportNonminimalDimension.Constructions.nonminimal_supportDim_lt R M rs.length hd |
| 65 | p hpM (fun h => hn ((hs p).mpr h)) |
| 66 | have his : PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) ∩ Module.support R (R ⧸ p.asIdeal) ⊆ |
| 67 | {IsLocalRing.closedPoint R} := |
| 68 | (Set.inter_subset_inter_right _ (hps p (List.mem_toFinset.mp hp))).trans hi |
| 69 | exact RegularSequenceVanishing.euler_eq_zero R (ModuleCat.of R (R ⧸ p.asIdeal)) |
| 70 | rs hr hm hdim his |
| 71 | have hU : (∑ p ∈ ps.toFinset, (ps.count p : ℚ) * e p) = |
| 72 | ∑ p ∈ ps.toFinset ∪ s, (ps.count p : ℚ) * e p := by |
| 73 | apply Finset.sum_subset Finset.subset_union_left |
| 74 | intro p _ hp |
| 75 | have hc0 : ps.count p = 0 := List.count_eq_zero.mpr (fun h => hp (List.mem_toFinset.mpr h)) |
| 76 | rw [hc0, Nat.cast_zero, zero_mul] |
| 77 | have hS : (∑ p ∈ s, (ps.count p : ℚ) * e p) = |
| 78 | ∑ p ∈ ps.toFinset ∪ s, (ps.count p : ℚ) * e p := by |
| 79 | apply Finset.sum_subset Finset.subset_union_right |
| 80 | intro p hp hn |
| 81 | rw [hz p ((Finset.mem_union.mp hp).resolve_right hn) hn, mul_zero] |
| 82 | calc |
| 83 | _ = (ps.map e).sum := hE |
| 84 | _ = ∑ p ∈ ps.toFinset, (ps.count p : ℚ) * e p := by |
| 85 | rw [Finset.sum_list_map_count] |
| 86 | simp only [nsmul_eq_mul] |
| 87 | _ = ∑ p ∈ s, (ps.count p : ℚ) * e p := hU.trans hS.symm |
| 88 | _ = _ := Finset.sum_congr rfl (fun p hp => congrArg (· * e p) (hc p hp).symm) |
| 89 | |
| 90 | theorem euler_eq_sum_minimal_localLengths_above_length (s : Finset (PrimeSpectrum R)) |
| 91 | (hs : ∀ p, p ∈ s ↔ p.asIdeal ∈ (Module.annihilator R M).minimalPrimes) |
| 92 | (d : ℕ) (hD : rs.length ≤ d) : |
| 93 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) M d = |
| 94 | ∑ p ∈ s, ((LocalizedModuleLength.Constructions.localLength R M p).toNat : ℚ) * |
| 95 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) (ModuleCat.of R (R ⧸ p.asIdeal)) d := by |
| 96 | let := Regular.QuotientProjectiveDimension.Constructions.bound R rs hr hm |
| 97 | rw [EulerCutoff.stable_left R _ M rs.length d hD, |
| 98 | euler_eq_sum_minimal_localLengths R M rs hr hm hd hi s hs] |
| 99 | apply Finset.sum_congr rfl |
| 100 | intro p _ |
| 101 | rw [EulerCutoff.stable_left R _ (ModuleCat.of R (R ⧸ p.asIdeal)) rs.length d hD] |
| 102 | |
| 103 | theorem euler_eq_minimalSupportPrimes_sum (d : ℕ) (hD : rs.length ≤ d) : |
| 104 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) M d = |
| 105 | ∑ p ∈ MinimalSupportPrimes.Constructions.minimalSupportPrimes R M, |
| 106 | ((LocalizedModuleLength.Constructions.localLength R M p).toNat : ℚ) * |
| 107 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) (ModuleCat.of R (R ⧸ p.asIdeal)) d := |
| 108 | euler_eq_sum_minimal_localLengths_above_length R M rs hr hm hd hi _ |
| 109 | (MinimalSupportPrimes.Constructions.mem_minimalSupportPrimes R M) d hD |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularEulerMultiplicity |