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.FunctionsMetaplectic |
| 2 | import OAI.RepresentationTheory.Weil.Local.Gaussian |
| 3 | |
| 4 | /-! # Real Test Space -/ |
| 5 | |
| 6 | namespace OAI.RepresentationTheory.Weil.Local.RealTestSpace.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Identification with the real Schwartz space and stability under quadratic phases. -/ |
| 11 | |
| 12 | open scoped SchwartzMap ContDiff |
| 13 | |
| 14 | theorem locallyConstant_contDiff {E F : Type*} |
| 15 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 16 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 17 | {f : E → F} (hf : IsLocallyConstant f) : ContDiff ℝ ∞ f := by |
| 18 | rw [contDiff_iff_contDiffAt] |
| 19 | intro x |
| 20 | exact contDiffAt_const.congr_of_eventuallyEq (hf.eventually_eq x) |
| 21 | |
| 22 | theorem schwartzBruhat_real_iff {n : ℕ} {f : FunctionsMetaplectic.Construction.Position ℝ n → ℂ} : |
| 23 | f ∈ FunctionsMetaplectic.Construction.schwartzBruhat ℝ n ↔ ∃ φ : SchwartzMap (FunctionsMetaplectic.Construction.Position ℝ n) ℂ, f = φ := by |
| 24 | constructor |
| 25 | · intro hf |
| 26 | induction hf using Submodule.span_induction with |
| 27 | | mem f hf => |
| 28 | rcases hf with hf | ⟨d, e, φ, rfl⟩ |
| 29 | · exact ⟨hf.2.toSchwartzMap (locallyConstant_contDiff hf.1), rfl⟩ |
| 30 | · let a := e.symm.toAddEquiv.toRealLinearEquiv |
| 31 | e.symm.continuous e.continuous |
| 32 | exact ⟨SchwartzMap.compCLMOfContinuousLinearEquiv ℂ a φ, rfl⟩ |
| 33 | | zero => exact ⟨0, rfl⟩ |
| 34 | | add f g _ _ hf hg => |
| 35 | obtain ⟨φ, rfl⟩ := hf |
| 36 | obtain ⟨χ, rfl⟩ := hg |
| 37 | exact ⟨φ + χ, rfl⟩ |
| 38 | | smul c f _ hf => |
| 39 | obtain ⟨φ, rfl⟩ := hf |
| 40 | exact ⟨c • φ, rfl⟩ |
| 41 | · rintro ⟨φ, rfl⟩ |
| 42 | exact FunctionsMetaplectic.Construction.schwartz_coordinate_mem (ContinuousAddEquiv.refl _) φ |
| 43 | |
| 44 | def realSchwartzToBruhat {n : ℕ} : |
| 45 | SchwartzMap (FunctionsMetaplectic.Construction.Position ℝ n) ℂ →ₗ[ℂ] FunctionsMetaplectic.Construction.schwartzBruhat ℝ n where |
| 46 | toFun f := ⟨f, schwartzBruhat_real_iff.mpr ⟨f, rfl⟩⟩ |
| 47 | map_add' _ _ := rfl |
| 48 | map_smul' _ _ := rfl |
| 49 | |
| 50 | theorem realSchwartzToBruhat_bijective {n : ℕ} : |
| 51 | Function.Bijective (realSchwartzToBruhat (n := n)) := by |
| 52 | constructor |
| 53 | · intro f g h |
| 54 | exact DFunLike.ext' (congrArg Subtype.val h) |
| 55 | · intro f |
| 56 | obtain ⟨φ, hφ⟩ := schwartzBruhat_real_iff.mp f.property |
| 57 | exact ⟨φ, Subtype.ext hφ.symm⟩ |
| 58 | |
| 59 | def realSchwartzEquiv (n : ℕ) : |
| 60 | SchwartzMap (FunctionsMetaplectic.Construction.Position ℝ n) ℂ ≃ₗ[ℂ] FunctionsMetaplectic.Construction.schwartzBruhat ℝ n := |
| 61 | LinearEquiv.ofBijective realSchwartzToBruhat realSchwartzToBruhat_bijective |
| 62 | |
| 63 | theorem realSchwartzEquiv_apply {n : ℕ} |
| 64 | (f : SchwartzMap (FunctionsMetaplectic.Construction.Position ℝ n) ℂ) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 65 | (realSchwartzEquiv n f).val x = f x := rfl |
| 66 | |
| 67 | theorem realSchwartzEquiv_symm_apply {n : ℕ} |
| 68 | (f : FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) (x : FunctionsMetaplectic.Construction.Position ℝ n) : |
| 69 | (realSchwartzEquiv n).symm f x = f.val x := by |
| 70 | have h := congrArg (fun g : FunctionsMetaplectic.Construction.schwartzBruhat ℝ n => g.val x) |
| 71 | ((realSchwartzEquiv n).apply_symm_apply f) |
| 72 | exact h |
| 73 | |
| 74 | def unitPhaseExp (t : ℝ) : ℂ := Complex.exp ((t : ℂ) * Complex.I) |
| 75 | |
| 76 | theorem unitPhaseExp_hasDerivAt (t : ℝ) : |
| 77 | HasDerivAt unitPhaseExp (unitPhaseExp t * Complex.I) t := by |
| 78 | have h : HasDerivAt (fun s : ℝ => (s : ℂ) * Complex.I) Complex.I t := by |
| 79 | simpa using ((hasDerivAt_id t).ofReal_comp).mul_const Complex.I |
| 80 | exact h.cexp |
| 81 | |
| 82 | theorem unitPhaseExp_iteratedDeriv (n : ℕ) : |
| 83 | iteratedDeriv n unitPhaseExp = fun t => Complex.I ^ n * unitPhaseExp t := by |
| 84 | induction n with |
| 85 | | zero => simp |
| 86 | | succ n ih => |
| 87 | rw [iteratedDeriv_succ, ih] |
| 88 | funext t |
| 89 | rw [((unitPhaseExp_hasDerivAt t).const_mul (Complex.I ^ n)).deriv] |
| 90 | rw [pow_succ] |
| 91 | ring |
| 92 | |
| 93 | theorem unitPhaseExp_temperate : Function.HasTemperateGrowth unitPhaseExp := by |
| 94 | refine ⟨?_, fun n => ⟨0, 1, fun t => ?_⟩⟩ |
| 95 | · exact (Complex.ofRealCLM.contDiff.mul contDiff_const).cexp |
| 96 | · rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, unitPhaseExp_iteratedDeriv] |
| 97 | simp [unitPhaseExp, norm_pow, Complex.norm_exp] |
| 98 | |
| 99 | theorem realCharacter_temperate (c : ℝ) : |
| 100 | Function.HasTemperateGrowth (Gaussian.Construction.realCharacter c) := by |
| 101 | have h : (Gaussian.Construction.realCharacter c : ℝ → ℂ) = unitPhaseExp ∘ (fun t => 2 * Real.pi * c * t) := by |
| 102 | funext t |
| 103 | exact Gaussian.Construction.realCharacter_apply c t |
| 104 | rw [h] |
| 105 | exact unitPhaseExp_temperate.comp ((Function.HasTemperateGrowth.const _).mul .id) |
| 106 | |
| 107 | theorem quadratic_real_temperate {n : ℕ} (B : Matrix (Fin n) (Fin n) ℝ) : |
| 108 | Function.HasTemperateGrowth (FunctionsMetaplectic.Construction.quadratic B) := by |
| 109 | have hc (i : Fin n) : Function.HasTemperateGrowth (fun x : FunctionsMetaplectic.Construction.Position ℝ n => x i) := |
| 110 | (ContinuousLinearMap.proj i : FunctionsMetaplectic.Construction.Position ℝ n →L[ℝ] ℝ).hasTemperateGrowth |
| 111 | have hq : Function.HasTemperateGrowth |
| 112 | (fun x : FunctionsMetaplectic.Construction.Position ℝ n => ∑ i, ∑ j, x i * B i j * x j) := |
| 113 | .sum (fun i _ => .sum (fun j _ => ((hc i).mul (.const (B i j))).mul (hc j))) |
| 114 | exact hq.mul (.const (2 : ℝ)⁻¹) |
| 115 | |
| 116 | theorem quadraticOperator_real_mem {n : ℕ} (c : ℝ) |
| 117 | (B : Matrix (Fin n) (Fin n) ℝ) |
| 118 | {f : FunctionsMetaplectic.Construction.Position ℝ n → ℂ} (hf : f ∈ FunctionsMetaplectic.Construction.schwartzBruhat ℝ n) : |
| 119 | FunctionsMetaplectic.Construction.quadraticOperator (Gaussian.Construction.realCharacter c) B f ∈ FunctionsMetaplectic.Construction.schwartzBruhat ℝ n := by |
| 120 | obtain ⟨φ, rfl⟩ := schwartzBruhat_real_iff.mp hf |
| 121 | let χ := SchwartzMap.smulLeftCLM ℂ (fun x => Gaussian.Construction.realCharacter c (FunctionsMetaplectic.Construction.quadratic B x)) φ |
| 122 | refine schwartzBruhat_real_iff.mpr ⟨χ, ?_⟩ |
| 123 | funext x |
| 124 | exact (SchwartzMap.smulLeftCLM_apply_apply |
| 125 | ((realCharacter_temperate c).comp (quadratic_real_temperate B)) φ x).symm |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.RepresentationTheory.Weil.Local.RealTestSpace.Construction |