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.PrimeFiltrationEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 3 | |
| 4 | /-! # Filtration Base Length -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FiltrationBaseLength |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A prime filtration computes the length after flat base change. The |
| 11 | identity is in ENat and requires no finiteness premise on those lengths. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] [Module.Flat R S] |
| 21 | |
| 22 | def length (M : ModuleCat.{u} R) : ℕ∞ := Module.length S (S ⊗[R] M) |
| 23 | |
| 24 | omit [Module.Flat R S] in |
| 25 | theorem length_iso {M N : ModuleCat.{u} R} (e : M ≅ N) : FiltrationBaseLength.length R S M = FiltrationBaseLength.length R S N := |
| 26 | (((ProjectionFormula.Flat.Extension.baseChange R S).mapIso e).toLinearEquiv).length_eq |
| 27 | |
| 28 | omit [Module.Flat R S] in |
| 29 | theorem length_zero (M : ModuleCat.{u} R) [Subsingleton M] : FiltrationBaseLength.length R S M = 0 := |
| 30 | Module.length_eq_zero |
| 31 | |
| 32 | theorem length_shortExact (T : ShortComplex (ModuleCat.{u} R)) (hT : T.ShortExact) : |
| 33 | FiltrationBaseLength.length R S T.X₂ = FiltrationBaseLength.length R S T.X₁ + FiltrationBaseLength.length R S T.X₃ := by |
| 34 | let F := ProjectionFormula.Flat.Extension.baseChange R S |
| 35 | let : Mono T.f := hT.mono_f |
| 36 | let : Epi T.g := hT.epi_g |
| 37 | have h := hT.map F |
| 38 | exact Module.length_eq_add_of_exact (T.map F).f.hom (T.map F).g.hom |
| 39 | ((ModuleCat.mono_iff_injective _).mp h.mono_f) |
| 40 | ((ModuleCat.epi_iff_surjective _).mp h.epi_g) |
| 41 | ((ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp h.exact) |
| 42 | |
| 43 | theorem submodule_step (M : ModuleCat.{u} R) (L K : Submodule R M) (hLK : L ≤ K) : |
| 44 | FiltrationBaseLength.length R S (.of R K) = FiltrationBaseLength.length R S (.of R L) + |
| 45 | FiltrationBaseLength.length R S (.of R (K ⧸ L.submoduleOf K)) := by |
| 46 | have h := length_shortExact R S (IsolatedTorEuler.submoduleSequence R (.of R K) (L.submoduleOf K)) |
| 47 | (IsolatedTorEuler.submoduleSequence_shortExact R (.of R K) (L.submoduleOf K)) |
| 48 | change FiltrationBaseLength.length R S (.of R K) = FiltrationBaseLength.length R S (.of R (L.submoduleOf K)) + |
| 49 | FiltrationBaseLength.length R S (.of R (K ⧸ L.submoduleOf K)) at h |
| 50 | rw [length_iso R S (Submodule.submoduleOfEquivOfLe hLK).toModuleIso] at h |
| 51 | exact h |
| 52 | |
| 53 | theorem filtration_sum (M : ModuleCat.{u} R) |
| 54 | (s : RelSeries {(L, K) | Submodule.IsQuotientEquivQuotientPrime (A := R) (M := M) L K}) |
| 55 | (h₀ : s.head = ⊥) (ht : s.last = ⊤) : |
| 56 | FiltrationBaseLength.length R S M = ∑ i : Fin s.length, |
| 57 | FiltrationBaseLength.length R S (.of R (s i.succ ⧸ (s i.castSucc).submoduleOf (s i.succ))) := by |
| 58 | have hs (n : ℕ) (hn : n < s.length + 1) : |
| 59 | FiltrationBaseLength.length R S (.of R (s ⟨n, hn⟩)) = ∑ i : Fin n, |
| 60 | FiltrationBaseLength.length R S (.of R (s ⟨i.val + 1, (Nat.succ_le_of_lt i.isLt).trans_lt hn⟩ ⧸ |
| 61 | (s ⟨i.val, i.isLt.trans hn⟩).submoduleOf |
| 62 | (s ⟨i.val + 1, (Nat.succ_le_of_lt i.isLt).trans_lt hn⟩))) := by |
| 63 | induction n with |
| 64 | | zero => |
| 65 | change FiltrationBaseLength.length R S (.of R s.head) = _ |
| 66 | rw [h₀, length_zero] |
| 67 | simp |
| 68 | | succ n ih => |
| 69 | rw [Fin.sum_univ_castSucc] |
| 70 | rw [submodule_step R S M (s ⟨n, by omega⟩) (s ⟨n + 1, hn⟩) (s.step ⟨n, by omega⟩).1, |
| 71 | ih (by omega)] |
| 72 | rfl |
| 73 | have h := hs s.length (by omega) |
| 74 | change FiltrationBaseLength.length R S (.of R s.last) = _ at h |
| 75 | rw [ht, length_iso R S (Submodule.topEquiv : (⊤ : Submodule R M) ≃ₗ[R] M).toModuleIso] at h |
| 76 | exact h |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.FiltrationBaseLength |