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.AlgebraicGeometry.CycleClass.Geometric.LocalHomology |
| 2 | import Mathlib.Topology.Sheaves.Stalks |
| 3 | |
| 4 | /-! # Local Homology Presheaf -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # The presheaf of local relative singular homology |
| 12 | |
| 13 | The value on an open set `U` is the genuine relative group `H_n(X, X ∖ U; ℤ)`. |
| 14 | Inclusions `U ⊆ V` give restriction maps by the actual identity map of pairs |
| 15 | `(X, X ∖ V) → (X, X ∖ U)`. For every point, these maps define a canonical |
| 16 | comparison from the actual presheaf stalk to the local relative homology group. |
| 17 | |
| 18 | No sheaf property or orientation assertion is assumed. |
| 19 | -/ |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 22 | |
| 23 | set_option backward.defeqAttrib.useBackward true |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | set_option backward.isDefEq.respectTransparency.types false |
| 26 | |
| 27 | variable (X : TopCat.{0}) |
| 28 | |
| 29 | /-- Restriction in a support set is the identity map of the complementary pairs. -/ |
| 30 | def relativeComplementChainRestriction {U V : Set X} (hUV : U ⊆ V) : |
| 31 | LocalHomology.Cycles.relativeSingularChains X Vᶜ ⟶ LocalHomology.Cycles.relativeSingularChains X Uᶜ := |
| 32 | LocalHomology.Cycles.relativeSingularChainsMap (𝟙 X) (fun _ hy hU => hy (hUV hU)) |
| 33 | |
| 34 | @[simp] |
| 35 | theorem relativeComplementChainRestriction_refl (U : Set X) : |
| 36 | relativeComplementChainRestriction X (Set.Subset.refl U) = |
| 37 | 𝟙 (LocalHomology.Cycles.relativeSingularChains X Uᶜ) := |
| 38 | LocalHomology.Cycles.relativeSingularChainsMap_id X Uᶜ |
| 39 | |
| 40 | /-- Restrictions compose with their actual identity maps of pairs. -/ |
| 41 | theorem relativeComplementChainRestriction_trans {U V W : Set X} |
| 42 | (hUV : U ⊆ V) (hVW : V ⊆ W) : |
| 43 | relativeComplementChainRestriction X hVW ≫ relativeComplementChainRestriction X hUV = |
| 44 | relativeComplementChainRestriction X (hUV.trans hVW) := by |
| 45 | unfold relativeComplementChainRestriction |
| 46 | rw [LocalHomology.Cycles.relativeSingularChainsMap_comp] |
| 47 | simp only [Category.id_comp] |
| 48 | |
| 49 | /-- Restriction commutes with projection of the same ordinary singular chain. -/ |
| 50 | @[reassoc] |
| 51 | theorem relativeComplementChainRestriction_projection {U V : Set X} (hUV : U ⊆ V) : |
| 52 | LocalHomology.Cycles.relativeChainProjection X Vᶜ ≫ relativeComplementChainRestriction X hUV = |
| 53 | LocalHomology.Cycles.relativeChainProjection X Uᶜ := by |
| 54 | unfold relativeComplementChainRestriction |
| 55 | rw [LocalHomology.Cycles.relativeChainProjection_naturality, CategoryTheory.Functor.map_id, Category.id_comp] |
| 56 | |
| 57 | /-- The genuine presheaf of relative singular-chain complexes. -/ |
| 58 | def localHomologyChainPresheaf : |
| 59 | X.Presheaf (ChainComplex (ModuleCat.{0} ℤ) ℕ) where |
| 60 | obj U := LocalHomology.Cycles.relativeSingularChains X (U.unop : Set X)ᶜ |
| 61 | map f := relativeComplementChainRestriction X f.unop.le |
| 62 | map_id U := relativeComplementChainRestriction_refl X (U.unop : Set X) |
| 63 | map_comp f g := (relativeComplementChainRestriction_trans X g.unop.le f.unop.le).symm |
| 64 | |
| 65 | /-- The actual local-homology presheaf, before any sheafification. -/ |
| 66 | def localHomologyPresheaf (n : ℕ) : X.Presheaf (ModuleCat.{0} ℤ) := |
| 67 | localHomologyChainPresheaf X ⋙ |
| 68 | HomologicalComplex.homologyFunctor (ModuleCat.{0} ℤ) (ComplexShape.down ℕ) n |
| 69 | |
| 70 | @[simp] |
| 71 | theorem localHomologyPresheaf_obj (n : ℕ) (U : Opens X) : |
| 72 | (localHomologyPresheaf X n).obj (op U) = |
| 73 | LocalHomology.Cycles.relativeSingularHomology X (U : Set X)ᶜ n := rfl |
| 74 | |
| 75 | /-- The map to local chains at a point, induced by the identity of `X`. -/ |
| 76 | def relativeComplementChainToPoint (U : Set X) (x : X) (hx : x ∈ U) : |
| 77 | LocalHomology.Cycles.relativeSingularChains X Uᶜ ⟶ LocalHomology.Cycles.relativeSingularChains X ({x}ᶜ : Set X) := |
| 78 | LocalHomology.Cycles.relativeSingularChainsMap (𝟙 X) (by |
| 79 | intro y hy |
| 80 | change y ≠ x |
| 81 | intro hyx |
| 82 | exact hy (hyx.symm ▸ hx)) |
| 83 | |
| 84 | /-- Ordinary projection followed by restriction to a point is the ordinary |
| 85 | projection to the actual local relative-chain complex. -/ |
| 86 | @[reassoc] |
| 87 | theorem relativeComplementChainToPoint_projection (U : Set X) (x : X) (hx : x ∈ U) : |
| 88 | LocalHomology.Cycles.relativeChainProjection X Uᶜ ≫ relativeComplementChainToPoint X U x hx = |
| 89 | LocalHomology.Cycles.relativeChainProjection X ({x}ᶜ : Set X) := by |
| 90 | unfold relativeComplementChainToPoint |
| 91 | rw [LocalHomology.Cycles.relativeChainProjection_naturality, CategoryTheory.Functor.map_id, Category.id_comp] |
| 92 | |
| 93 | /-- The maps to local chains are compatible with every restriction. -/ |
| 94 | theorem relativeComplementChainRestriction_toPoint {U V : Set X} (hUV : U ⊆ V) |
| 95 | (x : X) (hx : x ∈ U) : |
| 96 | relativeComplementChainRestriction X hUV ≫ relativeComplementChainToPoint X U x hx = |
| 97 | relativeComplementChainToPoint X V x (hUV hx) := by |
| 98 | unfold relativeComplementChainRestriction relativeComplementChainToPoint |
| 99 | rw [LocalHomology.Cycles.relativeSingularChainsMap_comp] |
| 100 | simp only [Category.id_comp] |
| 101 | |
| 102 | /-- The induced map from relative homology over a support set to local homology. -/ |
| 103 | def localHomologyToPoint (U : Set X) (x : X) (hx : x ∈ U) (n : ℕ) : |
| 104 | LocalHomology.Cycles.relativeSingularHomology X Uᶜ n ⟶ LocalHomology.Cycles.localSingularHomology X x n := |
| 105 | HomologicalComplex.homologyMap (relativeComplementChainToPoint X U x hx) n |
| 106 | |
| 107 | /-- The compatible neighborhood maps form a cocone with actual local homology as vertex. -/ |
| 108 | def localHomologyStalkCocone (x : X) (n : ℕ) : |
| 109 | Cocone ((OpenNhds.inclusion x).op ⋙ localHomologyPresheaf X n) where |
| 110 | pt := LocalHomology.Cycles.localSingularHomology X x n |
| 111 | ι.app U := localHomologyToPoint X (U.unop.val : Set X) x U.unop.property n |
| 112 | ι.naturality U V f := by |
| 113 | change HomologicalComplex.homologyMap (relativeComplementChainRestriction X f.unop.le) n ≫ |
| 114 | HomologicalComplex.homologyMap |
| 115 | (relativeComplementChainToPoint X (V.unop.val : Set X) x V.unop.property) n = |
| 116 | HomologicalComplex.homologyMap |
| 117 | (relativeComplementChainToPoint X (U.unop.val : Set X) x U.unop.property) n ≫ 𝟙 _ |
| 118 | rw [Category.comp_id, ← HomologicalComplex.homologyMap_comp, |
| 119 | relativeComplementChainRestriction_toPoint] |
| 120 | |
| 121 | /-- The canonical map from the genuine presheaf stalk to local relative homology. -/ |
| 122 | def localHomologyStalkToPoint (x : X) (n : ℕ) : |
| 123 | (localHomologyPresheaf X n).stalk x ⟶ LocalHomology.Cycles.localSingularHomology X x n := |
| 124 | colimit.desc _ (localHomologyStalkCocone X x n) |
| 125 | |
| 126 | /-- The stalk comparison has precisely the expected values on actual germs. -/ |
| 127 | @[reassoc] |
| 128 | theorem localHomologyStalkToPoint_germ (x : X) (n : ℕ) (U : Opens X) (hx : x ∈ U) : |
| 129 | (localHomologyPresheaf X n).germ U x hx ≫ localHomologyStalkToPoint X x n = |
| 130 | localHomologyToPoint X (U : Set X) x hx n := |
| 131 | colimit.ι_desc (localHomologyStalkCocone X x n) (op (⟨U, hx⟩ : OpenNhds x)) |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomologyPresheaf.Cycles |