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.Comparison.Betti.InjectiveHomologyExt |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.CochainClasses |
| 3 | |
| 4 | /-! # Homology Ext Naturality -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.HomologyExtNaturality |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Normalization and naturality of the actual injective-resolution cohomology comparison. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Abelian Opposite |
| 13 | |
| 14 | universe w v u t |
| 15 | |
| 16 | variable {C : Type u} [Category.{v} C] [Abelian C] [HasExt.{w} C] |
| 17 | {R : Type t} [CommRing R] [Linear R C] |
| 18 | {X Y : C} (I : InjectiveResolution Y) |
| 19 | |
| 20 | theorem homologyExtLinearEquiv_class (n : ℕ) (f : X ⟶ I.cocomplex.X n) |
| 21 | (hf : f ≫ I.cocomplex.d n (n + 1) = 0) : |
| 22 | InjectiveHomologyExt.homologyExtLinearEquiv (R := R) I n |
| 23 | (CochainClasses.Homology.cochainClass (InjectiveHomologyExt.homSectionsComplex (R := R) I X) n f hf) = |
| 24 | I.extMk f (n + 1) rfl hf := by |
| 25 | let K := InjectiveHomologyExt.homSectionsComplex (R := R) I X |
| 26 | let S := K.sc' (n - 1) n (n + 1) |
| 27 | let e := CochainClasses.Homology.adjacentHomologyIso K n |
| 28 | let q := (Submodule.quotEquivOfEq _ _ (InjectiveHomologyExt.cocycleToExt_kernel (R := R) (X := X) I n).symm).trans |
| 29 | ((InjectiveHomologyExt.cocycleToExt (R := R) (X := X) I n).quotKerEquivOfSurjective (InjectiveHomologyExt.cocycleToExt_surjective I n)) |
| 30 | change q (S.moduleCatHomologyIso.hom |
| 31 | (e.hom (e.inv (Module.HomologyClasses.homologyClass S f hf)))) = _ |
| 32 | have he : e.hom (e.inv (Module.HomologyClasses.homologyClass S f hf)) = Module.HomologyClasses.homologyClass S f hf := |
| 33 | e.toLinearEquiv.apply_symm_apply _ |
| 34 | rw [he] |
| 35 | erw [Module.HomologyClasses.homologyClass_quotient] |
| 36 | have hq : S.moduleCatHomologyIso.hom |
| 37 | (S.moduleCatHomologyIso.inv (Submodule.Quotient.mk ⟨f, hf⟩)) = Submodule.Quotient.mk ⟨f, hf⟩ := |
| 38 | S.moduleCatHomologyIso.toLinearEquiv.apply_symm_apply _ |
| 39 | rw [hq] |
| 40 | change (InjectiveHomologyExt.cocycleToExt (R := R) (X := X) I n).quotKerEquivOfSurjective |
| 41 | (InjectiveHomologyExt.cocycleToExt_surjective I n) |
| 42 | ((Submodule.quotEquivOfEq _ _ (InjectiveHomologyExt.cocycleToExt_kernel (R := R) (X := X) I n).symm) |
| 43 | (Submodule.Quotient.mk ⟨f, hf⟩)) = _ |
| 44 | rw [Submodule.quotEquivOfEq_mk, LinearMap.quotKerEquivOfSurjective_apply_mk] |
| 45 | rfl |
| 46 | |
| 47 | variable {I} {Y' : C} {J : InjectiveResolution Y'} {u : Y ⟶ Y'} |
| 48 | |
| 49 | def homSectionsResolutionMap (φ : InjectiveResolution.Hom I J u) : |
| 50 | InjectiveHomologyExt.homSectionsComplex (R := R) I X ⟶ InjectiveHomologyExt.homSectionsComplex (R := R) J X := |
| 51 | (((linearCoyoneda R C).obj (op X)).mapHomologicalComplex (ComplexShape.up ℕ)).map φ.hom |
| 52 | |
| 53 | theorem homologyExtLinearEquiv_naturality (φ : InjectiveResolution.Hom I J u) |
| 54 | (n : ℕ) (a : (InjectiveHomologyExt.homSectionsComplex (R := R) I X).homology n) : |
| 55 | InjectiveHomologyExt.homologyExtLinearEquiv (R := R) J n |
| 56 | (HomologicalComplex.homologyMap (homSectionsResolutionMap (R := R) (X := X) φ) n a) = |
| 57 | (InjectiveHomologyExt.homologyExtLinearEquiv (R := R) I n a).comp (Ext.mk₀ u) (add_zero n) := by |
| 58 | obtain ⟨f, hf, rfl⟩ := CochainClasses.Homology.cochainClass_surjective (InjectiveHomologyExt.homSectionsComplex (R := R) I X) n a |
| 59 | rw [CochainClasses.Homology.cochainClass_naturality] |
| 60 | erw [homologyExtLinearEquiv_class, |
| 61 | homologyExtLinearEquiv_class] |
| 62 | exact (InjectiveResolution.extMk_comp_mk₀ f (n + 1) rfl hf φ).symm |
| 63 | |
| 64 | variable (I) {X' : C} |
| 65 | |
| 66 | def homSectionsPrecompose (v : X' ⟶ X) : |
| 67 | InjectiveHomologyExt.homSectionsComplex (R := R) I X ⟶ InjectiveHomologyExt.homSectionsComplex (R := R) I X' := |
| 68 | (((linearCoyoneda R C).map v.op).mapHomologicalComplex (ComplexShape.up ℕ)).app I.cocomplex |
| 69 | |
| 70 | theorem homologyExtLinearEquiv_precompose (v : X' ⟶ X) |
| 71 | (n : ℕ) (a : (InjectiveHomologyExt.homSectionsComplex (R := R) I X).homology n) : |
| 72 | InjectiveHomologyExt.homologyExtLinearEquiv (R := R) I n |
| 73 | (HomologicalComplex.homologyMap (homSectionsPrecompose (R := R) I v) n a) = |
| 74 | (Ext.mk₀ v).comp (InjectiveHomologyExt.homologyExtLinearEquiv (R := R) I n a) (zero_add n) := by |
| 75 | obtain ⟨f, hf, rfl⟩ := CochainClasses.Homology.cochainClass_surjective (InjectiveHomologyExt.homSectionsComplex (R := R) I X) n a |
| 76 | rw [CochainClasses.Homology.cochainClass_naturality] |
| 77 | erw [homologyExtLinearEquiv_class, homologyExtLinearEquiv_class] |
| 78 | exact (I.mk₀_comp_extMk f (n + 1) rfl hf v).symm |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.Comparison.Betti.HomologyExtNaturality |