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.Local.FourierTensor |
| 2 | |
| 3 | /-! # Quadratic Fourier -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Weil.Local.QuadraticFourier.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Completing the square in compact local Gaussian integrals. -/ |
| 12 | |
| 13 | open _root_.MeasureTheory |
| 14 | open scoped Classical |
| 15 | |
| 16 | def compactQuadraticFunction |
| 17 | {k : Type} [Field k] (ψ : AddChar k ℂ) (U : Set k) (a : k) : k → ℂ := |
| 18 | U.indicator (fun x => ψ (a * x ^ 2 / 2)) |
| 19 | |
| 20 | theorem scalarFourier_compactQuadratic |
| 21 | {k : Type} [NormedField k] [CharZero k] |
| 22 | [MeasurableSpace k] [BorelSpace k] [SecondCountableTopology k] |
| 23 | (ψ : AddChar k ℂ) (μ : Measure k) [μ.IsAddHaarMeasure] |
| 24 | (U : OpenAddSubgroup k) (a z : k) (hz : z ∈ U) : |
| 25 | FourierTensor.Construction.scalarFourierIntegral ψ μ (compactQuadraticFunction ψ U a) (a * z) = |
| 26 | ψ (-(a * z ^ 2 / 2)) * ∫ y in (U : Set k), ψ (a * y ^ 2 / 2) ∂μ := by |
| 27 | unfold FourierTensor.Construction.scalarFourierIntegral |
| 28 | rw [← integral_add_right_eq_self |
| 29 | (fun y => compactQuadraticFunction ψ U a y * ψ (-(a * z * y))) z, |
| 30 | ← integral_indicator U.isOpen.measurableSet, ← integral_const_mul] |
| 31 | apply integral_congr_ae |
| 32 | exact Filter.Eventually.of_forall fun y => by |
| 33 | dsimp only |
| 34 | have hymem : y + z ∈ U ↔ y ∈ U := U.add_mem_cancel_right hz |
| 35 | by_cases hy : y ∈ U |
| 36 | · simp only [compactQuadraticFunction, Set.indicator_of_mem hy, |
| 37 | Set.indicator_of_mem (hymem.mpr hy)] |
| 38 | rw [← ψ.map_add_eq_mul, ← ψ.map_add_eq_mul] |
| 39 | congr 1 |
| 40 | have h2 : (2 : k) ≠ 0 := by norm_num |
| 41 | field_simp |
| 42 | ring |
| 43 | · have hyz : y + z ∉ U := fun h => hy (hymem.mp h) |
| 44 | simp [compactQuadraticFunction, hy, hyz] |
| 45 | |
| 46 | theorem compactQuadratic_translation |
| 47 | {k : Type} [NormedField k] [CharZero k] |
| 48 | (ψ : AddChar k ℂ) (U : OpenAddSubgroup k) (a t : k) (ht : t ∈ U) |
| 49 | (hphase : ψ (a * t ^ 2 / 2) = 1) |
| 50 | (hpair : ∀ y ∈ U, ψ (a * y * t) = 1) : |
| 51 | ∀ y, compactQuadraticFunction ψ U a (y + t) = compactQuadraticFunction ψ U a y := by |
| 52 | intro y |
| 53 | have hymem : y + t ∈ U ↔ y ∈ U := U.add_mem_cancel_right ht |
| 54 | by_cases hy : y ∈ U |
| 55 | · simp only [compactQuadraticFunction, Set.indicator_of_mem hy, |
| 56 | Set.indicator_of_mem (hymem.mpr hy)] |
| 57 | have hsplit : a * (y + t) ^ 2 / 2 = a * y ^ 2 / 2 + a * y * t + a * t ^ 2 / 2 := by |
| 58 | have h2 : (2 : k) ≠ 0 := by norm_num |
| 59 | field_simp |
| 60 | ring |
| 61 | rw [hsplit, ψ.map_add_eq_mul, ψ.map_add_eq_mul, hphase, hpair y hy, mul_one, mul_one] |
| 62 | · have hyt : y + t ∉ U := fun h => hy (hymem.mp h) |
| 63 | simp [compactQuadraticFunction, hy, hyt] |
| 64 | |
| 65 | end |
| 66 | |
| 67 | /-! Scalar annihilators for compact local Gaussian calculations. -/ |
| 68 | |
| 69 | open _root_.MeasureTheory |
| 70 | open scoped Classical |
| 71 | |
| 72 | def scalarAnnihilator |
| 73 | {k : Type} [Field k] (ψ : AddChar k ℂ) (U : AddSubgroup k) : AddSubgroup k where |
| 74 | carrier := {x | ∀ y ∈ U, ψ (x * y) = 1} |
| 75 | zero_mem' := by simp |
| 76 | add_mem' {x z} hx hz y hy := by rw [add_mul, ψ.map_add_eq_mul, hx y hy, hz y hy, one_mul] |
| 77 | neg_mem' {x} hx y hy := by rw [neg_mul, ψ.map_neg_eq_inv, hx y hy, inv_one] |
| 78 | |
| 79 | theorem integral_scalarPairing_subgroup |
| 80 | {k : Type} [NormedField k] [MeasurableSpace k] [BorelSpace k] [SecondCountableTopology k] |
| 81 | (ψ : AddChar k ℂ) (μ : Measure k) [μ.IsAddHaarMeasure] |
| 82 | (U : OpenAddSubgroup k) (z : k) : |
| 83 | (∫ y in (U : Set k), ψ (z * y) ∂μ) = |
| 84 | if z ∈ scalarAnnihilator ψ U.toAddSubgroup then (μ.real (U : Set k) : ℂ) else 0 := by |
| 85 | let χ : AddChar k ℂ := ψ.compAddMonoidHom (LinearMap.mulLeft k z).toAddMonoidHom |
| 86 | exact CompactCharacter.Construction.integral_character_subgroup μ U χ |
| 87 | |
| 88 | theorem scalarAnnihilator_compact_open |
| 89 | {k : Type} [NormedField k] [LocallyCompactSpace k] [NonarchimedeanAddGroup k] |
| 90 | [MeasurableSpace k] [BorelSpace k] |
| 91 | (hNondiscrete : ¬ DiscreteTopology k) |
| 92 | (ψ : AddChar k ℂ) (hu : ∀ t : k, ‖ψ t‖ = 1) |
| 93 | (hc : Continuous (fun t => ψ t)) (hn : ∃ t : k, ψ t ≠ 1) |
| 94 | (U : OpenAddSubgroup k) (hU : IsCompact (U : Set k)) : |
| 95 | IsCompact (scalarAnnihilator ψ U.toAddSubgroup : Set k) ∧ |
| 96 | IsOpen (scalarAnnihilator ψ U.toAddSubgroup : Set k) := by |
| 97 | let : SecondCountableTopology k := FunctionsMetaplectic.Construction.localField_secondCountable k hNondiscrete |
| 98 | let e := ContinuousLinearEquiv.funUnique (Fin 1) k k |
| 99 | let U₁ := U.comap e.toLinearEquiv.toAddEquiv.toAddMonoidHom e.continuous |
| 100 | have hU₁ : IsCompact (U₁ : Set (FunctionsMetaplectic.Construction.Position k 1)) := e.toHomeomorph.isCompact_preimage.mpr hU |
| 101 | let μ : Measure (FunctionsMetaplectic.Construction.Position k 1) := Measure.pi (fun _ : Fin 1 => (Measure.addHaar : Measure k)) |
| 102 | let : μ.IsAddHaarMeasure := by dsimp [μ]; infer_instance |
| 103 | obtain ⟨hcomp, hopen⟩ := CompactCharacter.Construction.additiveAnnihilator_compact_open hNondiscrete ψ hu hc hn μ U₁ hU₁ |
| 104 | have hset : (scalarAnnihilator ψ U.toAddSubgroup : Set k) = |
| 105 | e.symm ⁻¹' (CompactCharacter.Construction.additiveAnnihilator ψ U₁.toAddSubgroup : Set (FunctionsMetaplectic.Construction.Position k 1)) := by |
| 106 | ext x |
| 107 | change (∀ y ∈ U, ψ (x * y) = 1) ↔ |
| 108 | ∀ y : FunctionsMetaplectic.Construction.Position k 1, y ∈ U₁ → ψ (FunctionsMetaplectic.Construction.dot (e.symm x) y) = 1 |
| 109 | constructor |
| 110 | · intro hx y hy |
| 111 | have hy₀ : y 0 ∈ U := hy |
| 112 | simpa [FunctionsMetaplectic.Construction.dot, e, Fin.sum_univ_one] using hx (y 0) hy₀ |
| 113 | · intro hx y hy |
| 114 | have h := hx (fun _ => y) hy |
| 115 | simpa [FunctionsMetaplectic.Construction.dot, e, Fin.sum_univ_one] using h |
| 116 | rw [hset] |
| 117 | exact ⟨e.symm.toHomeomorph.isCompact_preimage.mpr hcomp, hopen.preimage e.symm.continuous⟩ |
| 118 | |
| 119 | theorem scalarFourier_translate |
| 120 | {k : Type} [NormedField k] [LocallyCompactSpace k] |
| 121 | [MeasurableSpace k] [BorelSpace k] [SecondCountableTopology k] |
| 122 | (ψ : AddChar k ℂ) (μ : Measure k) [μ.IsAddHaarMeasure] |
| 123 | (f : k → ℂ) (t x : k) : |
| 124 | FourierTensor.Construction.scalarFourierIntegral ψ μ (fun y => f (y + t)) x = |
| 125 | ψ (x * t) * FourierTensor.Construction.scalarFourierIntegral ψ μ f x := by |
| 126 | let μ₁ : Measure (FunctionsMetaplectic.Construction.Position k 1) := Measure.pi (fun _ : Fin 1 => μ) |
| 127 | let : μ₁.IsAddHaarMeasure := by dsimp [μ₁]; infer_instance |
| 128 | have h := CompactCharacter.Construction.fourierIntegral_translate ψ μ₁ (fun y => f (y 0)) (fun _ => t) (fun _ => x) |
| 129 | change FunctionsMetaplectic.Construction.fourierIntegral ψ (Measure.pi (fun _ : Fin 1 => μ)) (fun y => f (y 0 + t)) (fun _ => x) = |
| 130 | ψ (FunctionsMetaplectic.Construction.dot (fun _ : Fin 1 => x) (fun _ => t)) * |
| 131 | FunctionsMetaplectic.Construction.fourierIntegral ψ (Measure.pi (fun _ : Fin 1 => μ)) (fun y => f (y 0)) (fun _ => x) at h |
| 132 | rw [NonarchimedeanHaar.Construction.fourierIntegral_singleton_position ψ μ (fun y => f (y + t)), |
| 133 | NonarchimedeanHaar.Construction.fourierIntegral_singleton_position ψ μ f] at h |
| 134 | simpa only [FunctionsMetaplectic.Construction.dot, Fin.sum_univ_one, FourierTensor.Construction.scalarFourierIntegral] using! h |
| 135 | |
| 136 | theorem scalarFourier_vanishes_of_translation |
| 137 | {k : Type} [NormedField k] [LocallyCompactSpace k] |
| 138 | [MeasurableSpace k] [BorelSpace k] [SecondCountableTopology k] |
| 139 | (ψ : AddChar k ℂ) (μ : Measure k) [μ.IsAddHaarMeasure] |
| 140 | (f : k → ℂ) (t x : k) (ht : ∀ y, f (y + t) = f y) (hx : ψ (x * t) ≠ 1) : |
| 141 | FourierTensor.Construction.scalarFourierIntegral ψ μ f x = 0 := by |
| 142 | have h := scalarFourier_translate ψ μ f t x |
| 143 | have heq : (fun y => f (y + t)) = f := funext ht |
| 144 | rw [heq] at h |
| 145 | by_contra hn |
| 146 | apply hx |
| 147 | apply mul_right_cancel₀ hn |
| 148 | simpa using h.symm |
| 149 | |
| 150 | end |
| 151 | |
| 152 | end OAI.RepresentationTheory.Weil.Local.QuadraticFourier.Construction |