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 | /-! # Ordered Cech Edge -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.OrderedCechEdge |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The canonical supported-section augmentation into the actual |
| 12 | augmented ordered Čech total of a 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 v w z |
| 31 | variable (R : Type u) [CommRing R] (X : TopCat.{v}) |
| 32 | {C : Type w} [Preorder C] [HasFiniteProducts C] |
| 33 | (F : C ⥤ Opens X) {ι : Type w} [LinearOrder ι] (U : ι → C) (O : Opens X) |
| 34 | |
| 35 | local notation "V" => F.obj (⊤_ C) |
| 36 | |
| 37 | local instance coefficient_limits [UnivLE.{w, z}] : HasLimitsOfSize.{w, w} (ModuleCat.{z} R) := |
| 38 | ModuleCat.hasLimitsOfSize.{w, w, z, u} |
| 39 | |
| 40 | local instance coefficient_colimits : HasColimitsOfSize.{0, 0} (ModuleCat.{z} R) := |
| 41 | ModuleCat.hasColimitsOfSize.{z, u, 0, 0} R |
| 42 | |
| 43 | def supportFunctor : |
| 44 | Sheaf (Opens.grothendieckTopology X) (ModuleCat.{max u v w z} R) ⥤ |
| 45 | ModuleCat.{max u v w z} R := |
| 46 | SectionsExcision.supported V (V ⊓ O) inf_le_left |
| 47 | |
| 48 | instance supportFunctor_additive : (supportFunctor.{u,v,w,z} R X F O).Additive := by |
| 49 | dsimp only [supportFunctor] |
| 50 | infer_instance |
| 51 | |
| 52 | def presheaves : Sheaf (Opens.grothendieckTopology X) (ModuleCat.{max u v w z} R) ⥤ Cᵒᵖ ⥤ ModuleCat.{max u v w z} R := |
| 53 | sheafToPresheaf (Opens.grothendieckTopology X) (ModuleCat.{max u v w z} R) ⋙ |
| 54 | (Functor.whiskeringLeft Cᵒᵖ (Opens X)ᵒᵖ (ModuleCat.{max u v w z} R)).obj F.op |
| 55 | |
| 56 | instance presheaves_additive : (presheaves.{u,v,w,z} R X F).Additive := by |
| 57 | dsimp only [presheaves] |
| 58 | infer_instance |
| 59 | |
| 60 | variable (K : CochainComplex (Sheaf (Opens.grothendieckTopology X) |
| 61 | (ModuleCat.{max u v w z} R)) ℕ) |
| 62 | |
| 63 | def source : CochainComplex (ModuleCat.{max u v w z} R) ℕ := ((supportFunctor.{u,v,w,z} R X F O).mapHomologicalComplex (.up ℕ)).obj K |
| 64 | |
| 65 | def presheafComplex : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{max u v w z} R) ℕ := |
| 66 | ((presheaves.{u,v,w,z} R X F).mapHomologicalComplex (.up ℕ)).obj K |
| 67 | |
| 68 | def bicomplex : HomologicalComplex₂ (ModuleCat.{max u v w z} R) (.up ℕ) (.up ℕ) := |
| 69 | AugmentedOrdered.CechFunctor.bicomplex (D := ModuleCat.{max u v w z} R) U |
| 70 | (presheafComplex.{u,v,w,z} R X F K) |
| 71 | |
| 72 | def component (q : ℕ) : (source.{u,v,w,z} R X F O K).X q ⟶ ((OrderedCechEdge.bicomplex.{u,v,w,z} R X F U K).X q).X 0 := |
| 73 | (SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q) ≫ |
| 74 | (AugmentedOrdered.CechZero.zeroIso (D := ModuleCat.{max u v w z} R) U (F.op ⋙ (K.X q).obj)).inv |
| 75 | |
| 76 | theorem comm (q q' : ℕ) : |
| 77 | component.{u,v,w,z} R X F U O K q ≫ ((OrderedCechEdge.bicomplex.{u,v,w,z} R X F U K).d q q').f 0 = |
| 78 | (source.{u,v,w,z} R X F O K).d q q' ≫ component.{u,v,w,z} R X F U O K q' := by |
| 79 | let f : F.op ⋙ (K.X q).obj ⟶ F.op ⋙ (K.X q').obj := |
| 80 | Functor.whiskerLeft F.op (K.d q q').hom |
| 81 | exact (compose_inverse_square (D := ModuleCat.{max u v w z} R) |
| 82 | ((supportFunctor.{u,v,w,z} R X F O).map (K.d q q')) |
| 83 | ((SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q)) |
| 84 | ((SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q')) |
| 85 | ((SectionsExcision.sections V).map (K.d q q')) |
| 86 | (AugmentedOrdered.CechZero.zeroIso (D := ModuleCat.{max u v w z} R) U (F.op ⋙ (K.X q).obj)) |
| 87 | (AugmentedOrdered.CechZero.zeroIso (D := ModuleCat.{max u v w z} R) U (F.op ⋙ (K.X q').obj)) |
| 88 | (AugmentedOrdered.CechFunctor.objectMap (D := ModuleCat.{max u v w z} R) U f 0) |
| 89 | ((SectionsExcision.inclusion V (V ⊓ O) inf_le_left).naturality (K.d q q')) |
| 90 | (AugmentedOrdered.CechZero.zeroIso_naturality (D := ModuleCat.{max u v w z} R) |
| 91 | (Q := F.op ⋙ (K.X q').obj) U (F.op ⋙ (K.X q).obj) f)).symm |
| 92 | |
| 93 | variable (hO : ∀ i, F.obj (U i) ≤ O) |
| 94 | |
| 95 | include hO in |
| 96 | theorem cocycle (q : ℕ) : |
| 97 | component.{u,v,w,z} R X F U O K q ≫ ((OrderedCechEdge.bicomplex.{u,v,w,z} R X F U K).X q).d 0 1 = 0 := by |
| 98 | change component.{u,v,w,z} R X F U O K q ≫ |
| 99 | (AugmentedOrdered.Cech.complex U (F.op ⋙ (K.X q).obj)).d 0 1 = 0 |
| 100 | have hd : (AugmentedOrdered.Cech.complex U (F.op ⋙ (K.X q).obj)).d 0 1 = |
| 101 | AugmentedOrdered.Cech.differential U (F.op ⋙ (K.X q).obj) 0 := |
| 102 | CochainComplex.of_d (AugmentedOrdered.Cech.object U (F.op ⋙ (K.X q).obj)) |
| 103 | (AugmentedOrdered.Cech.differential U (F.op ⋙ (K.X q).obj)) 0 |
| 104 | rw [hd] |
| 105 | apply Pi.hom_ext |
| 106 | intro a |
| 107 | rw [zero_comp, Category.assoc] |
| 108 | change ((SectionsExcision.inclusion V (V ⊓ O) inf_le_left).app (K.X q) ≫ |
| 109 | (AugmentedOrdered.CechZero.zeroIso (D := ModuleCat.{max u v w z} R) U (F.op ⋙ (K.X q).obj)).inv) ≫ |
| 110 | AugmentedOrdered.Cech.differential U (F.op ⋙ (K.X q).obj) 0 ≫ |
| 111 | Pi.π (fun b : AugmentedOrdered.Cech.Index ι 1 => |
| 112 | (F.op ⋙ (K.X q).obj).obj (op ((AugmentedOrdered.Cech.formal U 1).obj b))) a = 0 |
| 113 | rw [Category.assoc, AugmentedOrdered.CechZero.zeroIso_inv_differential_π] |
| 114 | let T := (AugmentedOrdered.Cech.formal U 1).obj a |
| 115 | have hT : F.obj T ≤ V ⊓ O := |
| 116 | le_inf (leOfHom (F.map (terminal.from T))) |
| 117 | ((leOfHom (F.map (Pi.π (fun i : Fin 1 => U (a.val i)) 0))).trans (hO (a.val 0))) |
| 118 | have he : F.map (terminal.from T) = |
| 119 | (homOfLE hT : F.obj T ⟶ V ⊓ O) ≫ homOfLE inf_le_left := Subsingleton.elim _ _ |
| 120 | change kernel.ι ((SectionsExcision.restriction V (V ⊓ O) inf_le_left).app (K.X q)) ≫ |
| 121 | (K.X q).obj.map (F.map (terminal.from T)).op = 0 |
| 122 | rw [he, op_comp, Functor.map_comp, ← Category.assoc] |
| 123 | exact (congrArg (fun a => a ≫ (K.X q).obj.map (homOfLE hT).op) |
| 124 | (kernel.condition ((SectionsExcision.restriction V (V ⊓ O) inf_le_left).app |
| 125 | (K.X q)))).trans zero_comp |
| 126 | |
| 127 | local instance total_exists : (OrderedCechEdge.bicomplex.{u,v,w,z} R X F U K).HasTotal (.up ℕ) := |
| 128 | AlgebraicGeometry.Comparison.Betti.TotalExists.hasTotal_of_finiteCoproducts _ |
| 129 | |
| 130 | def map : source.{u,v,w,z} R X F O K ⟶ (OrderedCechEdge.bicomplex.{u,v,w,z} R X F U K).total (.up ℕ) := |
| 131 | (AlgebraicGeometry.SheafCohomology.Cech.UpNatHorizontalEdge.HomologicalComplex₂.totalUpNatHorizontalEdge (bicomplex.{u,v,w,z} R X F U K)) (source.{u,v,w,z} R X F O K) |
| 132 | (component.{u,v,w,z} R X F U O K) (fun q q' _ => comm.{u,v,w,z} R X F U O K q q') |
| 133 | (cocycle.{u,v,w,z} R X F U O K hO) |
| 134 | |
| 135 | end |
| 136 | |
| 137 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Supported.OrderedCechEdge |