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.IsolatedTorEuler |
| 2 | import Mathlib.RingTheory.Ideal.AssociatedPrime.Finiteness |
| 3 | |
| 4 | /-! # Prime Filtration Euler -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PrimeFiltrationEuler |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A prime filtration computes the native Tor Euler characteristic as |
| 11 | the finite sum of the contributions of its prime quotient factors. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] |
| 20 | |
| 21 | theorem euler_iso_left {M M' : ModuleCat.{u} R} (e : M ≅ M') (N : ModuleCat R) (d : ℕ) : |
| 22 | ProjectionFormula.Tor.Euler.euler R M N d = ProjectionFormula.Tor.Euler.euler R M' N d := by |
| 23 | apply Finset.sum_congr rfl |
| 24 | intro i _ |
| 25 | have h := (((Tor (ModuleCat R) i).flip.obj N).mapIso e).toLinearEquiv.length_eq |
| 26 | exact congrArg (fun a : ℕ∞ => (-1 : ℚ) ^ i * (a.toNat : ℚ)) h |
| 27 | |
| 28 | theorem euler_zero_left (M N : ModuleCat.{u} R) [Subsingleton M] (d : ℕ) : |
| 29 | ProjectionFormula.Tor.Euler.euler R M N d = 0 := by |
| 30 | apply Finset.sum_eq_zero |
| 31 | intro i _ |
| 32 | let := ProjectionFormula.Tor.Support.subsingleton_left R M N i |
| 33 | simp [ExactLength.rationalLength, Module.length_eq_zero] |
| 34 | |
| 35 | theorem euler_unit_right (M : ModuleCat.{u} R) (d : ℕ) : |
| 36 | ProjectionFormula.Tor.Euler.euler R M (.of R R) d = ExactLength.rationalLength R M := by |
| 37 | rw [ProjectionFormula.Tor.Euler.euler, Finset.sum_range_succ'] |
| 38 | have hz (n : ℕ) : ExactLength.rationalLength R |
| 39 | (((Tor (ModuleCat R) (n + 1)).obj M).obj (.of R R)) = 0 := by |
| 40 | let := ModuleCat.subsingleton_of_isZero |
| 41 | (isZero_Tor_succ_of_projective (ModuleCat R) M (.of R R) n) |
| 42 | simp [ExactLength.rationalLength, Module.length_eq_zero] |
| 43 | simp only [hz, mul_zero, Finset.sum_const_zero, zero_add, pow_zero, one_mul] |
| 44 | unfold ExactLength.rationalLength |
| 45 | rw [ProjectionFormula.Tor.Flat.torZero_length] |
| 46 | exact congrArg (fun a : ℕ∞ => (a.toNat : ℚ)) (TensorProduct.rid R M).length_eq |
| 47 | |
| 48 | variable [IsNoetherianRing R] |
| 49 | |
| 50 | theorem submodule_step (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] |
| 51 | (d : ℕ) [HasProjectiveDimensionLE N d] (p : PrimeSpectrum R) |
| 52 | (hp : Module.support R M ∩ Module.support R N ⊆ {p}) |
| 53 | (L K : Submodule R M) (hLK : L ≤ K) : |
| 54 | ProjectionFormula.Tor.Euler.euler R (.of R K) N d = ProjectionFormula.Tor.Euler.euler R (.of R L) N d + |
| 55 | ProjectionFormula.Tor.Euler.euler R (.of R (K ⧸ L.submoduleOf K)) N d := by |
| 56 | let S := IsolatedTorEuler.submoduleSequence R (.of R K) (L.submoduleOf K) |
| 57 | let : Module.Finite R S.X₂ := (inferInstance : Module.Finite R K) |
| 58 | have hK : Module.support R K ∩ Module.support R N ⊆ {p} := |
| 59 | (Set.inter_subset_inter_left _ |
| 60 | (Module.support_subset_of_injective K.subtype K.subtype_injective)).trans hp |
| 61 | have h := IsolatedTorEuler.additivity R N S |
| 62 | (IsolatedTorEuler.submoduleSequence_shortExact R (.of R K) (L.submoduleOf K)) d p hK |
| 63 | change ProjectionFormula.Tor.Euler.euler R (.of R K) N d = |
| 64 | ProjectionFormula.Tor.Euler.euler R (.of R (L.submoduleOf K)) N d + |
| 65 | ProjectionFormula.Tor.Euler.euler R (.of R (K ⧸ L.submoduleOf K)) N d at h |
| 66 | rw [euler_iso_left R (Submodule.submoduleOfEquivOfLe hLK).toModuleIso N d] at h |
| 67 | exact h |
| 68 | |
| 69 | theorem filtration_sum (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] |
| 70 | (d : ℕ) [HasProjectiveDimensionLE N d] (p : PrimeSpectrum R) |
| 71 | (hp : Module.support R M ∩ Module.support R N ⊆ {p}) |
| 72 | (s : RelSeries {(L, K) | Submodule.IsQuotientEquivQuotientPrime (A := R) (M := M) L K}) |
| 73 | (h₀ : s.head = ⊥) (ht : s.last = ⊤) : |
| 74 | ProjectionFormula.Tor.Euler.euler R M N d = |
| 75 | ∑ i : Fin s.length, ProjectionFormula.Tor.Euler.euler R |
| 76 | (.of R (s i.succ ⧸ (s i.castSucc).submoduleOf (s i.succ))) N d := by |
| 77 | have hs (n : ℕ) (hn : n < s.length + 1) : |
| 78 | ProjectionFormula.Tor.Euler.euler R (.of R (s ⟨n, hn⟩)) N d = |
| 79 | ∑ i : Fin n, ProjectionFormula.Tor.Euler.euler R |
| 80 | (.of R (s ⟨i.val + 1, (Nat.succ_le_of_lt i.isLt).trans_lt hn⟩ ⧸ |
| 81 | (s ⟨i.val, i.isLt.trans hn⟩).submoduleOf |
| 82 | (s ⟨i.val + 1, (Nat.succ_le_of_lt i.isLt).trans_lt hn⟩))) N d := by |
| 83 | induction n with |
| 84 | | zero => |
| 85 | change ProjectionFormula.Tor.Euler.euler R (.of R s.head) N d = _ |
| 86 | rw [h₀, euler_zero_left] |
| 87 | simp |
| 88 | | succ n ih => |
| 89 | rw [Fin.sum_univ_castSucc] |
| 90 | rw [submodule_step R M N d p hp (s ⟨n, by omega⟩) (s ⟨n + 1, hn⟩) |
| 91 | (s.step ⟨n, by omega⟩).1, ih (by omega)] |
| 92 | rfl |
| 93 | have h := hs s.length (by omega) |
| 94 | change ProjectionFormula.Tor.Euler.euler R (.of R s.last) N d = _ at h |
| 95 | rw [ht, euler_iso_left R (Submodule.topEquiv : (⊤ : Submodule R M) ≃ₗ[R] M).toModuleIso N d] at h |
| 96 | exact h |
| 97 | |
| 98 | theorem exists_prime_sum (M N : ModuleCat.{u} R) [Module.Finite R M] [Module.Finite R N] |
| 99 | (d : ℕ) [HasProjectiveDimensionLE N d] (p : PrimeSpectrum R) |
| 100 | (hp : Module.support R M ∩ Module.support R N ⊆ {p}) : |
| 101 | ∃ (n : ℕ) (primes : Fin n → PrimeSpectrum R), |
| 102 | (∀ i, Module.support R (R ⧸ (primes i).asIdeal) ⊆ Module.support R M) ∧ |
| 103 | ProjectionFormula.Tor.Euler.euler R M N d = |
| 104 | ∑ i : Fin n, ProjectionFormula.Tor.Euler.euler R (.of R (R ⧸ (primes i).asIdeal)) N d := by |
| 105 | obtain ⟨s, h₀, ht⟩ := IsNoetherianRing.exists_relSeries_isQuotientEquivQuotientPrime R M |
| 106 | choose primes e using fun i => (s.step i).2 |
| 107 | refine ⟨s.length, primes, ?_, ?_⟩ |
| 108 | · intro i |
| 109 | have h₁ := Module.support_subset_of_surjective |
| 110 | ((s i.castSucc).submoduleOf (s i.succ)).mkQ (Submodule.mkQ_surjective _) |
| 111 | have h₂ := Module.support_subset_of_injective (s i.succ).subtype |
| 112 | (Submodule.subtype_injective _) |
| 113 | rw [← (e i).some.support_eq] |
| 114 | exact h₁.trans h₂ |
| 115 | · rw [filtration_sum R M N d p hp s h₀ ht] |
| 116 | apply Finset.sum_congr rfl |
| 117 | intro i _ |
| 118 | exact euler_iso_left R (e i).some.toModuleIso N d |
| 119 | |
| 120 | end |
| 121 | |
| 122 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.PrimeFiltrationEuler |