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.CechAmbientExtension |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.PresheafCover |
| 3 | |
| 4 | /-! # Supported Cover -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SupportedCover.Comparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The original principal-to-cover comparison on a resolution is |
| 11 | its canonical support-forgetting map followed by the global Čech edge. |
| 12 | All ambient coordinates and both common refinements are retained. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 14 | open OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCech.Intersections |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u v z |
| 18 | variable (R : Type u) [CommRing R] (X : TopCat.{v}) |
| 19 | |
| 20 | local instance coefficient_limits [UnivLE.{v,z}] : HasLimitsOfSize.{v,v} (ModuleCat.{z} R) := |
| 21 | ModuleCat.hasLimitsOfSize.{v,v,z,u} |
| 22 | local instance coefficient_products [UnivLE.{v,z}] : HasProducts.{v} (ModuleCat.{z} R) := |
| 23 | fun J => by |
| 24 | let : HasLimitsOfSize.{v,v} (ModuleCat.{z} R) := ModuleCat.hasLimitsOfSize.{v,v,z,u} |
| 25 | exact HasLimitsOfSize.has_limits_of_shape (Discrete J) |
| 26 | local instance coefficient_coproducts : HasCoproducts.{0} (ModuleCat.{z} R) := |
| 27 | fun J => by |
| 28 | let : HasColimitsOfSize.{0,0} (ModuleCat.{z} R) := ModuleCat.hasColimitsOfSize.{z,u,0,0} R |
| 29 | exact HasColimitsOfSize.has_colimits_of_shape (Discrete J) |
| 30 | |
| 31 | variable (K : CochainComplex (Sheaf (Opens.grothendieckTopology X) |
| 32 | (ModuleCat.{max u v z} R)) ℕ) |
| 33 | |
| 34 | section Refinement |
| 35 | variable (A : Opens X) {ι κ : Type v} [LinearOrder ι] [LinearOrder κ] |
| 36 | (V : ι → Opens X) (W : κ → Opens X) |
| 37 | (r : FormalCoproduct.mk κ W ⟶ FormalCoproduct.mk ι V) (O : Opens X) |
| 38 | |
| 39 | private theorem relative_component (q : ℕ) : |
| 40 | Supported.OrderedCechEdge.component.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) V O K q ≫ |
| 41 | ((AugmentedOrdered.CechRefinementTotal.bicomplexMap V W r |
| 42 | (Supported.OrderedCechEdge.presheafComplex.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) K)).f q).f 0 = |
| 43 | Supported.OrderedCechEdge.component.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) W O K q := by |
| 44 | change (_ ≫ (AugmentedOrdered.CechZero.zeroIso V ((RelativeCech.Intersections.intersect A).op ⋙ (K.X q).obj)).inv) ≫ |
| 45 | (AugmentedOrdered.CechRefinement.map V W r ((RelativeCech.Intersections.intersect A).op ⋙ (K.X q).obj)).f 0 = _ |
| 46 | rw [AugmentedOrdered.CechRefinement.map_f_zero] |
| 47 | simp only [Category.assoc, Iso.inv_hom_id_assoc] |
| 48 | rfl |
| 49 | |
| 50 | private theorem relative_edge (hV : ∀ i, V i ≤ O) (hW : ∀ i, W i ≤ O) : |
| 51 | Supported.OrderedCechEdge.map.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) V O K |
| 52 | (fun i => inf_le_right.trans (hV i)) ≫ |
| 53 | RelativeCech.Refinement.map A V W r |
| 54 | (Relative.SupportedExtension.underlying.{u,v,z} R X K) = |
| 55 | Supported.OrderedCechEdge.map.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) W O K |
| 56 | (fun i => inf_le_right.trans (hW i)) := by |
| 57 | apply HomologicalComplex.Hom.ext |
| 58 | funext q |
| 59 | simp only [Supported.OrderedCechEdge.map, HomologicalComplex.comp_f, |
| 60 | AlgebraicGeometry.SheafCohomology.Cech.UpNatHorizontalEdge.HomologicalComplex₂.totalUpNatHorizontalEdge_f, |
| 61 | RelativeCech.Refinement.map, AugmentedOrdered.CechRefinementTotal.totalMap, |
| 62 | Category.assoc, HomologicalComplex₂.ιTotal_map] |
| 63 | exact (Category.assoc _ _ _).symm.trans |
| 64 | (congrArg (fun a => a ≫ |
| 65 | (Supported.OrderedCechEdge.bicomplex.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) W K).ιTotal |
| 66 | (.up ℕ) q 0 q rfl) (relative_component R X K A V W r O q)) |
| 67 | end Refinement |
| 68 | |
| 69 | variable {C : Type v} [Preorder C] [HasFiniteProducts C] |
| 70 | (F : C ⥤ Opens X) |
| 71 | {ι κ ν μ ρ : Type v} |
| 72 | [LinearOrder ι] [LinearOrder κ] [LinearOrder ν] [LinearOrder μ] [LinearOrder ρ] |
| 73 | (W : ι → C) |
| 74 | [∀ (n : ℕ) (a : Fin (n+1) → ι), PreservesLimit (Discrete.functor (W ∘ a)) F] |
| 75 | (B : κ → Opens X) (J : ν → Opens X) |
| 76 | (r : FormalCoproduct.mk ν J ⟶ FormalCoproduct.mk ι (F.obj ∘ W)) |
| 77 | (s : FormalCoproduct.mk ν J ⟶ FormalCoproduct.mk κ B) |
| 78 | (V : μ → Opens X) (T : ρ → Opens X) |
| 79 | (l : FormalCoproduct.mk ρ T ⟶ FormalCoproduct.mk (WithBot κ) |
| 80 | (RelativeCech.Intersections.cover (F.obj (⊤_ C)) B)) |
| 81 | (t : FormalCoproduct.mk ρ T ⟶ FormalCoproduct.mk μ V) |
| 82 | (O : Opens X) (hW : ∀ i, F.obj (W i) ≤ O) (hB : ∀ i, B i ≤ O) |
| 83 | (hglobal : F.obj (⊤_ C) ⊔ O = ⊤) (q : ℕ) |
| 84 | [IsIso (RelativeCech.Refinement.homology (F.obj (⊤_ C)) B J s |
| 85 | (Relative.SupportedExtension.underlying.{u,v,z} R X K) q)] |
| 86 | [IsIso (homologyMap (OrderedCech.Refinement.totalMap V T t |
| 87 | (Relative.SupportedExtension.underlying.{u,v,z} R X K)) q)] |
| 88 | |
| 89 | include hB in |
| 90 | theorem edge_comparison : |
| 91 | homologyMap (Supported.OrderedCechEdge.map.{u,v,v,z} R X F W O K hW) q ≫ |
| 92 | PresheafCover.Comparison.comparison F W B J r s V T l t |
| 93 | (Relative.SupportedExtension.underlying.{u,v,z} R X K) q = |
| 94 | homologyMap (Supported.SectionsExcision.extensionComplex O (F.obj (⊤_ C)) hglobal K) q ≫ |
| 95 | homologyMap (Presheaf.OrderedCechEdge.edge V |
| 96 | (Relative.SupportedExtension.underlying.{u,v,z} R X K)) q := by |
| 97 | let P := Relative.SupportedExtension.underlying.{u,v,z} R X K |
| 98 | let A := F.obj (⊤_ C) |
| 99 | let hA := Supported.CechAmbientExtension.relative_global X F O hglobal |
| 100 | let hJ : ∀ j, J j ≤ O := fun j => (leOfHom (r.φ j)).trans (hW (r.f j)) |
| 101 | let eF := homologyMap (Supported.OrderedCechEdge.map.{u,v,v,z} R X F W O K hW) q |
| 102 | let a := homologyMap (AugmentedCech.AmbientTotal.totalIso F W P).hom q |
| 103 | let eI := homologyMap (Supported.CechAmbientExtension.sourceIso R X F O K).hom q |
| 104 | let eW := homologyMap (Supported.OrderedCechEdge.map.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) |
| 105 | (F.obj ∘ W) O K (fun i => inf_le_right.trans (hW i))) q |
| 106 | let eB := homologyMap (Supported.OrderedCechEdge.map.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) |
| 107 | B O K (fun i => inf_le_right.trans (hB i))) q |
| 108 | let eJ := homologyMap (Supported.OrderedCechEdge.map.{u,v,v,z} R X (RelativeCech.Intersections.intersect A) |
| 109 | J O K (fun i => inf_le_right.trans (hJ i))) q |
| 110 | let rmap := RelativeCech.Refinement.homology A (F.obj ∘ W) J r P q |
| 111 | let smap := RelativeCech.Refinement.homology A B J s P q |
| 112 | let d := homologyMap (RelativeCech.Total.map A B P) q |
| 113 | let gmap := Presheaf.OrderedCover.Comparison.comparison (RelativeCech.Intersections.cover A B) V T l t P q |
| 114 | let eExt := homologyMap (Supported.SectionsExcision.extensionComplex O |
| 115 | ((RelativeCech.Intersections.intersect A).obj (⊤_ (Opens X))) hA K) q |
| 116 | let eOut := homologyMap (Supported.SectionsExcision.extensionComplex O A hglobal K) q |
| 117 | let eCover := homologyMap (Presheaf.OrderedCechEdge.edge (RelativeCech.Intersections.cover A B) P) q |
| 118 | let eTarget := homologyMap (Presheaf.OrderedCechEdge.edge V P) q |
| 119 | have ha := congrArg (fun a => homologyMap a q) |
| 120 | (Supported.CechAmbientExtension.ambient_edge R X F W O K hglobal hW) |
| 121 | simp only [homologyMap_comp] at ha |
| 122 | change eF ≫ a = eI ≫ eW at ha |
| 123 | have hr := congrArg (fun a => homologyMap a q) |
| 124 | (relative_edge R X K A (F.obj ∘ W) J r O hW hJ) |
| 125 | simp only [homologyMap_comp] at hr |
| 126 | change eW ≫ rmap = eJ at hr |
| 127 | have hs := congrArg (fun a => homologyMap a q) |
| 128 | (relative_edge R X K A B J s O hB hJ) |
| 129 | simp only [homologyMap_comp] at hs |
| 130 | change eB ≫ smap = eJ at hs |
| 131 | have he := congrArg (fun a => homologyMap a q) |
| 132 | (Relative.SupportedExtension.comparison R X A B O K hA hB) |
| 133 | simp only [Relative.SupportedExtension.relativeMap, |
| 134 | Relative.SupportedExtension.globalMap, homologyMap_comp] at he |
| 135 | change eB ≫ d = eExt ≫ eCover at he |
| 136 | have hI := congrArg (fun a => homologyMap a q) |
| 137 | (Supported.CechAmbientExtension.extension R X F O K hglobal) |
| 138 | simp only [homologyMap_comp] at hI |
| 139 | change eI ≫ eExt = eOut at hI |
| 140 | have hg : eCover ≫ gmap = eTarget := |
| 141 | Presheaf.OrderedCover.Comparison.edge (RelativeCech.Intersections.cover A B) V T l t P q |
| 142 | dsimp only [PresheafCover.Comparison.comparison, |
| 143 | Relative.PresheafCommonRefinement.comparison] |
| 144 | simp only [homologyMapIso_hom, Category.assoc] |
| 145 | change eF ≫ a ≫ rmap ≫ inv smap ≫ d ≫ gmap = eOut ≫ eTarget |
| 146 | calc |
| 147 | _ = eI ≫ eW ≫ rmap ≫ inv smap ≫ d ≫ gmap := by |
| 148 | rw [← Category.assoc eF a, ha, Category.assoc] |
| 149 | _ = eI ≫ eJ ≫ inv smap ≫ d ≫ gmap := by |
| 150 | rw [← Category.assoc eW rmap, hr] |
| 151 | _ = eI ≫ eB ≫ d ≫ gmap := by |
| 152 | rw [← hs] |
| 153 | simp only [Category.assoc, IsIso.hom_inv_id_assoc] |
| 154 | _ = eI ≫ eExt ≫ eCover ≫ gmap := by |
| 155 | rw [← Category.assoc eB d, he] |
| 156 | simp only [Category.assoc] |
| 157 | _ = _ := by rw [← Category.assoc eI eExt, hI, hg] |
| 158 | |
| 159 | variable (hcover : F.obj (⊤_ C) ⊓ O ≤ ⨆ i, F.obj (W i)) |
| 160 | (hrows : ∀ n m, ((Supported.OrderedCechEdge.bicomplex.{u,v,v,z} R X F W K).X n).ExactAt (m+1)) |
| 161 | |
| 162 | include hB in |
| 163 | theorem comparison : |
| 164 | PresheafCover.Comparison.comparison F W B J r s V T l t |
| 165 | (Relative.SupportedExtension.underlying.{u,v,z} R X K) q = |
| 166 | Supported.OrderedCech.Comparison.forgetSupport.{u,v,v,z} |
| 167 | R X F W O K hW hcover hrows hglobal q ≫ |
| 168 | homologyMap (Presheaf.OrderedCechEdge.edge V |
| 169 | (Relative.SupportedExtension.underlying.{u,v,z} R X K)) q := by |
| 170 | let := Supported.OrderedCech.Comparison.quasiIso.{u,v,v,z} |
| 171 | R X F W O K hW hcover hrows |
| 172 | apply (cancel_epi (homologyMap |
| 173 | (Supported.OrderedCechEdge.map.{u,v,v,z} R X F W O K hW) q)).mp |
| 174 | exact (edge_comparison R X K F W B J r s V T l t O hW hB hglobal q).trans |
| 175 | (((congrArg (fun a => a ≫ homologyMap (Presheaf.OrderedCechEdge.edge V |
| 176 | (Relative.SupportedExtension.underlying.{u,v,z} R X K)) q) |
| 177 | (Supported.OrderedCech.Comparison.map_forgetSupport.{u,v,v,z} |
| 178 | R X F W O K hW hcover hrows hglobal q)).symm).trans (Category.assoc _ _ _)) |
| 179 | |
| 180 | end |
| 181 | |
| 182 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SupportedCover.Comparison |