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.GeometricComparison.CechPresheaf.ConeProduct |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.CechPresheaf.ConeNaturality |
| 3 | |
| 4 | /-! # Transported Cone -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Cech.TransportedCone.CechTransportedCone |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Transport a global cone through the original section-coordinate |
| 11 | isomorphisms, retaining each of those isomorphisms in the comparison. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | open OAI.NumberTheory.PadicHodge.GeometricComparison.CechPresheaf.ConeTotal.CechPresheafConeTotal |
| 16 | universe u v s t a b |
| 17 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 18 | {D : Type s} [Category.{t} D] [Quiver.IsThin D] [HasBinaryProducts D] |
| 19 | {A : Type a} [Category.{b} A] [Abelian A] [HasProducts.{0} A] [HasCoproducts.{0} A] |
| 20 | (F : C ⥤ D) {ι : Type} (U : ι → C) |
| 21 | [∀ (n : ℕ) (t : Fin (n + 1) → ι), PreservesLimit (Discrete.functor (U ∘ t)) F] |
| 22 | |
| 23 | local notation "H" => Functor.mapHomologicalComplex |
| 24 | (NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback (A := A) F) (ComplexShape.up ℕ) |
| 25 | |
| 26 | variable {P Q : CochainComplex (Dᵒᵖ ⥤ A) ℕ} |
| 27 | {N : CochainComplex (Cᵒᵖ ⥤ A) ℕ} (e₀ : N ≅ |
| 28 | ((NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.pullback (A := A) F).mapHomologicalComplex (.up ℕ)).obj Q) |
| 29 | (e₁ : P ≅ Q) (M : CochainComplex A ℕ) (η : (CechPresheaf.ConeTotal.CechPresheafConeTotal.constant (C := D)).obj M ⟶ P) |
| 30 | |
| 31 | def cone : (CechPresheaf.ConeTotal.CechPresheafConeTotal.constant (C := C)).obj M ⟶ N := |
| 32 | CechPresheaf.ConeRefinement.CechPresheafConeRefinement.cone F Q M (η ≫ e₁.hom) ≫ e₀.inv |
| 33 | |
| 34 | def edge := CechPresheaf.ConeTotal.CechPresheafConeTotal.map U N M (cone F e₀ e₁ M η) |
| 35 | |
| 36 | def bicomplexIso : CechPresheaf.ConeTotal.CechPresheafConeTotal.bicomplex U N ≅ CechPresheaf.ConeTotal.CechPresheafConeTotal.bicomplex (F.obj ∘ U) P := |
| 37 | ((IntegralComparison.NonemptyCechNerve.complexFunctor U).mapHomologicalComplex (.up ℕ)).mapIso e₀ ≪≫ |
| 38 | NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U Q ≪≫ |
| 39 | ((IntegralComparison.NonemptyCechNerve.complexFunctor (F.obj ∘ U)).mapHomologicalComplex (.up ℕ)).mapIso e₁.symm |
| 40 | |
| 41 | omit [HasBinaryProducts C] [Quiver.IsThin D] [HasBinaryProducts D] |
| 42 | [HasProducts A] [HasCoproducts A] in |
| 43 | theorem first_square : cone F e₀ e₁ M η ≫ e₀.hom = |
| 44 | (CechPresheaf.ConeTotal.CechPresheafConeTotal.constant (C := C)).map (𝟙 M) ≫ CechPresheaf.ConeRefinement.CechPresheafConeRefinement.cone F Q M (η ≫ e₁.hom) := by |
| 45 | rw [(CechPresheaf.ConeTotal.CechPresheafConeTotal.constant (C := C)).map_id] |
| 46 | simp only [cone, Category.assoc, Iso.inv_hom_id, Category.comp_id, Category.id_comp] |
| 47 | |
| 48 | omit [Quiver.IsThin D] [HasBinaryProducts D] [HasProducts A] [HasCoproducts A] in |
| 49 | theorem last_square : (η ≫ e₁.hom) ≫ e₁.inv = (CechPresheaf.ConeTotal.CechPresheafConeTotal.constant (C := D)).map (𝟙 M) ≫ η := by |
| 50 | rw [(CechPresheaf.ConeTotal.CechPresheafConeTotal.constant (C := D)).map_id] |
| 51 | simp only [Category.assoc, Iso.hom_inv_id, Category.comp_id, Category.id_comp] |
| 52 | |
| 53 | omit [Quiver.IsThin D] [HasBinaryProducts D] [HasCoproducts A] |
| 54 | [∀ (n : ℕ) (t : Fin (n + 1) → ι), PreservesLimit (Discrete.functor (U ∘ t)) F] in |
| 55 | theorem first_edge : edge F U e₀ e₁ M η ≫ CechPresheaf.ConeNaturality.CechPresheafConeNaturality.totalMap U e₀.hom = |
| 56 | CechPresheaf.ConeTotal.CechPresheafConeTotal.map U ((H).obj Q) M (CechPresheaf.ConeRefinement.CechPresheafConeRefinement.cone F Q M (η ≫ e₁.hom)) := |
| 57 | (CechPresheaf.ConeNaturality.CechPresheafConeNaturality.naturality U (cone F e₀ e₁ M η) |
| 58 | (CechPresheaf.ConeRefinement.CechPresheafConeRefinement.cone F Q M (η ≫ e₁.hom)) e₀.hom (𝟙 M) |
| 59 | (first_square F e₀ e₁ M η)).trans (Category.id_comp _) |
| 60 | |
| 61 | omit [HasBinaryProducts C] [Quiver.IsThin D] [HasCoproducts A] |
| 62 | [∀ (n : ℕ) (t : Fin (n + 1) → ι), PreservesLimit (Discrete.functor (U ∘ t)) F] in |
| 63 | theorem last_edge : CechPresheaf.ConeTotal.CechPresheafConeTotal.map (F.obj ∘ U) Q M (η ≫ e₁.hom) ≫ |
| 64 | CechPresheaf.ConeNaturality.CechPresheafConeNaturality.totalMap (F.obj ∘ U) e₁.inv = CechPresheaf.ConeTotal.CechPresheafConeTotal.map (F.obj ∘ U) P M η := |
| 65 | (CechPresheaf.ConeNaturality.CechPresheafConeNaturality.naturality (F.obj ∘ U) (η ≫ e₁.hom) η e₁.inv (𝟙 M) |
| 66 | (last_square e₁ M η)).trans (Category.id_comp _) |
| 67 | |
| 68 | theorem total_coordinates : |
| 69 | (HomologicalComplex₂.total.mapIso (bicomplexIso F U e₀ e₁) (.up ℕ)).hom = |
| 70 | CechPresheaf.ConeNaturality.CechPresheafConeNaturality.totalMap U e₀.hom ≫ |
| 71 | (HomologicalComplex₂.total.mapIso (NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U Q) (.up ℕ)).hom ≫ |
| 72 | CechPresheaf.ConeNaturality.CechPresheafConeNaturality.totalMap (F.obj ∘ U) e₁.inv := |
| 73 | (HomologicalComplex₂.total.map_comp _ _ (.up ℕ)).trans |
| 74 | (congrArg (fun x => CechPresheaf.ConeNaturality.CechPresheafConeNaturality.totalMap U e₀.hom ≫ x) |
| 75 | (HomologicalComplex₂.total.map_comp _ _ (.up ℕ))) |
| 76 | |
| 77 | theorem edge_comparison : edge F U e₀ e₁ M η ≫ |
| 78 | (HomologicalComplex₂.total.mapIso (bicomplexIso F U e₀ e₁) (.up ℕ)).hom = |
| 79 | CechPresheaf.ConeTotal.CechPresheafConeTotal.map (F.obj ∘ U) P M η := by |
| 80 | let a := CechPresheaf.ConeNaturality.CechPresheafConeNaturality.totalMap U e₀.hom |
| 81 | let b := (HomologicalComplex₂.total.mapIso (NonemptyCech.ProductBicomplex.NonemptyCechProductBicomplex.iso F U Q) (.up ℕ)).hom |
| 82 | let c := CechPresheaf.ConeNaturality.CechPresheafConeNaturality.totalMap (F.obj ∘ U) e₁.inv |
| 83 | let j := CechPresheaf.ConeTotal.CechPresheafConeTotal.map U ((H).obj Q) M (CechPresheaf.ConeRefinement.CechPresheafConeRefinement.cone F Q M (η ≫ e₁.hom)) |
| 84 | let k := CechPresheaf.ConeTotal.CechPresheafConeTotal.map (F.obj ∘ U) Q M (η ≫ e₁.hom) |
| 85 | have h₁ : edge F U e₀ e₁ M η ≫ a = j := first_edge F U e₀ e₁ M η |
| 86 | have h₂ : j ≫ b = k := CechPresheaf.ConeProduct.CechPresheafConeProduct.augmentation F U Q M (η ≫ e₁.hom) |
| 87 | have h₃ : k ≫ c = CechPresheaf.ConeTotal.CechPresheafConeTotal.map (F.obj ∘ U) P M η := last_edge F U e₁ M η |
| 88 | exact (congrArg (fun x => edge F U e₀ e₁ M η ≫ x) (total_coordinates F U e₀ e₁)).trans |
| 89 | ((Category.assoc _ _ _).symm.trans |
| 90 | ((congrArg (fun x => x ≫ b ≫ c) h₁).trans |
| 91 | ((Category.assoc _ _ _).symm.trans |
| 92 | ((congrArg (fun x => x ≫ c) h₂).trans h₃)))) |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Cech.TransportedCone.CechTransportedCone |