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.Cosimplicial.ModuleCup |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.CupAlgebra |
| 3 | |
| 4 | /-! # Module Cup Algebra -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.ModuleCupAlgebra |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Associativity, units, and alternating degree-one products on the |
| 11 | actual module cohomology of a cosimplicial commutative algebra. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped Simplicial |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClassNaturality |
| 17 | ModuleComplex |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | variable {R : Type u} [CommRing R] (A : CosimplicialObject (CommAlgCat.{v} R)) |
| 22 | |
| 23 | def cycleDegreeCast {m n : ℕ} (h : m = n) : |
| 24 | Module.CochainClasses.cycles (ModuleComplex.complex A) m ≃ₗ[R] Module.CochainClasses.cycles (ModuleComplex.complex A) n := by |
| 25 | subst n |
| 26 | exact LinearEquiv.refl _ _ |
| 27 | |
| 28 | def cohomologyDegreeCast {m n : ℕ} (h : m = n) : |
| 29 | (ModuleComplex.complex A).homology m ≃ₗ[R] (ModuleComplex.complex A).homology n := by |
| 30 | subst n |
| 31 | exact LinearEquiv.refl _ _ |
| 32 | |
| 33 | theorem cycleDegreeCast_val {m n : ℕ} (h : m = n) (x : Module.CochainClasses.cycles (ModuleComplex.complex A) m) : |
| 34 | (cycleDegreeCast A h x).1 = CupDegrees.degreeCast (ModuleComplex.ringObject A) h x.1 := by |
| 35 | subst n |
| 36 | rfl |
| 37 | |
| 38 | theorem cohomologyDegreeCast_class {m n : ℕ} (h : m = n) (x : Module.CochainClasses.cycles (ModuleComplex.complex A) m) : |
| 39 | cohomologyDegreeCast A h (Module.CochainClasses.classMap (ModuleComplex.complex A) m x) = |
| 40 | Module.CochainClasses.classMap (ModuleComplex.complex A) n (cycleDegreeCast A h x) := by |
| 41 | subst n |
| 42 | rfl |
| 43 | |
| 44 | theorem cycleCup_assoc {p q r : ℕ} (x : Module.CochainClasses.cycles (ModuleComplex.complex A) p) |
| 45 | (y : Module.CochainClasses.cycles (ModuleComplex.complex A) q) (z : Module.CochainClasses.cycles (ModuleComplex.complex A) r) : |
| 46 | cycleDegreeCast A (Nat.add_assoc p q r) |
| 47 | (ModuleCocycles.Cup.cycleCup A (p + q) r (ModuleCocycles.Cup.cycleCup A p q x y) z) = |
| 48 | ModuleCocycles.Cup.cycleCup A p (q + r) x (ModuleCocycles.Cup.cycleCup A q r y z) := by |
| 49 | apply Subtype.ext |
| 50 | exact (cycleDegreeCast_val A _ _).trans |
| 51 | (CupAlgebra.cup_assoc (ModuleComplex.ringObject A) x.1 y.1 z.1) |
| 52 | |
| 53 | theorem cohomologyCup_assoc {p q r : ℕ} (x : (ModuleComplex.complex A).homology p) |
| 54 | (y : (ModuleComplex.complex A).homology q) (z : (ModuleComplex.complex A).homology r) : |
| 55 | cohomologyDegreeCast A (Nat.add_assoc p q r) |
| 56 | (ModuleCup.cohomologyCup A (p + q) r (ModuleCup.cohomologyCup A p q x y) z) = |
| 57 | ModuleCup.cohomologyCup A p (q + r) x (ModuleCup.cohomologyCup A q r y z) := by |
| 58 | obtain ⟨cx, rfl⟩ := Module.CochainClasses.classMap_surjective (ModuleComplex.complex A) p x |
| 59 | obtain ⟨cy, rfl⟩ := Module.CochainClasses.classMap_surjective (ModuleComplex.complex A) q y |
| 60 | obtain ⟨cz, rfl⟩ := Module.CochainClasses.classMap_surjective (ModuleComplex.complex A) r z |
| 61 | simp only [ModuleCup.cup_class, cohomologyDegreeCast_class, cycleCup_assoc] |
| 62 | |
| 63 | def cycleOne : Module.CochainClasses.cycles (ModuleComplex.complex A) 0 := |
| 64 | ⟨(1 : A.obj ⦋0⦌), (ModuleComplex.complex_d_apply A 0 _).trans |
| 65 | (CupAlgebra.differential_one_zero (ModuleComplex.ringObject A))⟩ |
| 66 | |
| 67 | def cohomologyOne : (ModuleComplex.complex A).homology 0 := Module.CochainClasses.classMap (ModuleComplex.complex A) 0 (cycleOne A) |
| 68 | |
| 69 | theorem cycleOne_cup {p : ℕ} (x : Module.CochainClasses.cycles (ModuleComplex.complex A) p) : |
| 70 | cycleDegreeCast A (Nat.zero_add p) (ModuleCocycles.Cup.cycleCup A 0 p (cycleOne A) x) = x := by |
| 71 | apply Subtype.ext |
| 72 | exact (cycleDegreeCast_val A _ _).trans (CupAlgebra.one_cup (ModuleComplex.ringObject A) x.1) |
| 73 | |
| 74 | theorem cycleCup_one {p : ℕ} (x : Module.CochainClasses.cycles (ModuleComplex.complex A) p) : |
| 75 | ModuleCocycles.Cup.cycleCup A p 0 x (cycleOne A) = x := by |
| 76 | apply Subtype.ext |
| 77 | exact CupAlgebra.cup_one (ModuleComplex.ringObject A) x.1 |
| 78 | |
| 79 | theorem cohomologyOne_cup {p : ℕ} (x : (ModuleComplex.complex A).homology p) : |
| 80 | cohomologyDegreeCast A (Nat.zero_add p) (ModuleCup.cohomologyCup A 0 p (cohomologyOne A) x) = x := by |
| 81 | obtain ⟨cx, rfl⟩ := Module.CochainClasses.classMap_surjective (ModuleComplex.complex A) p x |
| 82 | change cohomologyDegreeCast A (Nat.zero_add p) |
| 83 | (ModuleCup.cohomologyCup A 0 p (Module.CochainClasses.classMap (ModuleComplex.complex A) 0 (cycleOne A)) |
| 84 | (Module.CochainClasses.classMap (ModuleComplex.complex A) p cx)) = _ |
| 85 | rw [ModuleCup.cup_class, cohomologyDegreeCast_class, cycleOne_cup] |
| 86 | |
| 87 | theorem cohomologyCup_one {p : ℕ} (x : (ModuleComplex.complex A).homology p) : |
| 88 | ModuleCup.cohomologyCup A p 0 x (cohomologyOne A) = x := by |
| 89 | obtain ⟨cx, rfl⟩ := Module.CochainClasses.classMap_surjective (ModuleComplex.complex A) p x |
| 90 | change ModuleCup.cohomologyCup A p 0 (Module.CochainClasses.classMap (ModuleComplex.complex A) p cx) |
| 91 | (Module.CochainClasses.classMap (ModuleComplex.complex A) 0 (cycleOne A)) = _ |
| 92 | rw [ModuleCup.cup_class, cycleCup_one] |
| 93 | rfl |
| 94 | |
| 95 | theorem cohomologyCup_anticomm [Invertible (2 : A.obj ⦋1⦌)] |
| 96 | [Invertible (2 : A.obj ⦋2⦌)] (x y : (ModuleComplex.complex A).homology 1) : |
| 97 | ModuleCup.cohomologyCup A 1 1 x y = -(ModuleCup.cohomologyCup A 1 1 y x) := by |
| 98 | have h := ModuleCup.cup_self_eq_zero A (x + y) |
| 99 | simp only [map_add, LinearMap.add_apply, ModuleCup.cup_self_eq_zero, zero_add, add_zero] at h |
| 100 | exact eq_neg_iff_add_eq_zero.mpr (by simpa only [add_comm] using h) |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.ModuleCupAlgebra |