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.Affine.OrderedInjective |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.OrderedCoverRefinement |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Additive.AugmentedCechRefinement |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.RefinementProductReflect |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCech.RefinementQuasiIso |
| 6 | |
| 7 | /-! # Single Cech Refinement -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.SingleCechRefinement |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Affine refinements act by the actual original maps on a single |
| 14 | quasicoherent sheaf, in the same presheaf coordinates as its chosen |
| 15 | injective resolution. -/ |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | private theorem square_isIso {D : Type*} [Category D] {A B C E : D} |
| 21 | (a : A ⟶ B) (b : C ⟶ E) (e : A ⟶ C) (f : B ⟶ E) |
| 22 | [IsIso a] [IsIso e] [IsIso f] (h : e ≫ b = a ≫ f) : IsIso b := by |
| 23 | have hb : b = inv e ≫ a ≫ f := by |
| 24 | apply (cancel_epi e).mp |
| 25 | simpa only [Category.assoc, IsIso.hom_inv_id_assoc] using h |
| 26 | rw [hb] |
| 27 | infer_instance |
| 28 | |
| 29 | universe u |
| 30 | variable {X : Scheme.{u}} [X.IsSeparated] |
| 31 | (A : X.Opens) (hA : IsAffineOpen A) |
| 32 | {ι κ : Type u} [LinearOrder ι] [LinearOrder κ] |
| 33 | (U : ι → X.Opens) (V : κ → X.Opens) |
| 34 | (r : FormalCoproduct.mk κ V ⟶ FormalCoproduct.mk ι U) |
| 35 | (O : X.Opens) |
| 36 | (hU : iSup (fun j => A ⊓ U j) = O) (hV : iSup (fun j => A ⊓ V j) = O) |
| 37 | (haU : ∀ j, IsAffineOpen (U j)) (haV : ∀ j, IsAffineOpen (V j)) |
| 38 | |
| 39 | include hA O hU hV haU haV in |
| 40 | omit [LinearOrder ι] [LinearOrder κ] in |
| 41 | theorem relative_row (M : X.Modules) [M.IsQuasicoherent] : |
| 42 | QuasiIso (GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map U V r |
| 43 | (RelativeCech.Intersections.presheaf A M.presheaf)) := by |
| 44 | let F := RelativeCech.Intersections.intersect A |
| 45 | let : ∀ (n : ℕ) (a : Fin (n+1) → ι), PreservesLimit (Discrete.functor (U ∘ a)) F := |
| 46 | fun _ _ => RelativeCech.RefinementQuasiIso.intersection_preserves_product A _ |
| 47 | let : ∀ (n : ℕ) (a : Fin (n+1) → κ), PreservesLimit (Discrete.functor (V ∘ a)) F := |
| 48 | fun _ _ => RelativeCech.RefinementQuasiIso.intersection_preserves_product A _ |
| 49 | let : QuasiIso (GeometricComparison.NonemptyCech.Refinement.NonemptyCechRefinement.map (F.obj ∘ U) (F.obj ∘ V) |
| 50 | (Cech.RefinementProductCoordinates.mappedCover F U V r) M.presheaf) := |
| 51 | Open.CoverRefinementQuasiIso.Cech.quasiIso (F.obj ∘ U) (F.obj ∘ V) |
| 52 | (Cech.RefinementProductCoordinates.mappedCover F U V r) M O hU hV |
| 53 | (fun j => hA.inf (haU j)) (fun j => hA.inf (haV j)) |
| 54 | exact Cech.RefinementProductReflect.Coordinates.reflect F U V r M.presheaf |
| 55 | |
| 56 | include hA O hU hV haU haV in |
| 57 | theorem relative_complex (K : CochainComplex X.Modules ℕ) |
| 58 | [∀ q, (K.X q).IsQuasicoherent] : |
| 59 | QuasiIso (RelativeCech.Refinement.map A U V r (Relative.AdditiveCechConcentration.coefficients K)) := |
| 60 | Additive.AugmentedCechRefinement.total_quasiIso U V r _ |
| 61 | (fun q => relative_row A hA U V r O hU hV haU haV (K.X q)) |
| 62 | |
| 63 | variable (N : X.Modules) (c : ℕ) |
| 64 | |
| 65 | def coefficientsIso : Relative.AdditiveCechConcentration.coefficients ((single X.Modules (.up ℕ) c).obj N) ≅ |
| 66 | OrderedInjective.Comparison.sourcePresheaf N c := |
| 67 | ((sheafToPresheaf (Opens.grothendieckTopology X) AddCommGrpCat.{u}).mapHomologicalComplex |
| 68 | (.up ℕ)).mapIso |
| 69 | ((singleMapHomologicalComplex (SheafOfModules.toSheaf X.ringCatSheaf) (.up ℕ) c).app N) |
| 70 | |
| 71 | omit [X.IsSeparated] in |
| 72 | private theorem relative_map_isIso {K L : CochainComplex (X.Opensᵒᵖ ⥤ AddCommGrpCat.{u}) ℕ} |
| 73 | (a : K ⟶ L) [IsIso a] (q : ℕ) : |
| 74 | IsIso (homologyMap (RelativeCech.Total.sourceMap A U a) q) := by |
| 75 | change IsIso ((((RelativeCech.Total.localFunctor A U).mapHomologicalComplex (.up ℕ)) ⋙ |
| 76 | HomologicalComplex₂.totalFunctor AddCommGrpCat.{u} (.up ℕ) (.up ℕ) (.up ℕ) ⋙ |
| 77 | homologyFunctor AddCommGrpCat.{u} (.up ℕ) q).map a) |
| 78 | infer_instance |
| 79 | |
| 80 | variable [N.IsQuasicoherent] |
| 81 | |
| 82 | include hA O hU hV haU haV in |
| 83 | theorem relative (q : ℕ) : IsIso (RelativeCech.Refinement.homology A U V r |
| 84 | (OrderedInjective.Comparison.sourcePresheaf N c) q) := by |
| 85 | let : ∀ k, (((single X.Modules (.up ℕ) c).obj N).X k).IsQuasicoherent := |
| 86 | QuasicoherentTruncation.single N c |
| 87 | let := relative_complex A hA U V r O hU hV haU haV ((single X.Modules (.up ℕ) c).obj N) |
| 88 | let : IsIso (RelativeCech.Refinement.homology A U V r |
| 89 | (Relative.AdditiveCechConcentration.coefficients ((single X.Modules (.up ℕ) c).obj N)) q) := by |
| 90 | change IsIso (homologyMap (RelativeCech.Refinement.map A U V r |
| 91 | (Relative.AdditiveCechConcentration.coefficients ((single X.Modules (.up ℕ) c).obj N))) q) |
| 92 | infer_instance |
| 93 | let := relative_map_isIso A U (coefficientsIso N c).hom q |
| 94 | let := relative_map_isIso A V (coefficientsIso N c).hom q |
| 95 | exact square_isIso _ _ _ _ |
| 96 | (RelativeCech.Refinement.homology_naturality A U V r (coefficientsIso N c).hom q) |
| 97 | |
| 98 | include haU haV in |
| 99 | theorem ordered (hUt : iSup U = ⊤) (hVt : iSup V = ⊤) (q : ℕ) : |
| 100 | IsIso (homologyMap (OrderedCech.Refinement.totalMap U V r |
| 101 | (OrderedInjective.Comparison.sourcePresheaf N c)) q) := by |
| 102 | let : ∀ k, (((single X.Modules (.up ℕ) c).obj N).X k).IsQuasicoherent := |
| 103 | QuasicoherentTruncation.single N c |
| 104 | let := Additive.OrderedCoverRefinement.quasiIso U V r hUt hVt haU haV |
| 105 | ((single X.Modules (.up ℕ) c).obj N) |
| 106 | let : IsIso (homologyMap ((Presheaf.OrderedCover.Comparison.totalFunctor U).map |
| 107 | (coefficientsIso N c).hom) q) := by |
| 108 | change IsIso (((Presheaf.OrderedCover.Comparison.totalFunctor U) ⋙ |
| 109 | homologyFunctor AddCommGrpCat.{u} (.up ℕ) q).map (coefficientsIso N c).hom) |
| 110 | infer_instance |
| 111 | let : IsIso (homologyMap ((Presheaf.OrderedCover.Comparison.totalFunctor V).map |
| 112 | (coefficientsIso N c).hom) q) := by |
| 113 | change IsIso (((Presheaf.OrderedCover.Comparison.totalFunctor V) ⋙ |
| 114 | homologyFunctor AddCommGrpCat.{u} (.up ℕ) q).map (coefficientsIso N c).hom) |
| 115 | infer_instance |
| 116 | exact square_isIso _ _ _ _ |
| 117 | (Presheaf.OrderedCover.Comparison.homology_naturality U V r (coefficientsIso N c).hom q) |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.SingleCechRefinement |