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.Theta.PoissonAutomorphyNormalizationData |
| 2 | |
| 3 | /-! # Adelic Support -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.AdelicSupport.PoissonAutomorphyConstruction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Clearing denominators on compact subsets of the finite adeles. -/ |
| 10 | |
| 11 | open scoped Classical RestrictedProduct |
| 12 | open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum OAI.RepresentationTheory.Theta.PoissonAutomorphyNormalizationData |
| 13 | |
| 14 | abbrev FinitePlace := HeightOneSpectrum ℤ |
| 15 | |
| 16 | def integralAdele : Subring PoissonAutomorphyNormalizationData.AQf where |
| 17 | carrier := {a | ∀ v : FinitePlace, a v ∈ v.adicCompletionIntegers ℚ} |
| 18 | zero_mem' v := (v.adicCompletionIntegers ℚ).zero_mem |
| 19 | one_mem' v := (v.adicCompletionIntegers ℚ).one_mem |
| 20 | add_mem' ha hb v := (v.adicCompletionIntegers ℚ).toSubring.add_mem (ha v) (hb v) |
| 21 | mul_mem' ha hb v := (v.adicCompletionIntegers ℚ).toSubring.mul_mem (ha v) (hb v) |
| 22 | neg_mem' ha v := (v.adicCompletionIntegers ℚ).toSubring.neg_mem (ha v) |
| 23 | |
| 24 | theorem isOpen_integralAdele : IsOpen (integralAdele : Set PoissonAutomorphyNormalizationData.AQf) := by |
| 25 | exact RestrictedProduct.isOpen_forall_mem |
| 26 | (fun v : FinitePlace => Valued.isOpen_valuationSubring (v.adicCompletion ℚ)) |
| 27 | |
| 28 | theorem intCast_mem_integralAdele (n : ℤ) : (n : PoissonAutomorphyNormalizationData.AQf) ∈ integralAdele := |
| 29 | intCast_mem integralAdele n |
| 30 | |
| 31 | theorem integer_multiple_integral {a : PoissonAutomorphyNormalizationData.AQf} (ha : a ∈ integralAdele) (n : ℤ) : |
| 32 | (n : PoissonAutomorphyNormalizationData.AQf) * a ∈ integralAdele := |
| 33 | integralAdele.mul_mem (intCast_mem_integralAdele n) ha |
| 34 | |
| 35 | theorem integral_multiple_of_dvd {a : PoissonAutomorphyNormalizationData.AQf} {n m : ℤ} |
| 36 | (h : (n : PoissonAutomorphyNormalizationData.AQf) * a ∈ integralAdele) (hnm : n ∣ m) : |
| 37 | (m : PoissonAutomorphyNormalizationData.AQf) * a ∈ integralAdele := by |
| 38 | obtain ⟨k, rfl⟩ := hnm |
| 39 | simpa only [Int.cast_mul, mul_assoc, mul_left_comm (n : PoissonAutomorphyNormalizationData.AQf) (k : PoissonAutomorphyNormalizationData.AQf)] using |
| 40 | integer_multiple_integral h k |
| 41 | |
| 42 | theorem exists_integer_multiple_integral (a : PoissonAutomorphyNormalizationData.AQf) : |
| 43 | ∃ n : ℤ, n ≠ 0 ∧ (n : PoissonAutomorphyNormalizationData.AQf) * a ∈ integralAdele := by |
| 44 | have hfinite : {v : FinitePlace | a v ∉ v.adicCompletionIntegers ℚ}.Finite := by |
| 45 | exact Filter.eventually_cofinite.mp a.property |
| 46 | choose d hd hda using |
| 47 | (fun v : FinitePlace => |
| 48 | adicCompletion.mul_nonZeroDivisor_mem_adicCompletionIntegers v (a v)) |
| 49 | let n : ℤ := ∏ v ∈ hfinite.toFinset, d v |
| 50 | refine ⟨n, ?_, ?_⟩ |
| 51 | · apply Finset.prod_ne_zero_iff.mpr |
| 52 | intro v _ |
| 53 | exact nonZeroDivisors.ne_zero (hd v) |
| 54 | · intro v |
| 55 | change (n : v.adicCompletion ℚ) * a v ∈ v.adicCompletionIntegers ℚ |
| 56 | by_cases hv : v ∈ hfinite.toFinset |
| 57 | · obtain ⟨k, hk⟩ := Finset.dvd_prod_of_mem d hv |
| 58 | change n = d v * k at hk |
| 59 | rw [hk, Int.cast_mul] |
| 60 | have hdv : a v * (d v : v.adicCompletion ℚ) ∈ v.adicCompletionIntegers ℚ := by |
| 61 | simpa only [Algebra.cast, eq_intCast] using hda v |
| 62 | have hkv : (k : v.adicCompletion ℚ) ∈ v.adicCompletionIntegers ℚ := by |
| 63 | simpa only [Algebra.cast, eq_intCast] using coe_mem_adicCompletionIntegers (K := ℚ) v k |
| 64 | have h := (v.adicCompletionIntegers ℚ).mul_mem _ _ hdv hkv |
| 65 | rw [mul_assoc, mul_comm (a v)] at h |
| 66 | exact h |
| 67 | · have ha : a v ∈ v.adicCompletionIntegers ℚ := by |
| 68 | simpa using hv |
| 69 | apply (v.adicCompletionIntegers ℚ).mul_mem _ _ _ ha |
| 70 | simpa only [Algebra.cast, eq_intCast] using coe_mem_adicCompletionIntegers (K := ℚ) v n |
| 71 | |
| 72 | theorem rational_integral_iff (q : ℚ) : |
| 73 | algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q ∈ integralAdele ↔ ∃ n : ℤ, (n : ℚ) = q := by |
| 74 | constructor |
| 75 | · intro h |
| 76 | apply mem_integers_of_valuation_le_one (R := ℤ) (K := ℚ) q |
| 77 | intro v |
| 78 | simpa only [mem_adicCompletionIntegers, FiniteAdeleRing.algebraMap_apply, |
| 79 | valuedAdicCompletion_eq_valuation'] using h v |
| 80 | · rintro ⟨n, rfl⟩ |
| 81 | simpa only [map_intCast] using intCast_mem_integralAdele n |
| 82 | |
| 83 | variable {ι : Type*} [Fintype ι] |
| 84 | |
| 85 | def integralBox (n : ℤ) : Set (ι → PoissonAutomorphyNormalizationData.AQf) := |
| 86 | {a | ∀ i, (n : PoissonAutomorphyNormalizationData.AQf) * a i ∈ integralAdele} |
| 87 | |
| 88 | theorem isOpen_integralBox (n : ℤ) : IsOpen (integralBox (ι := ι) n) := by |
| 89 | simp only [integralBox, Set.ofPred_forall] |
| 90 | apply isOpen_iInter_of_finite |
| 91 | intro i |
| 92 | exact isOpen_integralAdele.preimage (continuous_const.mul (continuous_apply i)) |
| 93 | |
| 94 | omit [Fintype ι] in |
| 95 | theorem integralBox_mono {n m : ℤ} (h : n ∣ m) : |
| 96 | integralBox (ι := ι) n ⊆ integralBox m := by |
| 97 | intro a ha i |
| 98 | exact integral_multiple_of_dvd (ha i) h |
| 99 | |
| 100 | theorem exists_integralBox (a : ι → PoissonAutomorphyNormalizationData.AQf) : |
| 101 | ∃ n : ℤ, n ≠ 0 ∧ a ∈ integralBox n := by |
| 102 | choose n hn ha using fun i => exists_integer_multiple_integral (a i) |
| 103 | refine ⟨∏ i, n i, Finset.prod_ne_zero_iff.mpr (fun i _ => hn i), ?_⟩ |
| 104 | intro i |
| 105 | exact integral_multiple_of_dvd (ha i) (Finset.dvd_prod_of_mem n (Finset.mem_univ i)) |
| 106 | |
| 107 | /-- A compact finite-adelic set has one denominator valid for every coordinate. -/ |
| 108 | theorem compact_subset_integralBox (K : Set (ι → PoissonAutomorphyNormalizationData.AQf)) (hK : IsCompact K) : |
| 109 | ∃ n : ℤ, n ≠ 0 ∧ K ⊆ integralBox n := by |
| 110 | let U := fun n : {n : ℤ // n ≠ 0} => integralBox (ι := ι) n.val |
| 111 | let : Nonempty {n : ℤ // n ≠ 0} := ⟨⟨1, one_ne_zero⟩⟩ |
| 112 | have hcover : K ⊆ ⋃ n, U n := by |
| 113 | intro a _ |
| 114 | obtain ⟨n, hn, ha⟩ := exists_integralBox a |
| 115 | exact Set.mem_iUnion.mpr ⟨⟨n, hn⟩, ha⟩ |
| 116 | have hdir : Directed (· ⊆ ·) U := by |
| 117 | intro n m |
| 118 | refine ⟨⟨n.val * m.val, mul_ne_zero n.property m.property⟩, ?_, ?_⟩ |
| 119 | · exact integralBox_mono (dvd_mul_right n.val m.val) |
| 120 | · exact integralBox_mono (dvd_mul_left m.val n.val) |
| 121 | obtain ⟨n, hn⟩ := hK.elim_directed_cover U (fun n => isOpen_integralBox n.val) hcover hdir |
| 122 | exact ⟨n.val, n.property, hn⟩ |
| 123 | |
| 124 | /-- Rational positions in finite Schwartz support have uniformly bounded denominators. -/ |
| 125 | theorem finiteSchwartz_denominator (φ : PoissonAutomorphyNormalizationData.finiteSchwartz ι) : |
| 126 | ∃ n : ℤ, n ≠ 0 ∧ ∀ x : ι → ℚ, |
| 127 | φ.val (PoissonAutomorphyNormalizationData.finiteDiagonal x) ≠ 0 → ∀ i, ∃ m : ℤ, (m : ℚ) = (n : ℚ) * x i := by |
| 128 | obtain ⟨n, hn, hK⟩ := compact_subset_integralBox (tsupport φ.val) |
| 129 | (PoissonAutomorphyNormalizationData.Construction.finiteSchwartz_hasCompactSupport φ) |
| 130 | refine ⟨n, hn, ?_⟩ |
| 131 | intro x hx i |
| 132 | have h := hK (subset_tsupport φ.val hx) i |
| 133 | apply (rational_integral_iff ((n : ℚ) * x i)).mp |
| 134 | simpa only [PoissonAutomorphyNormalizationData.finiteDiagonal, map_mul, map_intCast] using h |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.RepresentationTheory.Theta.AdelicSupport.PoissonAutomorphyConstruction |