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.DivisorClass.Chern.Compact.IntegralScaling |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.LogRefinementOpen |
| 3 | |
| 4 | /-! # Integral Refinement -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.DivisorClass.Chern.Cech.IntegralRefinement |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Finite shrinking refinements give compact control of every Čech overlap. -/ |
| 13 | |
| 14 | open _root_.TopologicalSpace |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | |
| 20 | variable {T I : Type} [TopologicalSpace T] |
| 21 | |
| 22 | structure CompactCechRefinement (U : I → Opens T) where |
| 23 | charts : Finset I |
| 24 | cover : charts → Opens T |
| 25 | closure_subset : ∀ i, closure (cover i : Set T) ⊆ U i.val |
| 26 | covers : ∀ x : T, ∃ i, x ∈ cover i |
| 27 | |
| 28 | theorem nonempty_compactCechRefinement [CompactSpace T] [NormalSpace T] |
| 29 | (U : I → Opens T) (hU : ∀ x : T, ∃ i, x ∈ U i) : Nonempty (CompactCechRefinement U) := by |
| 30 | classical |
| 31 | obtain ⟨s, hs⟩ := isCompact_univ.elim_finite_subcover |
| 32 | (fun i => (U i : Set T)) (fun i => (U i).isOpen) (by |
| 33 | intro x _ |
| 34 | exact Set.mem_iUnion.mpr (hU x)) |
| 35 | have hsc : ∀ x : T, ∃ i : s, x ∈ U i.val := by |
| 36 | intro x |
| 37 | obtain ⟨i, hi⟩ := Set.mem_iUnion.mp (hs (Set.mem_univ x)) |
| 38 | obtain ⟨his, hxi⟩ := Set.mem_iUnion.mp hi |
| 39 | exact ⟨⟨i, his⟩, hxi⟩ |
| 40 | obtain ⟨V, hVc, hVo, hVU⟩ := exists_subset_iUnion_closure_subset |
| 41 | (s := (Set.univ : Set T)) isClosed_univ (fun i : s => (U i.val).isOpen) |
| 42 | (fun x _ => Set.toFinite {i : s | x ∈ U i.val}) (by |
| 43 | intro x _ |
| 44 | exact Set.mem_iUnion.mpr (hsc x)) |
| 45 | refine ⟨⟨s, fun i => ⟨V i, hVo i⟩, hVU, ?_⟩⟩ |
| 46 | intro x |
| 47 | exact Set.mem_iUnion.mp (hVc (Set.mem_univ x)) |
| 48 | |
| 49 | def compactCechRefinement [CompactSpace T] [NormalSpace T] |
| 50 | (U : I → Opens T) (hU : ∀ x : T, ∃ i, x ∈ U i) : CompactCechRefinement U := |
| 51 | Classical.choice (nonempty_compactCechRefinement U hU) |
| 52 | |
| 53 | variable {U : I → Opens T} (r : CompactCechRefinement U) |
| 54 | |
| 55 | theorem CompactCechRefinement.subset (i : r.charts) : r.cover i ≤ U i.val := |
| 56 | fun _ hx => r.closure_subset i (subset_closure hx) |
| 57 | |
| 58 | theorem CompactCechRefinement.intersectionClosure_subset {n : ℕ} (a : Fin (n + 1) → r.charts) : |
| 59 | closure (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a : Set T) ⊆ AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (Subtype.val ∘ a) := by |
| 60 | intro x hx |
| 61 | apply (AlgebraicTopology.DeRham.Comparison.SmoothCech.mem_cechIntersection U (Subtype.val ∘ a) x).mpr |
| 62 | intro j |
| 63 | exact r.closure_subset (a j) (closure_mono (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le r.cover a j) hx) |
| 64 | |
| 65 | theorem CompactCechRefinement.intersectionClosure_isCompact [CompactSpace T] |
| 66 | {n : ℕ} (a : Fin (n + 1) → r.charts) : |
| 67 | IsCompact (closure (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a : Set T)) := |
| 68 | isClosed_closure.isCompact |
| 69 | |
| 70 | /-- Each original rational section has a common denominator on the whole refined overlap closure. -/ |
| 71 | theorem CompactCechRefinement.intersection_clear_denominators [CompactSpace T] |
| 72 | {n : ℕ} (a : Fin (n + 1) → r.charts) |
| 73 | (f : LocallyConstant (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (Subtype.val ∘ a)) ℚ) : |
| 74 | ∃ N : ℕ, 0 < N ∧ ∃ g : LocallyConstant (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a) ℤ, |
| 75 | ∀ x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a, (g x : ℚ) = |
| 76 | (N : ℚ) * f ⟨x.val, r.intersectionClosure_subset a (subset_closure x.property)⟩ := by |
| 77 | obtain ⟨N, hN, g, hg⟩ := Compact.IntegralScaling.locallyConstant_rat_clear_denominators_on_compact |
| 78 | (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U (Subtype.val ∘ a)) f |
| 79 | (closure (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a : Set T)) (r.intersectionClosure_isCompact a) |
| 80 | (r.intersectionClosure_subset a) |
| 81 | let g' : LocallyConstant (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a) ℤ := |
| 82 | ⟨fun x => g ⟨x.val, subset_closure x.property⟩, |
| 83 | g.isLocallyConstant.comp_continuous (continuous_subtype_val.subtype_mk _)⟩ |
| 84 | exact ⟨N, hN, g', fun x => hg ⟨x.val, subset_closure x.property⟩⟩ |
| 85 | |
| 86 | end |
| 87 | |
| 88 | section |
| 89 | |
| 90 | /-! One denominator simultaneously clears all actual overlaps of a finite Čech cochain. -/ |
| 91 | |
| 92 | open _root_.TopologicalSpace |
| 93 | open scoped BigOperators |
| 94 | |
| 95 | set_option backward.isDefEq.respectTransparency false |
| 96 | set_option backward.isDefEq.respectTransparency.types false |
| 97 | set_option backward.defeqAttrib.useBackward true |
| 98 | |
| 99 | theorem finiteFamily_locallyConstant_integer_scale {I : Type} [Fintype I] |
| 100 | {T : I → Type} [∀ i, TopologicalSpace (T i)] (f : ∀ i, LocallyConstant (T i) ℚ) |
| 101 | (h : ∀ i, ∃ N : ℕ, 0 < N ∧ ∃ g : LocallyConstant (T i) ℤ, |
| 102 | ∀ x, (g x : ℚ) = (N : ℚ) * f i x) : |
| 103 | ∃ N : ℕ, 0 < N ∧ ∃ g : ∀ i, LocallyConstant (T i) ℤ, |
| 104 | ∀ i x, (g i x : ℚ) = (N : ℚ) * f i x := by |
| 105 | classical |
| 106 | choose d hd g hg using h |
| 107 | let N := ∏ i, d i |
| 108 | have hN : 0 < N := Finset.prod_pos (fun i _ => hd i) |
| 109 | have hdi (i : I) : d i ∣ N := Finset.dvd_prod_of_mem d (Finset.mem_univ i) |
| 110 | refine ⟨N, hN, fun i => LocallyConstant.map (fun z : ℤ => ((N / d i : ℕ) : ℤ) * z) (g i), ?_⟩ |
| 111 | intro i x |
| 112 | change ((((N / d i : ℕ) : ℤ) * g i x : ℤ) : ℚ) = (N : ℚ) * f i x |
| 113 | have he : ((N / d i : ℕ) : ℚ) * d i = (N : ℚ) := by |
| 114 | exact_mod_cast Nat.div_mul_cancel (hdi i) |
| 115 | simp only [Int.cast_mul, Int.cast_natCast] |
| 116 | rw [hg i x, ← mul_assoc, he] |
| 117 | |
| 118 | variable {T I : Type} [TopologicalSpace T] |
| 119 | variable {U : I → Opens T} (r : CompactCechRefinement U) |
| 120 | |
| 121 | theorem CompactCechRefinement.cochain_clear_denominators [CompactSpace T] |
| 122 | (n : ℕ) |
| 123 | (c : Rational.Cech.RationalCech.CechCochain (Obj.RationalCech.locallyConstantPresheaf (TopCat.of T)) U n) : |
| 124 | ∃ N : ℕ, 0 < N ∧ |
| 125 | ∃ g : ∀ a : Fin (n + 1) → r.charts, LocallyConstant (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a) ℤ, |
| 126 | ∀ a (x : AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a), (g a x : ℚ) = |
| 127 | (N : ℚ) * c (Subtype.val ∘ a) |
| 128 | ⟨x.val, r.intersectionClosure_subset a (subset_closure x.property)⟩ := by |
| 129 | classical |
| 130 | let f (a : Fin (n + 1) → r.charts) : LocallyConstant (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection r.cover a) ℚ := |
| 131 | ⟨fun x => c (Subtype.val ∘ a) |
| 132 | ⟨x.val, r.intersectionClosure_subset a (subset_closure x.property)⟩, |
| 133 | (c (Subtype.val ∘ a)).isLocallyConstant.comp_continuous (continuous_subtype_val.subtype_mk _)⟩ |
| 134 | exact finiteFamily_locallyConstant_integer_scale f |
| 135 | (fun a => r.intersection_clear_denominators a (c (Subtype.val ∘ a))) |
| 136 | |
| 137 | end |
| 138 | |
| 139 | section |
| 140 | |
| 141 | /-! Integer Čech cochains with the original alternating open-restriction differential. -/ |
| 142 | |
| 143 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 144 | open scoped BigOperators |
| 145 | |
| 146 | set_option backward.isDefEq.respectTransparency false |
| 147 | set_option backward.isDefEq.respectTransparency.types false |
| 148 | set_option backward.defeqAttrib.useBackward true |
| 149 | |
| 150 | variable {T I : Type} [TopologicalSpace T] (U : I → Opens T) |
| 151 | |
| 152 | abbrev IntegerCechCochain (n : ℕ) := |
| 153 | ∀ a : Fin (n + 1) → I, LocallyConstant (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) ℤ |
| 154 | |
| 155 | def integerCechRationalize (n : ℕ) : IntegerCechCochain U n →+ |
| 156 | Rational.Cech.RationalCech.CechCochain (Obj.RationalCech.locallyConstantPresheaf (TopCat.of T)) U n where |
| 157 | toFun c a := LocallyConstant.mapAddMonoidHom (Int.castAddHom ℚ) (c a) |
| 158 | map_zero' := by |
| 159 | funext a |
| 160 | exact map_zero (LocallyConstant.mapAddMonoidHom (Int.castAddHom ℚ)) |
| 161 | map_add' c d := by |
| 162 | funext a |
| 163 | exact map_add (LocallyConstant.mapAddMonoidHom (Int.castAddHom ℚ)) (c a) (d a) |
| 164 | |
| 165 | theorem integerCechRationalize_injective (n : ℕ) : Function.Injective (integerCechRationalize U n) := by |
| 166 | intro c d h |
| 167 | funext a |
| 168 | apply LocallyConstant.ext |
| 169 | intro x |
| 170 | exact Rat.intCast_injective (congrArg (fun f => (f a : LocallyConstant (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection U a) ℚ) x) h) |
| 171 | |
| 172 | def integerCechDelta (n : ℕ) (c : IntegerCechCochain U n) : IntegerCechCochain U (n + 1) := |
| 173 | fun a => ∑ j : Fin (n + 2), (-1 : ℤ) ^ j.val • |
| 174 | ((IntegralConstantSheaf.locallyConstantIntegerPresheaf (TopCat.of T)).map |
| 175 | (homOfLE (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a j.succAbove)).op (c (a ∘ j.succAbove))) |
| 176 | |
| 177 | theorem integerCechRationalize_delta (n : ℕ) (c : IntegerCechCochain U n) : |
| 178 | integerCechRationalize U (n + 1) (integerCechDelta U n c) = |
| 179 | Rational.Cech.RationalCech.cechDelta (Obj.RationalCech.locallyConstantPresheaf (TopCat.of T)) U n |
| 180 | (integerCechRationalize U n c) := by |
| 181 | funext a |
| 182 | change LocallyConstant.mapAddMonoidHom (Int.castAddHom ℚ) |
| 183 | (∑ j : Fin (n + 2), (-1 : ℤ) ^ j.val • |
| 184 | ((IntegralConstantSheaf.locallyConstantIntegerPresheaf (TopCat.of T)).map |
| 185 | (homOfLE (AlgebraicTopology.DeRham.Comparison.SmoothCech.cechIntersection_le_precomp U a j.succAbove)).op (c (a ∘ j.succAbove)))) = _ |
| 186 | rw [map_sum, Rational.Cech.RationalCech.cechDelta_apply] |
| 187 | apply Finset.sum_congr rfl |
| 188 | intro j _ |
| 189 | rw [map_zsmul] |
| 190 | congr 1 |
| 191 | |
| 192 | theorem integerCechDelta_squared (n : ℕ) (c : IntegerCechCochain U n) : |
| 193 | integerCechDelta U (n + 1) (integerCechDelta U n c) = 0 := by |
| 194 | apply integerCechRationalize_injective U (n + 2) |
| 195 | rw [integerCechRationalize_delta, integerCechRationalize_delta, |
| 196 | Rational.Cech.RationalCech.cechDelta_squared, map_zero] |
| 197 | |
| 198 | end |
| 199 | |
| 200 | /-! Every rational Čech cocycle on a compact normal space becomes integral after scaling and refinement. -/ |
| 201 | |
| 202 | open _root_.CategoryTheory _root_.TopologicalSpace |
| 203 | |
| 204 | set_option backward.isDefEq.respectTransparency false |
| 205 | set_option backward.isDefEq.respectTransparency.types false |
| 206 | set_option backward.defeqAttrib.useBackward true |
| 207 | |
| 208 | variable {T I : Type} [TopologicalSpace T] [CompactSpace T] [NormalSpace T] |
| 209 | |
| 210 | /-- The positive multiplier and the integer cocycle are constructed from the original rational cocycle. -/ |
| 211 | theorem exists_integral_cech_refinement (U : I → Opens T) (hU : ∀ x : T, ∃ i, x ∈ U i) |
| 212 | (n : ℕ) |
| 213 | (c : Rational.Cech.RationalCech.CechCochain (Obj.RationalCech.locallyConstantPresheaf (TopCat.of T)) U n) |
| 214 | (hc : Rational.Cech.RationalCech.cechDelta (Obj.RationalCech.locallyConstantPresheaf (TopCat.of T)) U n c = 0) : |
| 215 | ∃ r : CompactCechRefinement U, ∃ N : ℕ, 0 < N ∧ ∃ g : IntegerCechCochain r.cover n, |
| 216 | integerCechDelta r.cover n g = 0 ∧ |
| 217 | integerCechRationalize r.cover n g = (N : ℚ) • |
| 218 | Rational.Cech.RationalCech.cechRefinementMap (Obj.RationalCech.locallyConstantPresheaf (TopCat.of T)) |
| 219 | U r.cover Subtype.val r.subset n c := by |
| 220 | let r := compactCechRefinement U hU |
| 221 | obtain ⟨N, hN, g, hg⟩ := r.cochain_clear_denominators n c |
| 222 | have he : integerCechRationalize r.cover n g = (N : ℚ) • |
| 223 | Rational.Cech.RationalCech.cechRefinementMap (Obj.RationalCech.locallyConstantPresheaf (TopCat.of T)) |
| 224 | U r.cover Subtype.val r.subset n c := by |
| 225 | funext a |
| 226 | apply LocallyConstant.ext |
| 227 | intro x |
| 228 | exact hg a x |
| 229 | refine ⟨r, N, hN, g, ?_, he⟩ |
| 230 | apply integerCechRationalize_injective r.cover (n + 1) |
| 231 | rw [integerCechRationalize_delta, he, map_smul, |
| 232 | ← Rational.Cech.RationalCech.cechRefinementMap_delta, hc, map_zero, smul_zero, map_zero] |
| 233 | |
| 234 | end |
| 235 | |
| 236 | end OAI.AlgebraicGeometry.DivisorClass.Chern.Cech.IntegralRefinement |