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.CountableProductHomology |
| 2 | |
| 3 | /-! # Countable Cohomology Difference -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.CountableCohomologyDifference |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: the difference operator on product cohomology has the expected coordinates |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem cancel_iso_projection {C : Type*} [Category* C] [Preadditive C] |
| 18 | {X Y Z W : C} (e : X ≅ Y) (d : X ⟶ X) (a : Y ⟶ Z) (b : Y ⟶ W) (t : W ⟶ Z) |
| 19 | (h : d ≫ e.hom ≫ a = e.hom ≫ a - (e.hom ≫ b) ≫ t) : |
| 20 | (e.inv ≫ d ≫ e.hom) ≫ a = a - b ≫ t := by |
| 21 | have h' := congrArg (fun f => e.inv ≫ f) h |
| 22 | simpa only [Category.assoc, Preadditive.comp_sub, Iso.inv_hom_id_assoc] using h' |
| 23 | |
| 24 | variable (R : Type u) [CommRing R] (K : CochainComplex (Discrete ℕ ⥤ ModuleCat.{u} R) ℕ) |
| 25 | (φ : CountableProductHomology.complex R K ⟶ CountableProductHomology.complex R K) |
| 26 | (t : ∀ n, CountableProductHomology.component R K (n + 1) ⟶ CountableProductHomology.component R K n) |
| 27 | (hφ : ∀ n, φ ≫ CountableProductHomology.projection R K n = |
| 28 | CountableProductHomology.projection R K n - CountableProductHomology.projection R K (n + 1) ≫ t n) |
| 29 | |
| 30 | include hφ in |
| 31 | theorem homology_projection (i n : ℕ) : |
| 32 | HomologicalComplex.homologyMap φ i ≫ (CountableProductHomology.homologyIso R K i).hom ≫ |
| 33 | ModuleCat.ofHom (LinearMap.proj n) = |
| 34 | (CountableProductHomology.homologyIso R K i).hom ≫ ModuleCat.ofHom (LinearMap.proj n) - |
| 35 | ((CountableProductHomology.homologyIso R K i).hom ≫ ModuleCat.ofHom (LinearMap.proj (n + 1))) ≫ |
| 36 | HomologicalComplex.homologyMap (t n) i := by |
| 37 | let H := HomologicalComplex.homologyFunctor (ModuleCat.{u} R) (ComplexShape.up ℕ) i |
| 38 | have h := congrArg H.map (hφ n) |
| 39 | rw [H.map_comp, H.map_sub, H.map_comp] at h |
| 40 | exact (congrArg (fun a => HomologicalComplex.homologyMap φ i ≫ a) |
| 41 | (CountableProductHomology.homologyIso_projection R K i n)).trans |
| 42 | (h.trans (congrArg₂ (· - ·) (CountableProductHomology.homologyIso_projection R K i n).symm |
| 43 | (congrArg (fun a => a ≫ HomologicalComplex.homologyMap (t n) i) |
| 44 | (CountableProductHomology.homologyIso_projection R K i (n + 1)).symm))) |
| 45 | |
| 46 | def difference (i : ℕ) : ModuleCat.of R (∀ n, (CountableProductHomology.component R K n).homology i) ⟶ |
| 47 | ModuleCat.of R (∀ n, (CountableProductHomology.component R K n).homology i) := |
| 48 | (CountableProductHomology.homologyIso R K i).inv ≫ HomologicalComplex.homologyMap φ i ≫ |
| 49 | (CountableProductHomology.homologyIso R K i).hom |
| 50 | |
| 51 | include hφ in |
| 52 | theorem difference_projection (i n : ℕ) : |
| 53 | difference R K φ i ≫ ModuleCat.ofHom (LinearMap.proj n) = |
| 54 | ModuleCat.ofHom (LinearMap.proj n) - ModuleCat.ofHom (LinearMap.proj (n + 1)) ≫ |
| 55 | HomologicalComplex.homologyMap (t n) i := by |
| 56 | exact cancel_iso_projection (CountableProductHomology.homologyIso R K i) |
| 57 | (HomologicalComplex.homologyMap φ i) (ModuleCat.ofHom (LinearMap.proj n)) |
| 58 | (ModuleCat.ofHom (LinearMap.proj (n + 1))) (HomologicalComplex.homologyMap (t n) i) |
| 59 | (homology_projection R K φ t hφ i n) |
| 60 | |
| 61 | include hφ in |
| 62 | theorem difference_apply (i : ℕ) (x : ∀ n, (CountableProductHomology.component R K n).homology i) (n : ℕ) : |
| 63 | difference R K φ i x n = x n - HomologicalComplex.homologyMap (t n) i (x (n + 1)) := |
| 64 | congrArg (fun a : ModuleCat.of R (∀ n, (CountableProductHomology.component R K n).homology i) ⟶ |
| 65 | (CountableProductHomology.component R K n).homology i => a x) (difference_projection R K φ t hφ i n) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.IntegralComparison.CountableCohomologyDifference |