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.Tor.RegularQuotient |
| 2 | import Mathlib.RingTheory.Regular.RegularSequence |
| 3 | |
| 4 | /-! # Regular Sequence -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Thom.Tor.RegularSequence |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A sequence regular on an input and on its tensor product preserves |
| 11 | Tor independence after quotienting by the actual generated ideal. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits RingTheory.Sequence |
| 14 | open scoped TensorProduct Pointwise |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | namespace Constructions |
| 18 | |
| 19 | universe u |
| 20 | variable (R : Type u) [CommRing R] |
| 21 | |
| 22 | theorem higherTor_quotient_sequence_isZero (M N : ModuleCat.{u} R) (rs : List R) |
| 23 | (hr : IsWeaklyRegular M rs) (ht : IsWeaklyRegular (M ⊗[R] N) rs) |
| 24 | (hv : ∀ n, IsZero (((Tor (ModuleCat R) (n + 1)).obj M).obj N)) (n : ℕ) : |
| 25 | IsZero (((Tor (ModuleCat R) (n + 1)).obj |
| 26 | (ModuleCat.of R (M ⧸ (Ideal.ofList rs • ⊤ : Submodule R M)))).obj N) := by |
| 27 | induction rs generalizing M with |
| 28 | | nil => |
| 29 | let e := Submodule.quotEquivOfEqBot (R := R) (M := M) |
| 30 | (Ideal.ofList [] • ⊤ : Submodule R M) (by |
| 31 | rw [Ideal.ofList_nil (R := R)] |
| 32 | exact Submodule.bot_smul (R := R) (A := R) (⊤ : Submodule R M)) |
| 33 | exact (hv n).of_iso (((Tor (ModuleCat R) (n + 1)).mapIso e.toModuleIso).app N) |
| 34 | | cons r rs ih => |
| 35 | obtain ⟨hr, hr'⟩ := (isWeaklyRegular_cons_iff M r rs).mp hr |
| 36 | obtain ⟨ht, ht'⟩ := (isWeaklyRegular_cons_iff (M ⊗[R] N) r rs).mp ht |
| 37 | let M' := ModuleCat.of R (QuotSMulTop r M) |
| 38 | have hT : IsWeaklyRegular (M' ⊗[R] N) rs := |
| 39 | ((QuotSMulTop.quotSMulTopTensorEquivQuotSMulTop r N M).isWeaklyRegular_congr rs).mpr ht' |
| 40 | have hV (i : ℕ) : IsZero (((Tor (ModuleCat R) (i + 1)).obj M').obj N) := |
| 41 | RegularQuotient.Constructions.higherTor_quotient_isZero R M N r hr ht hv i |
| 42 | have h := ih M' hr' hT hV |
| 43 | let e := Submodule.quotOfListConsSMulTopEquivQuotSMulTopInner M r rs |
| 44 | exact h.of_iso (((Tor (ModuleCat R) (n + 1)).mapIso e.toModuleIso).app N) |
| 45 | |
| 46 | theorem higherTor_regular_quotient_isZero (N : ModuleCat.{u} R) (rs : List R) |
| 47 | (hr : IsWeaklyRegular R rs) (hn : IsWeaklyRegular N rs) (n : ℕ) : |
| 48 | IsZero (((Tor (ModuleCat R) (n + 1)).obj (ModuleCat.of R (R ⧸ Ideal.ofList rs))).obj N) := by |
| 49 | have ht : IsWeaklyRegular ((ModuleCat.of R R) ⊗[R] N) rs := |
| 50 | ((TensorProduct.lid R N).isWeaklyRegular_congr rs).mpr hn |
| 51 | have hv (i : ℕ) : IsZero (((Tor (ModuleCat R) (i + 1)).obj (ModuleCat.of R R)).obj N) := |
| 52 | TorAlgebra.Flat.Tor.higherTor_isZero R (ModuleCat.of R R) N i |
| 53 | have h := higherTor_quotient_sequence_isZero R (ModuleCat.of R R) N rs hr ht hv n |
| 54 | have he : (Ideal.ofList rs • ⊤ : Submodule R R) = Ideal.ofList rs := by |
| 55 | change Ideal.ofList rs * (⊤ : Ideal R) = Ideal.ofList rs |
| 56 | exact Ideal.mul_top (Ideal.ofList rs) |
| 57 | rw [he] at h |
| 58 | exact h |
| 59 | |
| 60 | theorem euler_regular_quotient_eq_length (N : ModuleCat.{u} R) (rs : List R) |
| 61 | (hr : IsWeaklyRegular R rs) (hn : IsWeaklyRegular N rs) (d : ℕ) : |
| 62 | (∑ i ∈ Finset.range (d + 1), (-1 : ℚ) ^ i * |
| 63 | (Module.length R (((Tor (ModuleCat R) i).obj |
| 64 | (ModuleCat.of R (R ⧸ Ideal.ofList rs))).obj N)).toNat) = |
| 65 | (Module.length R (N ⧸ (Ideal.ofList rs • ⊤ : Submodule R N))).toNat := by |
| 66 | have hv (i : ℕ) : Module.length R (((Tor (ModuleCat R) (i + 1)).obj |
| 67 | (ModuleCat.of R (R ⧸ Ideal.ofList rs))).obj N) = 0 := by |
| 68 | let := ModuleCat.subsingleton_of_isZero (higherTor_regular_quotient_isZero R N rs hr hn i) |
| 69 | exact Module.length_eq_zero |
| 70 | have hlen : Module.length R ((R ⧸ Ideal.ofList rs) ⊗[R] N) = |
| 71 | Module.length R (N ⧸ (Ideal.ofList rs • ⊤ : Submodule R N)) := |
| 72 | (TensorProduct.quotTensorEquivQuotSMul N (Ideal.ofList rs)).length_eq |
| 73 | rw [Finset.sum_range_succ'] |
| 74 | simp [hv, TorAlgebra.Flat.Tor.torZero_length, hlen] |
| 75 | |
| 76 | end Constructions |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.CycleClass.Thom.Tor.RegularSequence |