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.ExactModuleDualFunctor |
| 2 | import Mathlib.Algebra.Homology.Opposite |
| 3 | |
| 4 | /-! # Dual Complex Homology -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DualComplexHomology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Over an injective coefficient ring, the homology of the ordinary |
| 11 | dual complex is the ordinary dual of homology, naturally in the complex. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | theorem map_square {C D : Type*} [Category* C] [Category* D] |
| 18 | (F : C ⥤ D) {A B C' D' : C} (a : A ⟶ B) (b : B ⟶ D') |
| 19 | (c : A ⟶ C') (d : C' ⟶ D') (h : a ≫ b = c ≫ d) : |
| 20 | F.map a ≫ F.map b = F.map c ≫ F.map d := by |
| 21 | rw [← F.map_comp, h, F.map_comp] |
| 22 | |
| 23 | theorem compose_squares {C : Type*} [Category* C] {A B D E G H : C} |
| 24 | (f : A ⟶ B) (a : B ⟶ D) (b : D ⟶ E) (c : A ⟶ G) (d : G ⟶ H) |
| 25 | (g : H ⟶ E) (m : G ⟶ D) (h₁ : f ≫ a = c ≫ m) (h₂ : m ≫ b = d ≫ g) : |
| 26 | f ≫ (a ≫ b) = (c ≫ d) ≫ g := by |
| 27 | rw [← Category.assoc, h₁, Category.assoc, h₂, ← Category.assoc] |
| 28 | |
| 29 | variable (R : Type u) [CommRing R] {ι : Type v} {c : ComplexShape ι} |
| 30 | |
| 31 | abbrev dual := ExactModuleDualFunctor.functor R |
| 32 | |
| 33 | def complex (K : HomologicalComplex (ModuleCat.{u} R) c) : |
| 34 | HomologicalComplex (ModuleCat.{u} R) c.symm := |
| 35 | ((dual R).mapHomologicalComplex c.symm).obj K.op |
| 36 | |
| 37 | def map {K L : HomologicalComplex (ModuleCat.{u} R) c} (f : K ⟶ L) : |
| 38 | complex R L ⟶ complex R K := |
| 39 | ((dual R).mapHomologicalComplex c.symm).map |
| 40 | ((HomologicalComplex.opFunctor (ModuleCat.{u} R) c).map f.op) |
| 41 | |
| 42 | variable [Module.Injective R R] |
| 43 | |
| 44 | def homologyIso (K : HomologicalComplex (ModuleCat.{u} R) c) (i : ι) : |
| 45 | (complex R K).homology i ≅ ModuleCat.of R (Module.Dual R (K.homology i)) := |
| 46 | (K.op.sc i).mapHomologyIso (dual R) ≪≫ (dual R).mapIso (K.homologyOp i) |
| 47 | |
| 48 | set_option backward.isDefEq.respectTransparency false in |
| 49 | @[reassoc] |
| 50 | theorem naturality {K L : HomologicalComplex (ModuleCat.{u} R) c} (f : K ⟶ L) (i : ι) : |
| 51 | HomologicalComplex.homologyMap (DualComplexHomology.map R f) i ≫ (homologyIso R K i).hom = |
| 52 | (homologyIso R L i).hom ≫ ModuleCat.ofHom (HomologicalComplex.homologyMap f i).hom.dualMap := by |
| 53 | let fop := (HomologicalComplex.opFunctor (ModuleCat.{u} R) c).map f.op |
| 54 | have h₁ := ShortComplex.mapHomologyIso_hom_naturality |
| 55 | ((HomologicalComplex.shortComplexFunctor (ModuleCat.{u} R)ᵒᵖ c.symm i).map fop) (dual R) |
| 56 | have h₂ := map_square (dual R) _ _ _ _ (HomologicalComplex.homologyOp_hom_naturality f i) |
| 57 | change HomologicalComplex.homologyMap (DualComplexHomology.map R f) i ≫ ((K.op.sc i).mapHomologyIso (dual R)).hom = |
| 58 | ((L.op.sc i).mapHomologyIso (dual R)).hom ≫ (dual R).map (HomologicalComplex.homologyMap fop i) at h₁ |
| 59 | exact compose_squares _ _ _ _ _ _ _ h₁ h₂ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DualComplexHomology |