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.NumberTheory.PadicHodge.IntegralComparison.SurjectiveScalarSequence |
| 2 | import Mathlib.Algebra.Homology.HomologicalComplexAbelian |
| 3 | |
| 4 | /-! # Surjective Scalar Complex Sequence -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SurjectiveScalarComplexSequence |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Degreewise quotient presentations of scalar images give an actual short exact sequence of complexes. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] {K L T : CochainComplex (ModuleCat.{v} R) ℕ} |
| 17 | (q : K ⟶ L) (hq : ∀ a, Function.Surjective (q.f a)) (r : R) |
| 18 | (hk : ∀ a (x : K.X a), q.f a x = 0 ↔ r • x = 0) |
| 19 | |
| 20 | def inclusion : L ⟶ K where |
| 21 | f a := ModuleCat.ofHom (SurjectiveScalarSequence.inclusion (q.f a).hom (hq a) r (hk a)) |
| 22 | comm' i j _ := by |
| 23 | apply ModuleCat.hom_ext |
| 24 | apply LinearMap.ext |
| 25 | intro y |
| 26 | obtain ⟨x, rfl⟩ := hq i y |
| 27 | change K.d i j (SurjectiveScalarSequence.inclusion (q.f i).hom (hq i) r (hk i) (q.f i x)) = |
| 28 | SurjectiveScalarSequence.inclusion (q.f j).hom (hq j) r (hk j) (L.d i j (q.f i x)) |
| 29 | rw [SurjectiveScalarSequence.inclusion_apply] |
| 30 | have hq' : L.d i j (q.f i x) = q.f j (K.d i j x) := congrArg (fun f => f x) (q.comm i j) |
| 31 | rw [hq', SurjectiveScalarSequence.inclusion_apply] |
| 32 | exact (K.d i j).hom.map_smul r x |
| 33 | |
| 34 | theorem inclusion_apply (a : ℕ) (x : K.X a) : (inclusion q hq r hk).f a (q.f a x) = r • x := |
| 35 | SurjectiveScalarSequence.inclusion_apply (q.f a).hom (hq a) r (hk a) x |
| 36 | |
| 37 | variable (g : K ⟶ T) (hg : ∀ a (x : K.X a), g.f a x = 0 ↔ ∃ y : K.X a, r • y = x) |
| 38 | |
| 39 | include hg in |
| 40 | theorem composition_zero : inclusion q hq r hk ≫ g = 0 := by |
| 41 | apply HomologicalComplex.Hom.ext |
| 42 | funext a |
| 43 | apply ModuleCat.hom_ext |
| 44 | apply LinearMap.ext |
| 45 | intro y |
| 46 | exact (SurjectiveScalarSequence.exact (q.f a).hom (hq a) r (hk a) (g.f a).hom (hg a)).apply_apply_eq_zero y |
| 47 | |
| 48 | def sequence : ShortComplex (CochainComplex (ModuleCat.{v} R) ℕ) := |
| 49 | ShortComplex.mk (inclusion q hq r hk) g (composition_zero q hq r hk g hg) |
| 50 | |
| 51 | theorem shortExact (hgs : ∀ a, Function.Surjective (g.f a)) : (sequence q hq r hk g hg).ShortExact := by |
| 52 | apply HomologicalComplex.shortExact_of_degreewise_shortExact |
| 53 | intro a |
| 54 | refine { exact := ?_, mono_f := ?_, epi_g := ?_ } |
| 55 | · apply (ShortComplex.moduleCat_exact_iff _).mpr |
| 56 | intro x hx |
| 57 | exact (SurjectiveScalarSequence.exact (q.f a).hom (hq a) r (hk a) (g.f a).hom (hg a) x).mp hx |
| 58 | · exact (ModuleCat.mono_iff_injective _).mpr |
| 59 | (SurjectiveScalarSequence.injective (q.f a).hom (hq a) r (hk a)) |
| 60 | · exact (ModuleCat.epi_iff_surjective _).mpr (hgs a) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SurjectiveScalarComplexSequence |