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.SurjectiveScalarComplexSequence |
| 2 | import Mathlib.Algebra.Homology.Linear |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.Linear |
| 4 | import Mathlib.Algebra.Homology.HomologySequence |
| 5 | |
| 6 | /-! # Scalar Complex Cohomology -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ScalarComplexCohomology |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Multiplication through a scalar-image quotient remains multiplication on actual cohomology. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] {K L : CochainComplex (ModuleCat.{v} R) ℕ} |
| 19 | |
| 20 | theorem homology_smul (r : R) (f : K ⟶ L) (i : ℕ) : |
| 21 | HomologicalComplex.homologyMap (r • f) i = r • HomologicalComplex.homologyMap f i := by |
| 22 | exact ShortComplex.homologyMap_smul ((HomologicalComplex.shortComplexFunctor _ _ i).map f) r |
| 23 | |
| 24 | theorem homology_scalar (r : R) (i : ℕ) : |
| 25 | HomologicalComplex.homologyMap (r • 𝟙 K) i = r • 𝟙 (K.homology i) := by |
| 26 | rw [homology_smul, HomologicalComplex.homologyMap_id] |
| 27 | |
| 28 | variable (q : K ⟶ L) (hq : ∀ a, Function.Surjective (q.f a)) (r : R) |
| 29 | (hk : ∀ a (x : K.X a), q.f a x = 0 ↔ r • x = 0) |
| 30 | |
| 31 | theorem quotient_inclusion : q ≫ SurjectiveScalarComplexSequence.inclusion q hq r hk = r • 𝟙 K := by |
| 32 | apply HomologicalComplex.Hom.ext |
| 33 | funext a |
| 34 | apply ModuleCat.hom_ext |
| 35 | apply LinearMap.ext |
| 36 | intro x |
| 37 | exact SurjectiveScalarComplexSequence.inclusion_apply q hq r hk a x |
| 38 | |
| 39 | theorem inclusion_quotient : SurjectiveScalarComplexSequence.inclusion q hq r hk ≫ q = r • 𝟙 L := by |
| 40 | apply HomologicalComplex.Hom.ext |
| 41 | funext a |
| 42 | apply ModuleCat.hom_ext |
| 43 | apply LinearMap.ext |
| 44 | intro y |
| 45 | obtain ⟨x, rfl⟩ := hq a y |
| 46 | change q.f a ((SurjectiveScalarComplexSequence.inclusion q hq r hk).f a (q.f a x)) = r • q.f a x |
| 47 | rw [SurjectiveScalarComplexSequence.inclusion_apply] |
| 48 | exact (q.f a).hom.map_smul r x |
| 49 | |
| 50 | theorem cohomology_quotient_inclusion (i : ℕ) (x : K.homology i) : |
| 51 | HomologicalComplex.homologyMap (SurjectiveScalarComplexSequence.inclusion q hq r hk) i |
| 52 | (HomologicalComplex.homologyMap q i x) = r • x := by |
| 53 | have h := (congrArg (fun f => HomologicalComplex.homologyMap f i) (quotient_inclusion q hq r hk)).trans |
| 54 | (homology_scalar r i) |
| 55 | rw [HomologicalComplex.homologyMap_comp] at h |
| 56 | exact congrArg (fun a => a x) h |
| 57 | |
| 58 | theorem cohomology_inclusion_quotient (i : ℕ) (x : L.homology i) : |
| 59 | HomologicalComplex.homologyMap q i |
| 60 | (HomologicalComplex.homologyMap (SurjectiveScalarComplexSequence.inclusion q hq r hk) i x) = r • x := by |
| 61 | have h := (congrArg (fun f => HomologicalComplex.homologyMap f i) (inclusion_quotient q hq r hk)).trans |
| 62 | (homology_scalar r i) |
| 63 | rw [HomologicalComplex.homologyMap_comp] at h |
| 64 | exact congrArg (fun a => a x) h |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ScalarComplexCohomology |