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.NumberTheory.ArithmeticGroups.Lattices.Algebraic |
| 2 | |
| 3 | /-! # Local Adeles -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.Quaternion.Arithmetic.LocalAdeles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Concrete local and restricted adelic point spaces for Arithmetic. |
| 10 | This file does not assert strong approximation. -/ |
| 11 | |
| 12 | open scoped Classical _root_.NumberField RestrictedProduct |
| 13 | open Filter |
| 14 | open OAI.NumberTheory.ArithmeticGroups.Lattices.Algebraic |
| 15 | |
| 16 | abbrev Place (F : Type) [Field F] := |
| 17 | NumberField.InfinitePlace F ⊕ IsDedekindDomain.HeightOneSpectrum (𝓞 F) |
| 18 | |
| 19 | variable {F : Type} [Field F] [NumberField F] |
| 20 | |
| 21 | def Completion : Place F → Type |
| 22 | | .inl v => v.Completion |
| 23 | | .inr v => v.adicCompletion F |
| 24 | |
| 25 | instance completionField (v : Place F) : Field (LocalAdeles.Completion v) := by |
| 26 | cases v with |
| 27 | | inl v => exact inferInstanceAs (Field v.Completion) |
| 28 | | inr v => exact inferInstanceAs (Field (v.adicCompletion F)) |
| 29 | |
| 30 | instance completionTopology (v : Place F) : TopologicalSpace (LocalAdeles.Completion v) := by |
| 31 | cases v with |
| 32 | | inl v => exact inferInstanceAs (TopologicalSpace v.Completion) |
| 33 | | inr v => exact inferInstanceAs (TopologicalSpace (v.adicCompletion F)) |
| 34 | |
| 35 | instance completionTopologicalRing (v : Place F) : IsTopologicalRing (LocalAdeles.Completion v) := by |
| 36 | cases v with |
| 37 | | inl v => exact inferInstanceAs (IsTopologicalRing v.Completion) |
| 38 | | inr v => exact inferInstanceAs (IsTopologicalRing (v.adicCompletion F)) |
| 39 | |
| 40 | def localEmbedding : (v : Place F) → F →+* LocalAdeles.Completion v |
| 41 | | .inl v => algebraMap F v.Completion |
| 42 | | .inr v => NumberField.FinitePlace.embedding v |
| 43 | |
| 44 | def localIntegerRing : (v : Place F) → Subring (LocalAdeles.Completion v) |
| 45 | | .inl _ => ⊤ |
| 46 | | .inr v => (v.adicCompletionIntegers F).toSubring |
| 47 | |
| 48 | theorem localIntegerRing_isOpen (v : Place F) : |
| 49 | IsOpen (localIntegerRing v : Set (LocalAdeles.Completion v)) := by |
| 50 | cases v with |
| 51 | | inl v => exact isOpen_univ |
| 52 | | inr v => exact Valued.isOpen_valuationSubring (v.adicCompletion F) |
| 53 | |
| 54 | variable {n : ℕ} (G : ArithmeticGroups.Lattices.Algebraic.MatrixAlgebraicGroup F n) |
| 55 | |
| 56 | abbrev LocalPoints (v : Place F) := G.Points (localEmbedding v) |
| 57 | |
| 58 | def diagonalLocal (v : Place F) : G.RationalPoints →* LocalPoints G v := |
| 59 | G.map (RingHom.id F) (localEmbedding v) |
| 60 | |
| 61 | @[simp] theorem diagonalLocal_entry (v : Place F) (g : G.RationalPoints) |
| 62 | (i j : Fin n) : |
| 63 | (diagonalLocal G v g).val i j = localEmbedding v (g.val i j) := rfl |
| 64 | |
| 65 | /-- Integral invertible matrices in the fixed faithful representation. |
| 66 | Requiring integral inverse entries also makes sense independently of determinant one. -/ |
| 67 | def integralLocalSubgroup (v : Place F) : Subgroup (LocalPoints G v) where |
| 68 | carrier := {g | (∀ i j, g.val i j ∈ localIntegerRing v) ∧ |
| 69 | ∀ i j, (g⁻¹).val i j ∈ localIntegerRing v} |
| 70 | one_mem' := by |
| 71 | constructor <;> intro i j <;> |
| 72 | simp only [inv_one, OneMemClass.coe_one, Matrix.SpecialLinearGroup.coe_one, |
| 73 | Matrix.one_apply] <;> split_ifs <;> simp |
| 74 | mul_mem' := by |
| 75 | intro g h hg hh |
| 76 | constructor |
| 77 | · intro i j |
| 78 | change ∑ k, g.val i k * h.val k j ∈ localIntegerRing v |
| 79 | exact (localIntegerRing v).sum_mem fun k _ => |
| 80 | (localIntegerRing v).mul_mem (hg.1 i k) (hh.1 k j) |
| 81 | · intro i j |
| 82 | rw [mul_inv_rev] |
| 83 | change ∑ k, (h⁻¹).val i k * (g⁻¹).val k j ∈ localIntegerRing v |
| 84 | exact (localIntegerRing v).sum_mem fun k _ => |
| 85 | (localIntegerRing v).mul_mem (hh.2 i k) (hg.2 k j) |
| 86 | inv_mem' := by |
| 87 | intro g hg |
| 88 | exact ⟨hg.2, by simpa only [inv_inv] using hg.1⟩ |
| 89 | |
| 90 | theorem local_entry_continuous (v : Place F) (i j : Fin n) : |
| 91 | Continuous (fun g : LocalPoints G v => g.val i j) := by |
| 92 | exact (continuous_apply j).comp |
| 93 | (Matrix.SpecialLinearGroup.continuous_apply |
| 94 | (fun g : LocalPoints G v => g.val) continuous_subtype_val i) |
| 95 | |
| 96 | theorem integralLocalSubgroup_isOpen (v : Place F) : |
| 97 | IsOpen (integralLocalSubgroup G v : Set (LocalPoints G v)) := by |
| 98 | have he : IsOpen {g : LocalPoints G v | ∀ i j, g.val i j ∈ localIntegerRing v} := by |
| 99 | simp only [Set.ofPred_forall] |
| 100 | exact isOpen_iInter_of_finite fun i => isOpen_iInter_of_finite fun j => |
| 101 | (localIntegerRing_isOpen v).preimage (local_entry_continuous G v i j) |
| 102 | exact he.inter (he.preimage continuous_inv) |
| 103 | |
| 104 | theorem eventually_integral_scalar (a : F) : |
| 105 | ∀ᶠ v : Place F in cofinite, localEmbedding v a ∈ localIntegerRing v := by |
| 106 | have hf := (algebraMap F (IsDedekindDomain.FiniteAdeleRing (𝓞 F) F) a).property |
| 107 | rw [Filter.eventually_cofinite] at hf ⊢ |
| 108 | apply (hf.image (Sum.inr : IsDedekindDomain.HeightOneSpectrum (𝓞 F) → Place F)).subset |
| 109 | intro v hv |
| 110 | cases v with |
| 111 | | inl v => exact (hv (show localEmbedding (.inl v) a ∈ localIntegerRing (.inl v) from |
| 112 | Subring.mem_top _)).elim |
| 113 | | inr v => exact ⟨v, hv, rfl⟩ |
| 114 | |
| 115 | theorem eventually_integral_diagonal (g : G.RationalPoints) : |
| 116 | ∀ᶠ v : Place F in cofinite, diagonalLocal G v g ∈ integralLocalSubgroup G v := by |
| 117 | have hf : ∀ᶠ v : Place F in cofinite, ∀ i j : Fin n, |
| 118 | localEmbedding v (g.val i j) ∈ localIntegerRing v := |
| 119 | Filter.eventually_all.mpr fun i => |
| 120 | Filter.eventually_all.mpr fun j => eventually_integral_scalar (g.val i j) |
| 121 | have hi : ∀ᶠ v : Place F in cofinite, ∀ i j : Fin n, |
| 122 | localEmbedding v ((g⁻¹).val i j) ∈ localIntegerRing v := |
| 123 | Filter.eventually_all.mpr fun i => |
| 124 | Filter.eventually_all.mpr fun j => eventually_integral_scalar ((g⁻¹).val i j) |
| 125 | filter_upwards [hf, hi] with v hv hi |
| 126 | exact ⟨hv, by simpa only [← map_inv, diagonalLocal_entry] using hi⟩ |
| 127 | |
| 128 | /-- The restricted product topology, not the subspace topology of the full product. -/ |
| 129 | abbrev AwayAdelicPoints (S : Finset (Place F)) := |
| 130 | Πʳ v : {v : Place F // v ∉ S}, [LocalPoints G v.val, integralLocalSubgroup G v.val] |
| 131 | |
| 132 | instance awayAdelicTopologicalGroup (S : Finset (Place F)) : |
| 133 | IsTopologicalGroup (AwayAdelicPoints G S) := by |
| 134 | let : Fact (∀ v : {v : Place F // v ∉ S}, |
| 135 | IsOpen (integralLocalSubgroup G v.val : Set (LocalPoints G v.val))) := |
| 136 | ⟨fun v => integralLocalSubgroup_isOpen G v.val⟩ |
| 137 | exact inferInstance |
| 138 | |
| 139 | def diagonalAway (S : Finset (Place F)) : G.RationalPoints →* AwayAdelicPoints G S where |
| 140 | toFun g := ⟨fun v => diagonalLocal G v.val g, |
| 141 | Subtype.val_injective.tendsto_cofinite (eventually_integral_diagonal G g)⟩ |
| 142 | map_one' := by |
| 143 | apply RestrictedProduct.ext |
| 144 | intro v |
| 145 | exact map_one (diagonalLocal G v.val) |
| 146 | map_mul' g h := by |
| 147 | apply RestrictedProduct.ext |
| 148 | intro v |
| 149 | exact map_mul (diagonalLocal G v.val) g h |
| 150 | |
| 151 | @[simp] theorem diagonalAway_apply (S : Finset (Place F)) (g : G.RationalPoints) |
| 152 | (v : {v : Place F // v ∉ S}) : |
| 153 | diagonalAway G S g v = diagonalLocal G v.val g := rfl |
| 154 | |
| 155 | theorem diagonalLocal_injective (v : Place F) : |
| 156 | Function.Injective (diagonalLocal G v) := |
| 157 | G.map_injective (RingHom.id F) (localEmbedding v) |
| 158 | |
| 159 | theorem diagonalAway_injective (S : Finset (Place F)) (v : Place F) (hv : v ∉ S) : |
| 160 | Function.Injective (diagonalAway G S) := by |
| 161 | intro g h hgh |
| 162 | apply diagonalLocal_injective G v |
| 163 | exact congrArg (fun a : AwayAdelicPoints G S => a ⟨v, hv⟩) hgh |
| 164 | |
| 165 | /-- A single local component has a continuous projection from the adelic group. -/ |
| 166 | theorem awayAdelic_eval_continuous (S : Finset (Place F)) |
| 167 | (v : {v : Place F // v ∉ S}) : |
| 168 | Continuous (fun a : AwayAdelicPoints G S => a v) := |
| 169 | RestrictedProduct.continuous_eval v |
| 170 | |
| 171 | /-- The stated local noncompactness hypothesis is equivalent to noncompactness |
| 172 | of the product over the omitted places. -/ |
| 173 | theorem noncompact_place_iff_noncompact_product (S : Finset (Place F)) : |
| 174 | (∃ v : Place F, v ∈ S ∧ ¬ CompactSpace (LocalPoints G v)) ↔ |
| 175 | ¬ CompactSpace ((v : (S : Set (Place F))) → LocalPoints G v.val) := by |
| 176 | constructor |
| 177 | · rintro ⟨v, hv, hn⟩ hc |
| 178 | let : CompactSpace ((w : (S : Set (Place F))) → LocalPoints G w.val) := hc |
| 179 | have hi : IsCompact (Set.range |
| 180 | (fun a : (w : (S : Set (Place F))) → LocalPoints G w.val => a ⟨v, hv⟩)) := |
| 181 | isCompact_range (continuous_apply (⟨v, hv⟩ : (S : Set (Place F)))) |
| 182 | rw [(Function.surjective_eval |
| 183 | (β := fun w : (S : Set (Place F)) => LocalPoints G w.val) |
| 184 | (⟨v, hv⟩ : (S : Set (Place F)))).range_eq] at hi |
| 185 | exact hn ⟨hi⟩ |
| 186 | · intro hn |
| 187 | by_contra h |
| 188 | push Not at h |
| 189 | let : ∀ v : (S : Set (Place F)), CompactSpace (LocalPoints G v.val) := |
| 190 | fun v => h v.val v.property |
| 191 | exact hn inferInstance |
| 192 | |
| 193 | end |
| 194 | |
| 195 | end OAI.NumberTheory.Quaternion.Arithmetic.LocalAdeles |