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.PoissonAutomorphyFiniteFourier |
| 2 | import OAI.RepresentationTheory.Theta.RealPoisson |
| 3 | |
| 4 | /-! # Coset Poisson -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Theta.CosetPoisson.AutomorphyConstruction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Rational points in a finite-adelic lattice coset form an ordinary rational grid. -/ |
| 13 | |
| 14 | open scoped Classical |
| 15 | |
| 16 | variable {ι : Type*} |
| 17 | |
| 18 | def rationalGrid (q : ℚ) (a : ι → ℚ) (m : ι → ℤ) : ι → ℚ := |
| 19 | fun i => a i + q * (m i : ℚ) |
| 20 | |
| 21 | theorem rationalGrid_injective (q : ℚ) (hq : q ≠ 0) (a : ι → ℚ) : |
| 22 | Function.Injective (rationalGrid q a) := by |
| 23 | intro m k h |
| 24 | funext i |
| 25 | have hi := congrFun h i |
| 26 | change a i + q * (m i : ℚ) = a i + q * (k i : ℚ) at hi |
| 27 | have heq := mul_left_cancel₀ hq (add_left_cancel hi) |
| 28 | exact_mod_cast heq |
| 29 | |
| 30 | theorem rational_finiteCoset_mem_iff (q : ℚ) (hq : q ≠ 0) (a x : ι → ℚ) : |
| 31 | PoissonAutomorphyNormalizationData.finiteDiagonal x - PoissonAutomorphyNormalizationData.finiteDiagonal a ∈ PoissonAutomorphyFiniteFourier.Construction.finiteLattice q hq ↔ |
| 32 | ∃ m : ι → ℤ, rationalGrid q a m = x := by |
| 33 | rw [PoissonAutomorphyFiniteFourier.Construction.finiteLattice_mem_iff] |
| 34 | change (∀ i, algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q⁻¹ * |
| 35 | (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf (x i) - algebraMap ℚ PoissonAutomorphyNormalizationData.AQf (a i)) ∈ AdelicSupport.PoissonAutomorphyConstruction.integralAdele) ↔ _ |
| 36 | simp only [← map_sub, ← map_mul, AdelicSupport.PoissonAutomorphyConstruction.rational_integral_iff] |
| 37 | constructor |
| 38 | · intro h |
| 39 | choose m hm using h |
| 40 | refine ⟨m, funext fun i => ?_⟩ |
| 41 | change a i + q * (m i : ℚ) = x i |
| 42 | rw [hm i, ← mul_assoc, mul_inv_cancel₀ hq, one_mul] |
| 43 | ring |
| 44 | · rintro ⟨m, rfl⟩ i |
| 45 | refine ⟨m i, ?_⟩ |
| 46 | simp only [rationalGrid, add_sub_cancel_left, ← mul_assoc, inv_mul_cancel₀ hq, one_mul] |
| 47 | |
| 48 | theorem rationalReal_grid (q : ℚ) (a : ι → ℚ) (m : ι → ℤ) : |
| 49 | PoissonAutomorphyNormalizationData.Construction.rationalReal (rationalGrid q a m) = PoissonAutomorphyNormalizationData.Construction.rationalReal a + (q : ℝ) • RealFourier.PoissonAutomorphyConstruction.integerReal m := by |
| 50 | ext i |
| 51 | simp [PoissonAutomorphyNormalizationData.Construction.rationalReal, rationalGrid, RealFourier.PoissonAutomorphyConstruction.integerReal] |
| 52 | |
| 53 | theorem rational_coset_sum (q : ℚ) (hq : q ≠ 0) (a : ι → ℚ) (F : (ι → ℚ) → ℂ) : |
| 54 | (∑' x : ι → ℚ, F x * PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator q hq (PoissonAutomorphyNormalizationData.finiteDiagonal a) (PoissonAutomorphyNormalizationData.finiteDiagonal x)) = |
| 55 | ∑' m : ι → ℤ, F (rationalGrid q a m) := by |
| 56 | have hs : Function.support (fun x : ι → ℚ => |
| 57 | F x * PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator q hq (PoissonAutomorphyNormalizationData.finiteDiagonal a) (PoissonAutomorphyNormalizationData.finiteDiagonal x)) ⊆ |
| 58 | Set.range (rationalGrid q a) := by |
| 59 | intro x hx |
| 60 | have hmem : PoissonAutomorphyNormalizationData.finiteDiagonal x - PoissonAutomorphyNormalizationData.finiteDiagonal a ∈ PoissonAutomorphyFiniteFourier.Construction.finiteLattice q hq := by |
| 61 | by_contra h |
| 62 | have hz : PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator q hq (PoissonAutomorphyNormalizationData.finiteDiagonal a) (PoissonAutomorphyNormalizationData.finiteDiagonal x) = 0 := |
| 63 | PoissonAutomorphyFiniteFourier.Construction.latticeIndicator_of_notMem q hq h |
| 64 | exact hx (by dsimp only; rw [hz, mul_zero]) |
| 65 | exact (rational_finiteCoset_mem_iff q hq a x).mp hmem |
| 66 | rw [← (rationalGrid_injective q hq a).tsum_eq hs] |
| 67 | apply tsum_congr |
| 68 | intro m |
| 69 | have hmem := (rational_finiteCoset_mem_iff q hq a (rationalGrid q a m)).mpr ⟨m, rfl⟩ |
| 70 | change F (rationalGrid q a m) * PoissonAutomorphyFiniteFourier.Construction.latticeIndicator q hq |
| 71 | (PoissonAutomorphyNormalizationData.finiteDiagonal (rationalGrid q a m) - PoissonAutomorphyNormalizationData.finiteDiagonal a) = _ |
| 72 | rw [PoissonAutomorphyFiniteFourier.Construction.latticeIndicator_of_mem q hq hmem, mul_one] |
| 73 | |
| 74 | theorem rational_lattice_sum (q : ℚ) (hq : q ≠ 0) (F : (ι → ℚ) → ℂ) : |
| 75 | (∑' x : ι → ℚ, F x * PoissonAutomorphyFiniteFourier.Construction.latticeIndicator q hq (PoissonAutomorphyNormalizationData.finiteDiagonal x)) = |
| 76 | ∑' m : ι → ℤ, F (rationalGrid q 0 m) := by |
| 77 | have h := rational_coset_sum q hq (0 : ι → ℚ) F |
| 78 | have hz : PoissonAutomorphyNormalizationData.finiteDiagonal (0 : ι → ℚ) = 0 := by ext i; simp [PoissonAutomorphyNormalizationData.finiteDiagonal] |
| 79 | simpa only [PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator, hz, sub_zero] using h |
| 80 | |
| 81 | end |
| 82 | |
| 83 | /-! Adelic Poisson summation for a rational finite-lattice coset. -/ |
| 84 | |
| 85 | open scoped Classical |
| 86 | open _root_.MeasureTheory |
| 87 | |
| 88 | variable {ι : Type*} [Fintype ι] [DecidableEq ι] |
| 89 | {MpR MpF MpA : Type*} [Group MpR] [Group MpF] [Group MpA] |
| 90 | (D : PoissonAutomorphyNormalizationData.WeilData ι MpR MpF MpA) |
| 91 | |
| 92 | theorem finiteCharacter_rational_apply (q : ℚ) : |
| 93 | D.finiteCharacter (algebraMap ℚ PoissonAutomorphyNormalizationData.AQf q) = PoissonAutomorphyNormalizationData.standardRealCharacter (-(q : ℝ)) := by |
| 94 | have hn : PoissonAutomorphyNormalizationData.standardRealCharacter (q : ℝ) ≠ 0 := by |
| 95 | intro h |
| 96 | have hh := PoissonAutomorphyNormalizationData.standardRealCharacter_unitary (q : ℝ) |
| 97 | rw [h, norm_zero] at hh |
| 98 | exact zero_ne_one hh |
| 99 | apply mul_left_cancel₀ hn |
| 100 | rw [PoissonAutomorphyFiniteFourier.Construction.character_rational_product D, ← AddChar.map_add_eq_mul, add_neg_cancel, |
| 101 | AddChar.map_zero_eq_one] |
| 102 | |
| 103 | theorem finiteCharacter_negative_rational_pairing (x a : ι → ℚ) : |
| 104 | D.finiteCharacter (-(∑ i, PoissonAutomorphyNormalizationData.finiteDiagonal x i * PoissonAutomorphyNormalizationData.finiteDiagonal a i)) = |
| 105 | PoissonAutomorphyNormalizationData.standardRealCharacter (∑ i, PoissonAutomorphyNormalizationData.Construction.rationalReal x i * PoissonAutomorphyNormalizationData.Construction.rationalReal a i) := by |
| 106 | have heq : -(∑ i, PoissonAutomorphyNormalizationData.finiteDiagonal x i * PoissonAutomorphyNormalizationData.finiteDiagonal a i) = |
| 107 | algebraMap ℚ PoissonAutomorphyNormalizationData.AQf (-(∑ i, x i * a i)) := by |
| 108 | simp only [map_neg, map_sum, map_mul, PoissonAutomorphyNormalizationData.finiteDiagonal] |
| 109 | rw [heq, finiteCharacter_rational_apply] |
| 110 | simp only [Rat.cast_neg, Rat.cast_sum, Rat.cast_mul, neg_neg, PoissonAutomorphyNormalizationData.Construction.rationalReal] |
| 111 | |
| 112 | theorem coset_poisson_summation (n : ℕ) (hn : 0 < n) (a : ι → ℚ) |
| 113 | (f : SchwartzMap (ι → ℝ) ℂ) : |
| 114 | (∑' x : ι → ℚ, f (PoissonAutomorphyNormalizationData.Construction.rationalReal x) * |
| 115 | PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator (n : ℚ) (by exact_mod_cast hn.ne') (PoissonAutomorphyNormalizationData.finiteDiagonal a) (PoissonAutomorphyNormalizationData.finiteDiagonal x)) = |
| 116 | ∑' x : ι → ℚ, PoissonAutomorphyNormalizationData.fourier PoissonAutomorphyNormalizationData.standardRealCharacter volume f (PoissonAutomorphyNormalizationData.Construction.rationalReal x) * |
| 117 | PoissonAutomorphyNormalizationData.fourier D.finiteCharacter D.finiteMeasure |
| 118 | (PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator (n : ℚ) (by exact_mod_cast hn.ne') (PoissonAutomorphyNormalizationData.finiteDiagonal a)) (PoissonAutomorphyNormalizationData.finiteDiagonal x) := by |
| 119 | let hnq : (n : ℚ) ≠ 0 := by exact_mod_cast hn.ne' |
| 120 | let v : ℂ := ((n : ℝ) ^ Fintype.card ι)⁻¹ |
| 121 | calc |
| 122 | _ = ∑' m : ι → ℤ, f (PoissonAutomorphyNormalizationData.Construction.rationalReal a + (n : ℝ) • RealFourier.PoissonAutomorphyConstruction.integerReal m) := by |
| 123 | rw [rational_coset_sum] |
| 124 | simp only [rationalReal_grid, Rat.cast_natCast] |
| 125 | _ = v * ∑' k : ι → ℤ, PoissonAutomorphyNormalizationData.fourier PoissonAutomorphyNormalizationData.standardRealCharacter volume f |
| 126 | ((n : ℝ)⁻¹ • RealFourier.PoissonAutomorphyConstruction.integerReal k) * PoissonAutomorphyNormalizationData.standardRealCharacter |
| 127 | (∑ i, (k i : ℝ) * ((n : ℝ)⁻¹ * PoissonAutomorphyNormalizationData.Construction.rationalReal a i)) := |
| 128 | by simpa only [v, Complex.ofReal_inv, Complex.ofReal_pow] using |
| 129 | RealPoisson.AutomorphyConstruction.real_poisson_summation_scaled (n : ℝ) (by exact_mod_cast hn) f (PoissonAutomorphyNormalizationData.Construction.rationalReal a) |
| 130 | _ = v * ∑' x : ι → ℚ, |
| 131 | (PoissonAutomorphyNormalizationData.fourier PoissonAutomorphyNormalizationData.standardRealCharacter volume f (PoissonAutomorphyNormalizationData.Construction.rationalReal x) * |
| 132 | D.finiteCharacter (-(∑ i, PoissonAutomorphyNormalizationData.finiteDiagonal x i * PoissonAutomorphyNormalizationData.finiteDiagonal a i))) * |
| 133 | PoissonAutomorphyFiniteFourier.Construction.latticeIndicator (n : ℚ)⁻¹ (inv_ne_zero hnq) (PoissonAutomorphyNormalizationData.finiteDiagonal x) := by |
| 134 | congr 1 |
| 135 | rw [rational_lattice_sum] |
| 136 | apply tsum_congr |
| 137 | intro k |
| 138 | rw [finiteCharacter_negative_rational_pairing D] |
| 139 | have hreal : PoissonAutomorphyNormalizationData.Construction.rationalReal (rationalGrid (n : ℚ)⁻¹ 0 k) = |
| 140 | (n : ℝ)⁻¹ • RealFourier.PoissonAutomorphyConstruction.integerReal k := by |
| 141 | ext i |
| 142 | simp [PoissonAutomorphyNormalizationData.Construction.rationalReal, rationalGrid, RealFourier.PoissonAutomorphyConstruction.integerReal] |
| 143 | rw [hreal] |
| 144 | congr 1 |
| 145 | congr 1 |
| 146 | apply Finset.sum_congr rfl |
| 147 | intro i _ |
| 148 | simp only [Pi.smul_apply, smul_eq_mul, RealFourier.PoissonAutomorphyConstruction.integerReal] |
| 149 | ring |
| 150 | _ = _ := by |
| 151 | rw [← tsum_mul_left] |
| 152 | apply tsum_congr |
| 153 | intro x |
| 154 | rw [PoissonAutomorphyFiniteFourier.Construction.latticeCosetIndicator_fourier D, PoissonAutomorphyFiniteFourier.Construction.finiteLattice_nat_volume D n hn] |
| 155 | dsimp [v] |
| 156 | push_cast |
| 157 | ring |
| 158 | |
| 159 | end |
| 160 | |
| 161 | end OAI.RepresentationTheory.Theta.CosetPoisson.AutomorphyConstruction |