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.AlgebraicTopology.DeRham.Comparison.DoubleComplexSupport |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexDifferential |
| 3 | |
| 4 | /-! # Double Complex Normalization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexNormalization.DoubleComplex |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Finite elimination in a first-quadrant total complex |
| 12 | |
| 13 | Exactness in positive horizontal degrees allows us to remove the rightmost |
| 14 | component by subtracting a total boundary. Iteration is finite in every total |
| 15 | degree. The conclusion is an actual equality in mathlib's total complex. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory |
| 19 | |
| 20 | universe u v |
| 21 | |
| 22 | variable {R : Type u} [Ring R] |
| 23 | (K : HomologicalComplex₂ (ModuleCat.{v} R) (ComplexShape.up ℕ) (ComplexShape.up ℕ)) |
| 24 | |
| 25 | /-- The rightmost component is a horizontal cycle if the next differential |
| 26 | is supported in the zeroth column. -/ |
| 27 | theorem horizontal_component_closed (n p q : ℕ) (hpq : p + q = n) |
| 28 | (x : (K.total (ComplexShape.up ℕ)).X n) |
| 29 | (hx : DoubleComplexSupport.DoubleComplex.SupportedTo K n p x) |
| 30 | (hd : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) 0 ((K.total (ComplexShape.up ℕ)).d n (n + 1) x)) : |
| 31 | ((K.d p (p + 1)).f q) (DoubleComplexProjections.DoubleComplex.πTotal K p q n hpq x) = 0 := by |
| 32 | cases q with |
| 33 | | zero => |
| 34 | have h := ConcreteCategory.congr_hom |
| 35 | (DoubleComplexDifferential.DoubleComplex.d_πTotal_succ_zero K p n (by omega)) x |
| 36 | change DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) 0 (n + 1) _ |
| 37 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) x) = |
| 38 | ((K.d p (p + 1)).f 0) (DoubleComplexProjections.DoubleComplex.πTotal K p 0 n _ x) at h |
| 39 | rw [hd (p + 1) 0 _ (by omega)] at h |
| 40 | exact h.symm |
| 41 | | succ q => |
| 42 | have h := ConcreteCategory.congr_hom |
| 43 | (DoubleComplexDifferential.DoubleComplex.d_πTotal_succ_succ K p q n (by omega)) x |
| 44 | change DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) (q + 1) (n + 1) _ |
| 45 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) x) = |
| 46 | ((K.d p (p + 1)).f (q + 1)) (DoubleComplexProjections.DoubleComplex.πTotal K p (q + 1) n _ x) + |
| 47 | ((-1 : ℤ) ^ (p + 1)) • |
| 48 | ((K.X (p + 1)).d q (q + 1) (DoubleComplexProjections.DoubleComplex.πTotal K (p + 1) q n _ x)) at h |
| 49 | rw [hd (p + 1) (q + 1) _ (by omega), |
| 50 | hx (p + 1) q _ (by omega), map_zero, smul_zero, add_zero] at h |
| 51 | exact h.symm |
| 52 | |
| 53 | /-- A primitive in the last occupied horizontal degree removes that degree |
| 54 | without creating any larger one. -/ |
| 55 | theorem lower_support |
| 56 | (hexact : ∀ p q : ℕ, (K.flip.X q).ExactAt (p + 1)) |
| 57 | (n m : ℕ) (hm : m ≤ n) |
| 58 | (x : (K.total (ComplexShape.up ℕ)).X (n + 1)) |
| 59 | (hx : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) (m + 1) x) |
| 60 | (hd : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 2) 0 |
| 61 | ((K.total (ComplexShape.up ℕ)).d (n + 1) (n + 2) x)) : |
| 62 | ∃ y : (K.total (ComplexShape.up ℕ)).X n, |
| 63 | DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) m (x - (K.total (ComplexShape.up ℕ)).d n (n + 1) y) := by |
| 64 | let q := n - m |
| 65 | have hmq : m + q = n := Nat.add_sub_of_le hm |
| 66 | have hmq' : (m + 1) + q = n + 1 := by omega |
| 67 | have hc := horizontal_component_closed K (n + 1) (m + 1) q hmq' x hx hd |
| 68 | obtain ⟨c, hc⟩ := DoubleComplexRows.DoubleComplex.row_primitive K m q (hexact m q) |
| 69 | (DoubleComplexProjections.DoubleComplex.πTotal K (m + 1) q (n + 1) hmq' x) hc |
| 70 | refine ⟨K.ιTotal (ComplexShape.up ℕ) m q n hmq c, ?_⟩ |
| 71 | intro a b hab ha |
| 72 | rw [map_sub] |
| 73 | by_cases hatop : a = m + 1 |
| 74 | · subst a |
| 75 | have hb : b = q := by omega |
| 76 | subst b |
| 77 | have hproj := ConcreteCategory.congr_hom |
| 78 | (DoubleComplexDifferential.DoubleComplex.iota_d_πTotal_horizontal K m q n hmq) c |
| 79 | change DoubleComplexProjections.DoubleComplex.πTotal K (m + 1) q (n + 1) _ |
| 80 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 81 | (K.ιTotal (ComplexShape.up ℕ) m q n hmq c)) = |
| 82 | ((K.d m (m + 1)).f q) c at hproj |
| 83 | rw [hproj, hc, sub_self] |
| 84 | · have habove : m + 1 < a := by omega |
| 85 | rw [hx a b hab habove] |
| 86 | have hproj := ConcreteCategory.congr_hom |
| 87 | (DoubleComplexDifferential.DoubleComplex.iota_d_πTotal_ne K m q a b n hmq hab (by |
| 88 | intro heq |
| 89 | exact hatop (Prod.mk.inj heq).1.symm) (by |
| 90 | intro heq |
| 91 | have := (Prod.mk.inj heq).1 |
| 92 | omega)) c |
| 93 | change DoubleComplexProjections.DoubleComplex.πTotal K a b (n + 1) hab |
| 94 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 95 | (K.ιTotal (ComplexShape.up ℕ) m q n hmq c)) = 0 at hproj |
| 96 | rw [hproj, sub_zero] |
| 97 | |
| 98 | /-- Repeated elimination leaves a horizontal cycle in the zeroth column, |
| 99 | plus an actual total boundary. -/ |
| 100 | theorem normalize_supported_succ |
| 101 | (hexact : ∀ p q : ℕ, (K.flip.X q).ExactAt (p + 1)) |
| 102 | (n m : ℕ) (x : (K.total (ComplexShape.up ℕ)).X (n + 1)) |
| 103 | (hx : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) m x) |
| 104 | (hd : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 2) 0 |
| 105 | ((K.total (ComplexShape.up ℕ)).d (n + 1) (n + 2) x)) : |
| 106 | ∃ b : (K.X 0).X (n + 1), ((K.d 0 1).f (n + 1)) b = 0 ∧ |
| 107 | ∃ y : (K.total (ComplexShape.up ℕ)).X n, |
| 108 | x = K.ιTotal (ComplexShape.up ℕ) 0 (n + 1) (n + 1) (by simp) b + |
| 109 | (K.total (ComplexShape.up ℕ)).d n (n + 1) y := by |
| 110 | induction m generalizing x with |
| 111 | | zero => |
| 112 | refine ⟨DoubleComplexProjections.DoubleComplex.πTotal K 0 (n + 1) (n + 1) (by simp) x, |
| 113 | horizontal_component_closed K (n + 1) 0 (n + 1) (by simp) x hx hd, 0, ?_⟩ |
| 114 | simpa only [map_zero, add_zero] using DoubleComplexSupport.DoubleComplex.SupportedTo.eq_iota_zero K hx |
| 115 | | succ m ih => |
| 116 | by_cases hm : m ≤ n |
| 117 | · obtain ⟨z, hz⟩ := lower_support K hexact n m hm x hx hd |
| 118 | have hd' : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 2) 0 |
| 119 | ((K.total (ComplexShape.up ℕ)).d (n + 1) (n + 2) |
| 120 | (x - (K.total (ComplexShape.up ℕ)).d n (n + 1) z)) := by |
| 121 | rw [DoubleComplexSupport.DoubleComplex.differential_sub_boundary] |
| 122 | exact hd |
| 123 | obtain ⟨b, hb, y, hy⟩ := ih (x - (K.total (ComplexShape.up ℕ)).d n (n + 1) z) hz hd' |
| 124 | refine ⟨b, hb, y + z, ?_⟩ |
| 125 | rw [map_add, ← add_assoc, ← hy] |
| 126 | exact (sub_add_cancel x _).symm |
| 127 | · exact ih x (DoubleComplexSupport.DoubleComplex.SupportedTo.mono K (DoubleComplexSupport.DoubleComplex.supportedTo_degree K (n + 1) x) (by omega)) hd |
| 128 | |
| 129 | /-- In any nonnegative degree, a total cochain whose differential lies in |
| 130 | column zero is a horizontal cycle in column zero modulo a total boundary. -/ |
| 131 | theorem normalize |
| 132 | (hexact : ∀ p q : ℕ, (K.flip.X q).ExactAt (p + 1)) |
| 133 | (n : ℕ) (x : (K.total (ComplexShape.up ℕ)).X n) |
| 134 | (hd : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) 0 |
| 135 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) x)) : |
| 136 | ∃ b : (K.X 0).X n, ((K.d 0 1).f n) b = 0 ∧ |
| 137 | ∃ y : (K.total (ComplexShape.up ℕ)).X n.pred, |
| 138 | x = K.ιTotal (ComplexShape.up ℕ) 0 n n (by simp) b + |
| 139 | (K.total (ComplexShape.up ℕ)).d n.pred n y := by |
| 140 | cases n with |
| 141 | | zero => |
| 142 | have hx := DoubleComplexSupport.DoubleComplex.supportedTo_degree K 0 x |
| 143 | refine ⟨DoubleComplexProjections.DoubleComplex.πTotal K 0 0 0 rfl x, |
| 144 | horizontal_component_closed K 0 0 0 rfl x hx hd, 0, ?_⟩ |
| 145 | simpa only [map_zero, add_zero] using DoubleComplexSupport.DoubleComplex.SupportedTo.eq_iota_zero K hx |
| 146 | | succ n => |
| 147 | exact normalize_supported_succ K hexact n (n + 1) x |
| 148 | (DoubleComplexSupport.DoubleComplex.supportedTo_degree K (n + 1) x) hd |
| 149 | |
| 150 | end |
| 151 | |
| 152 | end OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexNormalization.DoubleComplex |