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.IntersectionTheory.ProjectionFormula.Definitions |
| 2 | import OAI.AlgebraicTopology.Products.CupCohomologyAlgebra |
| 3 | import OAI.AlgebraicTopology.Products.CupGradedCommutativity |
| 4 | import Mathlib.LinearAlgebra.Dual.Lemmas |
| 5 | |
| 6 | /-! # Cohomology -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Cohomology.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # ProjectionFormula: cohomological projection formula |
| 14 | |
| 15 | The statement module is imported only for its actual singular-cohomology |
| 16 | definitions and PoincareData. Its two unfinished target theorems are never |
| 17 | used. The final axiom audit checks this transitively. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Definitions |
| 22 | |
| 23 | abbrev cup (X : TopCat.{0}) (p q : ℕ) := |
| 24 | AlgebraicTopology.Products.CupCohomology.singularCohomologyCup (R := ℚ) X p q |
| 25 | |
| 26 | abbrev pull {X Y : TopCat.{0}} (f : X ⟶ Y) (p : ℕ) := |
| 27 | AlgebraicTopology.Cohomology.Singular.Functor.singularCohomologyPullback (ModuleCat.of ℚ ℚ) f p |
| 28 | |
| 29 | abbrev ev (X : TopCat.{0}) (p : ℕ) := |
| 30 | AlgebraicTopology.Cohomology.Singular.Evaluation.singularEvaluation (ModuleCat.of ℚ ℚ) X p |
| 31 | |
| 32 | /-- Integration against the specified fundamental class, with degree transport. -/ |
| 33 | def integral {X : TopCat.{0}} {d : ℕ} (D : Definitions.PoincareData X d) |
| 34 | (k : ℕ) (h : k = d) : Definitions.HQ X k →ₗ[ℚ] ℚ := |
| 35 | ((ev X d).flip D.fundamental).comp |
| 36 | (AlgebraicTopology.Products.CupCohomologyAlgebra.cohomologyCast (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) h) |
| 37 | |
| 38 | theorem integral_degreeCast {X : TopCat.{0}} {d : ℕ} (D : Definitions.PoincareData X d) |
| 39 | {k l : ℕ} (h : k = l) (hk : k = d) (hl : l = d) (a : Definitions.HQ X k) : |
| 40 | integral D l hl |
| 41 | (AlgebraicTopology.Products.CupCohomologyAlgebra.cohomologyCast (TopCat.toSSet.obj X) (ModuleCat.of ℚ ℚ) h a) = |
| 42 | integral D k hk a := by |
| 43 | subst l |
| 44 | rfl |
| 45 | |
| 46 | theorem integral_eq_evaluation {X : TopCat.{0}} {d : ℕ} (D : Definitions.PoincareData X d) |
| 47 | (k : ℕ) (h : k = d) (a : Definitions.HQ X k) : |
| 48 | integral D k h a = |
| 49 | ev X k a (cast (congrArg (fun j => (Definitions.BQ X j : Type)) h.symm) D.fundamental) := by |
| 50 | subst d |
| 51 | rfl |
| 52 | |
| 53 | def pairing {X : TopCat.{0}} {d p q : ℕ} (D : Definitions.PoincareData X d) |
| 54 | (h : p + q = d) (a : Definitions.HQ X p) (b : Definitions.HQ X q) : ℚ := |
| 55 | integral D (p + q) h (cup X p q a b) |
| 56 | |
| 57 | theorem pairing_assoc {X : TopCat.{0}} {d p q r : ℕ} |
| 58 | (D : Definitions.PoincareData X d) |
| 59 | (hleft : (p + q) + r = d) (hright : p + (q + r) = d) |
| 60 | (a : Definitions.HQ X p) (b : Definitions.HQ X q) (c : Definitions.HQ X r) : |
| 61 | pairing D hleft (cup X p q a b) c = |
| 62 | pairing D hright a (cup X q r b c) := by |
| 63 | unfold pairing |
| 64 | change integral D ((p + q) + r) hleft |
| 65 | (AlgebraicTopology.Products.CupCohomology.cohomologyCup (TopCat.toSSet.obj X) (p + q) r |
| 66 | (AlgebraicTopology.Products.CupCohomology.cohomologyCup (TopCat.toSSet.obj X) p q a b) c) = _ |
| 67 | rw [← AlgebraicTopology.Products.CupCohomologyAlgebra.cohomologyCup_assoc (TopCat.toSSet.obj X) a b c] |
| 68 | exact (integral_degreeCast D (Nat.add_assoc p q r) hleft hright _).symm |
| 69 | |
| 70 | theorem pairing_comm {X : TopCat.{0}} {d p q : ℕ} |
| 71 | (D : Definitions.PoincareData X d) (h : p + q = d) (h' : q + p = d) |
| 72 | (a : Definitions.HQ X p) (b : Definitions.HQ X q) : |
| 73 | pairing D h a b = (-1 : ℚ) ^ (p * q) * pairing D h' b a := by |
| 74 | unfold pairing cup |
| 75 | rw [AlgebraicTopology.Products.CupGradedCommutativity.singularCohomologyCup_graded_comm, map_smul, |
| 76 | integral_degreeCast D (Nat.add_comm q p) h' h] |
| 77 | rfl |
| 78 | |
| 79 | /-- The sign in the specification makes duality adjoint to `test ∪ class`. -/ |
| 80 | theorem evaluation_duality {X : TopCat.{0}} {d p q : ℕ} |
| 81 | (D : Definitions.PoincareData X d) (h : p + q = d) (h' : q + p = d) |
| 82 | (a : Definitions.HQ X p) (b : Definitions.HQ X q) : |
| 83 | ev X q b (D.duality p q h a) = pairing D h' b a := by |
| 84 | rw [D.duality_apply, map_smul] |
| 85 | rw [← AlgebraicTopology.Products.CapCompatibility.singularCohomologyCup_evaluation_cap] |
| 86 | rw [← integral_eq_evaluation D (p + q) h] |
| 87 | change (-1 : ℚ) ^ (p * q) * pairing D h a b = _ |
| 88 | rw [pairing_comm D h h' a b, ← mul_assoc, ← mul_pow] |
| 89 | norm_num |
| 90 | |
| 91 | /-- Actual singular cohomology separates rational homology classes. -/ |
| 92 | theorem homology_ext (X : TopCat.{0}) (p : ℕ) {u v : Definitions.BQ X p} |
| 93 | (h : ∀ a : Definitions.HQ X p, ev X p a u = ev X p a v) : u = v := by |
| 94 | apply sub_eq_zero.mp |
| 95 | apply (Module.forall_dual_apply_eq_zero_iff ℚ (u - v)).mp |
| 96 | intro φ |
| 97 | obtain ⟨a, rfl⟩ := (AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv (F := ℚ) X p).surjective φ |
| 98 | rw [map_sub, AlgebraicTopology.Cohomology.Singular.UniversalCoefficient.singularUniversalCoefficientEquiv_apply] |
| 99 | exact sub_eq_zero.mpr (h a) |
| 100 | |
| 101 | theorem pairing_ext_right {X : TopCat.{0}} {d p q : ℕ} |
| 102 | (D : Definitions.PoincareData X d) (h : p + q = d) {a b : Definitions.HQ X q} |
| 103 | (hab : ∀ c : Definitions.HQ X p, pairing D h c a = pairing D h c b) : a = b := by |
| 104 | have h' : q + p = d := (Nat.add_comm q p).trans h |
| 105 | apply (D.duality q p h').injective |
| 106 | apply homology_ext X p |
| 107 | intro c |
| 108 | simpa only [evaluation_duality D h' h] using hab c |
| 109 | |
| 110 | /-- Integration adjunction for the pushforward defined by Poincare duality. -/ |
| 111 | theorem pairing_pushforward {X Y : TopCat.{0}} {m n a b r : ℕ} |
| 112 | (DX : Definitions.PoincareData X m) (DY : Definitions.PoincareData Y n) (f : X ⟶ Y) |
| 113 | (hX : a + r = m) (hY : b + r = n) |
| 114 | (hX' : r + a = m) (hY' : r + b = n) |
| 115 | (c : Definitions.HQ Y r) (u : Definitions.HQ X a) : |
| 116 | pairing DY hY' c (Definitions.pushforward DX DY f a b r hX hY u) = |
| 117 | pairing DX hX' (pull f r c) u := by |
| 118 | rw [← evaluation_duality DY hY hY', ← evaluation_duality DX hX hX'] |
| 119 | change ev Y r c |
| 120 | (DY.duality b r hY ((DY.duality b r hY).symm |
| 121 | (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularHomologyPushforward (R := ℚ) f r (DX.duality a r hX u)))) = _ |
| 122 | rw [LinearEquiv.apply_symm_apply] |
| 123 | exact (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.singularEvaluation_naturality (ModuleCat.of ℚ ℚ) f r c |
| 124 | (DX.duality a r hX u)).symm |
| 125 | |
| 126 | /-- Pullback preserves the actual cup product, proved on cocycle representatives. -/ |
| 127 | theorem pull_cup {X Y : TopCat.{0}} (f : X ⟶ Y) (p q : ℕ) |
| 128 | (a : Definitions.HQ Y p) (b : Definitions.HQ Y q) : |
| 129 | pull f (p + q) (cup Y p q a b) = cup X p q (pull f p a) (pull f q b) := by |
| 130 | obtain ⟨a, rfl⟩ := AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_surjective (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) Y) p a |
| 131 | obtain ⟨b, rfl⟩ := AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_surjective (AlgebraicTopology.Cohomology.Singular.Basic.singularCochains (ModuleCat.of ℚ ℚ) Y) q b |
| 132 | change HomologicalComplex.homologyMap |
| 133 | (AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℚ ℚ) (TopCat.toSSet.map f)) (p + q) |
| 134 | (AlgebraicTopology.Products.CupCohomology.cohomologyCup (TopCat.toSSet.obj Y) p q |
| 135 | (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass _ p a) (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass _ q b)) = |
| 136 | AlgebraicTopology.Products.CupCohomology.cohomologyCup (TopCat.toSSet.obj X) p q |
| 137 | (HomologicalComplex.homologyMap |
| 138 | (AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℚ ℚ) (TopCat.toSSet.map f)) p |
| 139 | (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass _ p a)) |
| 140 | (HomologicalComplex.homologyMap |
| 141 | (AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℚ ℚ) (TopCat.toSSet.map f)) q |
| 142 | (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass _ q b)) |
| 143 | rw [AlgebraicTopology.Products.CupCohomology.cohomologyCupWith_class_class, AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainClass_naturality, |
| 144 | AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainClass_naturality, AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainClass_naturality, AlgebraicTopology.Products.CupCohomology.cohomologyCupWith_class_class] |
| 145 | apply congrArg (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass _ (p + q)) |
| 146 | apply Subtype.ext |
| 147 | exact AlgebraicTopology.Products.Cup.cupWith_pullback (TopCat.toSSet.map f) |
| 148 | (M := ModuleCat.of ℚ ℚ) (N := ModuleCat.of ℚ ℚ) (L := ModuleCat.of ℚ ℚ) |
| 149 | (LinearMap.mul ℚ ℚ) a.val b.val |
| 150 | |
| 151 | end |
| 152 | |
| 153 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Cohomology.Construction |