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.Acyclic.ChainCoefficientNaturality |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.ModuleFunctor |
| 3 | import Mathlib.Algebra.Homology.TotalComplex |
| 4 | |
| 5 | /-! # Bicomplex -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.Bicomplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The genuine mixed Hom bicomplex for a source chain resolution and a |
| 12 | coefficient cochain complex. Its entries are the original degree-zero Ext |
| 13 | modules, and both differentials are induced by the actual differentials. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | universe u v z t |
| 18 | |
| 19 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 20 | (R : Type t) [CommRing R] [Linear R C] (P : ChainComplex C ℕ) |
| 21 | |
| 22 | def functor : C ⥤ CochainComplex (ModuleCat.{z} R) ℕ where |
| 23 | obj Y := Acyclic.ChainCohomology.complex R Y P |
| 24 | map g := Acyclic.ChainCoefficientNaturality.complexMap R g P |
| 25 | map_id Y := by |
| 26 | apply HomologicalComplex.Hom.ext |
| 27 | funext a |
| 28 | exact (IntegralComparison.Ext.ModuleFunctor.functor R (P.X a) 0).map_id Y |
| 29 | map_comp f g := by |
| 30 | apply HomologicalComplex.Hom.ext |
| 31 | funext a |
| 32 | exact (IntegralComparison.Ext.ModuleFunctor.functor R (P.X a) 0).map_comp f g |
| 33 | |
| 34 | instance additive : (functor R P).Additive where |
| 35 | map_add := by |
| 36 | intros Y Y' f g |
| 37 | apply HomologicalComplex.Hom.ext |
| 38 | funext a |
| 39 | exact (IntegralComparison.Ext.ModuleFunctor.functor R (P.X a) 0).map_add (f := f) (g := g) |
| 40 | |
| 41 | def bicomplex (K : CochainComplex C ℕ) : HomologicalComplex₂ (ModuleCat.{z} R) (.up ℕ) (.up ℕ) := |
| 42 | ((functor R P).mapHomologicalComplex (.up ℕ)).obj K |
| 43 | |
| 44 | theorem coefficient_differential (K : CochainComplex C ℕ) (b b' a : ℕ) : |
| 45 | ((bicomplex R P K).d b b').f a = |
| 46 | ModuleCat.ofHom ((Abelian.Ext.mk₀ (K.d b b')).postcompOfLinear R (P.X a) (Nat.add_zero 0)) := rfl |
| 47 | |
| 48 | theorem source_differential (K : CochainComplex C ℕ) (b a a' : ℕ) : |
| 49 | ((bicomplex R P K).X b).d a a' = |
| 50 | (IntegralComparison.Ext.ContravariantModuleFunctor.functor R (K.X b) 0).map (P.d a' a).op := rfl |
| 51 | |
| 52 | def map {K L : CochainComplex C ℕ} (g : K ⟶ L) : bicomplex R P K ⟶ bicomplex R P L := |
| 53 | ((functor R P).mapHomologicalComplex (.up ℕ)).map g |
| 54 | |
| 55 | theorem map_component {K L : CochainComplex C ℕ} (g : K ⟶ L) (b a : ℕ) : |
| 56 | ((Bicomplex.map R P g).f b).f a = |
| 57 | ModuleCat.ofHom ((Abelian.Ext.mk₀ (g.f b)).postcompOfLinear R (P.X a) (Nat.add_zero 0)) := rfl |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ResolutionHom.Bicomplex |