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.NaturalSmallChains |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.SmallMayerVietoris |
| 3 | import Mathlib.LinearAlgebra.Finsupp.LinearCombination |
| 4 | |
| 5 | /-! # Controlled Chain Support -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.ControlledChainSupport.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Support control for operations on actual singular chains |
| 13 | |
| 14 | Support in a subset means membership in the image of the genuine subspace |
| 15 | chain inclusion. The free singular-simplex coefficient description allows |
| 16 | generatorwise support proofs to extend to all chains. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | open scoped Simplicial |
| 21 | |
| 22 | set_option backward.defeqAttrib.useBackward true |
| 23 | set_option backward.isDefEq.respectTransparency false |
| 24 | set_option backward.isDefEq.respectTransparency.types false |
| 25 | |
| 26 | /-- The actual image of the chains on a subspace in one ambient degree. -/ |
| 27 | abbrev singularSubspaceImage (X : TopCat.{0}) (A : Set X) (n : ℕ) : |
| 28 | Submodule ℤ ((LocalHomology.Cycles.integralSingularChains X).X n) := |
| 29 | LinearMap.range ((LocalHomology.Cycles.subspaceChainInclusion X A).f n).hom |
| 30 | |
| 31 | /-- Boundaries of chains on a subspace remain chains on that subspace. -/ |
| 32 | theorem singularSubspaceImage_boundary (X : TopCat.{0}) (A : Set X) (i j : ℕ) |
| 33 | {c : (LocalHomology.Cycles.integralSingularChains X).X i} (hc : c ∈ singularSubspaceImage X A i) : |
| 34 | (LocalHomology.Cycles.integralSingularChains X).d i j c ∈ singularSubspaceImage X A j := by |
| 35 | obtain ⟨b, rfl⟩ := hc |
| 36 | refine ⟨(LocalHomology.Cycles.integralSingularChains (TopCat.of A)).d i j b, ?_⟩ |
| 37 | exact (ConcreteCategory.congr_hom ((LocalHomology.Cycles.subspaceChainInclusion X A).comm i j) b).symm |
| 38 | |
| 39 | /-- Enlarging a subset enlarges the actual subspace-chain image. -/ |
| 40 | theorem singularSubspaceImage_mono (X : TopCat.{0}) {A B : Set X} |
| 41 | (hAB : A ⊆ B) (n : ℕ) : singularSubspaceImage X A n ≤ singularSubspaceImage X B n := by |
| 42 | rintro c ⟨b, rfl⟩ |
| 43 | refine ⟨(LocalHomology.Cycles.integralSingularChainFunctor.map (SmallMayerVietoris.Cycles.subsetInclusion X hAB)).f n b, ?_⟩ |
| 44 | have hmap : LocalHomology.Cycles.integralSingularChainFunctor.map (SmallMayerVietoris.Cycles.subsetInclusion X hAB) ≫ |
| 45 | LocalHomology.Cycles.subspaceChainInclusion X B = LocalHomology.Cycles.subspaceChainInclusion X A := by |
| 46 | change LocalHomology.Cycles.integralSingularChainFunctor.map _ ≫ LocalHomology.Cycles.integralSingularChainFunctor.map _ = _ |
| 47 | rw [← Functor.map_comp] |
| 48 | rfl |
| 49 | exact ConcreteCategory.congr_hom (HomologicalComplex.congr_hom hmap n) b |
| 50 | |
| 51 | /-- A simplex whose geometric image lies in A really is a chain on A. -/ |
| 52 | theorem singularSimplex_mem_subspaceImage (X : TopCat.{0}) (A : Set X) (n : ℕ) |
| 53 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) |
| 54 | (hσ : Set.range (X.toSSetObjEquiv (.op ⦋n⦌) σ) ⊆ A) (z : ℤ) : |
| 55 | (TopCat.toSSet.obj X).ιChainComplex (R := ModuleCat.of ℤ ℤ) σ z ∈ |
| 56 | singularSubspaceImage X A n := by |
| 57 | obtain ⟨τ, hτ⟩ := AlgebraicTopology.Cohomology.Singular.NaturalSmallChains.singularSimplex_liftsToSubspace X A n σ hσ |
| 58 | refine ⟨(TopCat.toSSet.obj (TopCat.of A)).ιChainComplex |
| 59 | (R := ModuleCat.of ℤ ℤ) τ z, ?_⟩ |
| 60 | change SubdivisionNaturality.Cycles.singularChainPostcompose (LocalHomology.Cycles.subspaceInclusion X A) n _ = _ |
| 61 | rw [SubdivisionNaturality.Cycles.singularChainPostcompose_simplex, hτ] |
| 62 | |
| 63 | /-- Extend specified values on genuine singular simplices by linearity. -/ |
| 64 | def singularLinearExtension (X : TopCat.{0}) (n : ℕ) (M : ModuleCat.{0} ℤ) |
| 65 | (v : (TopCat.toSSet.obj X).obj (.op ⦋n⦌) → M) : |
| 66 | (LocalHomology.Cycles.integralSingularChains X).X n →ₗ[ℤ] M := |
| 67 | (Finsupp.linearCombination ℤ v).comp (SingularChainSupport.Cycles.singularChainCoefficients X n).toLinearMap |
| 68 | |
| 69 | @[simp] |
| 70 | theorem singularLinearExtension_simplex (X : TopCat.{0}) (n : ℕ) (M : ModuleCat.{0} ℤ) |
| 71 | (v : (TopCat.toSSet.obj X).obj (.op ⦋n⦌) → M) |
| 72 | (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) (z : ℤ) : |
| 73 | singularLinearExtension X n M v |
| 74 | ((TopCat.toSSet.obj X).ιChainComplex (R := ModuleCat.of ℤ ℤ) σ z) = z • v σ := by |
| 75 | have h := congrArg (Finsupp.linearCombination ℤ v) |
| 76 | (SingularChainSupport.Cycles.singularChainCoefficients_simplex_apply X n σ z) |
| 77 | simp only [Finsupp.linearCombination_single] at h |
| 78 | exact h.trans (int_smul_eq_zsmul (inferInstance : Module ℤ M) z (v σ)) |
| 79 | |
| 80 | /-- To prove a linear singular-chain operation lands in a submodule, it |
| 81 | suffices to check the genuine simplex summands. -/ |
| 82 | theorem singularLinearMap_mem (X : TopCat.{0}) (n : ℕ) (M : ModuleCat.{0} ℤ) |
| 83 | (P : Submodule ℤ M) (F : (LocalHomology.Cycles.integralSingularChains X).X n →ₗ[ℤ] M) |
| 84 | (hF : ∀ (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) (z : ℤ), |
| 85 | F ((TopCat.toSSet.obj X).ιChainComplex (R := ModuleCat.of ℤ ℤ) σ z) ∈ P) |
| 86 | (c : (LocalHomology.Cycles.integralSingularChains X).X n) : F c ∈ P := by |
| 87 | let : Module ℤ (M ⧸ P) := Submodule.Quotient.module P |
| 88 | have hz : P.mkQ.comp F = 0 := by |
| 89 | apply SubdivisionNaturality.Cycles.singularChainLinearMap_ext X n (ModuleCat.of ℤ (M ⧸ P)) |
| 90 | intro σ z |
| 91 | change P.mkQ (F ((TopCat.toSSet.obj X).ιChainComplex |
| 92 | (R := ModuleCat.of ℤ ℤ) σ z)) = 0 |
| 93 | exact (Submodule.Quotient.mk_eq_zero P).mpr (hF σ z) |
| 94 | exact (Submodule.Quotient.mk_eq_zero P).mp (LinearMap.congr_fun hz c) |
| 95 | |
| 96 | /-- Over the integers it suffices to check coefficient one on each simplex. -/ |
| 97 | theorem singularLinearMap_mem_one (X : TopCat.{0}) (n : ℕ) (M : ModuleCat.{0} ℤ) |
| 98 | (P : Submodule ℤ M) (F : (LocalHomology.Cycles.integralSingularChains X).X n →ₗ[ℤ] M) |
| 99 | (hF : ∀ σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌), |
| 100 | F ((TopCat.toSSet.obj X).ιChainComplex (R := ModuleCat.of ℤ ℤ) σ 1) ∈ P) |
| 101 | (c : (LocalHomology.Cycles.integralSingularChains X).X n) : F c ∈ P := by |
| 102 | apply singularLinearMap_mem X n M P F _ c |
| 103 | intro σ z |
| 104 | have hgen : (TopCat.toSSet.obj X).ιChainComplex (R := ModuleCat.of ℤ ℤ) σ z = |
| 105 | z • (TopCat.toSSet.obj X).ιChainComplex (R := ModuleCat.of ℤ ℤ) σ 1 := by |
| 106 | simpa only [zsmul_eq_mul, mul_one, Int.cast_id] using! |
| 107 | (map_zsmul ((TopCat.toSSet.obj X).ιChainComplex |
| 108 | (R := ModuleCat.of ℤ ℤ) σ).hom z (1 : ℤ)) |
| 109 | rw [hgen, map_zsmul] |
| 110 | exact P.toAddSubgroup.zsmul_mem (hF σ) z |
| 111 | |
| 112 | /-- A generatorwise subspace-support proof extends to all chains on that subspace. -/ |
| 113 | theorem singularLinearMap_subspace (X : TopCat.{0}) (A : Set X) (n m : ℕ) |
| 114 | (F : (LocalHomology.Cycles.integralSingularChains X).X n →ₗ[ℤ] (LocalHomology.Cycles.integralSingularChains X).X m) |
| 115 | (hF : ∀ (σ : (TopCat.toSSet.obj X).obj (.op ⦋n⦌)) (z : ℤ), |
| 116 | Set.range (X.toSSetObjEquiv (.op ⦋n⦌) σ) ⊆ A → |
| 117 | F ((TopCat.toSSet.obj X).ιChainComplex (R := ModuleCat.of ℤ ℤ) σ z) ∈ |
| 118 | singularSubspaceImage X A m) |
| 119 | {c : (LocalHomology.Cycles.integralSingularChains X).X n} (hc : c ∈ singularSubspaceImage X A n) : |
| 120 | F c ∈ singularSubspaceImage X A m := by |
| 121 | obtain ⟨b, rfl⟩ := hc |
| 122 | apply singularLinearMap_mem (TopCat.of A) n ((LocalHomology.Cycles.integralSingularChains X).X m) |
| 123 | (singularSubspaceImage X A m) |
| 124 | (F.comp ((LocalHomology.Cycles.subspaceChainInclusion X A).f n).hom) _ b |
| 125 | intro σ z |
| 126 | change F (SubdivisionNaturality.Cycles.singularChainPostcompose (LocalHomology.Cycles.subspaceInclusion X A) n _) ∈ _ |
| 127 | rw [SubdivisionNaturality.Cycles.singularChainPostcompose_simplex] |
| 128 | apply hF |
| 129 | rintro x ⟨y, rfl⟩ |
| 130 | exact (((TopCat.of A).toSSetObjEquiv (.op ⦋n⦌) σ) y).property |
| 131 | |
| 132 | /-- Spatially controlled values on generators give an operation preserving |
| 133 | the image of every actual subspace chain complex. -/ |
| 134 | theorem singularLinearExtension_subspace (X : TopCat.{0}) (n m : ℕ) |
| 135 | (v : (TopCat.toSSet.obj X).obj (.op ⦋n⦌) → (LocalHomology.Cycles.integralSingularChains X).X m) |
| 136 | (hv : ∀ σ, v σ ∈ singularSubspaceImage X |
| 137 | (Set.range (X.toSSetObjEquiv (.op ⦋n⦌) σ)) m) |
| 138 | (A : Set X) {c : (LocalHomology.Cycles.integralSingularChains X).X n} |
| 139 | (hc : c ∈ singularSubspaceImage X A n) : |
| 140 | singularLinearExtension X n ((LocalHomology.Cycles.integralSingularChains X).X m) v c ∈ |
| 141 | singularSubspaceImage X A m := by |
| 142 | apply singularLinearMap_subspace X A n m _ _ hc |
| 143 | intro σ z hσ |
| 144 | rw [singularLinearExtension_simplex] |
| 145 | exact (singularSubspaceImage X A m).toAddSubgroup.zsmul_mem |
| 146 | (singularSubspaceImage_mono X hσ m (hv σ)) z |
| 147 | |
| 148 | end |
| 149 | |
| 150 | end OAI.AlgebraicGeometry.CycleClass.Geometric.ControlledChainSupport.Cycles |