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.CechCup |
| 2 | |
| 3 | /-! # Cech Differential -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RationalDeRham.CechDifferential.Cup |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The de Rham part of the differential obeys the graded product |
| 10 | rule on the original Čech cochains. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 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 | attribute [local instance] CechCup.rationalSections |
| 22 | |
| 23 | def deRhamDifferential (p : ℕ) : CechCup.cochains R X N p ⟶ CechCup.cochains R X N (p + 1) := |
| 24 | (FormalCoproduct.cosimplicialObjectFunctor N).map (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf R X p) |
| 25 | |
| 26 | omit [Algebra ℚ R] in |
| 27 | theorem projection_deRhamDifferential (p : ℕ) (n : SimplexCategory) (i : (N.obj (op n)).I) |
| 28 | (x : (CechCup.cochains R X N p).obj n) : |
| 29 | Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X (p + 1)) n i |
| 30 | ((deRhamDifferential R X N p).app n x) = |
| 31 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential R Γ(X.left, (N.obj (op n)).obj i) p |
| 32 | (Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X p) n i x) := by |
| 33 | exact ConcreteCategory.congr_hom (Pi.map_π |
| 34 | (fun j => (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.differentialPresheaf R X p).app |
| 35 | (op ((N.obj (op n)).obj j))) i) x |
| 36 | |
| 37 | def formDegreeCast {p q : ℕ} (h : p = q) (n : SimplexCategory) : |
| 38 | (CechCup.cochains R X N p).obj n ≃ₗ[R] (CechCup.cochains R X N q).obj n := |
| 39 | h ▸ LinearEquiv.refl R ((CechCup.cochains R X N p).obj n) |
| 40 | |
| 41 | omit [Algebra ℚ R] in |
| 42 | theorem projection_formDegreeCast {p q : ℕ} (h : p = q) (n : SimplexCategory) |
| 43 | (i : (N.obj (op n)).I) (x : (CechCup.cochains R X N p).obj n) : |
| 44 | Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X q) n i (formDegreeCast R X N h n x) = |
| 45 | Wedge.degreeCast R Γ(X.left, (N.obj (op n)).obj i) h |
| 46 | (Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X p) n i x) := by |
| 47 | subst q |
| 48 | rfl |
| 49 | |
| 50 | theorem native_projection_pairing (p q : ℕ) (n : SimplexCategory) |
| 51 | (i : (N.obj (op n)).I) (x : (CechCup.cochains R X N p).obj n) (y : (CechCup.cochains R X N q).obj n) : |
| 52 | Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X (p + q)) n i (CechCup.pairing R X N p q n x y) = |
| 53 | CechCup.sectionPairing R X p q (op ((N.obj (op n)).obj i)) |
| 54 | (Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X p) n i x) |
| 55 | (Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X q) n i y) := |
| 56 | Cech.BilinearPairing.projection_pairing N _ _ _ (CechCup.sectionPairing R X p q) n i x y |
| 57 | |
| 58 | theorem native_projection_cast_pairing (p q t : ℕ) (h : p + q = t) (n : SimplexCategory) |
| 59 | (i : (N.obj (op n)).I) (x : (CechCup.cochains R X N p).obj n) (y : (CechCup.cochains R X N q).obj n) : |
| 60 | Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X t) n i |
| 61 | (formDegreeCast R X N h n (CechCup.pairing R X N p q n x y)) = |
| 62 | Wedge.degreeCast R Γ(X.left, (N.obj (op n)).obj i) h |
| 63 | (CechCup.sectionPairing R X p q (op ((N.obj (op n)).obj i)) |
| 64 | (Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X p) n i x) |
| 65 | (Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X q) n i y)) := |
| 66 | (projection_formDegreeCast R X N h n i _).trans |
| 67 | (congrArg (Wedge.degreeCast R Γ(X.left, (N.obj (op n)).obj i) h) |
| 68 | (native_projection_pairing R X N p q n i x y)) |
| 69 | |
| 70 | theorem deRhamDifferential_pairing (p q : ℕ) (n : SimplexCategory) |
| 71 | (x : (CechCup.cochains R X N p).obj n) (y : (CechCup.cochains R X N q).obj n) : |
| 72 | (deRhamDifferential R X N (p + q)).app n (CechCup.pairing R X N p q n x y) = |
| 73 | formDegreeCast R X N (by omega : (p + 1) + q = p + q + 1) n |
| 74 | (CechCup.pairing R X N (p + 1) q n ((deRhamDifferential R X N p).app n x) y) + |
| 75 | (-1 : ℤ) ^ p • formDegreeCast R X N (by omega : p + (q + 1) = p + q + 1) n |
| 76 | (CechCup.pairing R X N p (q + 1) n x ((deRhamDifferential R X N q).app n y)) := by |
| 77 | apply Module.ProductScalarKernel.element_ext |
| 78 | (fun i => (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X (p + q + 1)).obj (op ((N.obj (op n)).obj i))) |
| 79 | intro i |
| 80 | let : Algebra R Γ(X.left, (N.obj (op n)).obj i) := |
| 81 | AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X ((N.obj (op n)).obj i) |
| 82 | let : Algebra ℚ Γ(X.left, (N.obj (op n)).obj i) := CechCup.rationalSections R X ((N.obj (op n)).obj i) |
| 83 | change Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X (p + q + 1)) n i _ = |
| 84 | Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X (p + q + 1)) n i _ |
| 85 | let U := op ((N.obj (op n)).obj i) |
| 86 | let : Algebra R Γ(X.left, U.unop) := AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X U.unop |
| 87 | let : Algebra ℚ Γ(X.left, U.unop) := CechCup.rationalSections R X U.unop |
| 88 | let px := Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X p) n i x |
| 89 | let py := Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X q) n i y |
| 90 | let pr := Cech.BilinearPairing.projection N (AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formsPresheaf R X (p + q + 1)) n i |
| 91 | let dx := (deRhamDifferential R X N p).app n x |
| 92 | let dy := (deRhamDifferential R X N q).app n y |
| 93 | let l := formDegreeCast R X N (by omega : (p + 1) + q = p + q + 1) n |
| 94 | (CechCup.pairing R X N (p + 1) q n dx y) |
| 95 | let r := formDegreeCast R X N (by omega : p + (q + 1) = p + q + 1) n |
| 96 | (CechCup.pairing R X N p (q + 1) n x dy) |
| 97 | have hl : pr l = Wedge.degreeCast R Γ(X.left, U.unop) (by omega) |
| 98 | (CechCup.sectionPairing R X (p + 1) q U |
| 99 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential R Γ(X.left, U.unop) p px) py) := by |
| 100 | exact (native_projection_cast_pairing R X N (p + 1) q (p + q + 1) (by omega) n i dx y).trans |
| 101 | (congrArg (fun z => Wedge.degreeCast R Γ(X.left, U.unop) (by omega) |
| 102 | (CechCup.sectionPairing R X (p + 1) q U z py)) (projection_deRhamDifferential R X N p n i x)) |
| 103 | have hr : pr r = Wedge.degreeCast R Γ(X.left, U.unop) (by omega) |
| 104 | (CechCup.sectionPairing R X p (q + 1) U px |
| 105 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential R Γ(X.left, U.unop) q py)) := by |
| 106 | exact (native_projection_cast_pairing R X N p (q + 1) (p + q + 1) (by omega) n i x dy).trans |
| 107 | (congrArg (fun z => Wedge.degreeCast R Γ(X.left, U.unop) (by omega) |
| 108 | (CechCup.sectionPairing R X p (q + 1) U px z)) (projection_deRhamDifferential R X N q n i y)) |
| 109 | have hleft := (projection_deRhamDifferential R X N (p + q) n i (CechCup.pairing R X N p q n x y)).trans |
| 110 | (congrArg (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.differential R Γ(X.left, U.unop) (p + q)) |
| 111 | (native_projection_pairing R X N p q n i x y)) |
| 112 | have hproduct := @Leibniz.Wedge.differential_wedge R Γ(X.left, U.unop) _ _ |
| 113 | (AlgebraicGeometry.Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.sectionAlgebra R X U.unop) (CechCup.rationalSections R X U.unop) p q px py |
| 114 | have hsum : pr (l + (-1 : ℤ) ^ p • r) = pr l + (-1 : ℤ) ^ p • pr r := |
| 115 | (pr.map_add l _).trans (congrArg (pr l + ·) (map_zsmul pr ((-1 : ℤ) ^ p) r)) |
| 116 | exact hleft.trans (hproduct.trans |
| 117 | ((congrArg₂ (fun (a b : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.Form R Γ(X.left, U.unop) (p + q + 1)) => |
| 118 | a + (-1 : ℤ) ^ p • b) hl hr).symm.trans hsum.symm)) |
| 119 | |
| 120 | theorem deRhamDifferential_cup (p q a b : ℕ) |
| 121 | (x : (CechCup.cochains R X N p).obj ⦋a⦌) (y : (CechCup.cochains R X N q).obj ⦋b⦌) : |
| 122 | (deRhamDifferential R X N (p + q)).app ⦋a + b⦌ (CechCup.cup R X N p q a b x y) = |
| 123 | formDegreeCast R X N (by omega : (p + 1) + q = p + q + 1) ⦋a + b⦌ |
| 124 | (CechCup.cup R X N (p + 1) q a b ((deRhamDifferential R X N p).app ⦋a⦌ x) y) + |
| 125 | (-1 : ℤ) ^ p • formDegreeCast R X N (by omega : p + (q + 1) = p + q + 1) ⦋a + b⦌ |
| 126 | (CechCup.cup R X N p (q + 1) a b x ((deRhamDifferential R X N q).app ⦋b⦌ y)) := by |
| 127 | have hf := ConcreteCategory.congr_hom |
| 128 | ((deRhamDifferential R X N p).naturality (AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion a b)) x |
| 129 | have hb := ConcreteCategory.congr_hom |
| 130 | ((deRhamDifferential R X N q).naturality (AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion a b)) y |
| 131 | change (deRhamDifferential R X N (p + q)).app ⦋a + b⦌ |
| 132 | (CechCup.pairing R X N p q ⦋a + b⦌ ((CechCup.cochains R X N p).map (AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion a b) x) |
| 133 | ((CechCup.cochains R X N q).map (AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion a b) y)) = _ |
| 134 | rw [deRhamDifferential_pairing] |
| 135 | change (deRhamDifferential R X N p).app ⦋a + b⦌ |
| 136 | ((CechCup.cochains R X N p).map (AlgebraicTopology.Products.SimplexFaceIdentities.frontInclusion a b) x) = _ at hf |
| 137 | change (deRhamDifferential R X N q).app ⦋a + b⦌ |
| 138 | ((CechCup.cochains R X N q).map (AlgebraicTopology.Products.SimplexFaceIdentities.backInclusion a b) y) = _ at hb |
| 139 | rw [hf, hb] |
| 140 | rfl |
| 141 | |
| 142 | end |
| 143 | |
| 144 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RationalDeRham.CechDifferential.Cup |