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.Divisors.LineBundles.SubquotientImage |
| 2 | import Mathlib.Algebra.Module.LocalizedModule.Exact |
| 3 | import Mathlib.RingTheory.Localization.Module |
| 4 | import Mathlib.RingTheory.Length |
| 5 | |
| 6 | /-! # Localized Filtration Length -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # LineBundleCycles: local lengths from actual prime filtrations |
| 14 | |
| 15 | Localization carries the actual submodule exact sequence to an exact |
| 16 | sequence. Its module lengths therefore add, and the length of a localized |
| 17 | module is the sum of the lengths of its localized prime cyclic factors. |
| 18 | This statement uses extended natural lengths, so no finiteness is assumed. |
| 19 | -/ |
| 20 | |
| 21 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 22 | variable (S : Submonoid R) |
| 23 | |
| 24 | def LocalizedFiltrationLength.BundleCycles.localizedModuleEquiv {N : Type*} [AddCommGroup N] [Module R N] (e : M ≃ₗ[R] N) : |
| 25 | LocalizedModule S M ≃ₗ[Localization S] LocalizedModule S N := |
| 26 | IsLocalizedModule.mapEquiv S (LocalizedModule.mkLinearMap S M) |
| 27 | (LocalizedModule.mkLinearMap S N) (Localization S) e |
| 28 | |
| 29 | theorem LocalizedFiltrationLength.BundleCycles.localizedModuleLength_additive (P : Submodule R M) : |
| 30 | Module.length (Localization S) (LocalizedModule S M) = |
| 31 | Module.length (Localization S) (LocalizedModule S P) + |
| 32 | Module.length (Localization S) (LocalizedModule S (M ⧸ P)) := |
| 33 | Module.length_eq_add_of_exact (LocalizedModule.map S P.subtype) (LocalizedModule.map S P.mkQ) |
| 34 | (IsLocalizedModule.map_injective S _ _ P.subtype P.subtype_injective) |
| 35 | (IsLocalizedModule.map_surjective S _ _ P.mkQ P.mkQ_surjective) |
| 36 | (LocalizedModule.map_exact S P.subtype P.mkQ (LinearMap.exact_subtype_mkQ P)) |
| 37 | |
| 38 | def LocalizedFiltrationLength.BundleCycles.localizedPrimeFactorLength (J : Ideal R) : ℕ∞ := |
| 39 | Module.length (Localization S) (LocalizedModule S (R ⧸ J)) |
| 40 | |
| 41 | /-- All localized lengths are computed by the actual prime factors of the filtration. -/ |
| 42 | theorem PrimeFiltration.BundleCycles.PrimeFiltrationAbove.localized_length_eq_sum {N : Submodule R M} (F : PrimeFiltration.BundleCycles.PrimeFiltrationAbove N) : |
| 43 | Module.length (Localization S) (LocalizedModule S (M ⧸ N)) = |
| 44 | (F.factors.map (LocalizedFiltrationLength.BundleCycles.localizedPrimeFactorLength S)).sum := by |
| 45 | induction F with |
| 46 | | top => exact Module.length_eq_zero |
| 47 | | step N L hNL J hJ e tail ih => |
| 48 | let P := L.map N.mkQ |
| 49 | have he := (LocalizedFiltrationLength.BundleCycles.localizedModuleEquiv S ((SubquotientImage.BundleCycles.subquotientImageEquiv N L).symm.trans e)).length_eq |
| 50 | have hq := (LocalizedFiltrationLength.BundleCycles.localizedModuleEquiv S |
| 51 | (Submodule.quotientQuotientEquivQuotient N L hNL.le)).length_eq |
| 52 | change _ = LocalizedFiltrationLength.BundleCycles.localizedPrimeFactorLength S J + (tail.factors.map _).sum |
| 53 | rw [LocalizedFiltrationLength.BundleCycles.localizedModuleLength_additive S P, he, hq, ih] |
| 54 | rfl |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.Divisors.LineBundles |