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.GeneralSchur |
| 2 | import OAI.RepresentationTheory.Weil.Local.BareGeneration |
| 3 | |
| 4 | /-! # Complex Bare Kernel -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.ComplexBareKernel.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A conjugate-linear symmetry of the complex quadratic and Fourier operators. -/ |
| 13 | |
| 14 | open _root_.MeasureTheory |
| 15 | open scoped ComplexConjugate NNReal |
| 16 | |
| 17 | theorem complex_bruhat_conjugate_mem {n : ℕ} (f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n) : |
| 18 | (fun x => conj (f.val x)) ∈ FunctionsMetaplectic.Construction.schwartzBruhat ℂ n := by |
| 19 | obtain ⟨φ, hφ⟩ := ArchimedeanTestSpace.Construction.schwartzBruhat_archimedean_iff.mp f.property |
| 20 | refine ArchimedeanTestSpace.Construction.schwartzBruhat_archimedean_iff.mpr ⟨φ.postcompCLM Complex.conjCLE.toContinuousLinearMap, ?_⟩ |
| 21 | rw [hφ] |
| 22 | rfl |
| 23 | |
| 24 | def complexRealStructure {n : ℕ} (f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n) : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n := |
| 25 | ⟨fun x => conj (f.val (Complex.I • x)), |
| 26 | complex_bruhat_conjugate_mem (FunctionsMetaplectic.Construction.schwartzBruhat_coordinateEquiv |
| 27 | (CharacterScaling.Construction.scalarPositionEquiv n Complex.I Complex.I_ne_zero).toContinuousAddEquiv f)⟩ |
| 28 | |
| 29 | theorem complexRealStructure_smul {n : ℕ} (c : ℂ) (f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n) : |
| 30 | complexRealStructure (c • f) = conj c • complexRealStructure f := by |
| 31 | apply Subtype.ext |
| 32 | funext x |
| 33 | exact map_mul (starRingEnd ℂ) c (f.val (Complex.I • x)) |
| 34 | |
| 35 | theorem complexRealStructure_neg {n : ℕ} (f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n) : |
| 36 | complexRealStructure (-f) = -complexRealStructure f := by |
| 37 | apply Subtype.ext |
| 38 | funext x |
| 39 | exact map_neg (starRingEnd ℂ) (f.val (Complex.I • x)) |
| 40 | |
| 41 | theorem complexRealStructure_quadratic {n : ℕ} |
| 42 | (ψ : AddChar ℂ ℂ) (hc : Continuous (fun z => ψ z)) (hu : ∀ z, ‖ψ z‖ = 1) |
| 43 | (B : FunctionsMetaplectic.Construction.SymmetricMatrix ℂ n) (f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n) : |
| 44 | (ArchimedeanTestSpace.Construction.complexQuadraticMetaplectic ψ hc hu B).val.val.2 (complexRealStructure f) = |
| 45 | complexRealStructure ((ArchimedeanTestSpace.Construction.complexQuadraticMetaplectic ψ hc hu B).val.val.2 f) := by |
| 46 | apply Subtype.ext |
| 47 | funext x |
| 48 | change ψ (FunctionsMetaplectic.Construction.quadratic B.val x) * conj (f.val (Complex.I • x)) = |
| 49 | conj (ψ (FunctionsMetaplectic.Construction.quadratic B.val (Complex.I • x)) * f.val (Complex.I • x)) |
| 50 | rw [QuadraticIntertwiner.Construction.quadratic_smul_vector, Complex.I_sq, neg_one_mul, GaussianNonarchimedean.Construction.unitary_character_neg ψ hu, map_mul, |
| 51 | starRingEnd_self_apply] |
| 52 | |
| 53 | theorem haarModulus_complex_I : DeterminantMeasure.Construction.haarModulus ℂ Complex.I = 1 := by |
| 54 | apply (pow_eq_one_iff_of_nonneg (show 0 ≤ DeterminantMeasure.Construction.haarModulus ℂ Complex.I from zero_le) |
| 55 | (by decide : (4 : ℕ) ≠ 0)).mp |
| 56 | rw [← map_pow] |
| 57 | norm_num |
| 58 | |
| 59 | theorem dot_complex_I {n : ℕ} (x y : FunctionsMetaplectic.Construction.Position ℂ n) : |
| 60 | FunctionsMetaplectic.Construction.dot (Complex.I • x) (Complex.I • y) = -FunctionsMetaplectic.Construction.dot x y := by |
| 61 | simp only [FunctionsMetaplectic.Construction.dot, Pi.smul_apply, smul_eq_mul, ← Finset.sum_neg_distrib] |
| 62 | apply Finset.sum_congr rfl |
| 63 | intro i _ |
| 64 | calc |
| 65 | _ = Complex.I ^ 2 * (x i * y i) := by ring |
| 66 | _ = _ := by rw [Complex.I_sq, neg_one_mul] |
| 67 | |
| 68 | theorem fourier_complexRealStructure {n : ℕ} |
| 69 | (ψ : AddChar ℂ ℂ) (hu : ∀ z, ‖ψ z‖ = 1) |
| 70 | (μ : Measure ℂ) [μ.IsAddHaarMeasure] (f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n) (x : FunctionsMetaplectic.Construction.Position ℂ n) : |
| 71 | FunctionsMetaplectic.Construction.fourierIntegral ψ (Measure.pi (fun _ : Fin n => μ)) (complexRealStructure f).val x = |
| 72 | conj (FunctionsMetaplectic.Construction.fourierIntegral ψ (Measure.pi (fun _ : Fin n => μ)) f.val (Complex.I • x)) := by |
| 73 | let g : FunctionsMetaplectic.Construction.Position ℂ n → ℂ := fun z => conj (f.val z) * ψ (FunctionsMetaplectic.Construction.dot (Complex.I • x) z) |
| 74 | have h := CharacterScaling.Construction.integral_scalar_position n Complex.I Complex.I_ne_zero μ g |
| 75 | rw [haarModulus_complex_I] at h |
| 76 | simp only [NNReal.coe_one, one_pow, inv_one, one_smul] at h |
| 77 | calc |
| 78 | _ = ∫ y, g (Complex.I • y) ∂Measure.pi (fun _ : Fin n => μ) := by |
| 79 | apply integral_congr_ae |
| 80 | exact Filter.Eventually.of_forall fun y => by |
| 81 | change conj (f.val (Complex.I • y)) * ψ (-FunctionsMetaplectic.Construction.dot x y) = |
| 82 | conj (f.val (Complex.I • y)) * ψ (FunctionsMetaplectic.Construction.dot (Complex.I • x) (Complex.I • y)) |
| 83 | rw [dot_complex_I] |
| 84 | _ = ∫ y, g y ∂Measure.pi (fun _ : Fin n => μ) := h |
| 85 | _ = _ := by |
| 86 | rw [FunctionsMetaplectic.Construction.fourierIntegral, ← integral_conj] |
| 87 | apply integral_congr_ae |
| 88 | exact Filter.Eventually.of_forall fun y => by |
| 89 | change conj (f.val y) * ψ (FunctionsMetaplectic.Construction.dot (Complex.I • x) y) = |
| 90 | conj (f.val y * ψ (-FunctionsMetaplectic.Construction.dot (Complex.I • x) y)) |
| 91 | rw [map_mul, GaussianNonarchimedean.Construction.unitary_character_neg ψ hu, starRingEnd_self_apply] |
| 92 | |
| 93 | theorem complexRealStructure_fourier {n : ℕ} |
| 94 | (ψ : AddChar ℂ ℂ) (hc : Continuous (fun z => ψ z)) |
| 95 | (hu : ∀ z, ‖ψ z‖ = 1) (hn : ∃ z, ψ z ≠ 1) (f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n) : |
| 96 | (ComplexCover.Construction.complexRawFourierOscillator n ψ hc hu hn).val.2 (complexRealStructure f) = |
| 97 | complexRealStructure ((ComplexCover.Construction.complexRawFourierOscillator n ψ hc hu hn).val.2 f) := by |
| 98 | let : (FunctionsMetaplectic.Construction.selfDualMeasure ℂ ψ).IsAddHaarMeasure := (ComplexCover.Construction.complex_analytic_normalization ψ hc hu hn n).2.1 |
| 99 | apply Subtype.ext |
| 100 | funext x |
| 101 | rw [ComplexCover.Construction.complexRawFourierOscillator_apply] |
| 102 | change _ = conj (((ComplexCover.Construction.complexRawFourierOscillator n ψ hc hu hn).val.2 f).val (Complex.I • x)) |
| 103 | rw [ComplexCover.Construction.complexRawFourierOscillator_apply] |
| 104 | exact fourier_complexRealStructure ψ hu (FunctionsMetaplectic.Construction.selfDualMeasure ℂ ψ) f x |
| 105 | |
| 106 | end |
| 107 | |
| 108 | /-! The intrinsic complex bare cover has only the two scalar signs in its kernel. -/ |
| 109 | |
| 110 | open scoped ComplexConjugate |
| 111 | |
| 112 | def complexRealSubgroup (n : ℕ) (ψ : AddChar ℂ ℂ) : Subgroup (FunctionsMetaplectic.Construction.Oscillator ℂ n ψ) where |
| 113 | carrier := {a | ∀ f, a.val.2 (complexRealStructure f) = complexRealStructure (a.val.2 f)} |
| 114 | one_mem' := fun _ => rfl |
| 115 | mul_mem' := by |
| 116 | intro a b ha hb f |
| 117 | change a.val.2 (b.val.2 (complexRealStructure f)) = complexRealStructure (a.val.2 (b.val.2 f)) |
| 118 | rw [hb, ha] |
| 119 | inv_mem' := by |
| 120 | intro a ha f |
| 121 | change a.val.2.symm (complexRealStructure f) = complexRealStructure (a.val.2.symm f) |
| 122 | apply a.val.2.injective |
| 123 | rw [LinearEquiv.apply_symm_apply, ha, LinearEquiv.apply_symm_apply] |
| 124 | |
| 125 | theorem complexRealSubgroup_projection (n : ℕ) |
| 126 | (ψ : AddChar ℂ ℂ) (hc : Continuous (fun z => ψ z)) |
| 127 | (hu : ∀ z, ‖ψ z‖ = 1) (hn : ∃ z, ψ z ≠ 1) : |
| 128 | (complexRealSubgroup n ψ).map (OscillatorProjection.Construction.oscillatorProjection ℂ n ψ) = ⊤ := by |
| 129 | let H := complexRealSubgroup n ψ |
| 130 | let w := ComplexCover.Construction.complexRawFourierOscillator n ψ hc hu hn |
| 131 | have hw : w ∈ H := complexRealStructure_fourier ψ hc hu hn |
| 132 | have hwπ : OscillatorProjection.Construction.oscillatorProjection ℂ n ψ w = Generators.Construction.weylSymplectic ℂ n := rfl |
| 133 | have hU (B : FunctionsMetaplectic.Construction.SymmetricMatrix ℂ n) : (ArchimedeanTestSpace.Construction.complexQuadraticMetaplectic ψ hc hu B).val ∈ H := |
| 134 | complexRealStructure_quadratic ψ hc hu B |
| 135 | apply GenerationSymplectic.Construction.subgroup_eq_top_of_symplectic_unipotents |
| 136 | · intro B |
| 137 | let u := ArchimedeanTestSpace.Construction.complexQuadraticMetaplectic ψ hc hu ⟨-B.val, B.property.neg⟩ |
| 138 | refine ⟨w⁻¹ * u.val * w, H.mul_mem (H.mul_mem (H.inv_mem hw) (hU _)) hw, ?_⟩ |
| 139 | rw [map_mul, map_mul, map_inv, hwπ] |
| 140 | exact (OscillatorProjection.Construction.upper_quadratic_conjugation ℂ n B).symm |
| 141 | · intro B |
| 142 | exact ⟨(ArchimedeanTestSpace.Construction.complexQuadraticMetaplectic ψ hc hu B).val, hU B, rfl⟩ |
| 143 | |
| 144 | theorem complex_metaplectic_le_realSubgroup (n : ℕ) |
| 145 | (ψ : AddChar ℂ ℂ) (hc : Continuous (fun z => ψ z)) |
| 146 | (hu : ∀ z, ‖ψ z‖ = 1) (hn : ∃ z, ψ z ≠ 1) : |
| 147 | FunctionsMetaplectic.Construction.metaplecticSubgroup ℂ n ψ ≤ complexRealSubgroup n ψ := by |
| 148 | let H := complexRealSubgroup n ψ |
| 149 | have hsurj := complexRealSubgroup_projection n ψ hc hu hn |
| 150 | have hnd : ¬ DiscreteTopology ℂ := by |
| 151 | intro h |
| 152 | let : DiscreteTopology ℂ := h |
| 153 | have : Subsingleton ℂ := subsingleton_of_preconnected_totallyDisconnected |
| 154 | exact zero_ne_one (Subsingleton.elim (0 : ℂ) 1) |
| 155 | have hder : commutator (FunctionsMetaplectic.Construction.Oscillator ℂ n ψ) ≤ H := |
| 156 | BareGeneration.Construction.commutator_le_of_central_kernel (OscillatorProjection.Construction.oscillatorProjection ℂ n ψ) H |
| 157 | (fun x => by |
| 158 | have h : OscillatorProjection.Construction.oscillatorProjection ℂ n ψ x ∈ H.map (OscillatorProjection.Construction.oscillatorProjection ℂ n ψ) := by rw [hsurj]; trivial |
| 159 | exact h) |
| 160 | (fun z hz x => GeneralSchur.Construction.oscillator_kernel_central hnd ψ hc hu hn z hz x) |
| 161 | change Subgroup.closure (commutatorSet (FunctionsMetaplectic.Construction.Oscillator ℂ n ψ) ∪ {FunctionsMetaplectic.Construction.oscillatorMinus ℂ n ψ}) ≤ H |
| 162 | rw [Subgroup.closure_le] |
| 163 | intro x hx |
| 164 | rcases hx with hx | hx |
| 165 | · apply hder |
| 166 | rw [commutator_eq_closure] |
| 167 | exact Subgroup.subset_closure hx |
| 168 | · obtain rfl := Set.mem_singleton_iff.mp hx |
| 169 | intro f |
| 170 | exact (complexRealStructure_neg f).symm |
| 171 | |
| 172 | theorem complex_metaplectic_kernel_sign {n : ℕ} |
| 173 | (ψ : AddChar ℂ ℂ) (hc : Continuous (fun z => ψ z)) |
| 174 | (hu : ∀ z, ‖ψ z‖ = 1) (hn : ∃ z, ψ z ≠ 1) |
| 175 | (a : FunctionsMetaplectic.Construction.Metaplectic ℂ n ψ) (ha : FunctionsMetaplectic.Construction.metaplecticProjection ℂ n ψ a = 1) : |
| 176 | ∃ ε : ℂ, ε ^ 2 = 1 ∧ ∀ f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n, a.val.val.2 f = ε • f := by |
| 177 | obtain ⟨z, hz, hscalar⟩ := OscillatorSchur.Construction.complex_oscillator_kernel_scalar ψ hc hu hn a.val ha |
| 178 | have hcomm := complex_metaplectic_le_realSubgroup n ψ hc hu hn a.property |
| 179 | by_cases he : ∃ f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n, f ≠ 0 |
| 180 | · obtain ⟨f, hf⟩ := he |
| 181 | obtain ⟨y, hy⟩ : ∃ y, f.val y ≠ 0 := by |
| 182 | by_contra! h |
| 183 | exact hf (Subtype.ext (funext h)) |
| 184 | have hh := hcomm f |
| 185 | rw [hscalar, hscalar, complexRealStructure_smul] at hh |
| 186 | have hv := congrArg (fun g : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n => g.val ((-Complex.I) • y)) hh |
| 187 | have hxy : Complex.I • ((-Complex.I) • y) = y := by |
| 188 | rw [smul_smul] |
| 189 | norm_num |
| 190 | change z * conj (f.val (Complex.I • ((-Complex.I) • y))) = |
| 191 | conj z * conj (f.val (Complex.I • ((-Complex.I) • y))) at hv |
| 192 | rw [hxy] at hv |
| 193 | have hreal : z = conj z := mul_right_cancel₀ ((map_ne_zero (starRingEnd ℂ)).mpr hy) hv |
| 194 | refine ⟨z, ?_, hscalar⟩ |
| 195 | calc |
| 196 | z ^ 2 = z * conj z := by rw [← hreal, pow_two] |
| 197 | _ = 1 := by rw [Complex.mul_conj, Complex.normSq_eq_norm_sq, hz]; norm_num |
| 198 | · refine ⟨1, one_pow 2, fun f => ?_⟩ |
| 199 | have hf : f = 0 := by by_contra h; exact he ⟨f, h⟩ |
| 200 | rw [hf, map_zero, smul_zero] |
| 201 | |
| 202 | theorem complex_metaplectic_same_projection_sign {n : ℕ} |
| 203 | (ψ : AddChar ℂ ℂ) (hc : Continuous (fun z => ψ z)) |
| 204 | (hu : ∀ z, ‖ψ z‖ = 1) (hn : ∃ z, ψ z ≠ 1) |
| 205 | (a b : FunctionsMetaplectic.Construction.Metaplectic ℂ n ψ) |
| 206 | (hab : FunctionsMetaplectic.Construction.metaplecticProjection ℂ n ψ a = FunctionsMetaplectic.Construction.metaplecticProjection ℂ n ψ b) : |
| 207 | ∃ ε : ℂ, ε ^ 2 = 1 ∧ ∀ f : FunctionsMetaplectic.Construction.schwartzBruhat ℂ n, |
| 208 | FunctionsMetaplectic.Construction.weilRepresentation ℂ n ψ a f = ε • FunctionsMetaplectic.Construction.weilRepresentation ℂ n ψ b f := by |
| 209 | have hker : FunctionsMetaplectic.Construction.metaplecticProjection ℂ n ψ (a * b⁻¹) = 1 := by rw [map_mul, map_inv, hab, mul_inv_cancel] |
| 210 | obtain ⟨ε, hε, h⟩ := complex_metaplectic_kernel_sign ψ hc hu hn (a * b⁻¹) hker |
| 211 | refine ⟨ε, hε, fun f => ?_⟩ |
| 212 | have hh := h (b.val.val.2 f) |
| 213 | change a.val.val.2 (b.val.val.2.symm (b.val.val.2 f)) = ε • b.val.val.2 f at hh |
| 214 | simpa only [LinearEquiv.symm_apply_apply] using! hh |
| 215 | |
| 216 | end |
| 217 | |
| 218 | end OAI.RepresentationTheory.Weil.Local.ComplexBareKernel.Construction |