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.RegularPrimeDevissage |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Regular.PrimeEquation |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.SequenceChangeOfRings |
| 4 | |
| 5 | /-! # Regular Sequence Vanishing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularSequenceVanishing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Dimension vanishing for the native Tor Euler characteristic of a |
| 12 | regular-sequence quotient against an arbitrary finite module over a |
| 13 | Noetherian local ring. The proof uses actual prime filtrations and |
| 14 | regular change of rings; the intermediate rings may be singular. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits RingTheory.Sequence |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.Euler.Tor OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularPrimeDevissage |
| 19 | open OAI.AlgebraicGeometry.CycleClass.Thom.Regular.EquationQuotientSupport.Constructions OAI.AlgebraicGeometry.CycleClass.Thom.Regular.EquationQuotients.Constructions |
| 20 | |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | theorem euler_eq_zero_of_length (n : ℕ) : |
| 26 | ∀ (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 27 | (N : ModuleCat.{u} R) [Module.Finite R N] (rs : List R), rs.length = n → |
| 28 | IsWeaklyRegular R rs → (∀ r ∈ rs, r ∈ IsLocalRing.maximalIdeal R) → |
| 29 | Module.supportDim R N < (rs.length : WithBot ℕ∞) → |
| 30 | PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) ∩ Module.support R N ⊆ |
| 31 | {IsLocalRing.closedPoint R} → |
| 32 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) N rs.length = 0 := by |
| 33 | induction n with |
| 34 | | zero => |
| 35 | intro R _ _ _ N _ rs hlen _ _ hd _ |
| 36 | exact RegularPrimeDevissage.euler_eq_zero_of_supportDim_lt_zero R _ N (by simpa only [hlen, Nat.cast_zero] using hd) _ |
| 37 | | succ n ih => |
| 38 | intro R _ _ _ N _ xs hlen hr hm hd hi |
| 39 | cases xs with |
| 40 | | nil => simp at hlen |
| 41 | | cons r rs => |
| 42 | apply RegularPrimeDevissage.euler_eq_zero_of_prime_quotients R N (r :: rs) hr hm hi |
| 43 | intro p hp |
| 44 | have hdim : Module.supportDim R (R ⧸ p.asIdeal) < ((r :: rs).length : WithBot ℕ∞) := |
| 45 | (RegularPrimeDevissage.supportDim_le_of_support_subset R (ModuleCat.of R (R ⧸ p.asIdeal)) N hp).trans_lt hd |
| 46 | have hip : PrimeSpectrum.zeroLocus (Ideal.ofList (r :: rs) : Set R) ∩ |
| 47 | Module.support R (R ⧸ p.asIdeal) ⊆ {IsLocalRing.closedPoint R} := |
| 48 | (Set.inter_subset_inter_right _ hp).trans hi |
| 49 | by_cases hd0 : Module.supportDim R (R ⧸ p.asIdeal) ≤ 0 |
| 50 | · exact RegularPrimeDevissage.euler_eq_zero_of_supportDim_nonpos R (ModuleCat.of R (R ⧸ p.asIdeal)) |
| 51 | (r :: rs) hr hm (List.cons_ne_nil _ _) hd0 |
| 52 | obtain ⟨s, he, hrs, hms, hnp, hdrop⟩ := Regular.PrimeEquation.Constructions.exists_regular_head |
| 53 | R p r rs hr hm (lt_of_not_ge hd0) hip |
| 54 | let : IsLocalRing (R ⧸ Ideal.span {s}) := Regular.EquationQuotientSupport.Constructions.quotientLocalRing R s (hms s (List.mem_cons_self)) |
| 55 | let : Module.Finite (R ⧸ Ideal.span {s}) (QuotSMulTop s (R ⧸ p.asIdeal)) := |
| 56 | Module.Finite.of_restrictScalars_finite R (R ⧸ Ideal.span {s}) _ |
| 57 | let tail := rs.map (algebraMap R (R ⧸ Ideal.span {s})) |
| 58 | have htail : tail.length = n := by |
| 59 | simpa only [tail, List.length_map, List.length_cons, Nat.succ.injEq] using hlen |
| 60 | have hrt : IsWeaklyRegular (R ⧸ Ideal.span {s}) tail := Regular.EquationQuotients.Constructions.weaklyRegular_tail R s rs hrs |
| 61 | have hmt : ∀ x ∈ tail, x ∈ IsLocalRing.maximalIdeal (R ⧸ Ideal.span {s}) := |
| 62 | Regular.EquationQuotientSupport.Constructions.maximalIdeal_tail R s rs (fun x hx => hms x (List.mem_cons_of_mem s hx)) |
| 63 | have hit : PrimeSpectrum.zeroLocus (Ideal.ofList tail : Set (R ⧸ Ideal.span {s})) ∩ |
| 64 | Module.support (R ⧸ Ideal.span {s}) (QuotSMulTop s (R ⧸ p.asIdeal)) ⊆ |
| 65 | {IsLocalRing.closedPoint (R ⧸ Ideal.span {s})} := |
| 66 | Regular.EquationQuotientSupport.Constructions.isolated_tail R s (R ⧸ p.asIdeal) rs (by rw [he]; exact hip) |
| 67 | have hdt : Module.supportDim (R ⧸ Ideal.span {s}) (QuotSMulTop s (R ⧸ p.asIdeal)) < |
| 68 | (tail.length : WithBot ℕ∞) := by |
| 69 | rw [Regular.EquationQuotientSupport.Constructions.quotient_supportDim R s (R ⧸ p.asIdeal)] |
| 70 | simp only [tail, List.length_map] |
| 71 | apply ENat.WithBot.add_one_le_natCast_iff.mp |
| 72 | apply hdrop.trans |
| 73 | apply ENat.WithBot.lt_add_one_iff.mp |
| 74 | simpa only [List.length_cons, Nat.cast_add, Nat.cast_one] using hdim |
| 75 | have hz := ih (R ⧸ Ideal.span {s}) (ModuleCat.of (R ⧸ Ideal.span {s}) |
| 76 | (QuotSMulTop s (R ⧸ p.asIdeal))) tail htail hrt hmt hdt hit |
| 77 | let := Regular.QuotientProjectiveDimension.Constructions.bound (R ⧸ Ideal.span {s}) tail hrt hmt |
| 78 | have heuler := SequenceChangeOfRings.euler_eq R s rs |
| 79 | (ModuleCat.of R (R ⧸ p.asIdeal)) ((isWeaklyRegular_cons_iff R s rs).mp hrs).1 hnp |
| 80 | (r :: rs).length |
| 81 | calc |
| 82 | _ = Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList (s :: rs))) |
| 83 | (ModuleCat.of R (R ⧸ p.asIdeal)) (r :: rs).length := |
| 84 | IsolatedEuler.euler_iso_left R |
| 85 | (Ideal.quotientEquivAlgOfEq R he.symm).toLinearEquiv.toModuleIso _ _ |
| 86 | _ = Euler.Tor.euler (R ⧸ Ideal.span {s}) |
| 87 | (ModuleCat.of (R ⧸ Ideal.span {s}) ((R ⧸ Ideal.span {s}) ⧸ Ideal.ofList tail)) |
| 88 | (ModuleCat.of (R ⧸ Ideal.span {s}) (QuotSMulTop s (R ⧸ p.asIdeal))) |
| 89 | (r :: rs).length := heuler |
| 90 | _ = Euler.Tor.euler (R ⧸ Ideal.span {s}) |
| 91 | (ModuleCat.of (R ⧸ Ideal.span {s}) ((R ⧸ Ideal.span {s}) ⧸ Ideal.ofList tail)) |
| 92 | (ModuleCat.of (R ⧸ Ideal.span {s}) (QuotSMulTop s (R ⧸ p.asIdeal))) tail.length := |
| 93 | EulerCutoff.stable_left (R ⧸ Ideal.span {s}) _ _ tail.length |
| 94 | (r :: rs).length (by simp only [tail, List.length_map, List.length_cons]; omega) |
| 95 | _ = 0 := hz |
| 96 | |
| 97 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 98 | (N : ModuleCat.{u} R) [Module.Finite R N] (rs : List R) |
| 99 | (hr : IsWeaklyRegular R rs) (hm : ∀ r ∈ rs, r ∈ IsLocalRing.maximalIdeal R) |
| 100 | (hd : Module.supportDim R N < (rs.length : WithBot ℕ∞)) |
| 101 | (hi : PrimeSpectrum.zeroLocus (Ideal.ofList rs : Set R) ∩ Module.support R N ⊆ |
| 102 | {IsLocalRing.closedPoint R}) |
| 103 | |
| 104 | include hr hm hd hi |
| 105 | |
| 106 | theorem euler_eq_zero : Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) N rs.length = 0 := |
| 107 | euler_eq_zero_of_length rs.length R N rs rfl hr hm hd hi |
| 108 | |
| 109 | theorem euler_eq_zero_above_length (d : ℕ) (hD : rs.length ≤ d) : |
| 110 | Euler.Tor.euler R (ModuleCat.of R (R ⧸ Ideal.ofList rs)) N d = 0 := by |
| 111 | let := Regular.QuotientProjectiveDimension.Constructions.bound R rs hr hm |
| 112 | exact (EulerCutoff.stable_left R _ N rs.length d hD).trans |
| 113 | (euler_eq_zero R N rs hr hm hd hi) |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.CycleClass.Thom.TorAlgebra.RegularSequenceVanishing |