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.ConvexSupportHomology |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Geometric.CompactSupportAssembly |
| 3 | import Mathlib.Analysis.Convex.Basic |
| 4 | |
| 5 | /-! # Finite Convex Support -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteConvexSupport.Cycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Homology supported on finite unions of compact convex sets |
| 13 | |
| 14 | The finite-family induction includes intersections with the last convex set. |
| 15 | Those intersections form a family on the same smaller index set. The |
| 16 | homological application uses the actual Mayer–Vietoris sequence of complement |
| 17 | pairs, and the orientation class is the restriction of a containing-ball class. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | private theorem finite_compact_convex_union_induction |
| 25 | {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | (P : Set E → Prop) (hempty : P ∅) |
| 27 | (hsingle : ∀ C : Set E, IsCompact C → Convex ℝ C → P C) |
| 28 | (hunion : ∀ C D : Set E, IsCompact C → IsCompact D → |
| 29 | P C → P D → P (C ∩ D) → P (C ∪ D)) |
| 30 | {ι : Type u} (s : Finset ι) : |
| 31 | ∀ C : ι → Set E, (∀ i ∈ s, IsCompact (C i)) → |
| 32 | (∀ i ∈ s, Convex ℝ (C i)) → P (⋃ i ∈ s, C i) := by |
| 33 | classical |
| 34 | induction s using Finset.induction_on with |
| 35 | | empty => |
| 36 | intro C _ _ |
| 37 | simpa using hempty |
| 38 | | @insert a s ha ih => |
| 39 | intro C hcompact hconvex |
| 40 | have hCa : IsCompact (C a) := hcompact a (Finset.mem_insert_self a s) |
| 41 | have hVa : Convex ℝ (C a) := hconvex a (Finset.mem_insert_self a s) |
| 42 | have hCs : ∀ i ∈ s, IsCompact (C i) := |
| 43 | fun i hi => hcompact i (Finset.mem_insert_of_mem hi) |
| 44 | have hVs : ∀ i ∈ s, Convex ℝ (C i) := |
| 45 | fun i hi => hconvex i (Finset.mem_insert_of_mem hi) |
| 46 | have hInter : P (C a ∩ ⋃ i ∈ s, C i) := by |
| 47 | simpa only [Set.inter_iUnion] using |
| 48 | (ih (fun i => C a ∩ C i) |
| 49 | (fun i hi => hCa.inter_right (hCs i hi).isClosed) |
| 50 | (fun i hi => hVa.inter (hVs i hi))) |
| 51 | have hUnion := hunion (C a) (⋃ i ∈ s, C i) hCa (s.isCompact_biUnion hCs) |
| 52 | (hsingle (C a) hCa hVa) (ih C hCs hVs) hInter |
| 53 | simpa only [Finset.mem_insert, Set.iUnion_iUnion_eq_or_left] using hUnion |
| 54 | |
| 55 | private theorem finiteConvexSupport_main (p : ℕ) {ι : Type u} (s : Finset ι) |
| 56 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) |
| 57 | (hconvex : ∀ i ∈ s, Convex ℝ (C i)) : |
| 58 | (∀ n : ℕ, 2 * p < n → |
| 59 | IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) n)) ∧ |
| 60 | (∀ a b : HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin p → ℂ)) |
| 61 | (⋃ i ∈ s, C i) (2 * p), |
| 62 | (∀ x (hx : x ∈ ⋃ i ∈ s, C i), |
| 63 | LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) x hx (2 * p) a = |
| 64 | LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) x hx (2 * p) b) → |
| 65 | a = b) := by |
| 66 | classical |
| 67 | let X := TopCat.of (Fin p → ℂ) |
| 68 | let P : Set (Fin p → ℂ) → Prop := fun S => |
| 69 | (∀ n : ℕ, 2 * p < n → IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X S n)) ∧ |
| 70 | (∀ a b : HomologyWithSupports.Cycles.singularHomologyWithSupport X S (2 * p), |
| 71 | (∀ x (hx : x ∈ S), LocalHomologyPresheaf.Cycles.localHomologyToPoint X S x hx (2 * p) a = |
| 72 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X S x hx (2 * p) b) → a = b) |
| 73 | have hempty : P ∅ := by |
| 74 | constructor |
| 75 | · intro n _ |
| 76 | exact CompactSupportAssembly.Cycles.homologyWithSupport_empty_isZero X n |
| 77 | · intro a b _ |
| 78 | exact (ModuleCat.isZero_iff_subsingleton.mp |
| 79 | (CompactSupportAssembly.Cycles.homologyWithSupport_empty_isZero X (2 * p))).elim a b |
| 80 | have hsingle : ∀ S : Set (Fin p → ℂ), IsCompact S → Convex ℝ S → P S := by |
| 81 | intro S hS hconv |
| 82 | by_cases hne : S.Nonempty |
| 83 | · constructor |
| 84 | · intro n hn |
| 85 | exact ConvexSupportHomology.Cycles.complexConvexSupportHomology_isZero p S hS hconv hne n (ne_of_gt hn) |
| 86 | · intro a b hab |
| 87 | obtain ⟨x, hx⟩ := hne |
| 88 | exact (ConvexSupportHomology.Cycles.convexSupportPointHomologyMap_bijective (Fin p → ℂ) |
| 89 | S hS hconv x hx (2 * p)).1 (hab x hx) |
| 90 | · have hSempty : S = ∅ := Set.not_nonempty_iff_eq_empty.mp hne |
| 91 | simpa only [hSempty] using hempty |
| 92 | have hunion : ∀ S T : Set (Fin p → ℂ), IsCompact S → IsCompact T → |
| 93 | P S → P T → P (S ∩ T) → P (S ∪ T) := by |
| 94 | intro S T hS hT hPS hPT hPI |
| 95 | constructor |
| 96 | · intro n hn |
| 97 | exact CompactSupportAssembly.Cycles.supportUnion_isZero X S T hS.isClosed hT.isClosed n |
| 98 | (hPS.1 n hn) (hPT.1 n hn) (hPI.1 (n + 1) (by omega)) |
| 99 | · intro a b hab |
| 100 | apply CompactSupportAssembly.Cycles.supportUnion_ext X S T hS.isClosed hT.isClosed (2 * p) |
| 101 | (hPI.1 (2 * p + 1) (by omega)) a b |
| 102 | · apply hPS.2 |
| 103 | intro x hx |
| 104 | exact (ConcreteCategory.congr_hom |
| 105 | (CompactSupportAssembly.Cycles.homologyWithSupportRestriction_toPoint X |
| 106 | (Set.subset_union_left : S ⊆ S ∪ T) x hx (2 * p)) a).trans |
| 107 | ((hab x (Or.inl hx)).trans (ConcreteCategory.congr_hom |
| 108 | (CompactSupportAssembly.Cycles.homologyWithSupportRestriction_toPoint X |
| 109 | (Set.subset_union_left : S ⊆ S ∪ T) x hx (2 * p)) b).symm) |
| 110 | · apply hPT.2 |
| 111 | intro x hx |
| 112 | exact (ConcreteCategory.congr_hom |
| 113 | (CompactSupportAssembly.Cycles.homologyWithSupportRestriction_toPoint X |
| 114 | (Set.subset_union_right : T ⊆ S ∪ T) x hx (2 * p)) a).trans |
| 115 | ((hab x (Or.inr hx)).trans (ConcreteCategory.congr_hom |
| 116 | (CompactSupportAssembly.Cycles.homologyWithSupportRestriction_toPoint X |
| 117 | (Set.subset_union_right : T ⊆ S ∪ T) x hx (2 * p)) b).symm) |
| 118 | exact finite_compact_convex_union_induction P hempty hsingle hunion s C hcompact hconvex |
| 119 | |
| 120 | /-- The actual relative homology supported on a finite compact convex union |
| 121 | vanishes above the real dimension of complex coordinate space. -/ |
| 122 | theorem finiteConvexSupportHomology_isZero (p : ℕ) {ι : Type u} (s : Finset ι) |
| 123 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) |
| 124 | (hconvex : ∀ i ∈ s, Convex ℝ (C i)) (n : ℕ) (hn : 2 * p < n) : |
| 125 | IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) n) := |
| 126 | (finiteConvexSupport_main p s C hcompact hconvex).1 n hn |
| 127 | |
| 128 | /-- Point restrictions jointly distinguish top-dimensional classes supported |
| 129 | on a finite union of compact convex subsets. -/ |
| 130 | theorem finiteConvexSupport_point_ext (p : ℕ) {ι : Type u} (s : Finset ι) |
| 131 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) |
| 132 | (hconvex : ∀ i ∈ s, Convex ℝ (C i)) |
| 133 | {a b : HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) (2 * p)} |
| 134 | (h : ∀ x (hx : x ∈ ⋃ i ∈ s, C i), |
| 135 | LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) x hx (2 * p) a = |
| 136 | LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) x hx (2 * p) b) : |
| 137 | a = b := |
| 138 | (finiteConvexSupport_main p s C hcompact hconvex).2 a b h |
| 139 | |
| 140 | /-- A top class on a finite compact convex union vanishes if all point |
| 141 | restrictions vanish. -/ |
| 142 | theorem finiteConvexSupport_eq_zero (p : ℕ) {ι : Type u} (s : Finset ι) |
| 143 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) |
| 144 | (hconvex : ∀ i ∈ s, Convex ℝ (C i)) |
| 145 | (a : HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) (2 * p)) |
| 146 | (h : ∀ x (hx : x ∈ ⋃ i ∈ s, C i), |
| 147 | LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) x hx (2 * p) a = 0) : |
| 148 | a = 0 := by |
| 149 | apply finiteConvexSupport_point_ext p s C hcompact hconvex |
| 150 | intro x hx |
| 151 | rw [map_zero] |
| 152 | exact h x hx |
| 153 | |
| 154 | /-- The specified orientation class on a finite compact union, obtained from |
| 155 | the genuine class of a containing coordinate ball. -/ |
| 156 | def finiteConvexSupportClass (p : ℕ) {ι : Type u} (s : Finset ι) |
| 157 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) : |
| 158 | HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) (2 * p) := |
| 159 | ConvexSupportHomology.Cycles.complexCompactSupportClass p (⋃ i ∈ s, C i) (s.isCompact_biUnion hcompact) |
| 160 | |
| 161 | /-- The finite-union class has the prescribed local coordinate orientation |
| 162 | at every point of its support, including supports with several components. -/ |
| 163 | theorem finiteConvexSupportClass_atPoint (p : ℕ) {ι : Type u} (s : Finset ι) |
| 164 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) |
| 165 | (x : Fin p → ℂ) (hx : x ∈ ⋃ i ∈ s, C i) : |
| 166 | LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) x hx (2 * p) |
| 167 | (finiteConvexSupportClass p s C hcompact) = ClosedBall.Cycles.complexCoordinatePointClass p x := |
| 168 | ConvexSupportHomology.Cycles.complexCompactSupportClass_atPoint p (⋃ i ∈ s, C i) |
| 169 | (s.isCompact_biUnion hcompact) x hx |
| 170 | |
| 171 | /-- Normalization at every point uniquely determines the orientation class. -/ |
| 172 | theorem finiteConvexSupportClass_unique (p : ℕ) {ι : Type u} (s : Finset ι) |
| 173 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) |
| 174 | (hconvex : ∀ i ∈ s, Convex ℝ (C i)) |
| 175 | (a : HomologyWithSupports.Cycles.singularHomologyWithSupport (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) (2 * p)) |
| 176 | (h : ∀ x (hx : x ∈ ⋃ i ∈ s, C i), |
| 177 | LocalHomologyPresheaf.Cycles.localHomologyToPoint (TopCat.of (Fin p → ℂ)) (⋃ i ∈ s, C i) x hx (2 * p) a = |
| 178 | ClosedBall.Cycles.complexCoordinatePointClass p x) : |
| 179 | a = finiteConvexSupportClass p s C hcompact := by |
| 180 | apply finiteConvexSupport_point_ext p s C hcompact hconvex |
| 181 | intro x hx |
| 182 | rw [h x hx, finiteConvexSupportClass_atPoint] |
| 183 | |
| 184 | /-- Restricting the class of any containing compact support gives the unique |
| 185 | normalized class on the finite compact convex union. -/ |
| 186 | theorem finiteConvexSupportClass_restrict (p : ℕ) {ι : Type u} (s : Finset ι) |
| 187 | (C : ι → Set (Fin p → ℂ)) (hcompact : ∀ i ∈ s, IsCompact (C i)) |
| 188 | (hconvex : ∀ i ∈ s, Convex ℝ (C i)) |
| 189 | (L : Set (Fin p → ℂ)) (hL : IsCompact L) (hsub : (⋃ i ∈ s, C i) ⊆ L) : |
| 190 | CompactSupportAssembly.Cycles.homologyWithSupportRestriction (TopCat.of (Fin p → ℂ)) hsub (2 * p) |
| 191 | (ConvexSupportHomology.Cycles.complexCompactSupportClass p L hL) = finiteConvexSupportClass p s C hcompact := by |
| 192 | apply finiteConvexSupportClass_unique p s C hcompact hconvex |
| 193 | intro x hx |
| 194 | exact (ConcreteCategory.congr_hom |
| 195 | (CompactSupportAssembly.Cycles.homologyWithSupportRestriction_toPoint (TopCat.of (Fin p → ℂ)) hsub x hx (2 * p)) |
| 196 | (ConvexSupportHomology.Cycles.complexCompactSupportClass p L hL)).trans |
| 197 | (ConvexSupportHomology.Cycles.complexCompactSupportClass_atPoint p L hL x (hsub hx)) |
| 198 | |
| 199 | end |
| 200 | |
| 201 | end OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteConvexSupport.Cycles |