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.AbelianModuli.ReferenceFamily.AdelicData |
| 2 | import Mathlib.Topology.Algebra.Valued.WithZeroMulInt |
| 3 | |
| 4 | /-! # Adelic Neighborhoods -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AdelicNeighborhoods |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A nonzero integer multiple of the local integer ring fits inside |
| 13 | any zero-neighborhood in each finite completion. This is the local |
| 14 | step in the finite-adelic principal-congruence neighborhood argument. -/ |
| 15 | |
| 16 | open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum |
| 17 | open scoped _root_.Topology |
| 18 | |
| 19 | theorem adic_integer_multiple_small (v : HeightOneSpectrum ℤ) |
| 20 | (U : Set (v.adicCompletion ℚ)) (hU : U ∈ 𝓝 (0 : v.adicCompletion ℚ)) : |
| 21 | ∃ n : ℤ, n ≠ 0 ∧ ∀ a ∈ v.adicCompletionIntegers ℚ, |
| 22 | algebraMap ℤ (v.adicCompletion ℚ) n * a ∈ U := by |
| 23 | obtain ⟨γ, hγ⟩ := Valued.mem_nhds_zero.mp hU |
| 24 | obtain ⟨ϖ, hϖ⟩ := intValuation_exists_uniformizer v |
| 25 | have hϖ0 : ϖ ≠ 0 := by |
| 26 | intro h |
| 27 | rw [h, map_zero] at hϖ |
| 28 | exact (WithZero.exp_ne_zero : WithZero.exp (-1 : ℤ) ≠ 0) hϖ.symm |
| 29 | have hval : Valued.v (algebraMap ℤ (v.adicCompletion ℚ) ϖ) = WithZero.exp (-1 : ℤ) := by |
| 30 | simpa only [valuedAdicCompletion_eq_valuation, valuation_of_algebraMap] using hϖ |
| 31 | have hlt : Valued.v (algebraMap ℤ (v.adicCompletion ℚ) ϖ) < 1 := by |
| 32 | rw [hval, ← WithZero.exp_zero, WithZero.exp_lt_exp] |
| 33 | norm_num |
| 34 | have ht := Valued.tendsto_zero_pow_of_v_lt_one hlt |
| 35 | have hball : {x : v.adicCompletion ℚ | Valued.v.restrict x < γ} ∈ 𝓝 (0 : v.adicCompletion ℚ) := |
| 36 | Valued.mem_nhds_zero.mpr ⟨γ, Set.Subset.rfl⟩ |
| 37 | obtain ⟨r, hr⟩ := Filter.eventually_atTop.mp (ht hball) |
| 38 | refine ⟨ϖ ^ r, pow_ne_zero r hϖ0, ?_⟩ |
| 39 | intro a ha |
| 40 | have ha' : Valued.v.restrict a ≤ 1 := (Valued.v.restrict_le_one_iff).mpr |
| 41 | ((mem_adicCompletionIntegers ℤ ℚ v).mp ha) |
| 42 | apply hγ |
| 43 | change Valued.v.restrict (algebraMap ℤ (v.adicCompletion ℚ) (ϖ ^ r) * a) < γ |
| 44 | rw [map_mul, map_pow] |
| 45 | exact (calc |
| 46 | Valued.v.restrict ((algebraMap ℤ (v.adicCompletion ℚ) ϖ) ^ r) * Valued.v.restrict a ≤ |
| 47 | Valued.v.restrict ((algebraMap ℤ (v.adicCompletion ℚ) ϖ) ^ r) * 1 := mul_le_mul_right ha' _ |
| 48 | _ = _ := mul_one _).trans_lt (hr r le_rfl) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | /-! Nonzero integer multiples of the integral finite adeles form a |
| 53 | basis of zero-neighborhoods inside the rational finite adele ring. The |
| 54 | proof combines finitely many local valuation bounds in the product of |
| 55 | local integer rings. -/ |
| 56 | |
| 57 | open IsDedekindDomain IsDedekindDomain.HeightOneSpectrum |
| 58 | open scoped Classical _root_.Topology |
| 59 | |
| 60 | abbrev IntegralAdeleProduct := ∀ v : HeightOneSpectrum ℤ, v.adicCompletionIntegers ℚ |
| 61 | |
| 62 | def integralAdeleProductMap : IntegralAdeleProduct → AdelicData.RationalFiniteAdeles := |
| 63 | RestrictedProduct.structureMap (fun v : HeightOneSpectrum ℤ => v.adicCompletion ℚ) |
| 64 | (fun v => (v.adicCompletionIntegers ℚ : Set (v.adicCompletion ℚ))) Filter.cofinite |
| 65 | |
| 66 | theorem integralAdeleProductMap_continuous : Continuous integralAdeleProductMap := |
| 67 | RestrictedProduct.isEmbedding_structureMap.continuous |
| 68 | |
| 69 | theorem integralAdeleProductMap_zero : integralAdeleProductMap 0 = 0 := rfl |
| 70 | |
| 71 | theorem local_integer_multiple_small (v : HeightOneSpectrum ℤ) |
| 72 | (W : Set (v.adicCompletionIntegers ℚ)) (hW : W ∈ 𝓝 (0 : v.adicCompletionIntegers ℚ)) : |
| 73 | ∃ n : ℤ, n ≠ 0 ∧ ∀ a : v.adicCompletionIntegers ℚ, n • a ∈ W := by |
| 74 | rw [nhds_subtype_eq_comap] at hW |
| 75 | obtain ⟨U, hU, hUW⟩ := Filter.mem_comap.mp hW |
| 76 | obtain ⟨n, hn, hsmall⟩ := adic_integer_multiple_small v U hU |
| 77 | refine ⟨n, hn, fun a => hUW ?_⟩ |
| 78 | change ((n • a : v.adicCompletionIntegers ℚ) : v.adicCompletion ℚ) ∈ U |
| 79 | have h := hsmall a.val a.property |
| 80 | have hcoe : ((n • a : v.adicCompletionIntegers ℚ) : v.adicCompletion ℚ) = n • a.val := |
| 81 | map_zsmul (v.adicCompletionIntegers ℚ).toSubring.subtype n a |
| 82 | rw [hcoe, zsmul_eq_mul] |
| 83 | rw [← map_intCast (algebraMap ℤ (v.adicCompletion ℚ)) n] |
| 84 | exact h |
| 85 | |
| 86 | theorem finite_adele_integer_multiple_small |
| 87 | (U : Set AdelicData.RationalFiniteAdeles) (hU : U ∈ 𝓝 (0 : AdelicData.RationalFiniteAdeles)) : |
| 88 | ∃ n : ℤ, n ≠ 0 ∧ ∀ a ∈ AdelicData.integralFiniteAdeles, n • a ∈ U := by |
| 89 | have hpre : integralAdeleProductMap ⁻¹' U ∈ 𝓝 (0 : IntegralAdeleProduct) := |
| 90 | integralAdeleProductMap_continuous.continuousAt.preimage_mem_nhds hU |
| 91 | rw [nhds_pi] at hpre |
| 92 | obtain ⟨I, W, hW, hsub⟩ := Filter.mem_pi'.mp hpre |
| 93 | choose n hn hsmall using fun v => local_integer_multiple_small v (W v) (hW v) |
| 94 | refine ⟨∏ v ∈ I, n v, Finset.prod_ne_zero_iff.mpr (fun v _ => hn v), ?_⟩ |
| 95 | intro a ha |
| 96 | let b : IntegralAdeleProduct := fun v => ⟨a v, ha v⟩ |
| 97 | have hb : (∏ v ∈ I, n v) • b ∈ Set.pi (I : Set (HeightOneSpectrum ℤ)) W := by |
| 98 | intro v hv |
| 99 | obtain ⟨c, hc⟩ := Finset.dvd_prod_of_mem n hv |
| 100 | change (∏ v ∈ I, n v) • b v ∈ W v |
| 101 | rw [hc, mul_smul] |
| 102 | exact hsmall v (c • b v) |
| 103 | have hmem := hsub hb |
| 104 | have he : integralAdeleProductMap ((∏ v ∈ I, n v) • b) = (∏ v ∈ I, n v) • a := by |
| 105 | apply IsDedekindDomain.FiniteAdeleRing.ext |
| 106 | intro v |
| 107 | rfl |
| 108 | exact he ▸ hmem |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.AdelicNeighborhoods |