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.Mapped.CochainCup |
| 2 | |
| 3 | /-! # Coefficient Cochain Cup -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CoefficientCochainCup |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A product-preserving map after an exact coefficient change |
| 10 | preserves the original categorical cohomology products. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClassNaturality |
| 14 | |
| 15 | universe u v u' v' |
| 16 | variable {R : Type u} [CommRing R] {S : Type u'} [CommRing S] |
| 17 | (F : ModuleCat.{v} R ⥤ ModuleCat.{v'} S) |
| 18 | [F.Additive] [F.PreservesHomology] [PreservesFiniteLimits F] |
| 19 | (η : ∀ M : ModuleCat.{v} R, M →+ F.obj M) |
| 20 | (hη : ∀ {M N : ModuleCat.{v} R} (f : M ⟶ N) (x : M), |
| 21 | F.map f (η M x) = η N (f x)) |
| 22 | (K : CochainComplex (ModuleCat.{v} R) ℕ) |
| 23 | (L : CochainComplex (ModuleCat.{v'} S) ℕ) |
| 24 | (f : (F.mapHomologicalComplex (.up ℕ)).obj K ⟶ L) |
| 25 | |
| 26 | def map (n : ℕ) : K.homology n →+ L.homology n := |
| 27 | (HomologicalComplex.homologyMap f n).hom.toAddMonoidHom.comp |
| 28 | (Mapped.CochainCup.map F η K n) |
| 29 | |
| 30 | def cycles (n : ℕ) : Module.CochainClasses.cycles K n →+ |
| 31 | Module.CochainClasses.cycles L n := |
| 32 | (Module.CochainClassNaturality.cycleMap f n).toAddMonoidHom.comp |
| 33 | (Mapped.CochainCup.cycleMap F η hη K n) |
| 34 | |
| 35 | omit [PreservesFiniteLimits F] in |
| 36 | theorem map_class (n : ℕ) (x : Module.CochainClasses.cycles K n) : |
| 37 | CoefficientCochainCup.map F η K L f n (Module.CochainClasses.classMap K n x) = Module.CochainClasses.classMap L n (cycles F η hη K L f n x) := |
| 38 | (congrArg (HomologicalComplex.homologyMap f n) (Mapped.CochainCup.map_class F η hη K n x)).trans |
| 39 | (Module.CochainClassNaturality.naturality_apply f n _).symm |
| 40 | |
| 41 | variable |
| 42 | (μ : ∀ i j, K.X i →ₗ[R] K.X j →ₗ[R] K.X (i+j)) |
| 43 | (ν : ∀ i j, L.X i →ₗ[S] L.X j →ₗ[S] L.X (i+j)) |
| 44 | (hμ : ∀ i j (x : K.X i) (y : K.X j), |
| 45 | K.d (i+j) (i+j+1) (μ i j x y) = |
| 46 | Cochain.CohomologyCup.cupInto K μ (i+1) j (i+j+1) (by omega) (K.d i (i+1) x) y + |
| 47 | (-1 : ℤ)^i • Cochain.CohomologyCup.cupInto K μ i (j+1) (i+j+1) (by omega) x (K.d j (j+1) y)) |
| 48 | (hν : ∀ i j (x : L.X i) (y : L.X j), |
| 49 | L.d (i+j) (i+j+1) (ν i j x y) = |
| 50 | Cochain.CohomologyCup.cupInto L ν (i+1) j (i+j+1) (by omega) (L.d i (i+1) x) y + |
| 51 | (-1 : ℤ)^i • Cochain.CohomologyCup.cupInto L ν i (j+1) (i+j+1) (by omega) x (L.d j (j+1) y)) |
| 52 | (hprod : ∀ i j (x : K.X i) (y : K.X j), |
| 53 | f.f (i+j) (η (K.X (i+j)) (μ i j x y)) = |
| 54 | ν i j (f.f i (η (K.X i) x)) (f.f j (η (K.X j) y))) |
| 55 | |
| 56 | include hprod in |
| 57 | omit [F.PreservesHomology] [PreservesFiniteLimits F] in |
| 58 | theorem cycles_cup (i j : ℕ) (x : Module.CochainClasses.cycles K i) |
| 59 | (y : Module.CochainClasses.cycles K j) : |
| 60 | cycles F η hη K L f (i+j) (Cochain.CohomologyCup.cycleCup K μ hμ i j x y) = |
| 61 | Cochain.CohomologyCup.cycleCup L ν hν i j (cycles F η hη K L f i x) (cycles F η hη K L f j y) := |
| 62 | Subtype.ext (hprod i j x.val y.val) |
| 63 | |
| 64 | include hη hprod in |
| 65 | omit [PreservesFiniteLimits F] in |
| 66 | theorem map_cup (i j : ℕ) (x : K.homology i) (y : K.homology j) : |
| 67 | CoefficientCochainCup.map F η K L f (i+j) (Cochain.CohomologyCup.cohomologyCup K μ hμ i j x y) = |
| 68 | Cochain.CohomologyCup.cohomologyCup L ν hν i j (CoefficientCochainCup.map F η K L f i x) (CoefficientCochainCup.map F η K L f j y) := by |
| 69 | obtain ⟨x, rfl⟩ := Module.CochainClasses.classMap_surjective K i x |
| 70 | obtain ⟨y, rfl⟩ := Module.CochainClasses.classMap_surjective K j y |
| 71 | rw [Cochain.CohomologyCup.cup_class, map_class F η hη, cycles_cup F η hη K L f μ ν hμ hν hprod, |
| 72 | map_class F η hη, map_class F η hη, Cochain.CohomologyCup.cup_class] |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CoefficientCochainCup |