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.RepresentativesNaturality |
| 2 | import Mathlib.Algebra.Homology.QuasiIso |
| 3 | import Mathlib.Algebra.Homology.Homotopy |
| 4 | |
| 5 | /-! # Cohomology Span -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Betti.CohomologySpan.Realization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Canonical cohomology comparisons from a span |
| 13 | |
| 14 | The isomorphism is obtained from the actual maps of a span of cochain |
| 15 | complexes, after those maps have been proved to be quasi-isomorphisms. Its |
| 16 | commuting square determines it uniquely. Commuting maps of spans, including |
| 17 | refinements of a common comparison complex, preserve the induced map. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | section General |
| 25 | |
| 26 | variable {D : Type u} [Category.{v} D] [Abelian D] |
| 27 | {A B C A' B' C' : CochainComplex D ℕ} |
| 28 | |
| 29 | /-- The comparison induced by the actual span `A → B ← C`. -/ |
| 30 | def cohomologySpanIso (f : A ⟶ B) (g : C ⟶ B) [QuasiIso f] [QuasiIso g] (n : ℕ) : |
| 31 | A.homology n ≅ C.homology n := |
| 32 | asIso (HomologicalComplex.homologyMap f n) ≪≫ |
| 33 | (asIso (HomologicalComplex.homologyMap g n)).symm |
| 34 | |
| 35 | /-- The defining commuting square of the comparison. -/ |
| 36 | @[reassoc] |
| 37 | theorem cohomologySpanIso_hom_comp (f : A ⟶ B) (g : C ⟶ B) |
| 38 | [QuasiIso f] [QuasiIso g] (n : ℕ) : |
| 39 | (cohomologySpanIso f g n).hom ≫ HomologicalComplex.homologyMap g n = |
| 40 | HomologicalComplex.homologyMap f n := by |
| 41 | simp [cohomologySpanIso] |
| 42 | |
| 43 | /-- This square characterizes the forward comparison uniquely. -/ |
| 44 | theorem cohomologySpanIso_hom_unique (f : A ⟶ B) (g : C ⟶ B) |
| 45 | [QuasiIso f] [QuasiIso g] (n : ℕ) |
| 46 | (h : A.homology n ⟶ C.homology n) |
| 47 | (hh : h ≫ HomologicalComplex.homologyMap g n = HomologicalComplex.homologyMap f n) : |
| 48 | h = (cohomologySpanIso f g n).hom := by |
| 49 | apply (cancel_mono (HomologicalComplex.homologyMap g n)).mp |
| 50 | rw [hh, cohomologySpanIso_hom_comp] |
| 51 | |
| 52 | /-- Reversing the legs reverses the canonical comparison. -/ |
| 53 | theorem cohomologySpanIso_symm (f : A ⟶ B) (g : C ⟶ B) |
| 54 | [QuasiIso f] [QuasiIso g] (n : ℕ) : |
| 55 | (cohomologySpanIso f g n).symm = cohomologySpanIso g f n := by |
| 56 | apply Iso.ext |
| 57 | simp [cohomologySpanIso] |
| 58 | |
| 59 | /-- Every commuting map of actual spans induces a commuting square on the |
| 60 | canonical cohomology comparisons. No invertibility of the middle map is needed. -/ |
| 61 | @[reassoc] |
| 62 | theorem cohomologySpanIso_naturality |
| 63 | (f : A ⟶ B) (g : C ⟶ B) (f' : A' ⟶ B') (g' : C' ⟶ B') |
| 64 | [QuasiIso f] [QuasiIso g] [QuasiIso f'] [QuasiIso g'] |
| 65 | (a : A ⟶ A') (b : B ⟶ B') (c : C ⟶ C') |
| 66 | (hf : f ≫ b = a ≫ f') (hg : g ≫ b = c ≫ g') (n : ℕ) : |
| 67 | (cohomologySpanIso f g n).hom ≫ HomologicalComplex.homologyMap c n = |
| 68 | HomologicalComplex.homologyMap a n ≫ (cohomologySpanIso f' g' n).hom := by |
| 69 | have hfH : HomologicalComplex.homologyMap f n ≫ HomologicalComplex.homologyMap b n = |
| 70 | HomologicalComplex.homologyMap a n ≫ HomologicalComplex.homologyMap f' n := by |
| 71 | rw [← HomologicalComplex.homologyMap_comp, hf, HomologicalComplex.homologyMap_comp] |
| 72 | have hgH : HomologicalComplex.homologyMap g n ≫ HomologicalComplex.homologyMap b n = |
| 73 | HomologicalComplex.homologyMap c n ≫ HomologicalComplex.homologyMap g' n := by |
| 74 | rw [← HomologicalComplex.homologyMap_comp, hg, HomologicalComplex.homologyMap_comp] |
| 75 | apply (cancel_mono (HomologicalComplex.homologyMap g' n)).mp |
| 76 | simp only [Category.assoc] |
| 77 | rw [← hgH, ← Category.assoc, cohomologySpanIso_hom_comp, |
| 78 | cohomologySpanIso_hom_comp, hfH] |
| 79 | |
| 80 | /-- Replacing the middle comparison complex by a quasi-isomorphic refinement |
| 81 | leaves the comparison between the two endpoints exactly unchanged. -/ |
| 82 | theorem cohomologySpanIso_refinement (f : A ⟶ B) (g : C ⟶ B) |
| 83 | [QuasiIso f] [QuasiIso g] (b : B ⟶ B') [QuasiIso b] (n : ℕ) : |
| 84 | cohomologySpanIso (f ≫ b) (g ≫ b) n = cohomologySpanIso f g n := by |
| 85 | apply Iso.ext |
| 86 | have h := cohomologySpanIso_naturality f g (f ≫ b) (g ≫ b) |
| 87 | (𝟙 A) b (𝟙 C) (by simp) (by simp) n |
| 88 | simpa only [HomologicalComplex.homologyMap_id, Category.comp_id, Category.id_comp] using h.symm |
| 89 | |
| 90 | /-- Refinement squares that commute up to actual cochain homotopies still |
| 91 | give strictly commuting comparisons on cohomology. -/ |
| 92 | theorem cohomologySpanIso_naturality_of_homotopy |
| 93 | (f : A ⟶ B) (g : C ⟶ B) (f' : A' ⟶ B') (g' : C' ⟶ B') |
| 94 | [QuasiIso f] [QuasiIso g] [QuasiIso f'] [QuasiIso g'] |
| 95 | (a : A ⟶ A') (b : B ⟶ B') (c : C ⟶ C') |
| 96 | (hf : Homotopy (f ≫ b) (a ≫ f')) (hg : Homotopy (g ≫ b) (c ≫ g')) (n : ℕ) : |
| 97 | (cohomologySpanIso f g n).hom ≫ HomologicalComplex.homologyMap c n = |
| 98 | HomologicalComplex.homologyMap a n ≫ (cohomologySpanIso f' g' n).hom := by |
| 99 | have hfH := hf.homologyMap_eq n |
| 100 | have hgH := hg.homologyMap_eq n |
| 101 | simp only [HomologicalComplex.homologyMap_comp] at hfH hgH |
| 102 | apply (cancel_mono (HomologicalComplex.homologyMap g' n)).mp |
| 103 | simp only [Category.assoc] |
| 104 | rw [← hgH, ← Category.assoc, cohomologySpanIso_hom_comp, |
| 105 | cohomologySpanIso_hom_comp, hfH] |
| 106 | |
| 107 | /-- Homotopic choices of both legs induce exactly the same comparison. -/ |
| 108 | theorem cohomologySpanIso_eq_of_homotopy |
| 109 | (f f' : A ⟶ B) (g g' : C ⟶ B) |
| 110 | [QuasiIso f] [QuasiIso g] [QuasiIso f'] [QuasiIso g'] |
| 111 | (hf : Homotopy f f') (hg : Homotopy g g') (n : ℕ) : |
| 112 | cohomologySpanIso f g n = cohomologySpanIso f' g' n := by |
| 113 | apply Iso.ext |
| 114 | apply cohomologySpanIso_hom_unique f' g' n |
| 115 | rw [← hg.homologyMap_eq n, cohomologySpanIso_hom_comp, hf.homologyMap_eq n] |
| 116 | |
| 117 | end General |
| 118 | |
| 119 | variable {R : Type} [Ring R] {A B C : CochainComplex (ModuleCat.{0} R) ℕ} |
| 120 | |
| 121 | /-- The comparison sends a represented class to the unique class whose image |
| 122 | under the right leg is represented by the left leg of the original cocycle. -/ |
| 123 | theorem cohomologySpanIso_map_class (f : A ⟶ B) (g : C ⟶ B) |
| 124 | [QuasiIso f] [QuasiIso g] (n : ℕ) (x : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles A n) : |
| 125 | HomologicalComplex.homologyMap g n |
| 126 | ((cohomologySpanIso f g n).hom (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass A n x)) = |
| 127 | AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass B n (AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainCocycleMap f n x) := by |
| 128 | have h := ConcreteCategory.congr_hom (cohomologySpanIso_hom_comp f g n) |
| 129 | (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass A n x) |
| 130 | exact h.trans (AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainClass_naturality f n x) |
| 131 | |
| 132 | /-- A concrete representative criterion: the comparison identifies two |
| 133 | cocycles exactly when their images differ by an actual boundary in the |
| 134 | middle complex. -/ |
| 135 | theorem cohomologySpanIso_class_eq_iff (f : A ⟶ B) (g : C ⟶ B) |
| 136 | [QuasiIso f] [QuasiIso g] (n : ℕ) |
| 137 | (x : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles A n) (y : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles C n) : |
| 138 | (cohomologySpanIso f g n).hom (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass A n x) = |
| 139 | AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass C n y ↔ |
| 140 | ∃ z : (B.sc n).X₁, (B.sc n).f z = (f.f n) x.val - (g.f n) y.val := by |
| 141 | have hinj : Function.Injective (HomologicalComplex.homologyMap g n) := |
| 142 | (asIso (HomologicalComplex.homologyMap g n)).toLinearEquiv.injective |
| 143 | rw [← hinj.eq_iff, cohomologySpanIso_map_class, AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainClass_naturality, |
| 144 | AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_eq_iff_exists] |
| 145 | rfl |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI.AlgebraicGeometry.Betti.CohomologySpan.Realization |