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.RationalSingularChains |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.ComplexLocalVanishing |
| 3 | import OAI.AlgebraicGeometry.CycleClass.Geometric.LocalHomology |
| 4 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.Kernels |
| 5 | |
| 6 | /-! # Rational Relative Homology -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.RationalRelativeHomology.Cycles |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Rational coefficients on actual relative singular homology |
| 14 | |
| 15 | Rationalizing the actual integral relative singular-chain quotient gives the |
| 16 | actual rational relative singular-chain quotient. The comparison is induced |
| 17 | by the natural coefficient comparison on absolute singular chains and by |
| 18 | preservation of cokernels. Exactness of rationalization then identifies its |
| 19 | homology with the rationalization of integral relative homology. |
| 20 | |
| 21 | The known integral calculation of the complex normal local groups therefore |
| 22 | gives the rational calculation, in all degrees including complex dimension |
| 23 | zero. |
| 24 | -/ |
| 25 | |
| 26 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 27 | |
| 28 | set_option backward.defeqAttrib.useBackward true |
| 29 | set_option backward.isDefEq.respectTransparency false |
| 30 | |
| 31 | /-- Degreewise extension of integral chain complexes to rational coefficients. -/ |
| 32 | abbrev rationalizeChains : |
| 33 | ChainComplex (ModuleCat.{0} ℤ) ℕ ⥤ ChainComplex (ModuleCat.{0} ℚ) ℕ := |
| 34 | RationalScalarExtension.Cycles.rationalizeModules.mapHomologicalComplex (ComplexShape.down ℕ) |
| 35 | |
| 36 | /-- Rationalization commutes with the actual relative singular-chain quotient. -/ |
| 37 | def rationalRelativeChainsIso (X : TopCat.{0}) (A : Set X) : |
| 38 | rationalizeChains.obj (LocalHomology.Cycles.relativeSingularChains X A) ≅ RelativeScalarChains.Cycles.relativeScalarChains ℚ X A := |
| 39 | PreservesCokernel.iso rationalizeChains (LocalHomology.Cycles.subspaceChainInclusion X A) ≪≫ |
| 40 | cokernel.mapIso |
| 41 | (rationalizeChains.map (LocalHomology.Cycles.subspaceChainInclusion X A)) |
| 42 | (RelativeScalarChains.Cycles.scalarSubspaceChainInclusion ℚ X A) |
| 43 | (RationalSingularChains.Cycles.rationalSingularChainsIso (TopCat.of A)) (RationalSingularChains.Cycles.rationalSingularChainsIso X) |
| 44 | (RationalSingularChains.Cycles.rationalSingularChainsIso_hom_naturality (LocalHomology.Cycles.subspaceInclusion X A)) |
| 45 | |
| 46 | /-- The comparison commutes with the actual absolute-to-relative quotient maps. -/ |
| 47 | @[reassoc] |
| 48 | theorem rationalRelativeChainsIso_projection (X : TopCat.{0}) (A : Set X) : |
| 49 | rationalizeChains.map (LocalHomology.Cycles.relativeChainProjection X A) ≫ |
| 50 | (rationalRelativeChainsIso X A).hom = |
| 51 | (RationalSingularChains.Cycles.rationalSingularChainsIso X).hom ≫ RelativeScalarChains.Cycles.relativeScalarChainProjection ℚ X A := by |
| 52 | dsimp only [rationalRelativeChainsIso, Iso.trans_hom, cokernel.mapIso_hom] |
| 53 | rw [← Category.assoc, PreservesCokernel.π_iso_hom, cokernel.π_desc] |
| 54 | |
| 55 | /-- The relative rationalization comparison is natural for actual maps of pairs. -/ |
| 56 | @[reassoc] |
| 57 | theorem rationalRelativeChainsIso_hom_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 58 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 59 | rationalizeChains.map (LocalHomology.Cycles.relativeSingularChainsMap f h) ≫ |
| 60 | (rationalRelativeChainsIso Y B).hom = |
| 61 | (rationalRelativeChainsIso X A).hom ≫ RelativeScalarChains.Cycles.relativeScalarChainsMap ℚ f h := by |
| 62 | apply (cancel_epi (rationalizeChains.map (LocalHomology.Cycles.relativeChainProjection X A))).mp |
| 63 | calc |
| 64 | _ = rationalizeChains.map |
| 65 | (LocalHomology.Cycles.relativeChainProjection X A ≫ LocalHomology.Cycles.relativeSingularChainsMap f h) ≫ |
| 66 | (rationalRelativeChainsIso Y B).hom := by |
| 67 | rw [rationalizeChains.map_comp, Category.assoc] |
| 68 | _ = rationalizeChains.map (LocalHomology.Cycles.integralSingularChainFunctor.map f) ≫ |
| 69 | rationalizeChains.map (LocalHomology.Cycles.relativeChainProjection Y B) ≫ |
| 70 | (rationalRelativeChainsIso Y B).hom := by |
| 71 | rw [LocalHomology.Cycles.relativeChainProjection_naturality, rationalizeChains.map_comp, Category.assoc] |
| 72 | _ = rationalizeChains.map (LocalHomology.Cycles.integralSingularChainFunctor.map f) ≫ |
| 73 | (RationalSingularChains.Cycles.rationalSingularChainsIso Y).hom ≫ RelativeScalarChains.Cycles.relativeScalarChainProjection ℚ Y B := by |
| 74 | rw [rationalRelativeChainsIso_projection] |
| 75 | _ = (RationalSingularChains.Cycles.rationalSingularChainsIso X).hom ≫ |
| 76 | (RelativeScalarChains.Cycles.scalarSingularChainFunctor ℚ).map f ≫ RelativeScalarChains.Cycles.relativeScalarChainProjection ℚ Y B := by |
| 77 | rw [← Category.assoc, RationalSingularChains.Cycles.rationalSingularChainsIso_hom_naturality, Category.assoc] |
| 78 | _ = (RationalSingularChains.Cycles.rationalSingularChainsIso X).hom ≫ RelativeScalarChains.Cycles.relativeScalarChainProjection ℚ X A ≫ |
| 79 | RelativeScalarChains.Cycles.relativeScalarChainsMap ℚ f h := by |
| 80 | rw [RelativeScalarChains.Cycles.relativeScalarChainProjection_naturality] |
| 81 | _ = _ := by |
| 82 | rw [← Category.assoc, ← rationalRelativeChainsIso_projection, Category.assoc] |
| 83 | |
| 84 | /-- The inverse comparison is also natural for actual maps of pairs. -/ |
| 85 | @[reassoc] |
| 86 | theorem rationalRelativeChainsIso_inv_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 87 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) : |
| 88 | RelativeScalarChains.Cycles.relativeScalarChainsMap ℚ f h ≫ (rationalRelativeChainsIso Y B).inv = |
| 89 | (rationalRelativeChainsIso X A).inv ≫ |
| 90 | rationalizeChains.map (LocalHomology.Cycles.relativeSingularChainsMap f h) := by |
| 91 | calc |
| 92 | _ = (rationalRelativeChainsIso X A).inv ≫ |
| 93 | ((rationalRelativeChainsIso X A).hom ≫ RelativeScalarChains.Cycles.relativeScalarChainsMap ℚ f h) ≫ |
| 94 | (rationalRelativeChainsIso Y B).inv := by simp |
| 95 | _ = (rationalRelativeChainsIso X A).inv ≫ |
| 96 | (rationalizeChains.map (LocalHomology.Cycles.relativeSingularChainsMap f h) ≫ |
| 97 | (rationalRelativeChainsIso Y B).hom) ≫ |
| 98 | (rationalRelativeChainsIso Y B).inv := by |
| 99 | rw [← rationalRelativeChainsIso_hom_naturality] |
| 100 | _ = _ := by simp |
| 101 | |
| 102 | /-- Rational relative homology is the scalar extension of the actual integral relative group. -/ |
| 103 | def rationalRelativeHomologyIso (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 104 | RelativeScalarChains.Cycles.relativeScalarHomology ℚ X A n ≅ |
| 105 | RationalScalarExtension.Cycles.rationalizeModules.obj (LocalHomology.Cycles.relativeSingularHomology X A n) := |
| 106 | (HomologicalComplex.homologyFunctor (ModuleCat.{0} ℚ) (ComplexShape.down ℕ) n).mapIso |
| 107 | (rationalRelativeChainsIso X A).symm ≪≫ |
| 108 | RationalScalarExtension.Cycles.rationalizeHomologyIso (LocalHomology.Cycles.relativeSingularChains X A) n |
| 109 | |
| 110 | /-- The homology-level scalar-extension identification respects every actual map of pairs. -/ |
| 111 | @[reassoc] |
| 112 | theorem rationalRelativeHomologyIso_hom_naturality {X Y : TopCat.{0}} (f : X ⟶ Y) |
| 113 | {A : Set X} {B : Set Y} (h : Set.MapsTo f A B) (n : ℕ) : |
| 114 | HomologicalComplex.homologyMap (RelativeScalarChains.Cycles.relativeScalarChainsMap ℚ f h) n ≫ |
| 115 | (rationalRelativeHomologyIso Y B n).hom = |
| 116 | (rationalRelativeHomologyIso X A n).hom ≫ |
| 117 | RationalScalarExtension.Cycles.rationalizeModules.map (LocalHomology.Cycles.relativeSingularHomologyMap f h n) := by |
| 118 | have hnat := congrArg (fun g => HomologicalComplex.homologyMap g n) |
| 119 | (rationalRelativeChainsIso_inv_naturality f h) |
| 120 | rw [HomologicalComplex.homologyMap_comp, HomologicalComplex.homologyMap_comp] at hnat |
| 121 | change HomologicalComplex.homologyMap (RelativeScalarChains.Cycles.relativeScalarChainsMap ℚ f h) n ≫ |
| 122 | (HomologicalComplex.homologyMap (rationalRelativeChainsIso Y B).inv n ≫ |
| 123 | (RationalScalarExtension.Cycles.rationalizeHomologyIso (LocalHomology.Cycles.relativeSingularChains Y B) n).hom) = |
| 124 | (HomologicalComplex.homologyMap (rationalRelativeChainsIso X A).inv n ≫ |
| 125 | (RationalScalarExtension.Cycles.rationalizeHomologyIso (LocalHomology.Cycles.relativeSingularChains X A) n).hom) ≫ |
| 126 | RationalScalarExtension.Cycles.rationalizeModules.map (LocalHomology.Cycles.relativeSingularHomologyMap f h n) |
| 127 | rw [← Category.assoc, hnat, Category.assoc, RationalScalarExtension.Cycles.rationalizeHomologyIso_hom_naturality, |
| 128 | ← Category.assoc] |
| 129 | |
| 130 | /-- Vanishing of integral relative homology implies vanishing with rational coefficients. -/ |
| 131 | theorem rationalRelativeHomology_isZero (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 132 | (h : IsZero (LocalHomology.Cycles.relativeSingularHomology X A n)) : |
| 133 | IsZero (RelativeScalarChains.Cycles.relativeScalarHomology ℚ X A n) := |
| 134 | (RationalScalarExtension.Cycles.rationalizeModules.map_isZero h).of_iso (rationalRelativeHomologyIso X A n) |
| 135 | |
| 136 | /-- The actual top rational local homology of a complex coordinate normal space is `ℚ`. -/ |
| 137 | def complexNormalRationalTopLocalHomologyIso (p : ℕ) : |
| 138 | RelativeScalarChains.Cycles.localScalarHomology ℚ (TopCat.of (Fin p → ℂ)) 0 (2 * p) ≅ ModuleCat.of ℚ ℚ := |
| 139 | rationalRelativeHomologyIso (TopCat.of (Fin p → ℂ)) ({0}ᶜ : Set (Fin p → ℂ)) (2 * p) ≪≫ |
| 140 | RationalScalarExtension.Cycles.rationalizeModules.mapIso (ComplexLocalTopHomology.Cycles.complexNormalTopLocalHomologyIso p) ≪≫ RationalScalarExtension.Cycles.rationalizeUnitIso |
| 141 | |
| 142 | /-- Every rational local homology group outside real degree `2*p` vanishes. -/ |
| 143 | theorem complexNormalRationalLocalHomology_isZero (p n : ℕ) (hn : n ≠ 2 * p) : |
| 144 | IsZero (RelativeScalarChains.Cycles.localScalarHomology ℚ (TopCat.of (Fin p → ℂ)) 0 n) := |
| 145 | rationalRelativeHomology_isZero (TopCat.of (Fin p → ℂ)) ({0}ᶜ : Set (Fin p → ℂ)) n |
| 146 | (ComplexLocalVanishing.Cycles.complexNormalLocalHomology_isZero p n hn) |
| 147 | |
| 148 | /-- The top rational local group is nonzero. -/ |
| 149 | theorem complexNormalRationalTopLocalHomology_not_isZero (p : ℕ) : |
| 150 | ¬ IsZero (RelativeScalarChains.Cycles.localScalarHomology ℚ (TopCat.of (Fin p → ℂ)) 0 (2 * p)) := by |
| 151 | intro h |
| 152 | have hQ := h.of_iso (complexNormalRationalTopLocalHomologyIso p).symm |
| 153 | let : Subsingleton ℚ := ModuleCat.isZero_iff_subsingleton.mp hQ |
| 154 | exact zero_ne_one (Subsingleton.elim (0 : ℚ) 1) |
| 155 | |
| 156 | /-- Rational normal local homology is concentrated exactly in its real top degree. -/ |
| 157 | theorem complexNormalRationalLocalHomology_isZero_iff (p n : ℕ) : |
| 158 | IsZero (RelativeScalarChains.Cycles.localScalarHomology ℚ (TopCat.of (Fin p → ℂ)) 0 n) ↔ n ≠ 2 * p := by |
| 159 | constructor |
| 160 | · intro h hn |
| 161 | subst n |
| 162 | exact complexNormalRationalTopLocalHomology_not_isZero p h |
| 163 | · exact complexNormalRationalLocalHomology_isZero p n |
| 164 | |
| 165 | end |
| 166 | |
| 167 | end OAI.AlgebraicGeometry.CycleClass.Geometric.RationalRelativeHomology.Cycles |