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.Algebra.Homology.HomologySequenceLemmas |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | |
| 5 | /-! # Relative Homology Exact -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeHomologyExact.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # The long exact sequence of integral singular homology of a pair |
| 13 | |
| 14 | The boundary maps below are the connecting morphisms of the proved short exact |
| 15 | sequence of genuine singular chain complexes. No local orientation, excision, |
| 16 | or fundamental-class assertion is assumed. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | |
| 21 | /-- Ordinary integral singular homology, computed from mathlib's singular chains. -/ |
| 22 | abbrev integralSingularHomology (X : TopCat.{0}) (n : ℕ) : ModuleCat.{0} ℤ := |
| 23 | (LocalHomology.Cycles.integralSingularChains X).homology n |
| 24 | |
| 25 | /-- The homology map of a continuous map on genuine integral singular chains. -/ |
| 26 | abbrev integralSingularHomologyMap {X Y : TopCat.{0}} (f : X ⟶ Y) (n : ℕ) : |
| 27 | integralSingularHomology X n ⟶ integralSingularHomology Y n := |
| 28 | HomologicalComplex.homologyMap (LocalHomology.Cycles.integralSingularChainFunctor.map f) n |
| 29 | |
| 30 | /-- The homology map induced by the inclusion of the subspace. -/ |
| 31 | abbrev subspaceHomologyInclusion (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 32 | integralSingularHomology (TopCat.of A) n ⟶ integralSingularHomology X n := |
| 33 | HomologicalComplex.homologyMap (LocalHomology.Cycles.subspaceChainInclusion X A) n |
| 34 | |
| 35 | /-- The map from absolute homology to homology relative to the subspace. -/ |
| 36 | abbrev relativeHomologyProjection (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 37 | integralSingularHomology X n ⟶ LocalHomology.Cycles.relativeSingularHomology X A n := |
| 38 | HomologicalComplex.homologyMap (LocalHomology.Cycles.relativeChainProjection X A) n |
| 39 | |
| 40 | /-- The genuine connecting boundary `H_(n+1)(X,A;ℤ) → H_n(A;ℤ)`. -/ |
| 41 | def relativeHomologyBoundary (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 42 | LocalHomology.Cycles.relativeSingularHomology X A (n + 1) ⟶ |
| 43 | integralSingularHomology (TopCat.of A) n := |
| 44 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A).δ (n + 1) n rfl |
| 45 | |
| 46 | @[reassoc (attr := simp)] |
| 47 | theorem subspaceHomologyInclusion_projection (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 48 | subspaceHomologyInclusion X A n ≫ relativeHomologyProjection X A n = 0 := by |
| 49 | change HomologicalComplex.homologyMap (LocalHomology.Cycles.subspaceChainInclusion X A) n ≫ |
| 50 | HomologicalComplex.homologyMap (LocalHomology.Cycles.relativeChainProjection X A) n = 0 |
| 51 | rw [← HomologicalComplex.homologyMap_comp, LocalHomology.Cycles.subspaceChainInclusion_projection, |
| 52 | HomologicalComplex.homologyMap_zero] |
| 53 | |
| 54 | @[reassoc (attr := simp)] |
| 55 | theorem relativeHomologyProjection_boundary (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 56 | relativeHomologyProjection X A (n + 1) ≫ relativeHomologyBoundary X A n = 0 := |
| 57 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A).comp_δ (n + 1) n rfl |
| 58 | |
| 59 | @[reassoc (attr := simp)] |
| 60 | theorem relativeHomologyBoundary_inclusion (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 61 | relativeHomologyBoundary X A n ≫ subspaceHomologyInclusion X A n = 0 := |
| 62 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A).δ_comp (n + 1) n rfl |
| 63 | |
| 64 | /-- Exactness at absolute homology in every degree, including degree zero. -/ |
| 65 | theorem relativeHomology_exact_absolute (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 66 | (ShortComplex.mk (subspaceHomologyInclusion X A n) |
| 67 | (relativeHomologyProjection X A n) |
| 68 | (subspaceHomologyInclusion_projection X A n)).Exact := |
| 69 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A).homology_exact₂ n |
| 70 | |
| 71 | /-- Exactness at positive-degree relative homology. -/ |
| 72 | theorem relativeHomology_exact_relative (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 73 | (ShortComplex.mk (relativeHomologyProjection X A (n + 1)) |
| 74 | (relativeHomologyBoundary X A n) |
| 75 | (relativeHomologyProjection_boundary X A n)).Exact := |
| 76 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A).homology_exact₃ (n + 1) n rfl |
| 77 | |
| 78 | /-- Exactness at subspace homology in every degree, including degree zero. -/ |
| 79 | theorem relativeHomology_exact_subspace (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 80 | (ShortComplex.mk (relativeHomologyBoundary X A n) |
| 81 | (subspaceHomologyInclusion X A n) |
| 82 | (relativeHomologyBoundary_inclusion X A n)).Exact := |
| 83 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A).homology_exact₁ (n + 1) n rfl |
| 84 | |
| 85 | /-- An absolute class comes from the subspace exactly when its relative class vanishes. -/ |
| 86 | theorem relativeHomology_range_inclusion (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 87 | LinearMap.range (subspaceHomologyInclusion X A n).hom = |
| 88 | LinearMap.ker (relativeHomologyProjection X A n).hom := |
| 89 | (relativeHomology_exact_absolute X A n).moduleCat_range_eq_ker |
| 90 | |
| 91 | /-- A positive-degree relative class lifts absolutely exactly when its boundary vanishes. -/ |
| 92 | theorem relativeHomology_range_projection (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 93 | LinearMap.range (relativeHomologyProjection X A (n + 1)).hom = |
| 94 | LinearMap.ker (relativeHomologyBoundary X A n).hom := |
| 95 | (relativeHomology_exact_relative X A n).moduleCat_range_eq_ker |
| 96 | |
| 97 | /-- A subspace class bounds relatively exactly when its image in the ambient space vanishes. -/ |
| 98 | theorem relativeHomology_range_boundary (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 99 | LinearMap.range (relativeHomologyBoundary X A n).hom = |
| 100 | LinearMap.ker (subspaceHomologyInclusion X A n).hom := |
| 101 | (relativeHomology_exact_subspace X A n).moduleCat_range_eq_ker |
| 102 | |
| 103 | /-- The degree-zero absolute-to-relative map is surjective. -/ |
| 104 | instance relativeHomologyProjection_zero_epi (X : TopCat.{0}) (A : Set X) : |
| 105 | Epi (relativeHomologyProjection X A 0) := by |
| 106 | apply HomologicalComplex.epi_homologyMap_of_epi_of_not_rel |
| 107 | intro j hj |
| 108 | exact Nat.succ_ne_zero j hj |
| 109 | |
| 110 | /-- A map of topological pairs induces a morphism of the actual short exact chain sequences. -/ |
| 111 | def relativeChainSequenceMap {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 112 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 113 | LocalHomology.Cycles.relativeChainSequence X A ⟶ LocalHomology.Cycles.relativeChainSequence Y B where |
| 114 | τ₁ := LocalHomology.Cycles.integralSingularChainFunctor.map (LocalHomology.Cycles.subspaceMap f h) |
| 115 | τ₂ := LocalHomology.Cycles.integralSingularChainFunctor.map f |
| 116 | τ₃ := LocalHomology.Cycles.relativeSingularChainsMap f h |
| 117 | comm₁₂ := by |
| 118 | change LocalHomology.Cycles.integralSingularChainFunctor.map (LocalHomology.Cycles.subspaceMap f h) ≫ |
| 119 | LocalHomology.Cycles.integralSingularChainFunctor.map (LocalHomology.Cycles.subspaceInclusion Y B) = |
| 120 | LocalHomology.Cycles.integralSingularChainFunctor.map (LocalHomology.Cycles.subspaceInclusion X A) ≫ |
| 121 | LocalHomology.Cycles.integralSingularChainFunctor.map f |
| 122 | rw [← Functor.map_comp, ← Functor.map_comp, LocalHomology.Cycles.subspaceMap_inclusion] |
| 123 | comm₂₃ := (LocalHomology.Cycles.relativeChainProjection_naturality f h).symm |
| 124 | |
| 125 | /-- Connecting boundaries commute with continuous maps of pairs. -/ |
| 126 | @[reassoc] |
| 127 | theorem relativeHomologyBoundary_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 128 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) (n : ℕ) : |
| 129 | relativeHomologyBoundary X A n ≫ |
| 130 | integralSingularHomologyMap (LocalHomology.Cycles.subspaceMap f h) n = |
| 131 | LocalHomology.Cycles.relativeSingularHomologyMap f h (n + 1) ≫ relativeHomologyBoundary Y B n := |
| 132 | HomologicalComplex.HomologySequence.δ_naturality (relativeChainSequenceMap f h) |
| 133 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A) (LocalHomology.Cycles.relativeChainSequence_shortExact Y B) |
| 134 | (n + 1) n rfl |
| 135 | |
| 136 | /-- When two ambient homology groups vanish, the actual relative boundary is an isomorphism. -/ |
| 137 | def relativeHomologyBoundaryIso (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 138 | (hi : IsZero (integralSingularHomology X (n + 1))) |
| 139 | (hj : IsZero (integralSingularHomology X n)) : |
| 140 | LocalHomology.Cycles.relativeSingularHomology X A (n + 1) ≅ |
| 141 | integralSingularHomology (TopCat.of A) n := |
| 142 | (LocalHomology.Cycles.relativeChainSequence_shortExact X A).δIso (n + 1) n rfl hi hj |
| 143 | |
| 144 | @[simp] |
| 145 | theorem relativeHomologyBoundaryIso_hom (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 146 | (hi : IsZero (integralSingularHomology X (n + 1))) |
| 147 | (hj : IsZero (integralSingularHomology X n)) : |
| 148 | (relativeHomologyBoundaryIso X A n hi hj).hom = relativeHomologyBoundary X A n := rfl |
| 149 | |
| 150 | end |
| 151 | |
| 152 | end OAI.AlgebraicGeometry.CycleClass.Geometric.RelativeHomologyExact.Cycles |