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.IntegralComparison.NonemptyCechNerve |
| 2 | |
| 3 | /-! # Cover Reindex -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.CoverReindex.CechCoverReindex |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Relabelling a cover across index universes preserves the actual Cech functor and total complex. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite Simplicial _root_.AlgebraicTopology |
| 12 | |
| 13 | universe u v w z a b |
| 14 | |
| 15 | variable {C : Type u} [Category.{v} C] [HasBinaryProducts C] |
| 16 | {A : Type a} [Category.{b} A] [HasProducts.{w} A] [HasProducts.{z} A] |
| 17 | {ι : Type w} {κ : Type z} (U : ι → C) (e : κ ≃ ι) |
| 18 | |
| 19 | abbrev terms (P : Cᵒᵖ ⥤ A) (n : SimplexCategory) (t : Fin (n.len + 1) → ι) : A := |
| 20 | P.obj (op (∏ᶜ (U ∘ t))) |
| 21 | |
| 22 | def cosimplicialMap (P : Cᵒᵖ ⥤ A) : |
| 23 | (FormalCoproduct.cosimplicialObjectFunctor (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve U)).obj P ⟶ |
| 24 | (FormalCoproduct.cosimplicialObjectFunctor (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve (U ∘ e))).obj P where |
| 25 | app n := Pi.lift (fun t => Pi.π (terms U P n) (e ∘ t)) |
| 26 | naturality n m f := by |
| 27 | apply Pi.hom_ext |
| 28 | intro t |
| 29 | change ((Pi.lift (fun j => Pi.π (terms U P n) (j ∘ f.toOrderHom.toFun) ≫ |
| 30 | P.map (Pi.lift (fun k => Pi.π (U ∘ j) (f.toOrderHom.toFun k))).op)) ≫ |
| 31 | (Pi.lift (fun j => Pi.π (terms U P m) (e ∘ j)))) ≫ |
| 32 | Pi.π (terms (U ∘ e) P m) t = |
| 33 | ((Pi.lift (fun j => Pi.π (terms U P n) (e ∘ j))) ≫ |
| 34 | (Pi.lift (fun j => Pi.π (terms (U ∘ e) P n) (j ∘ f.toOrderHom.toFun) ≫ |
| 35 | P.map (Pi.lift (fun k => Pi.π ((U ∘ e) ∘ j) (f.toOrderHom.toFun k))).op))) ≫ |
| 36 | Pi.π (terms (U ∘ e) P m) t |
| 37 | simp only [Category.assoc] |
| 38 | erw [Pi.lift_comp_π, Pi.lift_comp_π, Pi.lift_comp_π, Pi.lift_comp_π_assoc] |
| 39 | rfl |
| 40 | |
| 41 | theorem component_isIso (P : Cᵒᵖ ⥤ A) (n : SimplexCategory) : |
| 42 | IsIso ((cosimplicialMap U e P).app n) := by |
| 43 | let t : (Fin (n.len + 1) → κ) ≃ (Fin (n.len + 1) → ι) := |
| 44 | Equiv.piCongrRight (fun _ => e) |
| 45 | let q : ∏ᶜ (terms (U ∘ e) P n) ≅ ∏ᶜ (terms U P n) := |
| 46 | Pi.whiskerEquiv (f := terms (U ∘ e) P n) (g := terms U P n) t (fun _ => Iso.refl _) |
| 47 | have h : (cosimplicialMap U e P).app n = q.inv := by |
| 48 | change (Pi.lift (fun j => Pi.π (terms U P n) (e ∘ j))) = |
| 49 | CategoryTheory.Limits.Pi.map' t (fun j => 𝟙 (terms (U ∘ e) P n j)) |
| 50 | apply Pi.hom_ext |
| 51 | intro j |
| 52 | erw [Pi.lift_comp_π, Pi.map'_comp_π, Category.comp_id] |
| 53 | rfl |
| 54 | exact h.symm ▸ q.isIso_inv |
| 55 | |
| 56 | def cosimplicialIso (P : Cᵒᵖ ⥤ A) : |
| 57 | (FormalCoproduct.cosimplicialObjectFunctor (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve U)).obj P ≅ |
| 58 | (FormalCoproduct.cosimplicialObjectFunctor (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.nerve (U ∘ e))).obj P := by |
| 59 | let : ∀ n, IsIso ((cosimplicialMap U e P).app n) := component_isIso U e P |
| 60 | let : IsIso (cosimplicialMap U e P) := NatIso.isIso_of_isIso_app _ |
| 61 | exact asIso (cosimplicialMap U e P) |
| 62 | |
| 63 | variable [Preadditive A] |
| 64 | |
| 65 | def complexIso (P : Cᵒᵖ ⥤ A) : |
| 66 | (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.complexFunctor U).obj P ≅ |
| 67 | (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.complexFunctor (U ∘ e)).obj P := |
| 68 | (alternatingCofaceMapComplex A).mapIso (cosimplicialIso U e P) |
| 69 | |
| 70 | theorem naturality {P Q : Cᵒᵖ ⥤ A} (f : P ⟶ Q) : |
| 71 | (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.complexFunctor U).map f ≫ (complexIso U e Q).hom = |
| 72 | (complexIso U e P).hom ≫ (NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.complexFunctor (U ∘ e)).map f := by |
| 73 | ext n : 1 |
| 74 | apply Pi.hom_ext |
| 75 | intro t |
| 76 | change ((CategoryTheory.Limits.Pi.map (fun j => f.app (op (∏ᶜ (U ∘ j))))) ≫ |
| 77 | (Pi.lift (fun j => Pi.π (terms U Q ⦋n⦌) (e ∘ j)))) ≫ |
| 78 | Pi.π (terms (U ∘ e) Q ⦋n⦌) t = |
| 79 | ((Pi.lift (fun j => Pi.π (terms U P ⦋n⦌) (e ∘ j))) ≫ |
| 80 | (CategoryTheory.Limits.Pi.map (fun j => f.app (op (∏ᶜ ((U ∘ e) ∘ j)))))) ≫ |
| 81 | Pi.π (terms (U ∘ e) Q ⦋n⦌) t |
| 82 | simp only [Category.assoc] |
| 83 | erw [Pi.lift_comp_π, Pi.map_π, Pi.map_π, Pi.lift_comp_π_assoc] |
| 84 | rfl |
| 85 | |
| 86 | def functorIso : NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.complexFunctor (A := A) U ≅ |
| 87 | NumberTheory.PadicHodge.IntegralComparison.NonemptyCechNerve.complexFunctor (U ∘ e) := |
| 88 | NatIso.ofComponents (complexIso U e) (fun {_ _} f => CechCoverReindex.naturality U e f) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Cech.CoverReindex.CechCoverReindex |