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.Contravariant.ResolutionHomologyData |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.Resolution |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Augmented.ResolutionCycleMaps |
| 4 | |
| 5 | /-! # Coefficient Naturality -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.CoefficientNaturality |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Postcomposition in the actual coefficient object commutes with the |
| 12 | source-resolution connecting maps and their short-complex homology data. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | |
| 16 | open Abelian |
| 17 | |
| 18 | universe u v z t |
| 19 | |
| 20 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{z} C] |
| 21 | (R : Type t) [CommRing R] [Linear R C] {Y Y' : C} (g : Y ⟶ Y') |
| 22 | |
| 23 | def component (i : ℕ) (X : C) : |
| 24 | ModuleCat.of R (Ext.{z} X Y i) ⟶ ModuleCat.of R (Ext.{z} X Y' i) := |
| 25 | ModuleCat.ofHom ((Ext.mk₀ g).postcompOfLinear R X (Nat.add_zero i)) |
| 26 | |
| 27 | theorem naturality (i : ℕ) {X X' : Cᵒᵖ} (f : X ⟶ X') : |
| 28 | (ContravariantModuleFunctor.functor R Y i).map f ≫ component R g i X'.unop = |
| 29 | component R g i X.unop ≫ (ContravariantModuleFunctor.functor R Y' i).map f := by |
| 30 | apply ModuleCat.hom_ext |
| 31 | apply LinearMap.ext |
| 32 | intro α |
| 33 | exact Ext.comp_assoc_of_third_deg_zero (Ext.mk₀ f.unop) α (Ext.mk₀ g) (zero_add i) |
| 34 | |
| 35 | def transformation (i : ℕ) : |
| 36 | ContravariantModuleFunctor.functor R Y i ⟶ |
| 37 | ContravariantModuleFunctor.functor R Y' i where |
| 38 | app X := component R g i X.unop |
| 39 | naturality _ _ f := CoefficientNaturality.naturality R g i f |
| 40 | |
| 41 | def shortMap (i : ℕ) (T : ShortComplex Cᵒᵖ) : |
| 42 | T.map (ContravariantModuleFunctor.functor R Y i) ⟶ |
| 43 | T.map (ContravariantModuleFunctor.functor R Y' i) where |
| 44 | τ₁ := component R g i T.X₁.unop |
| 45 | τ₂ := component R g i T.X₂.unop |
| 46 | τ₃ := component R g i T.X₃.unop |
| 47 | comm₁₂ := (CoefficientNaturality.naturality R g i T.f).symm |
| 48 | comm₂₃ := (CoefficientNaturality.naturality R g i T.g).symm |
| 49 | |
| 50 | def complexMap (K : CochainComplex Cᵒᵖ ℕ) : |
| 51 | Contravariant.Resolution.Comparison.complex R Y K ⟶ |
| 52 | Contravariant.Resolution.Comparison.complex R Y' K where |
| 53 | f i := component R g 0 (K.X i).unop |
| 54 | comm' i j _ := (CoefficientNaturality.naturality R g 0 (K.d i j)).symm |
| 55 | |
| 56 | theorem complexMap_differential (K : CochainComplex Cᵒᵖ ℕ) (n : ℕ) : |
| 57 | Augmented.ResolutionCycleMaps.differential (complexMap R g K) n = |
| 58 | shortMap R g 0 (Augmented.ResolutionCycles.differentialSequence K n) := rfl |
| 59 | |
| 60 | theorem connecting {S : ShortComplex C} (hS : S.ShortExact) (m : ℕ) |
| 61 | (α : Ext.{z} S.X₁ Y m) : |
| 62 | SourceDimensionShift.connecting hS Y' m |
| 63 | ((Ext.mk₀ g).postcomp S.X₁ (Nat.add_zero m) α) = |
| 64 | (Ext.mk₀ g).postcomp S.X₃ (Nat.add_zero (m + 1)) |
| 65 | (SourceDimensionShift.connecting hS Y m α) := |
| 66 | (Ext.comp_assoc_of_third_deg_zero hS.extClass α (Ext.mk₀ g) (Nat.add_comm 1 m)).symm |
| 67 | |
| 68 | theorem connecting_zero {S : ShortComplex Cᵒᵖ} (hS : S.ShortExact) : |
| 69 | component R g 0 S.X₃.unop ≫ SourceZeroCokernel.connecting R Y' hS = |
| 70 | SourceZeroCokernel.connecting R Y hS ≫ component R g 1 S.X₁.unop := by |
| 71 | apply ModuleCat.hom_ext |
| 72 | apply LinearMap.ext |
| 73 | intro α |
| 74 | exact connecting g hS.unop 0 α |
| 75 | |
| 76 | variable (T : ShortComplex Cᵒᵖ) {A : Cᵒᵖ} (a : A ⟶ T.X₁) |
| 77 | (ha : a ≫ T.toCycles = 0) (hS : (ShortComplex.mk a T.toCycles ha).ShortExact) |
| 78 | [Subsingleton (Ext.{z} T.X₁.unop Y 1)] [Subsingleton (Ext.{z} T.X₁.unop Y' 1)] |
| 79 | |
| 80 | local notation "dY" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionHomologyData.data R Y T a ha hS |
| 81 | local notation "dY'" => OAI.NumberTheory.PadicHodge.IntegralComparison.Contravariant.ResolutionHomologyData.data R Y' T a ha hS |
| 82 | |
| 83 | def homologyData : ShortComplex.LeftHomologyMapData (shortMap R g 0 T) dY dY' where |
| 84 | φK := component R g 0 T.cycles.unop |
| 85 | φH := component R g 1 A.unop |
| 86 | commi := (CoefficientNaturality.naturality R g 0 T.iCycles).symm |
| 87 | commf' := by |
| 88 | have hY := SourceZeroKernels.cycleKernel_lift R Y T |
| 89 | have hY' := SourceZeroKernels.cycleKernel_lift R Y' T |
| 90 | exact (congrArg (fun f => f ≫ component R g 0 T.cycles.unop) hY).trans |
| 91 | ((CoefficientNaturality.naturality R g 0 T.toCycles).trans |
| 92 | (congrArg (fun f => component R g 0 T.X₁.unop ≫ f) hY'.symm)) |
| 93 | commπ := (connecting_zero R g hS).symm |
| 94 | |
| 95 | theorem short_homology : ShortComplex.homologyMap (shortMap R g 0 T) ≫ |
| 96 | (Contravariant.ResolutionHomologyData.homologyIso R Y' T a ha hS).hom = |
| 97 | (Contravariant.ResolutionHomologyData.homologyIso R Y T a ha hS).hom ≫ |
| 98 | component R g 1 A.unop := |
| 99 | (homologyData R g T a ha hS).homologyMap_comm |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Ext.CoefficientNaturality |