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.CupDegrees |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.CohomologyRepresentatives |
| 3 | |
| 4 | /-! # Cup Boundaries -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.CupBoundaries |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The Alexander–Whitney product sends a genuine coboundary and a |
| 11 | cocycle to a genuine coboundary, in every degree. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped Simplicial |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.CupDegrees OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.CohomologyRepresentatives |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem incoming_zero (C : CochainComplex AddCommGrpCat.{u} ℕ) : (C.sc 0).f = 0 := by |
| 21 | change C.d ((ComplexShape.up ℕ).prev 0) 0 = 0 |
| 22 | apply C.shape |
| 23 | change ¬(ComplexShape.up ℕ).prev 0 + 1 = 0 |
| 24 | omega |
| 25 | |
| 26 | theorem boundary_succ_iff (C : CochainComplex AddCommGrpCat.{u} ℕ) |
| 27 | (n : ℕ) (x : C.X (n + 1)) : |
| 28 | (∃ z : (C.sc (n + 1)).X₁, (C.sc (n + 1)).f z = x) ↔ |
| 29 | ∃ z : C.X n, C.d n (n + 1) z = x := by |
| 30 | change (∃ z : C.X ((ComplexShape.up ℕ).prev (n + 1)), |
| 31 | C.d ((ComplexShape.up ℕ).prev (n + 1)) (n + 1) z = x) ↔ _ |
| 32 | rw [CochainComplex.prev_nat_succ] |
| 33 | |
| 34 | variable (A : CosimplicialObject CommRingCat.{u}) |
| 35 | |
| 36 | theorem differential_cup_of_right_cocycle (p q : ℕ) |
| 37 | (a : A.obj ⦋p⦌) (y : A.obj ⦋q⦌) (hy : Cup.differential A q y = 0) : |
| 38 | Cup.differential A (p + q) (Cup.cup A a y) = |
| 39 | CupDegrees.degreeCast A (by omega : (p + 1) + q = p + q + 1) |
| 40 | (Cup.cup A (Cup.differential A p a) y) := by |
| 41 | rw [CupDegrees.differential_cup_cast, hy, CupDegrees.cup_zero_right, map_zero, smul_zero, add_zero] |
| 42 | |
| 43 | theorem differential_signed_cup_of_left_cocycle (p q : ℕ) |
| 44 | (x : A.obj ⦋p⦌) (a : A.obj ⦋q⦌) (hx : Cup.differential A p x = 0) : |
| 45 | Cup.differential A (p + q) ((-1 : ℤ) ^ p • Cup.cup A x a) = |
| 46 | Cup.cup A x (Cup.differential A q a) := by |
| 47 | rw [CupDegrees.differential_zsmul, CupDegrees.differential_cup_cast, hx, CupDegrees.cup_zero_left, |
| 48 | map_zero, zero_add, smul_smul] |
| 49 | simp only [← mul_pow, neg_mul_neg, one_mul, one_pow, one_smul] |
| 50 | rfl |
| 51 | |
| 52 | theorem boundary_degreeCast_iff {m n : ℕ} (h : m = n) (x : A.obj ⦋m⦌) : |
| 53 | (∃ z : ((Cup.complex A).sc m).X₁, ((Cup.complex A).sc m).f z = x) ↔ |
| 54 | ∃ z : ((Cup.complex A).sc n).X₁, ((Cup.complex A).sc n).f z = CupDegrees.degreeCast A h x := by |
| 55 | subst n |
| 56 | rfl |
| 57 | |
| 58 | theorem cocycle_differential {n : ℕ} (x : Additive.CohomologyRepresentatives.cocycles (Cup.complex A) n) : |
| 59 | Cup.differential A n x.1 = 0 := |
| 60 | (Cup.complex_d_apply A n x.1).symm.trans |
| 61 | ((Additive.CohomologyRepresentatives.mem_cocycles_iff (Cup.complex A) n x.1).mp x.2) |
| 62 | |
| 63 | theorem cup_boundary_left (p q : ℕ) (b : ((Cup.complex A).sc p).X₁) |
| 64 | (y : Additive.CohomologyRepresentatives.cocycles (Cup.complex A) q) : |
| 65 | ∃ z : ((Cup.complex A).sc (p + q)).X₁, |
| 66 | ((Cup.complex A).sc (p + q)).f z = |
| 67 | Cup.cup A (p := p) (q := q) (((Cup.complex A).sc p).f b) y.1 := by |
| 68 | cases p with |
| 69 | | zero => |
| 70 | refine ⟨0, ?_⟩ |
| 71 | rw [map_zero, incoming_zero] |
| 72 | exact (CupDegrees.cup_zero_left A y.1).symm |
| 73 | | succ p => |
| 74 | obtain ⟨a, ha⟩ := (boundary_succ_iff (Cup.complex A) p |
| 75 | (((Cup.complex A).sc (p + 1)).f b)).mp ⟨b, rfl⟩ |
| 76 | have ha' : Cup.differential A p a = ((Cup.complex A).sc (p + 1)).f b := |
| 77 | (Cup.complex_d_apply A p a).symm.trans ha |
| 78 | rw [← ha'] |
| 79 | apply (boundary_degreeCast_iff A (by omega : (p + 1) + q = p + q + 1) |
| 80 | (Cup.cup A (Cup.differential A p a) y.1)).mpr |
| 81 | apply (boundary_succ_iff (Cup.complex A) (p + q) _).mpr |
| 82 | refine ⟨Cup.cup A (p := p) (q := q) a y.1, ?_⟩ |
| 83 | refine (Cup.complex_d_apply A (p + q) _).trans ?_ |
| 84 | exact differential_cup_of_right_cocycle A p q a y.1 (cocycle_differential A y) |
| 85 | |
| 86 | theorem cup_boundary_right (p q : ℕ) (x : Additive.CohomologyRepresentatives.cocycles (Cup.complex A) p) |
| 87 | (b : ((Cup.complex A).sc q).X₁) : |
| 88 | ∃ z : ((Cup.complex A).sc (p + q)).X₁, |
| 89 | ((Cup.complex A).sc (p + q)).f z = |
| 90 | Cup.cup A (p := p) (q := q) x.1 (((Cup.complex A).sc q).f b) := by |
| 91 | cases q with |
| 92 | | zero => |
| 93 | refine ⟨0, ?_⟩ |
| 94 | rw [map_zero, incoming_zero] |
| 95 | exact (CupDegrees.cup_zero_right A x.1).symm |
| 96 | | succ q => |
| 97 | obtain ⟨a, ha⟩ := (boundary_succ_iff (Cup.complex A) q |
| 98 | (((Cup.complex A).sc (q + 1)).f b)).mp ⟨b, rfl⟩ |
| 99 | have ha' : Cup.differential A q a = ((Cup.complex A).sc (q + 1)).f b := |
| 100 | (Cup.complex_d_apply A q a).symm.trans ha |
| 101 | rw [← ha'] |
| 102 | apply (boundary_succ_iff (Cup.complex A) (p + q) _).mpr |
| 103 | refine ⟨(-1 : ℤ) ^ p • Cup.cup A (p := p) (q := q) x.1 a, ?_⟩ |
| 104 | refine (Cup.complex_d_apply A (p + q) _).trans ?_ |
| 105 | exact differential_signed_cup_of_left_cocycle A p q x.1 a |
| 106 | (cocycle_differential A x) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Cosimplicial.CupBoundaries |