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.AlgebraicGeometry.Crystalline.Cohomology.Finite.TotalComparison |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.TotalComplexDegreeZero |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatComparison |
| 4 | import Mathlib.Algebra.Category.ModuleCat.AB |
| 5 | |
| 6 | /-! # Horizontal Total -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Module.HorizontalTotal.Comparison |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Exact augmented rows compare with their genuine total complex for arbitrary |
| 13 | coefficient and module universes. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory Limits |
| 16 | |
| 17 | universe z t |
| 18 | |
| 19 | variable (R : Type t) [CommRing R] |
| 20 | |
| 21 | local instance moduleFiniteBiproducts : HasFiniteBiproducts (ModuleCat.{z} R) := |
| 22 | Abelian.hasFiniteBiproducts |
| 23 | |
| 24 | local instance moduleCoproducts : HasCoproducts.{0} (ModuleCat.{z} R) := |
| 25 | fun I => (ModuleCat.hasColimitsOfSize.{z, t, 0, 0} R).has_colimits_of_shape (Discrete I) |
| 26 | |
| 27 | local instance forgetColimits : PreservesColimitsOfSize.{z, z} |
| 28 | (forget₂ (ModuleCat.{z} R) AddCommGrpCat.{z}) := |
| 29 | ModuleCat.forget₂PreservesColimitsOfSize.{z, t, z, z} R |
| 30 | |
| 31 | variable (K : HomologicalComplex₂ (ModuleCat.{z} R) (ComplexShape.up ℕ) (ComplexShape.up ℕ)) |
| 32 | (A : CochainComplex (ModuleCat.{z} R) ℕ) |
| 33 | (e : ∀ q, A.X q ⟶ (K.X q).X 0) |
| 34 | (he : ∀ q q', (ComplexShape.up ℕ).Rel q q' → e q ≫ (K.d q q').f 0 = A.d q q' ≫ e q') |
| 35 | (w : ∀ q, e q ≫ (K.X q).d 0 1 = 0) |
| 36 | (haug : ∀ q, (ShortComplex.mk (e q) ((K.X q).d 0 1) (w q)).Exact) |
| 37 | (hmono : ∀ q, Mono (e q)) |
| 38 | (hrows : ∀ q n, (K.X q).ExactAt (n + 1)) |
| 39 | |
| 40 | include haug hmono hrows in |
| 41 | theorem quasiIso : QuasiIso ((AlgebraicGeometry.SheafCohomology.Cech.UpNatHorizontalEdge.HomologicalComplex₂.totalUpNatHorizontalEdge K) A e he w) := by |
| 42 | constructor |
| 43 | intro n |
| 44 | cases n with |
| 45 | | zero => |
| 46 | exact AlgebraicGeometry.Comparison.Betti.TotalComplexDegreeZero.horizontal_edge_quasiIsoAt_zero K A e he w (haug 0) hmono |
| 47 | | succ n => |
| 48 | let G := forget₂ (ModuleCat.{z} R) AddCommGrpCat.{z} |
| 49 | apply (HomologicalComplex.quasiIsoAt_map_iff_of_preservesHomology _ G (n + 1)).mp |
| 50 | let M := AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor.mapBicomplex G K |
| 51 | have haug' (q : ℕ) : |
| 52 | (ShortComplex.mk (G.map (e q)) ((M.X q).d 0 1) |
| 53 | (AlgebraicGeometry.Comparison.Betti.TotalComplexEdge.mappedHorizontalAugmentation_comp_d G K A e w q)).Exact := |
| 54 | (haug q).map G |
| 55 | have hmono' (q : ℕ) : Mono (G.map (e q)) := by |
| 56 | have : Mono (e q) := hmono q |
| 57 | infer_instance |
| 58 | have hrows' : AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatNormalize.Projective.RowsExact M := by |
| 59 | intro q m |
| 60 | have h : (ShortComplex.mk ((K.X q).d m (m + 1)) ((K.X q).d (m + 1) (m + 2)) |
| 61 | ((K.X q).d_comp_d m (m + 1) (m + 2))).Exact := |
| 62 | ((K.X q).exactAt_iff' m (m + 1) (m + 2) (by simp) (by simp)).mp (hrows q m) |
| 63 | exact h.map G |
| 64 | have : QuasiIsoAt (AlgebraicGeometry.Comparison.Betti.TotalComplexEdge.mappedHorizontalEdge G K A e he w) (n + 1) := |
| 65 | AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatComparison.Projective.horizontal_edge_quasiIsoAt M ((G.mapHomologicalComplex (ComplexShape.up ℕ)).obj A) |
| 66 | (fun q => G.map (e q)) (AlgebraicGeometry.Comparison.Betti.TotalComplexEdge.mappedHorizontalAugmentation_comm G K A e he) |
| 67 | (AlgebraicGeometry.Comparison.Betti.TotalComplexEdge.mappedHorizontalAugmentation_comp_d G K A e w) haug' hmono' hrows' n |
| 68 | have : IsIso (AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor.totalComparison G K) := |
| 69 | (AlgebraicGeometry.Crystalline.Cohomology.Finite.TotalComparison.FiniteTotalComparison.iso G K).isIso_hom |
| 70 | have h : QuasiIsoAt (AlgebraicGeometry.Comparison.Betti.TotalComplexEdge.mappedHorizontalEdge G K A e he w ≫ |
| 71 | AlgebraicGeometry.Comparison.Betti.TotalComplexFunctor.totalComparison G K) (n + 1) := inferInstance |
| 72 | rw [AlgebraicGeometry.Comparison.Betti.TotalComplexEdge.mappedHorizontalEdge_comp_totalComparison] at h |
| 73 | exact h |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Module.HorizontalTotal.Comparison |