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.RealReflectionLift |
| 2 | import OAI.RepresentationTheory.Weil.Local.SquareDeterminantLift |
| 3 | |
| 4 | /-! # Real Levi -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.RealLevi.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The Gaussian phase for real determinant signs and the single-coordinate reflection. -/ |
| 13 | |
| 14 | open _root_.MeasureTheory Filter |
| 15 | open scoped _root_.Topology Classical |
| 16 | |
| 17 | theorem gaussianIndex_real_positive_argument (c : ℝ) (hc : c ≠ 0) (r : ℝ) (hr : 0 < r) : |
| 18 | FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) r = FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 := by |
| 19 | let b : ℝˣ := Units.mk0 (Real.sqrt r) (Real.sqrt_pos.mpr hr).ne' |
| 20 | have hlim : Tendsto (FunctionsMetaplectic.Construction.regularizedGaussian ℝ (Gaussian.Construction.realCharacter c) 1) (𝓝[>] (0 : ℝ)) |
| 21 | (𝓝 (FunctionsMetaplectic.Construction.gaussianIntegral ℝ (Gaussian.Construction.realCharacter c) 1)) := by |
| 22 | rw [Gaussian.Construction.gaussianIntegral_real_eq c 1 hc one_ne_zero] |
| 23 | exact Gaussian.Construction.regularizedGaussian_real_tendsto c 1 hc one_ne_zero |
| 24 | have h := SquareDeterminantLift.Construction.gaussianIndex_square_mul_of_limit (Gaussian.Construction.realCharacter c) 1 b hlim |
| 25 | simpa only [b, Units.val_mk0, Real.sq_sqrt hr.le, one_mul] using h |
| 26 | |
| 27 | theorem gaussianIndex_real_negative_argument (c : ℝ) (hc : c ≠ 0) (r : ℝ) (hr : r < 0) : |
| 28 | FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) r = FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (-1) := by |
| 29 | let b : ℝˣ := Units.mk0 (Real.sqrt (-r)) (Real.sqrt_pos.mpr (neg_pos.mpr hr)).ne' |
| 30 | have hlim : Tendsto (FunctionsMetaplectic.Construction.regularizedGaussian ℝ (Gaussian.Construction.realCharacter c) (-1)) (𝓝[>] (0 : ℝ)) |
| 31 | (𝓝 (FunctionsMetaplectic.Construction.gaussianIntegral ℝ (Gaussian.Construction.realCharacter c) (-1))) := by |
| 32 | rw [Gaussian.Construction.gaussianIntegral_real_eq c (-1) hc (by norm_num)] |
| 33 | exact Gaussian.Construction.regularizedGaussian_real_tendsto c (-1) hc (by norm_num) |
| 34 | have h := SquareDeterminantLift.Construction.gaussianIndex_square_mul_of_limit (Gaussian.Construction.realCharacter c) (-1) b hlim |
| 35 | simpa only [b, Units.val_mk0, Real.sq_sqrt (neg_nonneg.mpr hr.le), neg_mul_neg, one_mul] using h |
| 36 | |
| 37 | theorem exists_real_single_reflection_metaplectic {n : ℕ} |
| 38 | (c : ℝ) (hc : c ≠ 0) (j : Fin n) : |
| 39 | ∃ m : FunctionsMetaplectic.Construction.Metaplectic ℝ n (Gaussian.Construction.realCharacter c), |
| 40 | FunctionsMetaplectic.Construction.metaplecticProjection ℝ n (Gaussian.Construction.realCharacter c) m = Generators.Construction.leviSymplectic (SpecialLinearCommutators.Construction.coordinateDiagonal j (-1 : ℝˣ)) ∧ |
| 41 | ∀ f : FunctionsMetaplectic.Construction.schwartzBruhat ℝ n, |
| 42 | FunctionsMetaplectic.Construction.weilRepresentation ℝ n (Gaussian.Construction.realCharacter c) m f = |
| 43 | (FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (-1) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1) • |
| 44 | (LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) (SpecialLinearCommutators.Construction.coordinateDiagonal j (-1 : ℝˣ))).val.2 f := by |
| 45 | let a : Fin n → ℝ := fun i => if i = j then -1 else 1 |
| 46 | have ha (i : Fin n) : a i ^ 2 = 1 := by dsimp [a]; split_ifs <;> norm_num |
| 47 | have hD : ReflectionAlgebra.Construction.diagonalReflection a ha = SpecialLinearCommutators.Construction.coordinateDiagonal j (-1 : ℝˣ) := Units.ext rfl |
| 48 | obtain ⟨m, hm, hop⟩ := RealReflectionLift.Construction.exists_real_diagonal_reflection_metaplectic c hc a ha |
| 49 | rw [hD] at hm |
| 50 | have hγ : FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 ≠ 0 := by |
| 51 | intro h |
| 52 | have hn := Gaussian.Construction.gaussianIndex_real_norm c 1 hc one_ne_zero |
| 53 | rw [h, norm_zero] at hn |
| 54 | exact zero_ne_one hn |
| 55 | have hratio : (∏ i, FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (a i)) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 ^ n = |
| 56 | FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (-1) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 := by |
| 57 | have he (i : Fin n) : FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (a i) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 = |
| 58 | if i = j then FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (-1) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 else 1 := by |
| 59 | dsimp [a] |
| 60 | split_ifs |
| 61 | · rfl |
| 62 | · exact div_self hγ |
| 63 | calc |
| 64 | _ = ∏ i, FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (a i) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 := by |
| 65 | rw [Finset.prod_div_distrib] |
| 66 | simp only [Finset.prod_const, Finset.card_univ, Fintype.card_fin] |
| 67 | _ = _ := by simp only [he, Finset.prod_ite_eq', Finset.mem_univ, ite_true] |
| 68 | refine ⟨m, hm, fun f => ?_⟩ |
| 69 | apply Subtype.ext |
| 70 | funext x |
| 71 | rw [hop, hratio] |
| 72 | change _ = (FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (-1) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1) * |
| 73 | ((LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) (SpecialLinearCommutators.Construction.coordinateDiagonal j (-1 : ℝˣ))).val.2 f).val x |
| 74 | rw [← hD, ReflectionAlgebra.Construction.linearOscillator_diagonalReflection_apply] |
| 75 | |
| 76 | end |
| 77 | |
| 78 | /-! The exact bare Levi generator over the real field for every determinant. -/ |
| 79 | |
| 80 | open _root_.Matrix |
| 81 | |
| 82 | theorem exists_real_levi_metaplectic |
| 83 | (n : ℕ) (hn : 0 < n) (ψ : AddChar ℝ ℂ) (hc : Continuous (fun t => ψ t)) |
| 84 | (hu : ∀ t, ‖ψ t‖ = 1) (hψ : ∃ t, ψ t ≠ 1) (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) : |
| 85 | ∃ m : FunctionsMetaplectic.Construction.Metaplectic ℝ n ψ, FunctionsMetaplectic.Construction.metaplecticProjection ℝ n ψ m = Generators.Construction.leviSymplectic A ∧ |
| 86 | ∀ (f : FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : FunctionsMetaplectic.Construction.Position ℝ n), |
| 87 | (FunctionsMetaplectic.Construction.weilRepresentation ℝ n ψ m f).val x = |
| 88 | (FunctionsMetaplectic.Construction.gaussianIndex ℝ ψ (FunctionsMetaplectic.Construction.determinantUnit ℝ A) / FunctionsMetaplectic.Construction.gaussianIndex ℝ ψ 1) * |
| 89 | ((Real.sqrt (FunctionsMetaplectic.Construction.localModulus ℝ (FunctionsMetaplectic.Construction.determinantUnit ℝ A)))⁻¹ : ℂ) * f.val (A⁻¹.val *ᵥ x) := by |
| 90 | by_cases hA : 0 < A.val.det |
| 91 | · exact SquareDeterminantLift.Construction.exists_real_positive_det_levi_metaplectic hn ψ hc hu hψ A hA |
| 92 | obtain ⟨c, hc0, rfl⟩ := RealCharacters.Construction.continuous_nontrivial_unitary_real_character ψ hc hu hψ |
| 93 | have hAdet : A.val.det ≠ 0 := (FunctionsMetaplectic.Construction.determinantUnit ℝ A).ne_zero |
| 94 | have hAneg : A.val.det < 0 := lt_of_le_of_ne (le_of_not_gt hA) hAdet |
| 95 | let j : Fin n := ⟨0, hn⟩ |
| 96 | let D := SpecialLinearCommutators.Construction.coordinateDiagonal j (-1 : ℝˣ) |
| 97 | have hDD : D * D = 1 := by |
| 98 | rw [show D * D = SpecialLinearCommutators.Construction.coordinateDiagonal j ((-1 : ℝˣ) ^ 2) from SquareDeterminantLift.Construction.coordinateDiagonal_square j (-1)] |
| 99 | apply Units.ext |
| 100 | norm_num [SpecialLinearCommutators.Construction.coordinateDiagonal] |
| 101 | have hDdet : D.val.det = -1 := by |
| 102 | change (FunctionsMetaplectic.Construction.determinantUnit ℝ D).val = -1 |
| 103 | rw [ComplexLevi.Construction.coordinateDiagonal_determinant] |
| 104 | rfl |
| 105 | let S := A * D |
| 106 | have hSpos : 0 < S.val.det := by |
| 107 | change 0 < (A.val * D.val).det |
| 108 | rw [Matrix.det_mul, hDdet, mul_neg_one] |
| 109 | exact neg_pos.mpr hAneg |
| 110 | have hSD : S * D = A := by dsimp [S]; rw [mul_assoc, hDD, mul_one] |
| 111 | obtain ⟨mS, hmS, hmSa⟩ := SquareDeterminantLift.Construction.exists_real_positive_det_levi_metaplectic hn (Gaussian.Construction.realCharacter c) hc hu hψ S hSpos |
| 112 | obtain ⟨mD, hmD, hmDa⟩ := exists_real_single_reflection_metaplectic c hc0 j |
| 113 | have hγ0 : FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 ≠ 0 := by |
| 114 | intro h |
| 115 | have hh := Gaussian.Construction.gaussianIndex_real_norm c 1 hc0 one_ne_zero |
| 116 | rw [h, norm_zero] at hh |
| 117 | exact zero_ne_one hh |
| 118 | have hγS : FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (FunctionsMetaplectic.Construction.determinantUnit ℝ S) = FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1 := |
| 119 | gaussianIndex_real_positive_argument c hc0 S.val.det hSpos |
| 120 | have hγA : FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (FunctionsMetaplectic.Construction.determinantUnit ℝ A) = FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (-1) := |
| 121 | gaussianIndex_real_negative_argument c hc0 A.val.det hAneg |
| 122 | have hmSop (f : FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) : |
| 123 | FunctionsMetaplectic.Construction.weilRepresentation ℝ n (Gaussian.Construction.realCharacter c) mS f = (LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) S).val.2 f := by |
| 124 | apply Subtype.ext |
| 125 | funext x |
| 126 | rw [hmSa, hγS, div_self hγ0, one_mul] |
| 127 | exact (LinearIntertwiner.Construction.linearOscillator_apply (Gaussian.Construction.realCharacter c) S f x).symm |
| 128 | have hL : LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) S * LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) D = |
| 129 | LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) A := by rw [← LinearOscillatorHom.Construction.linearOscillator_mul, hSD] |
| 130 | refine ⟨mS * mD, ?_, fun f x => ?_⟩ |
| 131 | · rw [map_mul, hmS, hmD] |
| 132 | exact congrArg (OscillatorProjection.Construction.oscillatorProjection ℝ n (Gaussian.Construction.realCharacter c)) hL |
| 133 | · change (FunctionsMetaplectic.Construction.weilRepresentation ℝ n (Gaussian.Construction.realCharacter c) mS (FunctionsMetaplectic.Construction.weilRepresentation ℝ n (Gaussian.Construction.realCharacter c) mD f)).val x = _ |
| 134 | rw [hmSop, hmDa, map_smul] |
| 135 | have he := congrArg (fun b : FunctionsMetaplectic.Construction.Oscillator ℝ n (Gaussian.Construction.realCharacter c) => b.val.2 f) hL |
| 136 | change (LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) S).val.2 ((LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) D).val.2 f) = |
| 137 | (LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) A).val.2 f at he |
| 138 | change (FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) (-1) / FunctionsMetaplectic.Construction.gaussianIndex ℝ (Gaussian.Construction.realCharacter c) 1) * |
| 139 | ((LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) S).val.2 ((LinearIntertwiner.Construction.linearOscillator (Gaussian.Construction.realCharacter c) D).val.2 f)).val x = _ |
| 140 | rw [he, LinearIntertwiner.Construction.linearOscillator_apply, hγA] |
| 141 | ring |
| 142 | |
| 143 | def realLinearMetaplectic |
| 144 | (n : ℕ) (hn : 0 < n) (ψ : AddChar ℝ ℂ) (hc : Continuous (fun t => ψ t)) |
| 145 | (hu : ∀ t, ‖ψ t‖ = 1) (hψ : ∃ t, ψ t ≠ 1) (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) : FunctionsMetaplectic.Construction.Metaplectic ℝ n ψ := |
| 146 | Classical.choose (exists_real_levi_metaplectic n hn ψ hc hu hψ A) |
| 147 | |
| 148 | theorem realLinearMetaplectic_projection |
| 149 | (n : ℕ) (hn : 0 < n) (ψ : AddChar ℝ ℂ) (hc : Continuous (fun t => ψ t)) |
| 150 | (hu : ∀ t, ‖ψ t‖ = 1) (hψ : ∃ t, ψ t ≠ 1) (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) : |
| 151 | FunctionsMetaplectic.Construction.metaplecticProjection ℝ n ψ (realLinearMetaplectic n hn ψ hc hu hψ A) = Generators.Construction.leviSymplectic A := |
| 152 | (Classical.choose_spec (exists_real_levi_metaplectic n hn ψ hc hu hψ A)).1 |
| 153 | |
| 154 | theorem realLinearMetaplectic_apply |
| 155 | (n : ℕ) (hn : 0 < n) (ψ : AddChar ℝ ℂ) (hc : Continuous (fun t => ψ t)) |
| 156 | (hu : ∀ t, ‖ψ t‖ = 1) (hψ : ∃ t, ψ t ≠ 1) (A : FunctionsMetaplectic.Construction.GeneralLinear ℝ n) |
| 157 | (f : FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 158 | (FunctionsMetaplectic.Construction.weilRepresentation ℝ n ψ (realLinearMetaplectic n hn ψ hc hu hψ A) f).val x = |
| 159 | (FunctionsMetaplectic.Construction.gaussianIndex ℝ ψ (FunctionsMetaplectic.Construction.determinantUnit ℝ A) / FunctionsMetaplectic.Construction.gaussianIndex ℝ ψ 1) * |
| 160 | ((Real.sqrt (FunctionsMetaplectic.Construction.localModulus ℝ (FunctionsMetaplectic.Construction.determinantUnit ℝ A)))⁻¹ : ℂ) * f.val (A⁻¹.val *ᵥ x) := |
| 161 | (Classical.choose_spec (exists_real_levi_metaplectic n hn ψ hc hu hψ A)).2 f x |
| 162 | |
| 163 | end |
| 164 | |
| 165 | end OAI.RepresentationTheory.Weil.Local.RealLevi.Construction |