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.RepresentationTheory.Weil.AdelicSplitting.LocalCompact |
| 2 | |
| 3 | /-! # Integral Adeles -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.AdelicSplitting.IntegralAdeles.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The compact open ring of integral finite adeles, and clearing one |
| 10 | common denominator on compact subsets over any number field. -/ |
| 11 | |
| 12 | open scoped _root_.NumberField Classical RestrictedProduct |
| 13 | open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum |
| 14 | |
| 15 | variable (F : Type) [Field F] [NumberField F] |
| 16 | |
| 17 | def finiteIntegralRing : Subring (ArchimedeanAdeles.Construction.FiniteAdeles F) where |
| 18 | carrier := {a | ∀ v : HeightOneSpectrum (𝓞 F), a v ∈ v.adicCompletionIntegers F} |
| 19 | zero_mem' v := (v.adicCompletionIntegers F).zero_mem |
| 20 | one_mem' v := (v.adicCompletionIntegers F).one_mem |
| 21 | add_mem' ha hb v := (v.adicCompletionIntegers F).toSubring.add_mem (ha v) (hb v) |
| 22 | mul_mem' ha hb v := (v.adicCompletionIntegers F).toSubring.mul_mem (ha v) (hb v) |
| 23 | neg_mem' ha v := (v.adicCompletionIntegers F).toSubring.neg_mem (ha v) |
| 24 | |
| 25 | theorem isOpen_finiteIntegralRing : IsOpen (finiteIntegralRing F : Set (ArchimedeanAdeles.Construction.FiniteAdeles F)) := |
| 26 | RestrictedProduct.isOpen_forall_mem |
| 27 | (fun v : HeightOneSpectrum (𝓞 F) => Valued.isOpen_valuationSubring (v.adicCompletion F)) |
| 28 | |
| 29 | def finiteIntegralProductHomeomorph : |
| 30 | (∀ v : HeightOneSpectrum (𝓞 F), v.adicCompletionIntegers F) ≃ₜ finiteIntegralRing F := |
| 31 | (RestrictedProduct.isEmbedding_structureMap |
| 32 | (R := fun v : HeightOneSpectrum (𝓞 F) => v.adicCompletion F) |
| 33 | (A := fun v => (v.adicCompletionIntegers F : Set (v.adicCompletion F))) |
| 34 | (𝓕 := Filter.cofinite)).toHomeomorph.trans |
| 35 | (Homeomorph.setCongr (by rw [RestrictedProduct.range_structureMap]; rfl)) |
| 36 | |
| 37 | instance e26FiniteIntegerCompact (v : HeightOneSpectrum (𝓞 F)) : |
| 38 | CompactSpace (v.adicCompletionIntegers F) := by |
| 39 | apply isCompact_iff_compactSpace.mp |
| 40 | have he : (v.adicCompletionIntegers F : Set (v.adicCompletion F)) = |
| 41 | Metric.closedBall (0 : v.adicCompletion F) 1 := by |
| 42 | ext x |
| 43 | simp only [Metric.mem_closedBall, dist_zero_right, Valued.toNormedField.norm_le_one_iff] |
| 44 | rfl |
| 45 | rw [he] |
| 46 | exact isCompact_closedBall _ _ |
| 47 | |
| 48 | instance e26FiniteIntegralCompact : CompactSpace (finiteIntegralRing F) := |
| 49 | (finiteIntegralProductHomeomorph F).compactSpace |
| 50 | |
| 51 | theorem isCompact_finiteIntegralRing : IsCompact (finiteIntegralRing F : Set (ArchimedeanAdeles.Construction.FiniteAdeles F)) := |
| 52 | isCompact_iff_compactSpace.mpr (inferInstanceAs (CompactSpace (finiteIntegralRing F))) |
| 53 | |
| 54 | theorem algebraMap_mem_finiteIntegralRing (a : 𝓞 F) : |
| 55 | algebraMap (𝓞 F) (ArchimedeanAdeles.Construction.FiniteAdeles F) a ∈ finiteIntegralRing F := by |
| 56 | intro v |
| 57 | exact coe_mem_adicCompletionIntegers (K := F) v a |
| 58 | |
| 59 | def integerToFiniteIntegral : 𝓞 F →+* finiteIntegralRing F := |
| 60 | (algebraMap (𝓞 F) (ArchimedeanAdeles.Construction.FiniteAdeles F)).codRestrict (finiteIntegralRing F) |
| 61 | (algebraMap_mem_finiteIntegralRing F) |
| 62 | |
| 63 | theorem integerToFiniteIntegral_eq_product (a : 𝓞 F) : |
| 64 | integerToFiniteIntegral F a = finiteIntegralProductHomeomorph F |
| 65 | (fun v => algebraMap (𝓞 F) (v.adicCompletionIntegers F) a) := rfl |
| 66 | |
| 67 | theorem exists_integer_multiple_finiteIntegral (a : ArchimedeanAdeles.Construction.FiniteAdeles F) : |
| 68 | ∃ r : 𝓞 F, r ≠ 0 ∧ algebraMap (𝓞 F) (ArchimedeanAdeles.Construction.FiniteAdeles F) r * a ∈ finiteIntegralRing F := by |
| 69 | have hs : {v : HeightOneSpectrum (𝓞 F) | a v ∉ v.adicCompletionIntegers F}.Finite := |
| 70 | Filter.eventually_cofinite.mp a.property |
| 71 | choose d hd hda using (fun v : HeightOneSpectrum (𝓞 F) => |
| 72 | adicCompletion.mul_nonZeroDivisor_mem_adicCompletionIntegers v (a v)) |
| 73 | let r : 𝓞 F := ∏ v ∈ hs.toFinset, d v |
| 74 | refine ⟨r, Finset.prod_ne_zero_iff.mpr (fun v _ => nonZeroDivisors.ne_zero (hd v)), ?_⟩ |
| 75 | intro v |
| 76 | change algebraMap (𝓞 F) (v.adicCompletion F) r * a v ∈ v.adicCompletionIntegers F |
| 77 | by_cases hv : v ∈ hs.toFinset |
| 78 | · obtain ⟨k, hk⟩ := Finset.dvd_prod_of_mem d hv |
| 79 | change r = d v * k at hk |
| 80 | rw [hk, map_mul] |
| 81 | have h := (v.adicCompletionIntegers F).mul_mem _ _ (hda v) |
| 82 | (coe_mem_adicCompletionIntegers (K := F) v k) |
| 83 | simpa only [Algebra.cast, mul_assoc, mul_left_comm, mul_comm] using! h |
| 84 | · have ha : a v ∈ v.adicCompletionIntegers F := by simpa using hv |
| 85 | exact (v.adicCompletionIntegers F).mul_mem _ _ |
| 86 | (coe_mem_adicCompletionIntegers (K := F) v r) ha |
| 87 | |
| 88 | theorem rational_mem_finiteIntegral_iff (q : F) : |
| 89 | algebraMap F (ArchimedeanAdeles.Construction.FiniteAdeles F) q ∈ finiteIntegralRing F ↔ |
| 90 | ∃ r : 𝓞 F, algebraMap (𝓞 F) F r = q := by |
| 91 | constructor |
| 92 | · intro h |
| 93 | apply mem_integers_of_valuation_le_one (R := 𝓞 F) (K := F) q |
| 94 | intro v |
| 95 | simpa only [mem_adicCompletionIntegers, FiniteAdeleRing.algebraMap_apply, |
| 96 | valuedAdicCompletion_eq_valuation'] using h v |
| 97 | · rintro ⟨r, rfl⟩ |
| 98 | rw [← IsScalarTower.algebraMap_apply] |
| 99 | exact algebraMap_mem_finiteIntegralRing F r |
| 100 | |
| 101 | variable {ι : Type*} [Fintype ι] |
| 102 | |
| 103 | def finiteIntegralBox (r : 𝓞 F) : Set (ι → ArchimedeanAdeles.Construction.FiniteAdeles F) := |
| 104 | {a | ∀ i, algebraMap (𝓞 F) (ArchimedeanAdeles.Construction.FiniteAdeles F) r * a i ∈ finiteIntegralRing F} |
| 105 | |
| 106 | theorem isOpen_finiteIntegralBox (r : 𝓞 F) : |
| 107 | IsOpen (finiteIntegralBox F (ι := ι) r) := by |
| 108 | simp only [finiteIntegralBox, Set.ofPred_forall] |
| 109 | apply isOpen_iInter_of_finite |
| 110 | intro i |
| 111 | exact (isOpen_finiteIntegralRing F).preimage (continuous_const.mul (continuous_apply i)) |
| 112 | |
| 113 | omit [Fintype ι] in |
| 114 | theorem finiteIntegralBox_mono {r s : 𝓞 F} (h : r ∣ s) : |
| 115 | finiteIntegralBox F (ι := ι) r ⊆ finiteIntegralBox F s := by |
| 116 | obtain ⟨t, rfl⟩ := h |
| 117 | intro a ha i |
| 118 | have hh := (finiteIntegralRing F).mul_mem (algebraMap_mem_finiteIntegralRing F t) (ha i) |
| 119 | simpa only [map_mul, mul_assoc, mul_left_comm] using hh |
| 120 | |
| 121 | theorem exists_finiteIntegralBox (a : ι → ArchimedeanAdeles.Construction.FiniteAdeles F) : |
| 122 | ∃ r : 𝓞 F, r ≠ 0 ∧ a ∈ finiteIntegralBox F r := by |
| 123 | choose r hr ha using fun i => exists_integer_multiple_finiteIntegral F (a i) |
| 124 | refine ⟨∏ i, r i, Finset.prod_ne_zero_iff.mpr (fun i _ => hr i), ?_⟩ |
| 125 | intro i |
| 126 | have hd := Finset.dvd_prod_of_mem r (Finset.mem_univ i) |
| 127 | obtain ⟨t, ht⟩ := hd |
| 128 | rw [ht, map_mul, mul_right_comm] |
| 129 | exact (finiteIntegralRing F).mul_mem (ha i) (algebraMap_mem_finiteIntegralRing F t) |
| 130 | |
| 131 | theorem compact_subset_finiteIntegralBox (K : Set (ι → ArchimedeanAdeles.Construction.FiniteAdeles F)) (hK : IsCompact K) : |
| 132 | ∃ r : 𝓞 F, r ≠ 0 ∧ K ⊆ finiteIntegralBox F r := by |
| 133 | let U := fun r : {r : 𝓞 F // r ≠ 0} => finiteIntegralBox F (ι := ι) r.val |
| 134 | let : Nonempty {r : 𝓞 F // r ≠ 0} := ⟨⟨1, one_ne_zero⟩⟩ |
| 135 | have hcover : K ⊆ ⋃ r, U r := by |
| 136 | intro a _ |
| 137 | obtain ⟨r, hr, ha⟩ := exists_finiteIntegralBox F a |
| 138 | exact Set.mem_iUnion.mpr ⟨⟨r, hr⟩, ha⟩ |
| 139 | have hdir : Directed (· ⊆ ·) U := by |
| 140 | intro r s |
| 141 | exact ⟨⟨r.val * s.val, mul_ne_zero r.property s.property⟩, |
| 142 | finiteIntegralBox_mono F (dvd_mul_right _ _), finiteIntegralBox_mono F (dvd_mul_left _ _)⟩ |
| 143 | obtain ⟨r, hr⟩ := hK.elim_directed_cover U (fun r => isOpen_finiteIntegralBox F r.val) hcover hdir |
| 144 | exact ⟨r.val, r.property, hr⟩ |
| 145 | |
| 146 | end |
| 147 | |
| 148 | end OAI.RepresentationTheory.Weil.AdelicSplitting.IntegralAdeles.Construction |