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.Module.CochainClasses |
| 2 | |
| 3 | /-! # Cochain Class Naturality -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClassNaturality |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The concrete cycle-class map is the native homology projection and is natural in the complex. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory Limits |
| 12 | |
| 13 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses |
| 14 | |
| 15 | universe u v |
| 16 | |
| 17 | variable {R : Type u} [CommRing R] (K : CochainComplex (ModuleCat.{v} R) ℕ) |
| 18 | |
| 19 | def cyclesIso (n : ℕ) : ModuleCat.of R (CochainClasses.cycles K n) ≅ K.cycles n := |
| 20 | (CochainClasses.short K n).moduleCatCyclesIso.symm ≪≫ |
| 21 | (K.cyclesIsoSc' ((ComplexShape.up ℕ).prev n) n (n + 1) rfl (CochainComplex.next ℕ n)).symm |
| 22 | |
| 23 | theorem cyclesIso_hom_i (n : ℕ) : |
| 24 | (cyclesIso K n).hom ≫ K.iCycles n = |
| 25 | ModuleCat.ofHom (X := ModuleCat.of R (CochainClasses.cycles K n)) (Y := K.X n) (CochainClasses.cycles K n).subtype := by |
| 26 | change ((CochainClasses.short K n).moduleCatCyclesIso.inv ≫ |
| 27 | (K.cyclesIsoSc' ((ComplexShape.up ℕ).prev n) n (n + 1) rfl (CochainComplex.next ℕ n)).inv) ≫ |
| 28 | K.iCycles n = _ |
| 29 | rw [Category.assoc, K.cyclesIsoSc'_inv_iCycles] |
| 30 | exact (CochainClasses.short K n).moduleCatCyclesIso_inv_iCycles |
| 31 | |
| 32 | theorem classMap_eq (n : ℕ) : |
| 33 | ModuleCat.ofHom (X := ModuleCat.of R (CochainClasses.cycles K n)) (Y := K.homology n) (CochainClasses.classMap K n) = |
| 34 | (cyclesIso K n).hom ≫ K.homologyπ n := by |
| 35 | symm |
| 36 | change ((CochainClasses.short K n).moduleCatCyclesIso.inv ≫ |
| 37 | (K.cyclesIsoSc' ((ComplexShape.up ℕ).prev n) n (n + 1) rfl (CochainComplex.next ℕ n)).inv) ≫ |
| 38 | K.homologyπ n = _ |
| 39 | rw [Category.assoc, ← K.π_homologyIsoSc'_inv, ← Category.assoc, |
| 40 | (CochainClasses.short K n).moduleCatCyclesIso_inv_π] |
| 41 | rfl |
| 42 | |
| 43 | variable {K} {L : CochainComplex (ModuleCat.{v} R) ℕ} (f : K ⟶ L) |
| 44 | |
| 45 | def cycleMap (n : ℕ) : CochainClasses.cycles K n →ₗ[R] CochainClasses.cycles L n := |
| 46 | ((f.f n).hom.comp (CochainClasses.cycles K n).subtype).codRestrict _ (fun x => by |
| 47 | have h := congrArg (fun g => g x.val) (f.comm n (n + 1)) |
| 48 | change L.d n (n + 1) (f.f n x.val) = f.f (n + 1) (K.d n (n + 1) x.val) at h |
| 49 | exact h.trans (by rw [x.property, map_zero])) |
| 50 | |
| 51 | theorem cycleMap_iso (n : ℕ) : |
| 52 | ModuleCat.ofHom (X := ModuleCat.of R (CochainClasses.cycles K n)) (Y := ModuleCat.of R (CochainClasses.cycles L n)) (cycleMap f n) ≫ |
| 53 | (cyclesIso L n).hom = (cyclesIso K n).hom ≫ HomologicalComplex.cyclesMap f n := by |
| 54 | apply (cancel_mono (L.iCycles n)).mp |
| 55 | rw [Category.assoc, cyclesIso_hom_i, Category.assoc, HomologicalComplex.cyclesMap_i, |
| 56 | ← Category.assoc, cyclesIso_hom_i] |
| 57 | rfl |
| 58 | |
| 59 | theorem naturality (n : ℕ) : |
| 60 | ModuleCat.ofHom (X := ModuleCat.of R (CochainClasses.cycles K n)) (Y := ModuleCat.of R (CochainClasses.cycles L n)) (cycleMap f n) ≫ |
| 61 | ModuleCat.ofHom (X := ModuleCat.of R (CochainClasses.cycles L n)) (Y := L.homology n) (CochainClasses.classMap L n) = |
| 62 | ModuleCat.ofHom (X := ModuleCat.of R (CochainClasses.cycles K n)) (Y := K.homology n) (CochainClasses.classMap K n) ≫ |
| 63 | HomologicalComplex.homologyMap f n := by |
| 64 | rw [classMap_eq, classMap_eq, ← Category.assoc, cycleMap_iso, Category.assoc, |
| 65 | ← HomologicalComplex.homologyπ_naturality, Category.assoc] |
| 66 | |
| 67 | theorem naturality_apply (n : ℕ) (x : CochainClasses.cycles K n) : |
| 68 | CochainClasses.classMap L n (cycleMap f n x) = HomologicalComplex.homologyMap f n (CochainClasses.classMap K n x) := |
| 69 | congrArg (fun g => g x) (naturality f n) |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClassNaturality |