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.OrderedCech.ReindexRefinement |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.ReindexTotal |
| 3 | |
| 4 | /-! # Reindex Cover -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.ReindexCover.Total |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual ordered refinement and common-cover homology maps |
| 11 | commute with finite-limit-preserving changes of open diagrams. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite _root_.HomologicalComplex |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | universe u v |
| 16 | variable {C D : Type u} [Preorder C] [HasFiniteProducts C] [Preorder D] [HasFiniteProducts D] |
| 17 | (r : C ⥤ D) [PreservesFiniteLimits r] |
| 18 | {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] (U : ι → C) (V : κ → C) |
| 19 | (ρ : FormalCoproduct.mk κ V ⟶ FormalCoproduct.mk ι U) |
| 20 | {A : Type v} [Category A] [Abelian A] [HasProducts.{u} A] [HasCoproducts.{0} A] |
| 21 | (K : CochainComplex (Dᵒᵖ ⥤ A) ℕ) |
| 22 | |
| 23 | omit [HasCoproducts A] in |
| 24 | theorem bicomplex_refinement : |
| 25 | Refinement.bicomplexMap U V ρ |
| 26 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K) ≫ (ReindexTotal.bicomplexIso r V K).hom = |
| 27 | (ReindexTotal.bicomplexIso r U K).hom ≫ Refinement.bicomplexMap (r.obj ∘ U) (r.obj ∘ V) |
| 28 | (Cech.BaseChangeRefinement.refinement r U V ρ) K := by |
| 29 | apply HomologicalComplex.Hom.ext |
| 30 | funext q |
| 31 | exact ReindexRefinement.refinement r U (K.X q) V ρ |
| 32 | |
| 33 | theorem total_refinement : |
| 34 | Refinement.totalMap U V ρ |
| 35 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K) ≫ (ReindexTotal.totalIso r V K).hom = |
| 36 | (ReindexTotal.totalIso r U K).hom ≫ Refinement.totalMap (r.obj ∘ U) (r.obj ∘ V) |
| 37 | (Cech.BaseChangeRefinement.refinement r U V ρ) K := by |
| 38 | let T := HomologicalComplex₂.totalFunctor A (.up ℕ) (.up ℕ) (.up ℕ) |
| 39 | exact (T.map_comp _ _).symm.trans |
| 40 | ((congrArg T.map (bicomplex_refinement r U V ρ K)).trans (T.map_comp _ _)) |
| 41 | |
| 42 | theorem homology_refinement (q : ℕ) : |
| 43 | homologyMap (Refinement.totalMap U V ρ |
| 44 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q ≫ |
| 45 | homologyMap (ReindexTotal.totalIso r V K).hom q = |
| 46 | homologyMap (ReindexTotal.totalIso r U K).hom q ≫ |
| 47 | homologyMap (Refinement.totalMap (r.obj ∘ U) (r.obj ∘ V) |
| 48 | (Cech.BaseChangeRefinement.refinement r U V ρ) K) q := by |
| 49 | simpa only [homologyMap_comp] using |
| 50 | congrArg (fun a => homologyMap a q) (total_refinement r U V ρ K) |
| 51 | |
| 52 | variable {ν : Type u} [LinearOrder ν] (W : ν → C) |
| 53 | (s : FormalCoproduct.mk ν W ⟶ FormalCoproduct.mk ι U) |
| 54 | (t : FormalCoproduct.mk ν W ⟶ FormalCoproduct.mk κ V) (q : ℕ) |
| 55 | [IsIso (homologyMap (Refinement.totalMap V W t |
| 56 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q)] |
| 57 | [IsIso (homologyMap (Refinement.totalMap (r.obj ∘ V) (r.obj ∘ W) |
| 58 | (Cech.BaseChangeRefinement.refinement r V W t) K) q)] |
| 59 | |
| 60 | theorem comparison : |
| 61 | (homologyMap (Refinement.totalMap U W s |
| 62 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q ≫ |
| 63 | inv (homologyMap (Refinement.totalMap V W t |
| 64 | (((ReindexTotal.restriction r).mapHomologicalComplex (.up ℕ)).obj K)) q)) ≫ |
| 65 | homologyMap (ReindexTotal.totalIso r V K).hom q = |
| 66 | homologyMap (ReindexTotal.totalIso r U K).hom q ≫ |
| 67 | homologyMap (Refinement.totalMap (r.obj ∘ U) (r.obj ∘ W) |
| 68 | (Cech.BaseChangeRefinement.refinement r U W s) K) q ≫ |
| 69 | inv (homologyMap (Refinement.totalMap (r.obj ∘ V) (r.obj ∘ W) |
| 70 | (Cech.BaseChangeRefinement.refinement r V W t) K) q) := by |
| 71 | apply (cancel_mono (homologyMap (Refinement.totalMap (r.obj ∘ V) (r.obj ∘ W) |
| 72 | (Cech.BaseChangeRefinement.refinement r V W t) K) q)).mp |
| 73 | simp only [Category.assoc, IsIso.inv_hom_id, Category.comp_id] |
| 74 | rw [← homology_refinement r V W t K q, IsIso.inv_hom_id_assoc] |
| 75 | exact homology_refinement r U W s K q |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.NumberTheory.PadicHodge.IntegralComparison.OrderedCech.ReindexCover.Total |