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 Mathlib |
| 2 | |
| 3 | /-! # Module Homology Maps -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.ModuleHomologyMaps |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Explicit maps on module homology |
| 11 | |
| 12 | Maps on cycle quotients are identified with the actual categorical |
| 13 | homology maps through checked left-homology map data. |
| 14 | -/ |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | open _root_.CategoryTheory |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] |
| 21 | {S T : ShortComplex (ModuleCat.{v} R)} (f : S ⟶ T) |
| 22 | |
| 23 | def cycleMap : LinearMap.ker S.g.hom →ₗ[R] LinearMap.ker T.g.hom := |
| 24 | (f.τ₂.hom.comp (LinearMap.ker S.g.hom).subtype).codRestrict _ (fun x => by |
| 25 | change T.g (f.τ₂ x) = 0 |
| 26 | have h := congrArg (fun h : S.X₂ ⟶ T.X₃ => h x) f.comm₂₃ |
| 27 | change T.g (f.τ₂ x) = f.τ₃ (S.g x) at h |
| 28 | have hx : S.g x = 0 := x.property |
| 29 | rw [hx, map_zero] at h |
| 30 | exact h) |
| 31 | |
| 32 | theorem cycleMap_toCycles : |
| 33 | (cycleMap f).comp S.moduleCatToCycles = T.moduleCatToCycles.comp f.τ₁.hom := by |
| 34 | apply LinearMap.ext |
| 35 | intro x |
| 36 | apply Subtype.ext |
| 37 | exact (congrArg (fun h : S.X₁ ⟶ T.X₂ => h x) f.comm₁₂).symm |
| 38 | |
| 39 | theorem cycleMap_preserves_boundaries : |
| 40 | LinearMap.range S.moduleCatToCycles ≤ |
| 41 | (LinearMap.range T.moduleCatToCycles).comap (cycleMap f) := by |
| 42 | rintro _ ⟨x, rfl⟩ |
| 43 | exact ⟨f.τ₁ x, (DFunLike.congr_fun (cycleMap_toCycles f) x).symm⟩ |
| 44 | |
| 45 | def quotientMap : |
| 46 | (LinearMap.ker S.g.hom ⧸ LinearMap.range S.moduleCatToCycles) →ₗ[R] |
| 47 | (LinearMap.ker T.g.hom ⧸ LinearMap.range T.moduleCatToCycles) := |
| 48 | (LinearMap.range S.moduleCatToCycles).mapQ (LinearMap.range T.moduleCatToCycles) |
| 49 | (cycleMap f) (cycleMap_preserves_boundaries f) |
| 50 | |
| 51 | def mapData : ShortComplex.LeftHomologyMapData f |
| 52 | S.moduleCatLeftHomologyData T.moduleCatLeftHomologyData where |
| 53 | φK := ModuleCat.ofHom (cycleMap f) |
| 54 | φH := ModuleCat.ofHom (quotientMap f) |
| 55 | commi := rfl |
| 56 | commf' := ModuleCat.hom_ext (cycleMap_toCycles f) |
| 57 | commπ := rfl |
| 58 | |
| 59 | theorem homologyMap_natural : |
| 60 | ShortComplex.homologyMap f ≫ T.moduleCatHomologyIso.hom = |
| 61 | S.moduleCatHomologyIso.hom ≫ ModuleCat.ofHom (quotientMap f) := |
| 62 | (mapData f).homologyMap_comm |
| 63 | |
| 64 | theorem quasiIso_iff_bijective : ShortComplex.QuasiIso f ↔ Function.Bijective (quotientMap f) := by |
| 65 | rw [(mapData f).quasiIso_iff] |
| 66 | exact ConcreteCategory.isIso_iff_bijective _ |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.ModuleHomologyMaps |