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.NonarchimedeanNormalFormProduct |
| 2 | import OAI.RepresentationTheory.Weil.Local.GeneralSchur |
| 3 | import OAI.RepresentationTheory.Weil.Local.BruhatCosets |
| 4 | |
| 5 | /-! # Oscillator Fourier Character -/ |
| 6 | |
| 7 | namespace OAI.RepresentationTheory.Weil.Local.OscillatorFourierCharacter.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Scalar coordinates for actual oscillators on the Fourier cell. -/ |
| 14 | |
| 15 | open _root_.Matrix _root_.MeasureTheory |
| 16 | |
| 17 | theorem nonarchimedean_testSpace_nontrivial |
| 18 | {k : Type} [NormedField k] [LocallyCompactSpace k] [NonarchimedeanAddGroup k] |
| 19 | (hnd : ¬ DiscreteTopology k) (n : ℕ) : Nontrivial (FunctionsMetaplectic.Construction.schwartzBruhat k n) := by |
| 20 | let : IsUltrametricDist k := NonarchimedeanNorm.Construction.nonarchimedean_norm_ultrametric k hnd |
| 21 | let : ProperSpace k := FunctionsMetaplectic.Construction.localField_proper k hnd |
| 22 | let U := IsUltrametricDist.closedBall_openAddSubgroup (FunctionsMetaplectic.Construction.Position k n) zero_lt_one |
| 23 | let b : FunctionsMetaplectic.Construction.schwartzBruhat k n := ⟨(U : Set (FunctionsMetaplectic.Construction.Position k n)).indicator (fun _ => 1), |
| 24 | FunctionsMetaplectic.Construction.compact_locallyConstant_mem (CompactCharacter.Construction.subgroup_indicator_locallyConstant U) |
| 25 | (CompactCharacter.Construction.subgroup_indicator_compactSupport U (isCompact_closedBall 0 1))⟩ |
| 26 | refine ⟨⟨b, 0, ?_⟩⟩ |
| 27 | intro h |
| 28 | have hv := congrArg (fun f : FunctionsMetaplectic.Construction.schwartzBruhat k n => f.val 0) h |
| 29 | simp [b] at hv |
| 30 | |
| 31 | variable {k : Type} [NormedField k] [LocallyCompactSpace k] |
| 32 | [NonarchimedeanAddGroup k] [CharZero k] [MeasurableSpace k] [BorelSpace k] |
| 33 | [SecondCountableTopology k] {n : ℕ} |
| 34 | (ψ : AddChar k ℂ) (hu : ∀ t : k, ‖ψ t‖ = 1) (hc : Continuous (fun t => ψ t)) |
| 35 | |
| 36 | def oscillatorFourierNormalForm (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) |
| 37 | (P : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (B : FunctionsMetaplectic.Construction.GeneralLinear k n) (Q : FunctionsMetaplectic.Construction.SymmetricMatrix k n) : FunctionsMetaplectic.Construction.Oscillator k n ψ := |
| 38 | QuadraticIntertwiner.Construction.quadraticOscillator ψ (NonarchimedeanTestSpace.Construction.nonarchimedean_quadratic_mem ψ hu hc) hu P * |
| 39 | LinearIntertwiner.Construction.linearOscillator ψ B * w * QuadraticIntertwiner.Construction.quadraticOscillator ψ (NonarchimedeanTestSpace.Construction.nonarchimedean_quadratic_mem ψ hu hc) hu Q |
| 40 | |
| 41 | theorem oscillatorFourierNormalForm_projection (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) |
| 42 | (hw : OscillatorProjection.Construction.oscillatorProjection k n ψ w = Generators.Construction.weylSymplectic k n) |
| 43 | (P : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (B : FunctionsMetaplectic.Construction.GeneralLinear k n) (Q : FunctionsMetaplectic.Construction.SymmetricMatrix k n) : |
| 44 | OscillatorProjection.Construction.oscillatorProjection k n ψ (oscillatorFourierNormalForm ψ hu hc w P B Q) = FourierNormalForm.Construction.fourierNormalForm P B Q := by |
| 45 | change Generators.Construction.quadraticSymplectic P * Generators.Construction.leviSymplectic B * w.val.1 * Generators.Construction.quadraticSymplectic Q = _ |
| 46 | change w.val.1 = Generators.Construction.weylSymplectic k n at hw |
| 47 | rw [hw] |
| 48 | rfl |
| 49 | |
| 50 | theorem oscillatorFourierNormalForm_operator (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) |
| 51 | (P : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (B : FunctionsMetaplectic.Construction.GeneralLinear k n) (Q : FunctionsMetaplectic.Construction.SymmetricMatrix k n) : |
| 52 | (oscillatorFourierNormalForm ψ hu hc w P B Q).val.2 = |
| 53 | TestFourierNormalForm.Construction.testFourierNormalForm ψ (NonarchimedeanTestSpace.Construction.nonarchimedean_quadratic_mem ψ hu hc) w.val.2 P.val B Q.val := rfl |
| 54 | |
| 55 | def OscillatorFourierPresentation (F : FunctionsMetaplectic.Construction.schwartzBruhat k n ≃ₗ[ℂ] FunctionsMetaplectic.Construction.schwartzBruhat k n) |
| 56 | (a : FunctionsMetaplectic.Construction.Oscillator k n ψ) (P : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (B : FunctionsMetaplectic.Construction.GeneralLinear k n) |
| 57 | (Q : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (z : ℂ) : Prop := |
| 58 | OscillatorProjection.Construction.oscillatorProjection k n ψ a = FourierNormalForm.Construction.fourierNormalForm P B Q ∧ |
| 59 | ∀ f : FunctionsMetaplectic.Construction.schwartzBruhat k n, a.val.2 f = |
| 60 | z • TestFourierNormalForm.Construction.testFourierNormalForm ψ (NonarchimedeanTestSpace.Construction.nonarchimedean_quadratic_mem ψ hu hc) F P.val B Q.val f |
| 61 | |
| 62 | theorem exists_oscillatorFourierPresentation |
| 63 | (hnd : ¬ DiscreteTopology k) (hn : ∃ t : k, ψ t ≠ 1) |
| 64 | (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) (hw : OscillatorProjection.Construction.oscillatorProjection k n ψ w = Generators.Construction.weylSymplectic k n) |
| 65 | (a : FunctionsMetaplectic.Construction.Oscillator k n ψ) (ha : OscillatorProjection.Construction.oscillatorProjection k n ψ a ∈ FourierBigCell.Construction.fourierBigCell k n) : |
| 66 | ∃ (P Q : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (B : FunctionsMetaplectic.Construction.GeneralLinear k n) (z : ℂˣ), |
| 67 | OscillatorFourierPresentation ψ hu hc w.val.2 a P B Q z.val := by |
| 68 | obtain ⟨P, Q, B, h⟩ := FourierNormalForm.Construction.exists_fourierNormalForm (OscillatorProjection.Construction.oscillatorProjection k n ψ a) ha |
| 69 | have he : OscillatorProjection.Construction.oscillatorProjection k n ψ (oscillatorFourierNormalForm ψ hu hc w P B Q) = |
| 70 | OscillatorProjection.Construction.oscillatorProjection k n ψ a := (oscillatorFourierNormalForm_projection ψ hu hc w hw P B Q).trans h.symm |
| 71 | obtain ⟨z, hz, hscalar⟩ := BruhatCosets.Construction.nonarchimedean_oscillator_equal_projection hnd ψ hu hc hn |
| 72 | (oscillatorFourierNormalForm ψ hu hc w P B Q) a he |
| 73 | have hz0 : z ≠ 0 := by intro hz0; simp [hz0] at hz |
| 74 | exact ⟨P, Q, B, Units.mk0 z hz0, h, hscalar⟩ |
| 75 | |
| 76 | omit [CharZero k] in |
| 77 | theorem oscillatorFourierPresentation_unique (hnd : ¬ DiscreteTopology k) |
| 78 | (F : FunctionsMetaplectic.Construction.schwartzBruhat k n ≃ₗ[ℂ] FunctionsMetaplectic.Construction.schwartzBruhat k n) (a : FunctionsMetaplectic.Construction.Oscillator k n ψ) |
| 79 | (P P' Q Q' : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (B B' : FunctionsMetaplectic.Construction.GeneralLinear k n) (z z' : ℂ) |
| 80 | (h : OscillatorFourierPresentation ψ hu hc F a P B Q z) |
| 81 | (h' : OscillatorFourierPresentation ψ hu hc F a P' B' Q' z') : |
| 82 | P = P' ∧ B = B' ∧ Q = Q' ∧ z = z' := by |
| 83 | let : Nontrivial (FunctionsMetaplectic.Construction.schwartzBruhat k n) := nonarchimedean_testSpace_nontrivial hnd n |
| 84 | obtain ⟨rfl, rfl, rfl⟩ := FourierNormalForm.Construction.fourierNormalForm_injective P P' Q Q' B B' (h.1.symm.trans h'.1) |
| 85 | refine ⟨rfl, rfl, rfl, ?_⟩ |
| 86 | obtain ⟨f, hf⟩ := exists_ne (0 : FunctionsMetaplectic.Construction.schwartzBruhat k n) |
| 87 | let R := TestFourierNormalForm.Construction.testFourierNormalForm ψ (NonarchimedeanTestSpace.Construction.nonarchimedean_quadratic_mem ψ hu hc) F P.val B Q.val |
| 88 | have he := (h.2 (R.symm f)).symm.trans (h'.2 (R.symm f)) |
| 89 | change z • R (R.symm f) = z' • R (R.symm f) at he |
| 90 | rw [LinearEquiv.apply_symm_apply] at he |
| 91 | exact smul_left_injective ℂ hf he |
| 92 | |
| 93 | end |
| 94 | |
| 95 | section |
| 96 | |
| 97 | /-! A well-defined determinant and scalar value on the oscillator Fourier cell. -/ |
| 98 | |
| 99 | variable {k : Type} [NormedField k] [CompleteSpace k] [LocallyCompactSpace k] |
| 100 | [NonarchimedeanAddGroup k] [CharZero k] [MeasurableSpace k] [BorelSpace k] |
| 101 | [SecondCountableTopology k] {n : ℕ} |
| 102 | (hnd : ¬ DiscreteTopology k) (ψ : AddChar k ℂ) (hu : ∀ t : k, ‖ψ t‖ = 1) |
| 103 | (hc : Continuous (fun t => ψ t)) (hn : ∃ t : k, ψ t ≠ 1) |
| 104 | (hns : ¬ ∃ t : k, t ^ 2 = -1) |
| 105 | |
| 106 | def nonarchimedeanFourierConstant : ℂˣ := GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquaredUnit hnd ψ hu hc hn 1 ^ n |
| 107 | |
| 108 | omit [CompleteSpace k] [SecondCountableTopology k] in |
| 109 | theorem nonarchimedeanFourierConstant_val : |
| 110 | (nonarchimedeanFourierConstant (n := n) hnd ψ hu hc hn).val = FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ (2 * n) := by |
| 111 | change (FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ 2) ^ n = _ |
| 112 | rw [← pow_mul] |
| 113 | |
| 114 | omit [CompleteSpace k] in |
| 115 | structure OscillatorFourierCoordinates (w a : FunctionsMetaplectic.Construction.Oscillator k n ψ) where |
| 116 | P : FunctionsMetaplectic.Construction.SymmetricMatrix k n |
| 117 | Q : FunctionsMetaplectic.Construction.SymmetricMatrix k n |
| 118 | B : FunctionsMetaplectic.Construction.GeneralLinear k n |
| 119 | z : ℂˣ |
| 120 | presentation : OscillatorFourierPresentation ψ hu hc w.val.2 a P B Q z.val |
| 121 | |
| 122 | def oscillatorFourierCoordinates (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) |
| 123 | (hw : OscillatorProjection.Construction.oscillatorProjection k n ψ w = Generators.Construction.weylSymplectic k n) |
| 124 | (a : FunctionsMetaplectic.Construction.Oscillator k n ψ) (ha : OscillatorProjection.Construction.oscillatorProjection k n ψ a ∈ FourierBigCell.Construction.fourierBigCell k n) : |
| 125 | OscillatorFourierCoordinates ψ hu hc w a := by |
| 126 | have he : Nonempty (OscillatorFourierCoordinates ψ hu hc w a) := by |
| 127 | obtain ⟨P, Q, B, z, h⟩ := exists_oscillatorFourierPresentation ψ hu hc hnd hn w hw a ha |
| 128 | exact ⟨⟨P, Q, B, z, h⟩⟩ |
| 129 | exact Classical.choice he |
| 130 | |
| 131 | def oscillatorFourierCharacterValue (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) |
| 132 | (hw : OscillatorProjection.Construction.oscillatorProjection k n ψ w = Generators.Construction.weylSymplectic k n) (a : FunctionsMetaplectic.Construction.Oscillator k n ψ) : ℂˣ := by |
| 133 | classical |
| 134 | exact if ha : OscillatorProjection.Construction.oscillatorProjection k n ψ a ∈ FourierBigCell.Construction.fourierBigCell k n then |
| 135 | let v := oscillatorFourierCoordinates hnd ψ hu hc hn w hw a ha |
| 136 | v.z ^ 2 * GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns (FunctionsMetaplectic.Construction.determinantUnit k v.B) * |
| 137 | nonarchimedeanFourierConstant (n := n) hnd ψ hu hc hn |
| 138 | else 1 |
| 139 | |
| 140 | theorem oscillatorFourierCharacterValue_of_presentation |
| 141 | (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) (hw : OscillatorProjection.Construction.oscillatorProjection k n ψ w = Generators.Construction.weylSymplectic k n) |
| 142 | (a : FunctionsMetaplectic.Construction.Oscillator k n ψ) (P Q : FunctionsMetaplectic.Construction.SymmetricMatrix k n) (B : FunctionsMetaplectic.Construction.GeneralLinear k n) (z : ℂˣ) |
| 143 | (h : OscillatorFourierPresentation ψ hu hc w.val.2 a P B Q z.val) : |
| 144 | oscillatorFourierCharacterValue hnd ψ hu hc hn hns w hw a = |
| 145 | z ^ 2 * GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns (FunctionsMetaplectic.Construction.determinantUnit k B) * |
| 146 | nonarchimedeanFourierConstant (n := n) hnd ψ hu hc hn := by |
| 147 | have ha : OscillatorProjection.Construction.oscillatorProjection k n ψ a ∈ FourierBigCell.Construction.fourierBigCell k n := by |
| 148 | rw [h.1] |
| 149 | exact FourierNormalForm.Construction.fourierNormalForm_mem P B Q |
| 150 | rw [oscillatorFourierCharacterValue, dite_eq_left ha] |
| 151 | let v := oscillatorFourierCoordinates hnd ψ hu hc hn w hw a ha |
| 152 | have he := oscillatorFourierPresentation_unique ψ hu hc hnd w.val.2 a v.P P v.Q Q v.B B v.z.val z.val |
| 153 | v.presentation h |
| 154 | have hz : v.z = z := Units.ext he.2.2.2 |
| 155 | change v.z ^ 2 * _ * _ = _ |
| 156 | rw [hz, he.2.1] |
| 157 | |
| 158 | end |
| 159 | |
| 160 | /-! Multiplicativity of the oscillator character on its Fourier coordinate domain. -/ |
| 161 | |
| 162 | variable {k : Type} [NormedField k] [CompleteSpace k] [LocallyCompactSpace k] |
| 163 | [NonarchimedeanAddGroup k] [CharZero k] [MeasurableSpace k] [BorelSpace k] |
| 164 | [SecondCountableTopology k] {n : ℕ} |
| 165 | (hnd : ¬ DiscreteTopology k) (ψ : AddChar k ℂ) (hu : ∀ t : k, ‖ψ t‖ = 1) |
| 166 | (hc : Continuous (fun t => ψ t)) (hn : ∃ t : k, ψ t ≠ 1) |
| 167 | (hns : ¬ ∃ t : k, t ^ 2 = -1) |
| 168 | |
| 169 | theorem oscillatorFourierCharacterValue_mul |
| 170 | (w : FunctionsMetaplectic.Construction.Oscillator k n ψ) (hw : OscillatorProjection.Construction.oscillatorProjection k n ψ w = Generators.Construction.weylSymplectic k n) |
| 171 | (hF : ∀ f x, (w.val.2 f).val x = FunctionsMetaplectic.Construction.fourierIntegral ψ (FunctionsMetaplectic.Construction.positionMeasure k n ψ) f.val x) |
| 172 | (a b : FunctionsMetaplectic.Construction.Oscillator k n ψ) |
| 173 | (ha : OscillatorProjection.Construction.oscillatorProjection k n ψ a ∈ FourierBigCell.Construction.fourierBigCell k n) |
| 174 | (hb : OscillatorProjection.Construction.oscillatorProjection k n ψ b ∈ FourierBigCell.Construction.fourierBigCell k n) |
| 175 | (hab : OscillatorProjection.Construction.oscillatorProjection k n ψ (a * b) ∈ FourierBigCell.Construction.fourierBigCell k n) : |
| 176 | oscillatorFourierCharacterValue hnd ψ hu hc hn hns w hw (a * b) = |
| 177 | oscillatorFourierCharacterValue hnd ψ hu hc hn hns w hw a * |
| 178 | oscillatorFourierCharacterValue hnd ψ hu hc hn hns w hw b := by |
| 179 | let A := oscillatorFourierCoordinates hnd ψ hu hc hn w hw a ha |
| 180 | let D := oscillatorFourierCoordinates hnd ψ hu hc hn w hw b hb |
| 181 | let χ := GaussianSquareCharacter.Construction.nonarchimedeanGaussianSquareCharacter hnd ψ hu hc hn hns |
| 182 | let R := TestFourierNormalForm.Construction.testFourierNormalForm ψ (NonarchimedeanTestSpace.Construction.nonarchimedean_quadratic_mem ψ hu hc) w.val.2 |
| 183 | have hp : FourierNormalForm.Construction.fourierNormalForm A.P A.B A.Q * FourierNormalForm.Construction.fourierNormalForm D.P D.B D.Q ∈ FourierBigCell.Construction.fourierBigCell k n := by |
| 184 | rw [← A.presentation.1, ← D.presentation.1, ← map_mul] |
| 185 | exact hab |
| 186 | obtain ⟨P, Q, B, Γ, hproj, hΓ, hR⟩ := NonarchimedeanNormalFormProduct.Construction.exists_nonarchimedean_normalForm_product hnd ψ hu hc hn hns |
| 187 | w.val.2 hF A.P A.Q D.P D.Q A.B D.B hp |
| 188 | have hg0 : FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ≠ 0 := |
| 189 | FunctionsMetaplectic.Construction.phase_ne_zero (GaussianCompact.Construction.nonarchimedean_gaussian_limit_nonzero hnd ψ hu hc hn 1 one_ne_zero).2 |
| 190 | have hΓ0 : Γ ≠ 0 := by |
| 191 | intro he |
| 192 | rw [he, zero_pow (by decide), zero_mul] at hΓ |
| 193 | exact (mul_ne_zero (mul_ne_zero (pow_ne_zero _ hg0) (χ _).ne_zero) (χ _).ne_zero) hΓ.symm |
| 194 | let z : ℂˣ := A.z * D.z * Units.mk0 Γ hΓ0 |
| 195 | have hpres : OscillatorFourierPresentation ψ hu hc w.val.2 (a * b) P B Q z.val := by |
| 196 | refine ⟨?_, ?_⟩ |
| 197 | · rw [map_mul, A.presentation.1, D.presentation.1, hproj] |
| 198 | · intro f |
| 199 | change a.val.2 (b.val.2 f) = (A.z.val * D.z.val * Γ) • R P.val B Q.val f |
| 200 | rw [A.presentation.2, D.presentation.2, map_smul, hR, smul_smul, smul_smul] |
| 201 | rw [oscillatorFourierCharacterValue_of_presentation hnd ψ hu hc hn hns w hw (a * b) P Q B z hpres, |
| 202 | oscillatorFourierCharacterValue_of_presentation hnd ψ hu hc hn hns w hw a A.P A.Q A.B A.z A.presentation, |
| 203 | oscillatorFourierCharacterValue_of_presentation hnd ψ hu hc hn hns w hw b D.P D.Q D.B D.z D.presentation] |
| 204 | apply Units.ext |
| 205 | simp only [Units.val_mul, Units.val_pow_eq_pow_val, nonarchimedeanFourierConstant_val] |
| 206 | change (A.z.val * D.z.val * Γ) ^ 2 * (χ (FunctionsMetaplectic.Construction.determinantUnit k B)).val * FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ (2 * n) = _ |
| 207 | calc |
| 208 | _ = A.z.val ^ 2 * D.z.val ^ 2 * (Γ ^ 2 * (χ (FunctionsMetaplectic.Construction.determinantUnit k B)).val) * |
| 209 | FunctionsMetaplectic.Construction.gaussianIndex k ψ 1 ^ (2 * n) := by ring |
| 210 | _ = _ := by rw [hΓ]; ring |
| 211 | |
| 212 | end |
| 213 | |
| 214 | end OAI.RepresentationTheory.Weil.Local.OscillatorFourierCharacter.Construction |