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.Supported.SectionsExcision |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechZero |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechFunctor |
| 4 | |
| 5 | /-! # Supported Ordered Cech Edge -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SupportedOrderedCechEdge.Abelian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The canonical supported-section augmentation into the actual |
| 12 | augmented ordered Čech total of an abelian-category-valued sheaf complex. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive _root_.TopologicalSpace Opposite |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | private theorem compose_inverse_square {D : Type*} [Category* D] |
| 20 | {N₁ N₂ C₁ C₂ T₁ T₂ : D} |
| 21 | (s : N₁ ⟶ N₂) (a : N₁ ⟶ C₁) (b : N₂ ⟶ C₂) (d : C₁ ⟶ C₂) |
| 22 | (e₁ : T₁ ≅ C₁) (e₂ : T₂ ≅ C₂) (m : T₁ ⟶ T₂) |
| 23 | (h₁ : s ≫ b = a ≫ d) (h₂ : m ≫ e₂.hom = e₁.hom ≫ d) : |
| 24 | s ≫ b ≫ e₂.inv = a ≫ e₁.inv ≫ m := by |
| 25 | apply (cancel_mono e₂.hom).mp |
| 26 | simp only [Category.assoc, Iso.inv_hom_id, Category.comp_id] |
| 27 | rw [h₂, ← Category.assoc e₁.inv e₁.hom d, e₁.inv_hom_id, Category.id_comp] |
| 28 | exact h₁ |
| 29 | |
| 30 | universe u |
| 31 | variable (D : Type (u+1)) [Category.{u} D] [Abelian D] [HasLimitsOfSize.{u,u} D] |
| 32 | (X : TopCat.{u}) {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 33 | (F : C ⥤ Opens X) {ι : Type u} [LinearOrder ι] (U : ι → C) (O : Opens X) |
| 34 | |
| 35 | local notation "V" => F.obj (⊤_ C) |
| 36 | |
| 37 | def supportFunctor : |
| 38 | Sheaf (Opens.grothendieckTopology X) D ⥤ |
| 39 | D := |
| 40 | Supported.SectionsExcision.supported V (V ⊓ O) inf_le_left |
| 41 | |
| 42 | instance supportFunctor_additive : (supportFunctor D X F O).Additive := by |
| 43 | dsimp only [supportFunctor] |
| 44 | infer_instance |
| 45 | |
| 46 | def presheaves : Sheaf (Opens.grothendieckTopology X) D ⥤ Cᵒᵖ ⥤ D := |
| 47 | sheafToPresheaf (Opens.grothendieckTopology X) D ⋙ |
| 48 | (Functor.whiskeringLeft Cᵒᵖ (Opens X)ᵒᵖ D).obj F.op |
| 49 | |
| 50 | instance presheaves_additive : (presheaves D X F).Additive := by |
| 51 | dsimp only [presheaves] |
| 52 | infer_instance |
| 53 | |
| 54 | variable (K : CochainComplex (Sheaf (Opens.grothendieckTopology X) |
| 55 | D) ℕ) |
| 56 | |
| 57 | def source : CochainComplex D ℕ := ((supportFunctor D X F O).mapHomologicalComplex (.up ℕ)).obj K |
| 58 | |
| 59 | def presheafComplex : CochainComplex (Cᵒᵖ ⥤ D) ℕ := |
| 60 | ((presheaves D X F).mapHomologicalComplex (.up ℕ)).obj K |
| 61 | |
| 62 | def bicomplex : HomologicalComplex₂ D (.up ℕ) (.up ℕ) := |
| 63 | AugmentedOrdered.CechFunctor.bicomplex (D := D) U |
| 64 | (presheafComplex D X F K) |
| 65 | |
| 66 | def component (q : ℕ) : (source D X F O K).X q ⟶ ((SupportedOrderedCechEdge.Abelian.bicomplex D X F U K).X q).X 0 := |
| 67 | (Supported.SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q) ≫ |
| 68 | (AugmentedOrdered.CechZero.zeroIso (D := D) U (F.op ⋙ (K.X q).obj)).inv |
| 69 | |
| 70 | theorem comm (q q' : ℕ) : |
| 71 | component D X F U O K q ≫ ((SupportedOrderedCechEdge.Abelian.bicomplex D X F U K).d q q').f 0 = |
| 72 | (source D X F O K).d q q' ≫ component D X F U O K q' := by |
| 73 | let f : F.op ⋙ (K.X q).obj ⟶ F.op ⋙ (K.X q').obj := |
| 74 | Functor.whiskerLeft F.op (K.d q q').hom |
| 75 | have hd : ((SupportedOrderedCechEdge.Abelian.bicomplex D X F U K).d q q').f 0 = |
| 76 | AugmentedOrdered.CechFunctor.objectMap U f 0 := by rfl |
| 77 | have hs : (source D X F O K).d q q' = (supportFunctor D X F O).map (K.d q q') := by rfl |
| 78 | rw [hd, hs] |
| 79 | simpa only [component, Category.assoc] using (compose_inverse_square (D := D) |
| 80 | ((supportFunctor D X F O).map (K.d q q')) |
| 81 | ((Supported.SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q)) |
| 82 | ((Supported.SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q')) |
| 83 | ((Supported.SectionsExcision.sections V).map (K.d q q')) |
| 84 | (AugmentedOrdered.CechZero.zeroIso (D := D) U (F.op ⋙ (K.X q).obj)) |
| 85 | (AugmentedOrdered.CechZero.zeroIso (D := D) U (F.op ⋙ (K.X q').obj)) |
| 86 | (AugmentedOrdered.CechFunctor.objectMap (D := D) U f 0) |
| 87 | ((Supported.SectionsExcision.inclusion V (V ⊓ O) inf_le_left).naturality (K.d q q')) |
| 88 | (AugmentedOrdered.CechZero.zeroIso_naturality (D := D) |
| 89 | (Q := F.op ⋙ (K.X q').obj) U (F.op ⋙ (K.X q).obj) f)).symm |
| 90 | |
| 91 | variable (hO : ∀ i, F.obj (U i) ≤ O) |
| 92 | |
| 93 | include hO in |
| 94 | theorem cocycle (q : ℕ) : |
| 95 | component D X F U O K q ≫ ((SupportedOrderedCechEdge.Abelian.bicomplex D X F U K).X q).d 0 1 = 0 := by |
| 96 | change component D X F U O K q ≫ |
| 97 | (AugmentedOrdered.Cech.complex U (F.op ⋙ (K.X q).obj)).d 0 1 = 0 |
| 98 | have hd : (AugmentedOrdered.Cech.complex U (F.op ⋙ (K.X q).obj)).d 0 1 = |
| 99 | AugmentedOrdered.Cech.differential U (F.op ⋙ (K.X q).obj) 0 := |
| 100 | CochainComplex.of_d (AugmentedOrdered.Cech.object U (F.op ⋙ (K.X q).obj)) |
| 101 | (AugmentedOrdered.Cech.differential U (F.op ⋙ (K.X q).obj)) 0 |
| 102 | rw [hd] |
| 103 | apply Pi.hom_ext |
| 104 | intro a |
| 105 | rw [zero_comp, Category.assoc] |
| 106 | change ((Supported.SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q) ≫ |
| 107 | (AugmentedOrdered.CechZero.zeroIso (D := D) U (F.op ⋙ (K.X q).obj)).inv) ≫ |
| 108 | AugmentedOrdered.Cech.differential U (F.op ⋙ (K.X q).obj) 0 ≫ |
| 109 | Pi.π (fun b : AugmentedOrdered.Cech.Index ι 1 => |
| 110 | (F.op ⋙ (K.X q).obj).obj (op ((AugmentedOrdered.Cech.formal U 1).obj b))) a = 0 |
| 111 | rw [Category.assoc, AugmentedOrdered.CechZero.zeroIso_inv_differential_π] |
| 112 | let T := (AugmentedOrdered.Cech.formal U 1).obj a |
| 113 | have hT : F.obj T ≤ V ⊓ O := |
| 114 | le_inf (leOfHom (F.map (terminal.from T))) |
| 115 | ((leOfHom (F.map (Pi.π (fun i : Fin 1 => U (a.val i)) 0))).trans (hO (a.val 0))) |
| 116 | have he : F.map (terminal.from T) = |
| 117 | (homOfLE hT : F.obj T ⟶ V ⊓ O) ≫ homOfLE inf_le_left := Subsingleton.elim _ _ |
| 118 | change kernel.ι ((Supported.SectionsExcision.restriction V (V ⊓ O) inf_le_left).app (K.X q)) ≫ |
| 119 | (K.X q).obj.map (F.map (terminal.from T)).op = 0 |
| 120 | rw [he, op_comp, Functor.map_comp, ← Category.assoc] |
| 121 | exact (congrArg (fun a => a ≫ (K.X q).obj.map (homOfLE hT).op) |
| 122 | (kernel.condition ((Supported.SectionsExcision.restriction V (V ⊓ O) inf_le_left).app |
| 123 | (K.X q)))).trans zero_comp |
| 124 | |
| 125 | local instance total_exists : (SupportedOrderedCechEdge.Abelian.bicomplex D X F U K).HasTotal (.up ℕ) := |
| 126 | AlgebraicGeometry.Comparison.Betti.TotalExists.hasTotal_of_finiteCoproducts _ |
| 127 | |
| 128 | def map : source D X F O K ⟶ (SupportedOrderedCechEdge.Abelian.bicomplex D X F U K).total (.up ℕ) := |
| 129 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatHorizontalEdge.HomologicalComplex₂.totalUpNatHorizontalEdge (bicomplex D X F U K)) (source D X F O K) |
| 130 | (component D X F U O K) (fun q q' _ => comm D X F U O K q q') |
| 131 | (cocycle D X F U O K hO) |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SupportedOrderedCechEdge.Abelian |