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.Regular.SequencePrimeReduction |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceFiniteSupport |
| 3 | |
| 4 | /-! # Sequence Vanishing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceVanishing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Native Tor Euler vanishing for a regular sequence longer than a |
| 11 | strictly decreasing support rank. Prime filtrations reduce the proof |
| 12 | to prime quotients, and each parameter step lowers that rank. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | open RingTheory.Sequence OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceModule OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequencePrimeReduction |
| 22 | |
| 23 | def Vanishing (n : ℕ) : Prop := |
| 24 | ∀ (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 25 | (rs : List R) (_hreg : IsRegular R rs) (_hlen : rs.length = n) |
| 26 | (ρ : PrimeSpectrum R → ℕ) (_hρ : StrictAnti ρ) |
| 27 | (M : ModuleCat.{u} R) [Module.Finite R M] |
| 28 | (_hbound : ∀ p ∈ Module.support R M, ρ p < n) |
| 29 | (_hiso : Module.support R M ∩ Module.support R (SequenceModule.quotient R rs) ⊆ {IsLocalRing.closedPoint R}), |
| 30 | Tor.Euler.euler R M (SequenceModule.quotient R rs) n = 0 |
| 31 | |
| 32 | theorem vanishing (n : ℕ) : Vanishing.{u} n := by |
| 33 | classical |
| 34 | induction n using Nat.strong_induction_on with |
| 35 | | h n ih => |
| 36 | intro R _ _ _ rs hreg hlen ρ hρ M _ hbound hiso |
| 37 | let : HasProjectiveDimensionLE (SequenceModule.quotient R rs) n := hlen ▸ SequenceModule.projectiveDimension R rs hreg |
| 38 | obtain ⟨l, ps, hps, hs⟩ := PrimeFiltrationEuler.exists_prime_sum R M (SequenceModule.quotient R rs) |
| 39 | n (IsLocalRing.closedPoint R) hiso |
| 40 | rw [hs] |
| 41 | apply Finset.sum_eq_zero |
| 42 | intro i _ |
| 43 | let p := ps i |
| 44 | have hp : ρ p < n := hbound p (hps i (SequencePrimeReduction.prime_mem R p)) |
| 45 | have hi : Module.support R (R ⧸ p.asIdeal) ∩ Module.support R (SequenceModule.quotient R rs) ⊆ |
| 46 | {IsLocalRing.closedPoint R} := (Set.inter_subset_inter_left _ (hps i)).trans hiso |
| 47 | cases n with |
| 48 | | zero => omega |
| 49 | | succ n => |
| 50 | by_cases hc : p = IsLocalRing.closedPoint R |
| 51 | · cases rs with |
| 52 | | nil => simp at hlen |
| 53 | | cons r rs => |
| 54 | rw [← hlen] |
| 55 | apply SequenceFiniteSupport.euler_zero R r rs hreg |
| 56 | (.of R (R ⧸ p.asIdeal)) (IsLocalRing.closedPoint R) |
| 57 | rw [hc] |
| 58 | exact SequencePrimeReduction.closed_support R |
| 59 | · obtain ⟨r, hr, hrp⟩ := SequencePrimeReduction.exists_parameter R rs p hc hi |
| 60 | let ss := rs.erase r |
| 61 | have hperm : rs.Perm (r :: ss) := List.perm_cons_erase hr |
| 62 | have hregular : IsRegular R (r :: ss) := IsLocalRing.isRegular_of_perm hreg hperm |
| 63 | have hlength : ss.length = n := by have := hperm.length_eq; simp only [List.length_cons] at this; omega |
| 64 | let e := SequencePrimeReduction.permutationEquiv R rs (r :: ss) hperm |
| 65 | have hi' : Module.support R (R ⧸ p.asIdeal) ∩ Module.support R (SequenceModule.quotient R (r :: ss)) ⊆ |
| 66 | {IsLocalRing.closedPoint R} := by rw [← e.support_eq]; exact hi |
| 67 | let S := Parameter.ScalarQuotient.Ring R r |
| 68 | let Q := Parameter.ScalarQuotient.quotient R r |
| 69 | let := SequenceReduction.localRing R r ss hregular |
| 70 | let N : ModuleCat S := Q.obj (.of R (R ⧸ p.asIdeal)) |
| 71 | let : Module.Finite S N := Module.Finite.of_restrictScalars_finite R S (QuotSMulTop r (R ⧸ p.asIdeal)) |
| 72 | let ts := ss.map (Ideal.Quotient.mk (Ideal.span {r})) |
| 73 | have ht : IsRegular S ts := SequenceReduction.tail_regular R r ss hregular |
| 74 | have htl : ts.length = n := (List.length_map _).trans hlength |
| 75 | let ρ' : PrimeSpectrum S → ℕ := fun q => ρ (PrimeSpectrum.comap (Ideal.Quotient.mk (Ideal.span {r})) q) |
| 76 | have hρ' : StrictAnti ρ' := Parameter.QuotientSupport.rank_strict R r ρ hρ |
| 77 | have hb' : ∀ q ∈ Module.support S N, ρ' q < n := by |
| 78 | intro q hq |
| 79 | have hdrop := Parameter.QuotientSupport.rank_drop R r ρ hρ p hrp q hq |
| 80 | change ρ' q < ρ p at hdrop |
| 81 | omega |
| 82 | have hiS := Parameter.QuotientSupport.isolated R r (.of R (R ⧸ p.asIdeal)) |
| 83 | (SequenceModule.quotient R (r :: ss)) hi' |
| 84 | have hi'' : Module.support S N ∩ Module.support S (SequenceModule.quotient S ts) ⊆ {IsLocalRing.closedPoint S} := by |
| 85 | rw [← (SequenceReduction.tailEquiv R r ss).support_eq] |
| 86 | exact hiS |
| 87 | have hz := ih n (Nat.lt_succ_self n) S ts ht htl ρ' hρ' N hb' hi'' |
| 88 | have he := Tor.EulerTransport.iso_right R (.of R (R ⧸ p.asIdeal)) e.toModuleIso (n + 1) |
| 89 | change Tor.Euler.euler R (.of R (R ⧸ p.asIdeal)) (SequenceModule.quotient R rs) (n + 1) = 0 |
| 90 | rw [he] |
| 91 | have hn : n + 1 = (r :: ss).length := by simp only [List.length_cons, hlength] |
| 92 | rw [hn, SequenceReduction.euler_length R r ss hregular |
| 93 | (.of R (R ⧸ p.asIdeal)) (SequencePrimeReduction.prime_regular R p r hrp), hlength] |
| 94 | exact hz |
| 95 | |
| 96 | theorem euler_zero (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 97 | (rs : List R) (hreg : IsRegular R rs) (ρ : PrimeSpectrum R → ℕ) (hρ : StrictAnti ρ) |
| 98 | (M : ModuleCat.{u} R) [Module.Finite R M] |
| 99 | (hbound : ∀ p ∈ Module.support R M, ρ p < rs.length) |
| 100 | (hiso : Module.support R M ∩ Module.support R (SequenceModule.quotient R rs) ⊆ {IsLocalRing.closedPoint R}) : |
| 101 | Tor.Euler.euler R M (SequenceModule.quotient R rs) rs.length = 0 := |
| 102 | vanishing rs.length R rs hreg rfl ρ hρ M hbound hiso |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Regular.SequenceVanishing |