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.CompactSupportAssembly |
| 2 | import Mathlib.Topology.Compactness.Compact |
| 3 | |
| 4 | /-! # Finite Support Assembly -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteSupportAssembly.Cycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Finite assembly of actual homology classes with compact support |
| 12 | |
| 13 | The hypotheses in these generic lemmas concern the actual relative singular |
| 14 | homology of each compact piece. They prove finite-cover detection and gluing; |
| 15 | the geometric manifold instance is constructed separately. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | variable (X : TopCat.{0}) |
| 25 | |
| 26 | /-- Evaluation of support restriction followed by local restriction. -/ |
| 27 | theorem homologyWithSupportRestriction_toPoint_apply {K L : Set X} |
| 28 | (hKL : K ⊆ L) (n : ℕ) (a : HomologyWithSupports.Cycles.singularHomologyWithSupport X L n) |
| 29 | (x : X) (hx : x ∈ K) : |
| 30 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n (CompactSupportAssembly.Cycles.homologyWithSupportRestriction X hKL n a) = |
| 31 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X L x (hKL hx) n a := |
| 32 | ConcreteCategory.congr_hom (CompactSupportAssembly.Cycles.homologyWithSupportRestriction_toPoint X hKL x hx n) a |
| 33 | |
| 34 | /-- Zero detection at all points also detects equality of two classes. -/ |
| 35 | theorem supportPointwise_ext (K : Set X) (n : ℕ) |
| 36 | (hdet : ∀ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X K n, |
| 37 | (∀ x (hx : x ∈ K), LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n a = 0) → a = 0) |
| 38 | (a b : HomologyWithSupports.Cycles.singularHomologyWithSupport X K n) |
| 39 | (hab : ∀ x (hx : x ∈ K), |
| 40 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n a = LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n b) : a = b := by |
| 41 | apply sub_eq_zero.mp |
| 42 | apply hdet |
| 43 | intro x hx |
| 44 | rw [map_sub, hab x hx, sub_self] |
| 45 | |
| 46 | /-- Point restrictions detect a class on a binary union if they detect |
| 47 | both pieces and the next intersection group vanishes. -/ |
| 48 | theorem supportUnion_eq_zero_of_pointwise (K L : Set X) |
| 49 | (hK : IsClosed K) (hL : IsClosed L) (n : ℕ) |
| 50 | (hInt : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∩ L) (n + 1))) |
| 51 | (hdetK : ∀ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X K n, |
| 52 | (∀ x (hx : x ∈ K), LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n a = 0) → a = 0) |
| 53 | (hdetL : ∀ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X L n, |
| 54 | (∀ x (hx : x ∈ L), LocalHomologyPresheaf.Cycles.localHomologyToPoint X L x hx n a = 0) → a = 0) |
| 55 | (a : HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∪ L) n) |
| 56 | (ha : ∀ x (hx : x ∈ K ∪ L), LocalHomologyPresheaf.Cycles.localHomologyToPoint X (K ∪ L) x hx n a = 0) : |
| 57 | a = 0 := by |
| 58 | apply CompactSupportAssembly.Cycles.supportUnion_ext X K L hK hL n hInt a 0 |
| 59 | · rw [map_zero] |
| 60 | apply hdetK |
| 61 | intro x hx |
| 62 | rw [homologyWithSupportRestriction_toPoint_apply] |
| 63 | exact ha x (Or.inl hx) |
| 64 | · rw [map_zero] |
| 65 | apply hdetL |
| 66 | intro x hx |
| 67 | rw [homologyWithSupportRestriction_toPoint_apply] |
| 68 | exact ha x (Or.inr hx) |
| 69 | |
| 70 | /-- Classes having the same specified local values glue across a binary |
| 71 | closed cover when point restrictions detect classes on the overlap. -/ |
| 72 | theorem supportUnion_glue_of_pointwise (K L : Set X) |
| 73 | (hK : IsClosed K) (hL : IsClosed L) (n : ℕ) |
| 74 | (hdetInt : ∀ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∩ L) n, |
| 75 | (∀ x (hx : x ∈ K ∩ L), LocalHomologyPresheaf.Cycles.localHomologyToPoint X (K ∩ L) x hx n a = 0) → a = 0) |
| 76 | (u : ∀ x : X, LocalHomology.Cycles.localSingularHomology X x n) |
| 77 | (a : HomologyWithSupports.Cycles.singularHomologyWithSupport X K n) |
| 78 | (b : HomologyWithSupports.Cycles.singularHomologyWithSupport X L n) |
| 79 | (ha : ∀ x (hx : x ∈ K), LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n a = u x) |
| 80 | (hb : ∀ x (hx : x ∈ L), LocalHomologyPresheaf.Cycles.localHomologyToPoint X L x hx n b = u x) : |
| 81 | ∃ c : HomologyWithSupports.Cycles.singularHomologyWithSupport X (K ∪ L) n, |
| 82 | ∀ x (hx : x ∈ K ∪ L), LocalHomologyPresheaf.Cycles.localHomologyToPoint X (K ∪ L) x hx n c = u x := by |
| 83 | have hab : CompactSupportAssembly.Cycles.homologyWithSupportRestriction X |
| 84 | (Set.inter_subset_left : K ∩ L ⊆ K) n a = |
| 85 | CompactSupportAssembly.Cycles.homologyWithSupportRestriction X (Set.inter_subset_right : K ∩ L ⊆ L) n b := by |
| 86 | apply supportPointwise_ext X (K ∩ L) n hdetInt |
| 87 | intro x hx |
| 88 | rw [homologyWithSupportRestriction_toPoint_apply, |
| 89 | homologyWithSupportRestriction_toPoint_apply, ha x hx.1, hb x hx.2] |
| 90 | obtain ⟨c, hcK, hcL⟩ := CompactSupportAssembly.Cycles.supportUnion_glue X K L hK hL n a b hab |
| 91 | refine ⟨c, ?_⟩ |
| 92 | intro x hx |
| 93 | rcases hx with hx | hx |
| 94 | · rw [← homologyWithSupportRestriction_toPoint_apply X |
| 95 | (Set.subset_union_left : K ⊆ K ∪ L) n c x hx, hcK] |
| 96 | exact ha x hx |
| 97 | · rw [← homologyWithSupportRestriction_toPoint_apply X |
| 98 | (Set.subset_union_right : L ⊆ K ∪ L) n c x hx, hcL] |
| 99 | exact hb x hx |
| 100 | |
| 101 | variable [T2Space X] |
| 102 | |
| 103 | /-- Vanishing above a degree propagates to a finite compact union when |
| 104 | it holds for every compact subset of each individual member. -/ |
| 105 | theorem finiteSupportUnion_isZero {ι : Type} (s : Finset ι) (C : ι → Set X) (d : ℕ) |
| 106 | (hC : ∀ i ∈ s, IsCompact (C i)) |
| 107 | (hzero : ∀ i ∈ s, ∀ K : Set X, IsCompact K → K ⊆ C i → |
| 108 | ∀ n : ℕ, d < n → IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X K n)) : |
| 109 | ∀ n : ℕ, d < n → IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (⋃ i ∈ s, C i) n) := by |
| 110 | classical |
| 111 | revert hC hzero |
| 112 | induction s using Finset.induction_on with |
| 113 | | empty => |
| 114 | intro _ _ n _ |
| 115 | simpa only [Set.biUnion_empty_finset] using CompactSupportAssembly.Cycles.homologyWithSupport_empty_isZero X n |
| 116 | | @insert i s hi ih => |
| 117 | intro hC hzero n hn |
| 118 | have hCi := hC i (Finset.mem_insert_self i s) |
| 119 | have hCs : ∀ j ∈ s, IsCompact (C j) := |
| 120 | fun j hj => hC j (Finset.mem_insert_of_mem hj) |
| 121 | have hU := s.isCompact_biUnion hCs |
| 122 | have hzs : ∀ j ∈ s, ∀ K : Set X, IsCompact K → K ⊆ C j → |
| 123 | ∀ m : ℕ, d < m → IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X K m) := |
| 124 | fun j hj => hzero j (Finset.mem_insert_of_mem hj) |
| 125 | rw [Finset.set_biUnion_insert] |
| 126 | apply CompactSupportAssembly.Cycles.supportUnion_isZero X (C i) (⋃ j ∈ s, C j) hCi.isClosed hU.isClosed n |
| 127 | · exact hzero i (Finset.mem_insert_self i s) (C i) hCi (Set.Subset.refl _) n hn |
| 128 | · exact ih hCs hzs n hn |
| 129 | · exact hzero i (Finset.mem_insert_self i s) _ (hCi.inter hU) |
| 130 | Set.inter_subset_left (n + 1) (lt_trans hn (Nat.lt_succ_self n)) |
| 131 | |
| 132 | /-- Top-degree point detection propagates to a finite compact cover. -/ |
| 133 | theorem finiteSupportUnion_eq_zero_of_pointwise {ι : Type} (s : Finset ι) |
| 134 | (C : ι → Set X) (d : ℕ) |
| 135 | (hC : ∀ i ∈ s, IsCompact (C i)) |
| 136 | (hzero : ∀ i ∈ s, ∀ K : Set X, IsCompact K → K ⊆ C i → |
| 137 | ∀ n : ℕ, d < n → IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X K n)) |
| 138 | (hdet : ∀ i ∈ s, ∀ K : Set X, IsCompact K → K ⊆ C i → |
| 139 | ∀ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X K d, |
| 140 | (∀ x (hx : x ∈ K), LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx d a = 0) → a = 0) : |
| 141 | ∀ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X (⋃ i ∈ s, C i) d, |
| 142 | (∀ x (hx : x ∈ ⋃ i ∈ s, C i), |
| 143 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X (⋃ i ∈ s, C i) x hx d a = 0) → a = 0 := by |
| 144 | classical |
| 145 | revert hC hzero hdet |
| 146 | induction s using Finset.induction_on with |
| 147 | | empty => |
| 148 | intro _ _ _ a _ |
| 149 | have hz : IsZero (HomologyWithSupports.Cycles.singularHomologyWithSupport X (⋃ i ∈ (∅ : Finset ι), C i) d) := by |
| 150 | simpa only [Set.biUnion_empty_finset] using CompactSupportAssembly.Cycles.homologyWithSupport_empty_isZero X d |
| 151 | exact (ModuleCat.isZero_iff_subsingleton.mp hz).elim _ _ |
| 152 | | @insert i s hi ih => |
| 153 | intro hC hzero hdet |
| 154 | have hCi := hC i (Finset.mem_insert_self i s) |
| 155 | have hCs : ∀ j ∈ s, IsCompact (C j) := |
| 156 | fun j hj => hC j (Finset.mem_insert_of_mem hj) |
| 157 | have hU := s.isCompact_biUnion hCs |
| 158 | rw [Finset.set_biUnion_insert] |
| 159 | exact supportUnion_eq_zero_of_pointwise X (C i) (⋃ j ∈ s, C j) |
| 160 | hCi.isClosed hU.isClosed d |
| 161 | (hzero i (Finset.mem_insert_self i s) _ (hCi.inter hU) |
| 162 | Set.inter_subset_left (d + 1) (Nat.lt_succ_self d)) |
| 163 | (hdet i (Finset.mem_insert_self i s) (C i) hCi (Set.Subset.refl _)) |
| 164 | (ih hCs (fun j hj => hzero j (Finset.mem_insert_of_mem hj)) |
| 165 | (fun j hj => hdet j (Finset.mem_insert_of_mem hj))) |
| 166 | |
| 167 | /-- Actual classes on finitely many compact supports glue when their local |
| 168 | values agree and point restrictions detect every compact overlap. -/ |
| 169 | theorem finiteSupportUnion_glue {ι : Type} (s : Finset ι) (C : ι → Set X) (n : ℕ) |
| 170 | (hC : ∀ i ∈ s, IsCompact (C i)) |
| 171 | (hdet : ∀ i ∈ s, ∀ K : Set X, IsCompact K → K ⊆ C i → |
| 172 | ∀ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X K n, |
| 173 | (∀ x (hx : x ∈ K), LocalHomologyPresheaf.Cycles.localHomologyToPoint X K x hx n a = 0) → a = 0) |
| 174 | (u : ∀ x : X, LocalHomology.Cycles.localSingularHomology X x n) |
| 175 | (hclass : ∀ i ∈ s, ∃ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X (C i) n, |
| 176 | ∀ x (hx : x ∈ C i), LocalHomologyPresheaf.Cycles.localHomologyToPoint X (C i) x hx n a = u x) : |
| 177 | ∃ a : HomologyWithSupports.Cycles.singularHomologyWithSupport X (⋃ i ∈ s, C i) n, |
| 178 | ∀ x (hx : x ∈ ⋃ i ∈ s, C i), |
| 179 | LocalHomologyPresheaf.Cycles.localHomologyToPoint X (⋃ i ∈ s, C i) x hx n a = u x := by |
| 180 | classical |
| 181 | revert hC hdet hclass |
| 182 | induction s using Finset.induction_on with |
| 183 | | empty => |
| 184 | intro _ _ _ |
| 185 | refine ⟨0, ?_⟩ |
| 186 | intro x hx |
| 187 | simp only [Set.biUnion_empty_finset, Set.mem_empty_iff_false] at hx |
| 188 | | @insert i s hi ih => |
| 189 | intro hC hdet hclass |
| 190 | have hCi := hC i (Finset.mem_insert_self i s) |
| 191 | have hCs : ∀ j ∈ s, IsCompact (C j) := |
| 192 | fun j hj => hC j (Finset.mem_insert_of_mem hj) |
| 193 | have hU := s.isCompact_biUnion hCs |
| 194 | obtain ⟨a, ha⟩ := hclass i (Finset.mem_insert_self i s) |
| 195 | obtain ⟨b, hb⟩ := ih hCs (fun j hj => hdet j (Finset.mem_insert_of_mem hj)) |
| 196 | (fun j hj => hclass j (Finset.mem_insert_of_mem hj)) |
| 197 | rw [Finset.set_biUnion_insert] |
| 198 | exact supportUnion_glue_of_pointwise X (C i) (⋃ j ∈ s, C j) |
| 199 | hCi.isClosed hU.isClosed n |
| 200 | (hdet i (Finset.mem_insert_self i s) _ (hCi.inter hU) Set.inter_subset_left) |
| 201 | u a b ha hb |
| 202 | |
| 203 | end |
| 204 | |
| 205 | end OAI.AlgebraicGeometry.CycleClass.Geometric.FiniteSupportAssembly.Cycles |