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.DoubleComplexNormalization |
| 2 | import OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexAugmentation |
| 3 | import OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexQuasiIso |
| 4 | |
| 5 | /-! # Double Complex Comparison -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexComparison.DoubleComplex |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Comparison for an exact augmented first-quadrant double complex |
| 13 | |
| 14 | An augmentation whose horizontal rows are exact induces a quasi-isomorphism |
| 15 | to the actual total complex. The proof produces cycle lifts and reflects |
| 16 | boundaries by finite horizontal elimination. Exactness, including at the |
| 17 | augmentation, is stated using the genuine differentials of the given |
| 18 | complexes; no comparison isomorphism is assumed. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory |
| 22 | |
| 23 | universe u v |
| 24 | |
| 25 | variable {R : Type u} [Ring R] |
| 26 | (K : HomologicalComplex₂ (ModuleCat.{v} R) (ComplexShape.up ℕ) (ComplexShape.up ℕ)) |
| 27 | {A : CochainComplex (ModuleCat.{v} R) ℕ} |
| 28 | (ε : A ⟶ K.X 0) (hε : ε ≫ K.d 0 1 = 0) |
| 29 | |
| 30 | /-- The actual augmentation is supported in the zeroth horizontal column. -/ |
| 31 | theorem augmentationToTotal_supported (n : ℕ) (a : A.X n) : |
| 32 | DoubleComplexSupport.DoubleComplex.SupportedTo K n 0 ((DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f n a) := |
| 33 | DoubleComplexSupport.DoubleComplex.supportedTo_iota K 0 n n (by simp) (ε.f n a) |
| 34 | |
| 35 | /-- A cochain whose differential lies in the augmented column differs from |
| 36 | an augmented cochain by an actual total boundary. -/ |
| 37 | theorem exists_augmentation_add_boundary |
| 38 | (hzero : ∀ q : ℕ, Function.Exact (ε.f q) ((K.d 0 1).f q)) |
| 39 | (hexact : ∀ p q : ℕ, (K.flip.X q).ExactAt (p + 1)) |
| 40 | (n : ℕ) (x : (K.total (ComplexShape.up ℕ)).X n) |
| 41 | (hd : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) 0 |
| 42 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) x)) : |
| 43 | ∃ a : A.X n, ∃ y : (K.total (ComplexShape.up ℕ)).X n.pred, |
| 44 | x = (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f n a + |
| 45 | (K.total (ComplexShape.up ℕ)).d n.pred n y := by |
| 46 | obtain ⟨b, hb, y, hy⟩ := DoubleComplexNormalization.DoubleComplex.normalize K hexact n x hd |
| 47 | obtain ⟨a, ha⟩ := (hzero n b).mp hb |
| 48 | refine ⟨a, y, ?_⟩ |
| 49 | rw [DoubleComplexAugmentation.DoubleComplex.augmentationToTotal_f, ModuleCat.comp_apply, ha] |
| 50 | exact hy |
| 51 | |
| 52 | /-- Every total cocycle is cohomologous to the augmentation of a cocycle. -/ |
| 53 | theorem augmentation_cycle_lift |
| 54 | (hinj : ∀ q : ℕ, Function.Injective (ε.f q)) |
| 55 | (hzero : ∀ q : ℕ, Function.Exact (ε.f q) ((K.d 0 1).f q)) |
| 56 | (hexact : ∀ p q : ℕ, (K.flip.X q).ExactAt (p + 1)) |
| 57 | (n : ℕ) (x : (K.total (ComplexShape.up ℕ)).X n) |
| 58 | (hx : (K.total (ComplexShape.up ℕ)).d n (n + 1) x = 0) : |
| 59 | ∃ a : A.X n, A.d n (n + 1) a = 0 ∧ |
| 60 | ∃ y : (K.total (ComplexShape.up ℕ)).X n.pred, |
| 61 | (K.total (ComplexShape.up ℕ)).d n.pred n y = |
| 62 | (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f n a - x := by |
| 63 | have hd : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) 0 |
| 64 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) x) := by |
| 65 | rw [hx] |
| 66 | exact DoubleComplexSupport.DoubleComplex.supportedTo_zero K (n + 1) 0 |
| 67 | obtain ⟨a, y, hy⟩ := exists_augmentation_add_boundary K ε hε hzero hexact n x hd |
| 68 | have hboundary := ConcreteCategory.congr_hom |
| 69 | ((K.total (ComplexShape.up ℕ)).d_comp_d n.pred n (n + 1)) y |
| 70 | change (K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 71 | ((K.total (ComplexShape.up ℕ)).d n.pred n y) = 0 at hboundary |
| 72 | have hclosed : (K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 73 | ((DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f n a) = 0 := by |
| 74 | have h := congrArg ((K.total (ComplexShape.up ℕ)).d n (n + 1)) hy |
| 75 | rw [hx, map_add, hboundary, add_zero] at h |
| 76 | exact h.symm |
| 77 | have hcomm := ConcreteCategory.congr_hom |
| 78 | (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal_comm K ε hε n (n + 1)) a |
| 79 | have hsource : A.d n (n + 1) a = 0 := by |
| 80 | apply DoubleComplexAugmentation.DoubleComplex.augmentationToTotal_f_injective K ε hε (n + 1) (hinj (n + 1)) |
| 81 | rw [map_zero] |
| 82 | exact hcomm.symm.trans hclosed |
| 83 | refine ⟨a, hsource, -y, ?_⟩ |
| 84 | rw [map_neg, hy] |
| 85 | abel |
| 86 | |
| 87 | /-- If an augmented cochain in positive degree is a total boundary, it is |
| 88 | already a boundary in the augmenting complex. -/ |
| 89 | theorem augmentation_boundary_reflection_succ |
| 90 | (hinj : ∀ q : ℕ, Function.Injective (ε.f q)) |
| 91 | (hzero : ∀ q : ℕ, Function.Exact (ε.f q) ((K.d 0 1).f q)) |
| 92 | (hexact : ∀ p q : ℕ, (K.flip.X q).ExactAt (p + 1)) |
| 93 | (n : ℕ) (a : A.X (n + 1)) (y : (K.total (ComplexShape.up ℕ)).X n) |
| 94 | (hy : (K.total (ComplexShape.up ℕ)).d n (n + 1) y = |
| 95 | (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f (n + 1) a) : |
| 96 | ∃ c : A.X n, A.d n (n + 1) c = a := by |
| 97 | have hd : DoubleComplexSupport.DoubleComplex.SupportedTo K (n + 1) 0 |
| 98 | ((K.total (ComplexShape.up ℕ)).d n (n + 1) y) := by |
| 99 | rw [hy] |
| 100 | exact augmentationToTotal_supported K ε hε (n + 1) a |
| 101 | obtain ⟨c, z, hz⟩ := exists_augmentation_add_boundary K ε hε hzero hexact n y hd |
| 102 | have hboundary := ConcreteCategory.congr_hom |
| 103 | ((K.total (ComplexShape.up ℕ)).d_comp_d n.pred n (n + 1)) z |
| 104 | change (K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 105 | ((K.total (ComplexShape.up ℕ)).d n.pred n z) = 0 at hboundary |
| 106 | have hcomm := ConcreteCategory.congr_hom |
| 107 | (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal_comm K ε hε n (n + 1)) c |
| 108 | refine ⟨c, DoubleComplexAugmentation.DoubleComplex.augmentationToTotal_f_injective K ε hε (n + 1) (hinj (n + 1)) ?_⟩ |
| 109 | calc |
| 110 | (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f (n + 1) (A.d n (n + 1) c) = |
| 111 | (K.total (ComplexShape.up ℕ)).d n (n + 1) |
| 112 | ((DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f n c) := hcomm.symm |
| 113 | _ = (K.total (ComplexShape.up ℕ)).d n (n + 1) y := by |
| 114 | rw [hz, map_add, hboundary, add_zero] |
| 115 | _ = (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f (n + 1) a := hy |
| 116 | |
| 117 | /-- There are no nonzero incoming boundaries in degree zero. In that degree |
| 118 | injectivity of the augmentation alone reflects a boundary. -/ |
| 119 | theorem augmentation_boundary_reflection_zero |
| 120 | (hinj : Function.Injective (ε.f 0)) (a : A.X 0) |
| 121 | (hy : ∃ y : (K.total (ComplexShape.up ℕ)).X 0, |
| 122 | (K.total (ComplexShape.up ℕ)).d 0 0 y = (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f 0 a) : |
| 123 | ∃ c : A.X 0, A.d 0 0 c = a := by |
| 124 | obtain ⟨y, hy⟩ := hy |
| 125 | have hshape : (K.total (ComplexShape.up ℕ)).d 0 0 = 0 := |
| 126 | (K.total (ComplexShape.up ℕ)).shape 0 0 (by decide) |
| 127 | have hzero : (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f 0 a = 0 := by |
| 128 | rw [hshape] at hy |
| 129 | exact hy.symm |
| 130 | have ha : a = 0 := DoubleComplexAugmentation.DoubleComplex.augmentationToTotal_f_injective K ε hε 0 hinj |
| 131 | (hzero.trans (map_zero _).symm) |
| 132 | exact ⟨0, by rw [map_zero, ha]⟩ |
| 133 | |
| 134 | /-- An exact augmented first-quadrant double complex computes the cohomology |
| 135 | of its augmenting complex. This is the genuine native-total comparison map. -/ |
| 136 | theorem augmentationToTotal_quasiIso |
| 137 | (hinj : ∀ q : ℕ, Function.Injective (ε.f q)) |
| 138 | (hzero : ∀ q : ℕ, Function.Exact (ε.f q) ((K.d 0 1).f q)) |
| 139 | (hexact : ∀ p q : ℕ, (K.flip.X q).ExactAt (p + 1)) : |
| 140 | QuasiIso (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε) := by |
| 141 | apply DoubleComplexQuasiIso.DoubleComplex.quasiIso_of_cycle_lift_and_boundary_reflection |
| 142 | · intro n |
| 143 | have hp : (ComplexShape.up ℕ).prev n = n.pred := by |
| 144 | cases n <;> simp |
| 145 | let P (i j : ℕ) : Prop := |
| 146 | ∀ x : (K.total (ComplexShape.up ℕ)).X n, |
| 147 | (K.total (ComplexShape.up ℕ)).d n j x = 0 → |
| 148 | ∃ a : A.X n, A.d n j a = 0 ∧ |
| 149 | ∃ y : (K.total (ComplexShape.up ℕ)).X i, |
| 150 | (K.total (ComplexShape.up ℕ)).d i n y = |
| 151 | (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f n a - x |
| 152 | have hP : P n.pred (n + 1) := augmentation_cycle_lift K ε hε hinj hzero hexact n |
| 153 | exact (congrArg₂ P hp (CochainComplex.next ℕ n)).mpr hP |
| 154 | · intro n |
| 155 | have hp : (ComplexShape.up ℕ).prev n = n.pred := by |
| 156 | cases n <;> simp |
| 157 | let P (i : ℕ) : Prop := |
| 158 | ∀ a : A.X n, A.d n ((ComplexShape.up ℕ).next n) a = 0 → |
| 159 | (∃ y : (K.total (ComplexShape.up ℕ)).X i, |
| 160 | (K.total (ComplexShape.up ℕ)).d i n y = (DoubleComplexAugmentation.DoubleComplex.augmentationToTotal K ε hε).f n a) → |
| 161 | ∃ c : A.X i, A.d i n c = a |
| 162 | have hP : P n.pred := by |
| 163 | intro a _ ha |
| 164 | cases n with |
| 165 | | zero => |
| 166 | exact augmentation_boundary_reflection_zero K ε hε (hinj 0) a ha |
| 167 | | succ n => |
| 168 | obtain ⟨y, hy⟩ := ha |
| 169 | exact augmentation_boundary_reflection_succ K ε hε hinj hzero hexact n a y hy |
| 170 | exact (congrArg P hp).mpr hP |
| 171 | |
| 172 | end |
| 173 | |
| 174 | end OAI.AlgebraicTopology.DeRham.Comparison.DoubleComplexComparison.DoubleComplex |