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.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 2 | import Mathlib.Algebra.Homology.QuasiIso |
| 3 | import Mathlib.Algebra.Homology.Homotopy |
| 4 | |
| 5 | /-! # Eventually Small -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.EventuallySmall.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # An eventual-subdivision criterion for a genuine chain inclusion |
| 13 | |
| 14 | Let an injective chain map identify a chain complex with a subcomplex of |
| 15 | another one. Suppose compatible endomorphisms of both complexes are each |
| 16 | chain homotopic to the identity, and every ambient chain eventually enters |
| 17 | the subcomplex under iteration. Then the inclusion is a quasi-isomorphism. |
| 18 | |
| 19 | All maps and homotopies in this theorem are actual mathlib chain maps and |
| 20 | homotopies. The theorem does not assume or assert that any unconstructed |
| 21 | geometric subdivision operator satisfies these hypotheses. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.CategoryTheory |
| 25 | open OAI.AlgebraicTopology.Cohomology.Singular.EvaluationNaturality |
| 26 | |
| 27 | variable {R : Type} [CommRing R] |
| 28 | variable {C D : ChainComplex (ModuleCat.{0} R) ℕ} |
| 29 | |
| 30 | /-- Iteration of an actual chain endomorphism. -/ |
| 31 | def iterateChainMap (s : C ⟶ C) : ℕ → (C ⟶ C) |
| 32 | | 0 => 𝟙 C |
| 33 | | N + 1 => iterateChainMap s N ≫ s |
| 34 | |
| 35 | @[simp] |
| 36 | theorem iterateChainMap_apply (s : C ⟶ C) (N n : ℕ) (x : C.X n) : |
| 37 | ((Cycles.iterateChainMap s N).f n) x = ((s.f n)^[N]) x := by |
| 38 | induction N with |
| 39 | | zero => rfl |
| 40 | | succ N ih => |
| 41 | change (s.f n) (((Cycles.iterateChainMap s N).f n) x) = ((s.f n)^[N + 1]) x |
| 42 | rw [ih, Function.iterate_succ_apply'] |
| 43 | |
| 44 | /-- A compatible chain inclusion commutes with all iterates. -/ |
| 45 | theorem iterateChainMap_commute (i : C ⟶ D) (sC : C ⟶ C) (sD : D ⟶ D) |
| 46 | (h : i ≫ sD = sC ≫ i) (N : ℕ) : |
| 47 | i ≫ Cycles.iterateChainMap sD N = Cycles.iterateChainMap sC N ≫ i := by |
| 48 | induction N with |
| 49 | | zero => simp [Cycles.iterateChainMap] |
| 50 | | succ N ih => |
| 51 | calc |
| 52 | i ≫ Cycles.iterateChainMap sD (N + 1) = (i ≫ Cycles.iterateChainMap sD N) ≫ sD := by |
| 53 | simp only [Cycles.iterateChainMap, Category.assoc] |
| 54 | _ = (Cycles.iterateChainMap sC N ≫ i) ≫ sD := by rw [ih] |
| 55 | _ = Cycles.iterateChainMap sC N ≫ (i ≫ sD) := Category.assoc _ _ _ |
| 56 | _ = Cycles.iterateChainMap sC N ≫ (sC ≫ i) := by rw [h] |
| 57 | _ = Cycles.iterateChainMap sC (N + 1) ≫ i := by |
| 58 | simp only [Cycles.iterateChainMap, Category.assoc] |
| 59 | |
| 60 | /-- Iterating an endomorphism homotopic to the identity still acts as the |
| 61 | identity on genuine homology. -/ |
| 62 | theorem iterateChainMap_homologyMap (s : C ⟶ C) (h : _root_.Homotopy s (𝟙 C)) |
| 63 | (N n : ℕ) : |
| 64 | HomologicalComplex.homologyMap (Cycles.iterateChainMap s N) n = 𝟙 (C.homology n) := by |
| 65 | have hs : HomologicalComplex.homologyMap s n = 𝟙 (C.homology n) := by |
| 66 | simpa using h.homologyMap_eq n |
| 67 | induction N with |
| 68 | | zero => simp [Cycles.iterateChainMap] |
| 69 | | succ N ih => |
| 70 | simp only [Cycles.iterateChainMap, HomologicalComplex.homologyMap_comp, ih, hs, |
| 71 | Category.id_comp] |
| 72 | |
| 73 | /-- A represented cycle retains its class under every iterate. -/ |
| 74 | theorem iterateChainMap_class (s : C ⟶ C) (h : _root_.Homotopy s (𝟙 C)) |
| 75 | (N n : ℕ) (z : AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles C n) : |
| 76 | AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap (Cycles.iterateChainMap s N) n z) = AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n z := by |
| 77 | rw [← AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainClass_naturality, iterateChainMap_homologyMap s h N n] |
| 78 | rfl |
| 79 | |
| 80 | /-- Injectivity of a chain inclusion lets one recognize a cycle in the |
| 81 | subcomplex from its image in the ambient complex. -/ |
| 82 | theorem chainMap_preimage_isCycle (i : C ⟶ D) |
| 83 | (hi : ∀ n, Function.Injective (i.f n)) (n : ℕ) (x : C.X n) |
| 84 | (hx : (i.f n) x ∈ AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles D n) : x ∈ AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles C n := by |
| 85 | change (D.d n ((ComplexShape.down ℕ).next n)) ((i.f n) x) = 0 at hx |
| 86 | change (C.d n ((ComplexShape.down ℕ).next n)) x = 0 |
| 87 | apply hi ((ComplexShape.down ℕ).next n) |
| 88 | simpa only [map_zero, ConcreteCategory.comp_apply] using |
| 89 | (ConcreteCategory.congr_hom (i.comm n ((ComplexShape.down ℕ).next n)) x).symm.trans hx |
| 90 | |
| 91 | /-- Moving a representative cycle into the subcomplex proves surjectivity on |
| 92 | homology. -/ |
| 93 | theorem eventuallySmall_homology_surjective (i : C ⟶ D) |
| 94 | (hi : ∀ n, Function.Injective (i.f n)) (sD : D ⟶ D) |
| 95 | (hD : _root_.Homotopy sD (𝟙 D)) |
| 96 | (hevent : ∀ (n : ℕ) (x : D.X n), |
| 97 | ∃ (N : ℕ) (y : C.X n), (i.f n) y = ((sD.f n)^[N]) x) |
| 98 | (n : ℕ) : Function.Surjective (HomologicalComplex.homologyMap i n) := by |
| 99 | intro y |
| 100 | obtain ⟨z, rfl⟩ := AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_surjective D n y |
| 101 | obtain ⟨N, x, hx⟩ := hevent n (z : D.X n) |
| 102 | have hx' : (i.f n) x = ((Cycles.iterateChainMap sD N).f n) (z : D.X n) := by |
| 103 | rw [iterateChainMap_apply] |
| 104 | exact hx |
| 105 | have hxc : x ∈ AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainCycles C n := chainMap_preimage_isCycle i hi n x (by |
| 106 | rw [hx'] |
| 107 | exact (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap (Cycles.iterateChainMap sD N) n z).property) |
| 108 | refine ⟨AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n ⟨x, hxc⟩, ?_⟩ |
| 109 | rw [AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainClass_naturality] |
| 110 | have heq : AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap i n ⟨x, hxc⟩ = AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap (Cycles.iterateChainMap sD N) n z := |
| 111 | Subtype.ext hx' |
| 112 | rw [heq] |
| 113 | exact iterateChainMap_class sD hD N n z |
| 114 | |
| 115 | /-- Moving an ambient bounding chain into the subcomplex, and using the |
| 116 | restricted homotopy, proves injectivity on homology. -/ |
| 117 | theorem eventuallySmall_homology_injective (i : C ⟶ D) |
| 118 | (hi : ∀ n, Function.Injective (i.f n)) (sC : C ⟶ C) (sD : D ⟶ D) |
| 119 | (hcomm : i ≫ sD = sC ≫ i) (hC : _root_.Homotopy sC (𝟙 C)) |
| 120 | (hevent : ∀ (n : ℕ) (x : D.X n), |
| 121 | ∃ (N : ℕ) (y : C.X n), (i.f n) y = ((sD.f n)^[N]) x) |
| 122 | (n : ℕ) : Function.Injective (HomologicalComplex.homologyMap i n) := by |
| 123 | change Function.Injective (HomologicalComplex.homologyMap i n).hom |
| 124 | apply (injective_iff_map_eq_zero (HomologicalComplex.homologyMap i n).hom).mpr |
| 125 | intro y hy |
| 126 | obtain ⟨z, rfl⟩ := AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_surjective C n y |
| 127 | change (HomologicalComplex.homologyMap i n) (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n z) = 0 at hy |
| 128 | rw [AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainClass_naturality] at hy |
| 129 | obtain ⟨b, hb⟩ := (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_eq_zero_iff_exists D n (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap i n z)).mp hy |
| 130 | change (D.d (n + 1) n) b = (i.f n) (z : C.X n) at hb |
| 131 | obtain ⟨N, w, hw⟩ := hevent (n + 1) b |
| 132 | have hw' : (i.f (n + 1)) w = ((Cycles.iterateChainMap sD N).f (n + 1)) b := by |
| 133 | rw [iterateChainMap_apply] |
| 134 | exact hw |
| 135 | have hc := congrArg (fun f : C ⟶ D => (f.f n) (z : C.X n)) |
| 136 | (iterateChainMap_commute i sC sD hcomm N) |
| 137 | change ((Cycles.iterateChainMap sD N).f n) ((i.f n) (z : C.X n)) = |
| 138 | (i.f n) (((Cycles.iterateChainMap sC N).f n) (z : C.X n)) at hc |
| 139 | have hbound : (C.d (n + 1) n) w = |
| 140 | ((Cycles.iterateChainMap sC N).f n) (z : C.X n) := by |
| 141 | apply hi n |
| 142 | calc |
| 143 | (i.f n) ((C.d (n + 1) n) w) = (D.d (n + 1) n) ((i.f (n + 1)) w) := |
| 144 | by simpa only [ConcreteCategory.comp_apply] using |
| 145 | (ConcreteCategory.congr_hom (i.comm (n + 1) n) w).symm |
| 146 | _ = (D.d (n + 1) n) (((Cycles.iterateChainMap sD N).f (n + 1)) b) := by rw [hw'] |
| 147 | _ = ((Cycles.iterateChainMap sD N).f n) ((D.d (n + 1) n) b) := |
| 148 | by simpa only [ConcreteCategory.comp_apply] using |
| 149 | ConcreteCategory.congr_hom ((Cycles.iterateChainMap sD N).comm (n + 1) n) b |
| 150 | _ = ((Cycles.iterateChainMap sD N).f n) ((i.f n) (z : C.X n)) := by rw [hb] |
| 151 | _ = (i.f n) (((Cycles.iterateChainMap sC N).f n) (z : C.X n)) := hc |
| 152 | have hzN : AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass C n (AlgebraicTopology.Cohomology.Singular.EvaluationNaturality.chainCycleMap (Cycles.iterateChainMap sC N) n z) = 0 := |
| 153 | (AlgebraicTopology.Cohomology.Singular.ChainRepresentatives.chainClass_eq_zero_iff_exists C n _).mpr ⟨w, hbound⟩ |
| 154 | rw [iterateChainMap_class sC hC N n z] at hzN |
| 155 | exact hzN |
| 156 | |
| 157 | /-- A genuine chain inclusion is a quasi-isomorphism when compatible |
| 158 | endomorphisms, chain homotopic to the identity on both complexes, eventually |
| 159 | move every ambient chain into its image. -/ |
| 160 | theorem quasiIso_of_eventuallySmall (i : C ⟶ D) |
| 161 | (hi : ∀ n, Function.Injective (i.f n)) (sC : C ⟶ C) (sD : D ⟶ D) |
| 162 | (hcomm : i ≫ sD = sC ≫ i) |
| 163 | (hC : _root_.Homotopy sC (𝟙 C)) (hD : _root_.Homotopy sD (𝟙 D)) |
| 164 | (hevent : ∀ (n : ℕ) (x : D.X n), |
| 165 | ∃ (N : ℕ) (y : C.X n), (i.f n) y = ((sD.f n)^[N]) x) : |
| 166 | _root_.QuasiIso i := by |
| 167 | apply (quasiIso_iff i).mpr |
| 168 | intro n |
| 169 | rw [quasiIsoAt_iff_isIso_homologyMap, |
| 170 | ConcreteCategory.isIso_iff_bijective] |
| 171 | exact ⟨eventuallySmall_homology_injective i hi sC sD hcomm hC hevent n, |
| 172 | eventuallySmall_homology_surjective i hi sD hD hevent n⟩ |
| 173 | |
| 174 | end |
| 175 | |
| 176 | end OAI.AlgebraicGeometry.CycleClass.Geometric.EventuallySmall.Cycles |