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.TotalCup |
| 2 | |
| 3 | /-! # Total Components -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RationalDeRham.TotalComponents.CechCup |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Component formulas for the differential and the cup product of |
| 10 | the original Čech–de Rham total complex. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open scoped Simplicial |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] [Algebra ℚ R] |
| 18 | (X : Over (Spec (CommRingCat.of R))) |
| 19 | (N : SimplicialObject (FormalCoproduct.{u} X.left.Opens)) |
| 20 | |
| 21 | def component (p a n : ℕ) (h : p + a = n) : |
| 22 | (CechCup.cochains R X N p).obj ⦋a⦌ →ₗ[R] (TotalCup.Cech.total R X N).X n := |
| 23 | ((TotalCup.Cech.bicomplex R X N).ιTotal (.up ℕ) p a n h).hom |
| 24 | |
| 25 | def totalDegreeCast {n m : ℕ} (h : n = m) : (TotalCup.Cech.total R X N).X n ≃ₗ[R] (TotalCup.Cech.total R X N).X m := |
| 26 | h ▸ LinearEquiv.refl R ((TotalCup.Cech.total R X N).X n) |
| 27 | |
| 28 | def cupInto (n m k : ℕ) (h : n + m = k) : |
| 29 | (TotalCup.Cech.total R X N).X n →ₗ[R] (TotalCup.Cech.total R X N).X m →ₗ[R] (TotalCup.Cech.total R X N).X k := |
| 30 | (TotalCup.Cech.totalCup R X N n m).compr₂ (totalDegreeCast R X N h).toLinearMap |
| 31 | |
| 32 | theorem cupInto_component (n m k p a q b : ℕ) (hnm : n + m = k) |
| 33 | (hpa : p + a = n) (hqb : q + b = m) |
| 34 | (x : (CechCup.cochains R X N p).obj ⦋a⦌) (y : (CechCup.cochains R X N q).obj ⦋b⦌) : |
| 35 | cupInto R X N n m k hnm (component R X N p a n hpa x) (component R X N q b m hqb y) = |
| 36 | (-1 : ℤ) ^ (a * q) • component R X N (p + q) (a + b) k (by omega) |
| 37 | (CechCup.cup R X N p q a b x y) := by |
| 38 | subst k |
| 39 | exact TotalCup.Cech.totalCup_ι R X N n m p a q b hpa hqb x y |
| 40 | |
| 41 | omit [Algebra ℚ R] in |
| 42 | theorem totalDegreeCast_component {p a n m : ℕ} (h : n = m) (hpa : p + a = n) |
| 43 | (hpa' : p + a = m) (x : (CechCup.cochains R X N p).obj ⦋a⦌) : |
| 44 | totalDegreeCast R X N h (component R X N p a n hpa x) = component R X N p a m hpa' x := by |
| 45 | subst m |
| 46 | rfl |
| 47 | |
| 48 | omit [Algebra ℚ R] in |
| 49 | theorem component_formDegreeCast {p q a n : ℕ} (h : p = q) (hpa : p + a = n) (hqa : q + a = n) |
| 50 | (x : (CechCup.cochains R X N p).obj ⦋a⦌) : |
| 51 | component R X N q a n hqa (CechDifferential.Cup.formDegreeCast R X N h ⦋a⦌ x) = component R X N p a n hpa x := by |
| 52 | subst q |
| 53 | rfl |
| 54 | |
| 55 | omit [Algebra ℚ R] in |
| 56 | theorem component_cechDegreeCast {p a b n : ℕ} (h : a = b) (hpa : p + a = n) (hpb : p + b = n) |
| 57 | (x : (CechCup.cochains R X N p).obj ⦋a⦌) : |
| 58 | component R X N p b n hpb (Cosimplicial.BilinearDegrees.Cup.degreeCast (CechCup.cochains R X N p) h x) = |
| 59 | component R X N p a n hpa x := by |
| 60 | subst b |
| 61 | rfl |
| 62 | |
| 63 | omit [Algebra ℚ R] in |
| 64 | theorem differential_component (p a n : ℕ) (hpa : p + a = n) (x : (CechCup.cochains R X N p).obj ⦋a⦌) : |
| 65 | (TotalCup.Cech.total R X N).d n (n + 1) (component R X N p a n hpa x) = |
| 66 | component R X N (p + 1) a (n + 1) (by omega) ((CechDifferential.Cup.deRhamDifferential R X N p).app ⦋a⦌ x) + |
| 67 | (-1 : ℤ) ^ p • component R X N p (a + 1) (n + 1) (by omega) |
| 68 | (Cosimplicial.BilinearCup.differential (CechCup.cochains R X N p) a x) := by |
| 69 | have h := ConcreteCategory.congr_hom (AlgebraicGeometry.SheafCohomology.Cech.ComplexUpNatBoundary.Projective.ιTotal_d_of_sum (TotalCup.Cech.bicomplex R X N) p a n hpa) x |
| 70 | simp only [Units.smul_def] at h |
| 71 | change (TotalCup.Cech.total R X N).d n (n + 1) (component R X N p a n hpa x) = |
| 72 | component R X N (p + 1) a (n + 1) (by omega) (((TotalCup.Cech.bicomplex R X N).d p (p + 1)).f a x) + |
| 73 | (-1 : ℤ) ^ p • component R X N p (a + 1) (n + 1) (by omega) |
| 74 | (((TotalCup.Cech.bicomplex R X N).X p).d a (a + 1) x) at h |
| 75 | exact h.trans (congrArg₂ (· + ·) |
| 76 | (congrArg (component R X N (p + 1) a (n + 1) (by omega)) |
| 77 | (TotalCup.Cech.bicomplex_d_form_apply R X N p a x)) |
| 78 | (congrArg (fun z => (-1 : ℤ) ^ p • component R X N p (a + 1) (n + 1) (by omega) z) |
| 79 | (TotalCup.Cech.bicomplex_d_cech_apply R X N p a x))) |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RationalDeRham.TotalComponents.CechCup |