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.Formulas |
| 2 | import OAI.AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality |
| 3 | import Mathlib.Basic.Complex.Basic |
| 4 | |
| 5 | /-! # Cochain Conjugation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.CochainConjugation.CM.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual conjugation on simplicial cochains and degree-one cohomology for HodgeComparison. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | open scoped Simplicial |
| 15 | |
| 16 | section Semilinear |
| 17 | |
| 18 | variable (K L : CochainComplex (ModuleCat ℂ) ℕ) (σ : ℂ →+* ℂ) |
| 19 | (f : ∀ n, K.X n →ₛₗ[σ] L.X n) |
| 20 | (hf : ∀ n x, f (n + 1) (K.d n (n + 1) x) = L.d n (n + 1) (f n x)) |
| 21 | |
| 22 | /-- A graded semilinear map commuting with differentials maps one-cocycles |
| 23 | to one-cocycles. -/ |
| 24 | def semilinearOneCocycleMap : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles K 1 →ₛₗ[σ] AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles L 1 where |
| 25 | toFun c := ⟨f 1 c.val, by |
| 26 | rw [AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff, ← hf] |
| 27 | have hc : K.d 1 2 c.val = 0 := (AlgebraicTopology.Cohomology.Singular.Representatives.mem_cochainCocycles_iff K 1 c.val).mp c.property |
| 28 | rw [hc, map_zero]⟩ |
| 29 | map_add' a b := Subtype.ext ((f 1).map_add a.val b.val) |
| 30 | map_smul' c a := Subtype.ext ((f 1).map_smulₛₗ c a.val) |
| 31 | |
| 32 | /-- Commutation in degree zero also preserves the one-coboundaries. -/ |
| 33 | theorem semilinearOneCocycleMap_preserves_boundaries : |
| 34 | AlgebraicTopology.Cohomology.Singular.Representatives.cochainBoundaries K 1 ≤ (AlgebraicTopology.Cohomology.Singular.Representatives.cochainBoundaries L 1).comap |
| 35 | (semilinearOneCocycleMap K L σ f hf) := by |
| 36 | intro c hc |
| 37 | have hcz : AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass K 1 c = AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass K 1 0 := by |
| 38 | rw [(AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_eq_zero_iff K 1 c).mpr hc, map_zero] |
| 39 | obtain ⟨b, hb⟩ := (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_eq_iff_exists_succ K 0 c 0).mp hcz |
| 40 | apply (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_eq_zero_iff L 1 _).mp |
| 41 | rw [← (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass L 1).map_zero] |
| 42 | apply (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_eq_iff_exists_succ L 0 _ 0).mpr |
| 43 | refine ⟨f 0 b, ?_⟩ |
| 44 | change L.d 0 1 (f 0 b) = f 1 c.val - 0 |
| 45 | rw [sub_zero, ← hf] |
| 46 | exact congrArg (f 1) (hb.trans (sub_zero c.val)) |
| 47 | |
| 48 | /-- The induced semilinear map on the genuine categorical H¹, using its |
| 49 | existing cocycles-modulo-coboundaries presentation. -/ |
| 50 | def semilinearH1Map : K.homology 1 →ₛₗ[σ] L.homology 1 := |
| 51 | (AlgebraicTopology.Cohomology.Singular.Representatives.cohomologyQuotientIso L 1).toLinearEquiv.symm.toLinearMap.comp |
| 52 | (((AlgebraicTopology.Cohomology.Singular.Representatives.cochainBoundaries K 1).mapQ (AlgebraicTopology.Cohomology.Singular.Representatives.cochainBoundaries L 1) |
| 53 | (semilinearOneCocycleMap K L σ f hf) |
| 54 | (semilinearOneCocycleMap_preserves_boundaries K L σ f hf)).comp |
| 55 | (AlgebraicTopology.Cohomology.Singular.Representatives.cohomologyQuotientIso K 1).toLinearEquiv.toLinearMap) |
| 56 | |
| 57 | theorem semilinearH1Map_class (c : AlgebraicTopology.Cohomology.Singular.Representatives.cochainCocycles K 1) : |
| 58 | semilinearH1Map K L σ f hf (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass K 1 c) = |
| 59 | AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass L 1 (semilinearOneCocycleMap K L σ f hf c) := by |
| 60 | unfold semilinearH1Map AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass |
| 61 | simp only [LinearMap.comp_apply, LinearEquiv.coe_coe, LinearEquiv.apply_symm_apply] |
| 62 | rfl |
| 63 | |
| 64 | end Semilinear |
| 65 | |
| 66 | /-- A commuting square of graded maps gives the corresponding commuting |
| 67 | square on the actual degree-one cohomology. -/ |
| 68 | theorem semilinearH1Map_naturality |
| 69 | (K L : CochainComplex (ModuleCat ℂ) ℕ) (σ : ℂ →+* ℂ) |
| 70 | (f : ∀ n, K.X n →ₛₗ[σ] K.X n) |
| 71 | (hf : ∀ n x, f (n + 1) (K.d n (n + 1) x) = K.d n (n + 1) (f n x)) |
| 72 | (g : ∀ n, L.X n →ₛₗ[σ] L.X n) |
| 73 | (hg : ∀ n x, g (n + 1) (L.d n (n + 1) x) = L.d n (n + 1) (g n x)) |
| 74 | (a : K ⟶ L) (ha : ∀ x, g 1 (a.f 1 x) = a.f 1 (f 1 x)) |
| 75 | (x : K.homology 1) : |
| 76 | semilinearH1Map L L σ g hg (HomologicalComplex.homologyMap a 1 x) = |
| 77 | HomologicalComplex.homologyMap a 1 (semilinearH1Map K K σ f hf x) := by |
| 78 | obtain ⟨c, rfl⟩ := AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass_surjective K 1 x |
| 79 | rw [AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainClass_naturality, semilinearH1Map_class, |
| 80 | semilinearH1Map_class, AlgebraicTopology.Cohomology.Singular.RepresentativesNaturality.cochainClass_naturality] |
| 81 | apply congrArg (AlgebraicTopology.Cohomology.Singular.Representatives.cochainClass L 1) |
| 82 | apply Subtype.ext |
| 83 | exact ha c.val |
| 84 | |
| 85 | /-- Pointwise conjugation of complex-valued functions. -/ |
| 86 | def conjugateFunctions (ι : Type*) : (ι → ℂ) →ₛₗ[starRingEnd ℂ] (ι → ℂ) where |
| 87 | toFun f i := star (f i) |
| 88 | map_add' f g := funext fun i => star_add (f i) (g i) |
| 89 | map_smul' c f := funext fun i => map_mul (starRingEnd ℂ) c (f i) |
| 90 | |
| 91 | /-- Conjugation of the values of a genuine simplicial cochain. -/ |
| 92 | def conjugateSimplicialCochain (S : SSet.{0}) (n : ℕ) : |
| 93 | (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).X n →ₛₗ[starRingEnd ℂ] |
| 94 | (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).X n := |
| 95 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).toLinearEquiv.symm.toLinearMap.comp |
| 96 | ((conjugateFunctions (S _⦋n⦌)).comp |
| 97 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).toLinearEquiv.toLinearMap) |
| 98 | |
| 99 | @[simp] |
| 100 | theorem conjugateSimplicialCochain_function (S : SSet.{0}) (n : ℕ) |
| 101 | (c : (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).X n) (s : S _⦋n⦌) : |
| 102 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).hom |
| 103 | (conjugateSimplicialCochain S n c) s = |
| 104 | star ((AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).hom c s) := by |
| 105 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).toLinearEquiv |
| 106 | ((AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).toLinearEquiv.symm _) s = _ |
| 107 | rw [LinearEquiv.apply_symm_apply] |
| 108 | rfl |
| 109 | |
| 110 | /-- The alternating-face differential has real signs, so it commutes with |
| 111 | conjugation of the values. -/ |
| 112 | theorem conjugateSimplicialCochain_d (S : SSet.{0}) (n : ℕ) |
| 113 | (c : (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).X n) : |
| 114 | conjugateSimplicialCochain S (n + 1) |
| 115 | ((AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).d n (n + 1) c) = |
| 116 | (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).d n (n + 1) |
| 117 | (conjugateSimplicialCochain S n c) := by |
| 118 | apply (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) (n + 1)).toLinearEquiv.injective |
| 119 | funext s |
| 120 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) (n + 1)).hom _ s = |
| 121 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) (n + 1)).hom _ s |
| 122 | rw [conjugateSimplicialCochain_function, AlgebraicTopology.Cohomology.Singular.Formulas.degreewiseFunctionIso_coboundary, |
| 123 | AlgebraicTopology.Cohomology.Singular.Formulas.degreewiseFunctionIso_coboundary] |
| 124 | change (starRingEnd ℂ) (∑ i : Fin (n + 2), ((-1 : ℤ) ^ i.val) • |
| 125 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).hom c (S.δ i s)) = _ |
| 126 | rw [map_sum] |
| 127 | apply Finset.sum_congr rfl |
| 128 | intro i _ |
| 129 | rw [conjugateSimplicialCochain_function] |
| 130 | exact map_zsmul (starRingEnd ℂ) _ _ |
| 131 | |
| 132 | /-- Conjugation on the actual degree-one simplicial cohomology. -/ |
| 133 | def conjugateSimplicialH1 (S : SSet.{0}) : |
| 134 | (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).homology 1 →ₛₗ[starRingEnd ℂ] |
| 135 | (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains S (ModuleCat.of ℂ ℂ)).homology 1 := |
| 136 | semilinearH1Map _ _ (starRingEnd ℂ) |
| 137 | (conjugateSimplicialCochain S) (conjugateSimplicialCochain_d S) |
| 138 | |
| 139 | /-- Conjugating values commutes with precomposition on simplices. -/ |
| 140 | theorem conjugateSimplicialCochain_pullback {S T : SSet.{0}} (a : S ⟶ T) |
| 141 | (n : ℕ) (c : (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains T (ModuleCat.of ℂ ℂ)).X n) : |
| 142 | conjugateSimplicialCochain S n ((AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℂ ℂ) a).f n c) = |
| 143 | (AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℂ ℂ) a).f n (conjugateSimplicialCochain T n c) := by |
| 144 | apply (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).toLinearEquiv.injective |
| 145 | funext s |
| 146 | change (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).hom _ s = |
| 147 | (AlgebraicTopology.Cohomology.Singular.Coefficients.degreewiseFunctionIso S (ModuleCat.of ℂ ℂ) n).hom _ s |
| 148 | rw [conjugateSimplicialCochain_function, AlgebraicTopology.Cohomology.Singular.Formulas.degreewiseFunctionIso_pullback, |
| 149 | AlgebraicTopology.Cohomology.Singular.Formulas.degreewiseFunctionIso_pullback, conjugateSimplicialCochain_function] |
| 150 | |
| 151 | /-- The cohomological conjugation is natural for actual simplicial pullback. -/ |
| 152 | theorem conjugateSimplicialH1_pullback {S T : SSet.{0}} (a : S ⟶ T) |
| 153 | (x : (AlgebraicTopology.Cohomology.Singular.Basic.simplicialCochains T (ModuleCat.of ℂ ℂ)).homology 1) : |
| 154 | conjugateSimplicialH1 S |
| 155 | (HomologicalComplex.homologyMap (AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℂ ℂ) a) 1 x) = |
| 156 | HomologicalComplex.homologyMap (AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℂ ℂ) a) 1 |
| 157 | (conjugateSimplicialH1 T x) := |
| 158 | semilinearH1Map_naturality _ _ (starRingEnd ℂ) |
| 159 | (conjugateSimplicialCochain T) (conjugateSimplicialCochain_d T) |
| 160 | (conjugateSimplicialCochain S) (conjugateSimplicialCochain_d S) |
| 161 | (AlgebraicTopology.Cohomology.Singular.Functor.simplicialPullback (ModuleCat.of ℂ ℂ) a) (conjugateSimplicialCochain_pullback a 1) x |
| 162 | |
| 163 | end |
| 164 | |
| 165 | end OAI.AlgebraicGeometry.ComplexMultiplication.HodgeComparison.CochainConjugation.CM.Construction |