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.RationalDeRham.CechDifferential |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.BilinearDegrees |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.BicomplexPairing |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.CechCoefficient.Total |
| 5 | |
| 6 | /-! # Total Cup -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RationalDeRham.TotalCup.Cech |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The signed exterior/Alexander–Whitney product on the original |
| 13 | categorical Čech–de Rham total complex. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | open scoped Simplicial |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] [Algebra ℚ R] |
| 21 | (X : Over (Spec (CommRingCat.of R))) |
| 22 | (N : SimplicialObject (FormalCoproduct.{u} X.left.Opens)) |
| 23 | |
| 24 | def bicomplex : HomologicalComplex₂ (ModuleCat.{u} R) (.up ℕ) (.up ℕ) := |
| 25 | CechCoefficient.Total.bicomplex N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X) |
| 26 | |
| 27 | def total : CochainComplex (ModuleCat.{u} R) ℕ := (bicomplex R X N).total (.up ℕ) |
| 28 | |
| 29 | def signedPairing (p a q b : ℕ) : |
| 30 | ((bicomplex R X N).X p).X a →ₗ[R] ((bicomplex R X N).X q).X b →ₗ[R] |
| 31 | ((bicomplex R X N).X (p + q)).X (a + b) := |
| 32 | (-1 : ℤ) ^ (a * q) • CechCup.cup R X N p q a b |
| 33 | |
| 34 | def totalCup (n m : ℕ) : (Cech.total R X N).X n →ₗ[R] (Cech.total R X N).X m →ₗ[R] |
| 35 | (Cech.total R X N).X (n + m) := |
| 36 | BicomplexPairing.totalPairing (bicomplex R X N) (bicomplex R X N) (bicomplex R X N) |
| 37 | (signedPairing R X N) n m |
| 38 | |
| 39 | theorem totalCup_ι (n m p a q b : ℕ) (hpa : p + a = n) (hqb : q + b = m) |
| 40 | (x : ((bicomplex R X N).X p).X a) (y : ((bicomplex R X N).X q).X b) : |
| 41 | totalCup R X N n m ((bicomplex R X N).ιTotal (.up ℕ) p a n hpa x) |
| 42 | ((bicomplex R X N).ιTotal (.up ℕ) q b m hqb y) = |
| 43 | (-1 : ℤ) ^ (a * q) • |
| 44 | (bicomplex R X N).ιTotal (.up ℕ) (p + q) (a + b) (n + m) (by |
| 45 | change (p + q) + (a + b) = n + m |
| 46 | omega) (CechCup.cup R X N p q a b x y) := by |
| 47 | exact (BicomplexPairing.totalPairing_ι _ _ _ (signedPairing R X N) |
| 48 | n m p a q b hpa hqb x y).trans (map_zsmul |
| 49 | ((bicomplex R X N).ιTotal (.up ℕ) (p + q) (a + b) (n + m) (by |
| 50 | change (p + q) + (a + b) = n + m |
| 51 | omega)).hom ((-1 : ℤ) ^ (a * q)) (CechCup.cup R X N p q a b x y)) |
| 52 | |
| 53 | omit [Algebra ℚ R] in |
| 54 | theorem bicomplex_d_form_apply (p a : ℕ) (x : ((bicomplex R X N).X p).X a) : |
| 55 | ((bicomplex R X N).d p (p + 1)).f a x = (CechDifferential.Cup.deRhamDifferential R X N p).app ⦋a⦌ x := by |
| 56 | change (((FormalCoproduct.cochainComplexFunctor N).map |
| 57 | ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X).d p (p + 1))).f a) x = _ |
| 58 | rw [show (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.presheafComplex R X).d p (p + 1) = |
| 59 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf R X p from CochainComplex.of_d _ _ p] |
| 60 | rfl |
| 61 | |
| 62 | omit [Algebra ℚ R] in |
| 63 | theorem bicomplex_d_cech_apply (p a : ℕ) (x : ((bicomplex R X N).X p).X a) : |
| 64 | ((bicomplex R X N).X p).d a (a + 1) x = |
| 65 | Cosimplicial.BilinearCup.differential (CechCup.cochains R X N p) a x := |
| 66 | Cosimplicial.BilinearCup.complex_d_apply (CechCup.cochains R X N p) a x |
| 67 | |
| 68 | omit [Algebra ℚ R] in |
| 69 | theorem formDegreeCast_ι {p q a n : ℕ} (h : p = q) (hpa : p + a = n) (hqa : q + a = n) |
| 70 | (x : ((bicomplex R X N).X p).X a) : |
| 71 | (bicomplex R X N).ιTotal (.up ℕ) q a n hqa (CechDifferential.Cup.formDegreeCast R X N h ⦋a⦌ x) = |
| 72 | (bicomplex R X N).ιTotal (.up ℕ) p a n hpa x := by |
| 73 | subst q |
| 74 | rfl |
| 75 | |
| 76 | omit [Algebra ℚ R] in |
| 77 | theorem cechDegreeCast_ι {p a b n : ℕ} (h : a = b) (hpa : p + a = n) (hpb : p + b = n) |
| 78 | (x : ((bicomplex R X N).X p).X a) : |
| 79 | (bicomplex R X N).ιTotal (.up ℕ) p b n hpb |
| 80 | (Cosimplicial.BilinearDegrees.Cup.degreeCast (CechCup.cochains R X N p) h x) = |
| 81 | (bicomplex R X N).ιTotal (.up ℕ) p a n hpa x := by |
| 82 | subst b |
| 83 | rfl |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RationalDeRham.TotalCup.Cech |