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.AbelianModuli.HilbertConstruction.Projective.ResolutionBasic |
| 2 | import Mathlib.Algebra.Homology.HomotopyCategory |
| 3 | |
| 4 | /-! # Resolution Comparison -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /- Adapted to HilbertConstruction-local declarations; retain comparison maps and homotopies |
| 11 | for given projective resolutions, with default compilation and elaboration. -/ |
| 12 | |
| 13 | universe v u |
| 14 | |
| 15 | open _root_.CategoryTheory |
| 16 | |
| 17 | variable {C : Type u} [Category.{v} C] |
| 18 | |
| 19 | open Category Limits Projective |
| 20 | |
| 21 | section |
| 22 | |
| 23 | variable [HasZeroObject C] [HasZeroMorphisms C] |
| 24 | |
| 25 | /-- Auxiliary construction for `lift`. -/ |
| 26 | def ResolutionBasic.ProjectiveResolution.liftFZero {Y Z : C} (f : Y ⟶ Z) (P : ResolutionBasic.ProjectiveResolution Y) (Q : ResolutionBasic.ProjectiveResolution Z) [Epi (Q.π.f 0)] : |
| 27 | P.complex.X 0 ⟶ Q.complex.X 0 := by |
| 28 | have : Epi (show Q.complex.X 0 ⟶ Z from Q.π.f 0) := |
| 29 | inferInstanceAs (Epi (Q.π.f 0)) |
| 30 | exact Projective.factorThru (P.π.f 0 ≫ f) (Q.π.f 0) |
| 31 | |
| 32 | @[reassoc (attr := simp)] |
| 33 | lemma ResolutionBasic.ProjectiveResolution.liftFZero_comp {Y Z : C} (f : Y ⟶ Z) (P : ResolutionBasic.ProjectiveResolution Y) |
| 34 | (Q : ResolutionBasic.ProjectiveResolution Z) [Epi (Q.π.f 0)] : |
| 35 | ResolutionBasic.ProjectiveResolution.liftFZero f P Q ≫ Q.π.f 0 = P.π.f 0 ≫ f := by |
| 36 | have : Epi (show Q.complex.X 0 ⟶ Z from Q.π.f 0) := |
| 37 | inferInstanceAs (Epi (Q.π.f 0)) |
| 38 | change Projective.factorThru (P.π.f 0 ≫ f) |
| 39 | (show Q.complex.X 0 ⟶ Z from Q.π.f 0) ≫ Q.π.f 0 = _ |
| 40 | exact Projective.factorThru_comp _ _ |
| 41 | |
| 42 | end |
| 43 | |
| 44 | variable [Abelian C] |
| 45 | |
| 46 | lemma ResolutionBasic.ProjectiveResolution.exact₀ {Z : C} (P : ResolutionBasic.ProjectiveResolution Z) : |
| 47 | (ShortComplex.mk _ _ P.complex_d_comp_π_f_zero).Exact := |
| 48 | ShortComplex.exact_of_g_is_cokernel _ P.isColimitCokernelCofork |
| 49 | |
| 50 | /-- Auxiliary construction for `lift`. -/ |
| 51 | def ResolutionBasic.ProjectiveResolution.liftFOne {Y Z : C} (f : Y ⟶ Z) (P : ResolutionBasic.ProjectiveResolution Y) (Q : ResolutionBasic.ProjectiveResolution Z) : |
| 52 | P.complex.X 1 ⟶ Q.complex.X 1 := |
| 53 | Q.exact₀.liftFromProjective (P.complex.d 1 0 ≫ ResolutionBasic.ProjectiveResolution.liftFZero f P Q) (by erw [Category.assoc, ResolutionBasic.ProjectiveResolution.liftFZero_comp, ← Category.assoc, |
| 54 | P.complex_d_comp_π_f_zero, zero_comp]) |
| 55 | |
| 56 | @[simp] |
| 57 | theorem ResolutionBasic.ProjectiveResolution.liftFOne_zero_comm {Y Z : C} (f : Y ⟶ Z) (P : ResolutionBasic.ProjectiveResolution Y) |
| 58 | (Q : ResolutionBasic.ProjectiveResolution Z) : |
| 59 | ResolutionBasic.ProjectiveResolution.liftFOne f P Q ≫ Q.complex.d 1 0 = P.complex.d 1 0 ≫ ResolutionBasic.ProjectiveResolution.liftFZero f P Q := by |
| 60 | apply Q.exact₀.liftFromProjective_comp |
| 61 | |
| 62 | /-- Auxiliary construction for `lift`. -/ |
| 63 | def ResolutionBasic.ProjectiveResolution.liftFSucc {Y Z : C} (P : ResolutionBasic.ProjectiveResolution Y) (Q : ResolutionBasic.ProjectiveResolution Z) (n : ℕ) |
| 64 | (g : P.complex.X n ⟶ Q.complex.X n) (g' : P.complex.X (n + 1) ⟶ Q.complex.X (n + 1)) |
| 65 | (w : g' ≫ Q.complex.d (n + 1) n = P.complex.d (n + 1) n ≫ g) : |
| 66 | Σ' g'' : P.complex.X (n + 2) ⟶ Q.complex.X (n + 2), |
| 67 | g'' ≫ Q.complex.d (n + 2) (n + 1) = P.complex.d (n + 2) (n + 1) ≫ g' := |
| 68 | ⟨(Q.exact_succ n).liftFromProjective |
| 69 | (P.complex.d (n + 2) (n + 1) ≫ g') (by simp [w]), |
| 70 | (Q.exact_succ n).liftFromProjective_comp _ _⟩ |
| 71 | |
| 72 | /-- A morphism in `C` lifts to a chain map between projective resolutions. -/ |
| 73 | def ResolutionBasic.ProjectiveResolution.lift {Y Z : C} (f : Y ⟶ Z) (P : ResolutionBasic.ProjectiveResolution Y) (Q : ResolutionBasic.ProjectiveResolution Z) : |
| 74 | P.complex ⟶ Q.complex := |
| 75 | ChainComplex.mkHom _ _ (ResolutionBasic.ProjectiveResolution.liftFZero f _ _) (ResolutionBasic.ProjectiveResolution.liftFOne f _ _) (ResolutionBasic.ProjectiveResolution.liftFOne_zero_comm f P Q) |
| 76 | fun n ⟨g, g', w⟩ => ⟨(ResolutionBasic.ProjectiveResolution.liftFSucc P Q n g g' w).1, (ResolutionBasic.ProjectiveResolution.liftFSucc P Q n g g' w).2⟩ |
| 77 | |
| 78 | /-- The resolution maps intertwine the lift of a morphism and that morphism. -/ |
| 79 | @[reassoc (attr := simp)] |
| 80 | theorem ResolutionBasic.ProjectiveResolution.lift_commutes {Y Z : C} (f : Y ⟶ Z) (P : ResolutionBasic.ProjectiveResolution Y) |
| 81 | (Q : ResolutionBasic.ProjectiveResolution Z) : ResolutionBasic.ProjectiveResolution.lift f P Q ≫ Q.π = P.π ≫ (ChainComplex.single₀ C).map f := by |
| 82 | apply HomologicalComplex.Hom.ext |
| 83 | funext n |
| 84 | cases n with |
| 85 | | zero => |
| 86 | simp only [HomologicalComplex.comp_f, ResolutionBasic.ProjectiveResolution.lift, ChainComplex.mkHom_f_0, |
| 87 | ChainComplex.single₀_map_f_zero] |
| 88 | exact ResolutionBasic.ProjectiveResolution.liftFZero_comp f P Q |
| 89 | | succ n => simp |
| 90 | |
| 91 | @[reassoc (attr := simp)] |
| 92 | lemma ResolutionBasic.ProjectiveResolution.lift_commutes_zero {Y Z : C} (f : Y ⟶ Z) |
| 93 | (P : ResolutionBasic.ProjectiveResolution Y) (Q : ResolutionBasic.ProjectiveResolution Z) : |
| 94 | (ResolutionBasic.ProjectiveResolution.lift f P Q).f 0 ≫ Q.π.f 0 = P.π.f 0 ≫ f := |
| 95 | (HomologicalComplex.congr_hom (ResolutionBasic.ProjectiveResolution.lift_commutes f P Q) 0).trans (by simp) |
| 96 | |
| 97 | /-- An auxiliary definition for `liftHomotopyZero`. -/ |
| 98 | def ResolutionBasic.ProjectiveResolution.liftHomotopyZeroZero {Y Z : C} {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 99 | (f : P.complex ⟶ Q.complex) (comm : f ≫ Q.π = 0) : P.complex.X 0 ⟶ Q.complex.X 1 := |
| 100 | Q.exact₀.liftFromProjective (f.f 0) (congr_fun (congr_arg HomologicalComplex.Hom.f comm) 0) |
| 101 | |
| 102 | @[reassoc (attr := simp)] |
| 103 | lemma ResolutionBasic.ProjectiveResolution.liftHomotopyZeroZero_comp {Y Z : C} {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 104 | (f : P.complex ⟶ Q.complex) (comm : f ≫ Q.π = 0) : |
| 105 | ResolutionBasic.ProjectiveResolution.liftHomotopyZeroZero f comm ≫ Q.complex.d 1 0 = f.f 0 := |
| 106 | Q.exact₀.liftFromProjective_comp _ _ |
| 107 | |
| 108 | /-- An auxiliary definition for `liftHomotopyZero`. -/ |
| 109 | def ResolutionBasic.ProjectiveResolution.liftHomotopyZeroOne {Y Z : C} {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 110 | (f : P.complex ⟶ Q.complex) (comm : f ≫ Q.π = 0) : |
| 111 | P.complex.X 1 ⟶ Q.complex.X 2 := |
| 112 | (Q.exact_succ 0).liftFromProjective (f.f 1 - P.complex.d 1 0 ≫ ResolutionBasic.ProjectiveResolution.liftHomotopyZeroZero f comm) |
| 113 | (by rw [Preadditive.sub_comp, assoc, HomologicalComplex.Hom.comm, |
| 114 | ResolutionBasic.ProjectiveResolution.liftHomotopyZeroZero_comp, sub_self]) |
| 115 | |
| 116 | @[reassoc (attr := simp)] |
| 117 | lemma ResolutionBasic.ProjectiveResolution.liftHomotopyZeroOne_comp {Y Z : C} {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 118 | (f : P.complex ⟶ Q.complex) (comm : f ≫ Q.π = 0) : |
| 119 | ResolutionBasic.ProjectiveResolution.liftHomotopyZeroOne f comm ≫ Q.complex.d 2 1 = |
| 120 | f.f 1 - P.complex.d 1 0 ≫ ResolutionBasic.ProjectiveResolution.liftHomotopyZeroZero f comm := |
| 121 | (Q.exact_succ 0).liftFromProjective_comp _ _ |
| 122 | |
| 123 | /-- An auxiliary definition for `liftHomotopyZero`. -/ |
| 124 | def ResolutionBasic.ProjectiveResolution.liftHomotopyZeroSucc {Y Z : C} {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 125 | (f : P.complex ⟶ Q.complex) (n : ℕ) (g : P.complex.X n ⟶ Q.complex.X (n + 1)) |
| 126 | (g' : P.complex.X (n + 1) ⟶ Q.complex.X (n + 2)) |
| 127 | (w : f.f (n + 1) = P.complex.d (n + 1) n ≫ g + g' ≫ Q.complex.d (n + 2) (n + 1)) : |
| 128 | P.complex.X (n + 2) ⟶ Q.complex.X (n + 3) := |
| 129 | (Q.exact_succ (n + 1)).liftFromProjective (f.f (n + 2) - P.complex.d _ _ ≫ g') (by simp [w]) |
| 130 | |
| 131 | @[reassoc (attr := simp)] |
| 132 | lemma ResolutionBasic.ProjectiveResolution.liftHomotopyZeroSucc_comp {Y Z : C} {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 133 | (f : P.complex ⟶ Q.complex) (n : ℕ) (g : P.complex.X n ⟶ Q.complex.X (n + 1)) |
| 134 | (g' : P.complex.X (n + 1) ⟶ Q.complex.X (n + 2)) |
| 135 | (w : f.f (n + 1) = P.complex.d (n + 1) n ≫ g + g' ≫ Q.complex.d (n + 2) (n + 1)) : |
| 136 | ResolutionBasic.ProjectiveResolution.liftHomotopyZeroSucc f n g g' w ≫ Q.complex.d (n + 3) (n + 2) = |
| 137 | f.f (n + 2) - P.complex.d _ _ ≫ g' := |
| 138 | (Q.exact_succ (n + 1)).liftFromProjective_comp _ _ |
| 139 | |
| 140 | /-- Any lift of the zero morphism is homotopic to zero. -/ |
| 141 | def ResolutionBasic.ProjectiveResolution.liftHomotopyZero {Y Z : C} {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 142 | (f : P.complex ⟶ Q.complex) (comm : f ≫ Q.π = 0) : Homotopy f 0 := |
| 143 | Homotopy.mkInductive _ (ResolutionBasic.ProjectiveResolution.liftHomotopyZeroZero f comm) (by simp) |
| 144 | (ResolutionBasic.ProjectiveResolution.liftHomotopyZeroOne f comm) (by simp) fun n ⟨g, g', w⟩ => |
| 145 | ⟨ResolutionBasic.ProjectiveResolution.liftHomotopyZeroSucc f n g g' w, by simp⟩ |
| 146 | |
| 147 | /-- Two lifts of the same morphism are homotopic. -/ |
| 148 | def ResolutionBasic.ProjectiveResolution.liftHomotopy {Y Z : C} (f : Y ⟶ Z) {P : ResolutionBasic.ProjectiveResolution Y} {Q : ResolutionBasic.ProjectiveResolution Z} |
| 149 | (g h : P.complex ⟶ Q.complex) (g_comm : g ≫ Q.π = P.π ≫ (ChainComplex.single₀ C).map f) |
| 150 | (h_comm : h ≫ Q.π = P.π ≫ (ChainComplex.single₀ C).map f) : Homotopy g h := |
| 151 | Homotopy.equivSubZero.invFun (ResolutionBasic.ProjectiveResolution.liftHomotopyZero _ (by simp [g_comm, h_comm])) |
| 152 | |
| 153 | /-- The lift of the identity morphism is homotopic to the identity chain map. -/ |
| 154 | def ResolutionBasic.ProjectiveResolution.liftIdHomotopy (X : C) (P : ResolutionBasic.ProjectiveResolution X) : |
| 155 | Homotopy (ResolutionBasic.ProjectiveResolution.lift (𝟙 X) P P) (𝟙 P.complex) := by |
| 156 | apply ResolutionBasic.ProjectiveResolution.liftHomotopy (𝟙 X) <;> simp |
| 157 | |
| 158 | /-- The lift of a composition is homotopic to the composition of the lifts. -/ |
| 159 | def ResolutionBasic.ProjectiveResolution.liftCompHomotopy {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z) (P : ResolutionBasic.ProjectiveResolution X) |
| 160 | (Q : ResolutionBasic.ProjectiveResolution Y) (R : ResolutionBasic.ProjectiveResolution Z) : |
| 161 | Homotopy (ResolutionBasic.ProjectiveResolution.lift (f ≫ g) P R) (ResolutionBasic.ProjectiveResolution.lift f P Q ≫ ResolutionBasic.ProjectiveResolution.lift g Q R) := by |
| 162 | apply ResolutionBasic.ProjectiveResolution.liftHomotopy (f ≫ g) <;> simp |
| 163 | |
| 164 | -- We don't care about the actual definitions of these homotopies. |
| 165 | /-- Any two projective resolutions are homotopy equivalent. -/ |
| 166 | def ResolutionBasic.ProjectiveResolution.homotopyEquiv {X : C} (P Q : ResolutionBasic.ProjectiveResolution X) : |
| 167 | HomotopyEquiv P.complex Q.complex where |
| 168 | hom := ResolutionBasic.ProjectiveResolution.lift (𝟙 X) P Q |
| 169 | inv := ResolutionBasic.ProjectiveResolution.lift (𝟙 X) Q P |
| 170 | homotopyHomInvId := (ResolutionBasic.ProjectiveResolution.liftCompHomotopy (𝟙 X) (𝟙 X) P Q P).symm.trans <| by |
| 171 | simpa [id_comp] using ResolutionBasic.ProjectiveResolution.liftIdHomotopy _ _ |
| 172 | homotopyInvHomId := (ResolutionBasic.ProjectiveResolution.liftCompHomotopy (𝟙 X) (𝟙 X) Q P Q).symm.trans <| by |
| 173 | simpa [id_comp] using ResolutionBasic.ProjectiveResolution.liftIdHomotopy _ _ |
| 174 | |
| 175 | @[reassoc (attr := simp)] |
| 176 | theorem ResolutionBasic.ProjectiveResolution.homotopyEquiv_hom_π {X : C} (P Q : ResolutionBasic.ProjectiveResolution X) : |
| 177 | (ResolutionBasic.ProjectiveResolution.homotopyEquiv P Q).hom ≫ Q.π = P.π := by simp [ResolutionBasic.ProjectiveResolution.homotopyEquiv] |
| 178 | |
| 179 | @[reassoc (attr := simp)] |
| 180 | theorem ResolutionBasic.ProjectiveResolution.homotopyEquiv_inv_π {X : C} (P Q : ResolutionBasic.ProjectiveResolution X) : |
| 181 | (ResolutionBasic.ProjectiveResolution.homotopyEquiv P Q).inv ≫ P.π = Q.π := by simp [ResolutionBasic.ProjectiveResolution.homotopyEquiv] |
| 182 | |
| 183 | end |
| 184 | |
| 185 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective |