diff --git a/LeanPool/HilbertInvariantSubspace.lean b/LeanPool/HilbertInvariantSubspace.lean new file mode 100644 index 0000000000..aa5bc44f48 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace.lean @@ -0,0 +1,37 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + + +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Solution + +/-! +# A counterexample to the invariant subspace problem on ℓ² + +Source: url:https://github.com/anthropics/formal-math/blob/6bb031d7ecd6f25331359cd20e5d4333f389da9b/isp-hilbert-spaces/paper.pdf +Authors: Claude (Anthropic) +Status: verified +Main declarations: `HilbertInvariantSubspace.exists_no_invariant_subspace`, + `HilbertInvariantSubspace.not_ISP`, `HilbertInvariantSubspace.exists_on_separable_hilbert_space` +Tags: hilbert-spaces, operator-theory, invariant-subspaces +MSC: 47A15, 46C05 +-/ + +/-! +## Attribution + +The imported proof and the paper it quotes are Copyright 2026 Anthropic, PBC, and +released under Apache 2.0. The upstream NOTICE credits proofs from Mathlib tracked in +the block splitting, slot estimates, polynomial multipliers, and Hilbert basis arguments. +Those acknowledgments are retained at the corresponding proofs. The paper credits +the construction discussed in Y. Xie, arXiv:2610.17090, Section 9.4.3, as inspiration. + +Upstream notice: +https://github.com/anthropics/formal-math/blob/6bb031d7ecd6f25331359cd20e5d4333f389da9b/isp-hilbert-spaces/NOTICE +-/ diff --git a/LeanPool/HilbertInvariantSubspace/Blocks.lean b/LeanPool/HilbertInvariantSubspace/Blocks.lean new file mode 100644 index 0000000000..9753c40ccc --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Blocks.lean @@ -0,0 +1,497 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import Mathlib.Algebra.Polynomial.AlgebraMap +public import Mathlib.Algebra.Polynomial.Div +public import Mathlib.Algebra.Polynomial.FieldDivision +public import Mathlib.Analysis.Complex.Basic +public import Mathlib.Analysis.Normed.Module.FiniteDimension +public import Mathlib.Analysis.Normed.Operator.Basic +public import Mathlib.LinearAlgebra.Dimension.OrzechProperty +public import Mathlib.Tactic.FieldSimp +public import Mathlib.Tactic.FunProp +public import Mathlib.Tactic.LinearCombination +public import Mathlib.Tactic.Linarith +public import Mathlib.Tactic.NormNum +public import Mathlib.Tactic.Positivity +public import Mathlib.Tactic.Ring + +/-! +# Blocks (paper, §2 "Blocks and slots") + +Paper, §2 (condensed): "A block is a pair (K, t): K a Hilbert space of finite dimension d ≥ 1, t +nilpotent with a +cyclic vector e (so e, te, …, t^{d−1}e is a basis); ran t^k has dimension d − k and equals +ker t^{d-k}, and ℂ[t]v = ran t^k for v ∈ ran t^k ∖ ran t^{k+1} (B). Let I₁(t) = {A ∈ t²ℂ[t] : ‖A‖ +≤ 1}. Each A ∈ I₁(t) is uniquely p_A(t)t² +with p_A = Σ_{i norm_nonneg _ + +theorem ell_nonneg (p : ℂ[X]) : 0 ≤ ell p := + Finset.sum_nonneg fun _ _ => mul_nonneg (Nat.cast_nonneg _) (norm_nonneg _) + +end Block + +/-! ## Weighted coefficient sums (technical) -/ + +/-- A weighted sum of the moduli of the coefficients. -/ +private def wt (w : ℕ → ℝ) (p : ℂ[X]) : ℝ := ∑ j ∈ p.support, w j * ‖p.coeff j‖ + +private theorem wt_eq_of_subset (w : ℕ → ℝ) (p : ℂ[X]) {s : Finset ℕ} (hs : p.support ⊆ s) : + wt w p = ∑ j ∈ s, w j * ‖p.coeff j‖ := by + refine Finset.sum_subset hs fun j _ hj => ?_ + rw [Polynomial.notMem_support_iff.1 hj, norm_zero, mul_zero] + +private theorem wt_add_le {w : ℕ → ℝ} (hw : ∀ j, 0 ≤ w j) (p q : ℂ[X]) : + wt w (p + q) ≤ wt w p + wt w q := by + rw [wt_eq_of_subset w (p + q) (s := p.support ∪ q.support) Polynomial.support_add, + wt_eq_of_subset w p (s := p.support ∪ q.support) Finset.subset_union_left, + wt_eq_of_subset w q (s := p.support ∪ q.support) Finset.subset_union_right, + ← Finset.sum_add_distrib] + refine Finset.sum_le_sum fun j _ => ?_ + rw [← mul_add, Polynomial.coeff_add] + exact mul_le_mul_of_nonneg_left (norm_add_le _ _) (hw j) + +private theorem wt_smul (w : ℕ → ℝ) (a : ℂ) (p : ℂ[X]) : wt w (a • p) = ‖a‖ * wt w p := by + rw [wt_eq_of_subset w (a • p) (Polynomial.support_smul a p), wt, Finset.mul_sum] + refine Finset.sum_congr rfl fun j _ => ?_ + rw [AddMonoidAlgebra.coeff_smul_apply, norm_smul] + ring + +private theorem wt_sum_le {w : ℕ → ℝ} (hw : ∀ j, 0 ≤ w j) {ι : Type} (s : Finset ι) + (a : ι → ℂ) (y : ι → ℂ[X]) : + wt w (∑ i ∈ s, a i • y i) ≤ ∑ i ∈ s, ‖a i‖ * wt w (y i) := by + classical + induction s using Finset.induction_on with + | empty => simp [wt] + | insert i s hi ih => + rw [Finset.sum_insert hi, Finset.sum_insert hi] + refine (wt_add_le hw _ _).trans ?_ + rw [wt_smul] + linarith + +private theorem l1_eq_wt (p : ℂ[X]) : l1 p = wt (fun _ => 1) p := by + simp [l1, wt] + +private theorem ell_eq_wt (p : ℂ[X]) : ell p = wt (fun j => (j : ℝ)) p := rfl + +private theorem l1_sum_le {ι : Type} (s : Finset ι) (a : ι → ℂ) (y : ι → ℂ[X]) : + l1 (∑ i ∈ s, a i • y i) ≤ ∑ i ∈ s, ‖a i‖ * l1 (y i) := by + simp only [l1_eq_wt] + exact wt_sum_le (fun _ => zero_le_one) s a y + +private theorem ell_sum_le {ι : Type} (s : Finset ι) (a : ι → ℂ) (y : ι → ℂ[X]) : + ell (∑ i ∈ s, a i • y i) ≤ ∑ i ∈ s, ‖a i‖ * ell (y i) := by + simp only [ell_eq_wt] + exact wt_sum_le (fun _ => Nat.cast_nonneg _) s a y + +/-- `ell (X² p) = Σ (i+2)|c_i| ≤ 2 Σ (i+1)|c_i|` — the bookkeeping behind the factor `2L` in the +third inequality of (1). -/ +theorem ell_X2_mul_le (p : ℂ[X]) : ell (X ^ 2 * p) ≤ 2 * (l1 p + ell p) := by + have hsupp : (X ^ 2 * p).support ⊆ p.support.map (addLeftEmbedding 2) := by + intro j hj + rw [Polynomial.mem_support_iff, Polynomial.coeff_X_pow_mul'] at hj + split_ifs at hj with h + · rw [Finset.mem_map] + exact ⟨j - 2, Polynomial.mem_support_iff.2 hj, by simp [addLeftEmbedding]; omega⟩ + · exact absurd rfl hj + rw [ell_eq_wt, wt_eq_of_subset _ _ hsupp, Finset.sum_map, l1, ell, ← Finset.sum_add_distrib, + Finset.mul_sum] + refine Finset.sum_le_sum fun j _ => ?_ + simp only [addLeftEmbedding_apply, Polynomial.coeff_X_pow_mul', le_add_iff_nonneg_right, zero_le, + ite_true, add_tsub_cancel_left] + have := norm_nonneg (p.coeff j) + push_cast + nlinarith + +section + +variable {E F : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] + [NormedAddCommGroup F] [NormedSpace ℂ F] + +theorem zero_mem_Alg2 (T : E →L[ℂ] E) : (0 : E →L[ℂ] E) ∈ Alg2 T := + ⟨0, by simp⟩ + +theorem zero_mem_I1 (T : E →L[ℂ] E) : (0 : E →L[ℂ] E) ∈ I1 T := + ⟨zero_mem_Alg2 T, by simp⟩ + +theorem add_mem_Alg2 {T S S' : E →L[ℂ] E} (h : S ∈ Alg2 T) (h' : S' ∈ Alg2 T) : + S + S' ∈ Alg2 T := by + obtain ⟨f, rfl⟩ := h + obtain ⟨g, rfl⟩ := h' + exact ⟨f + g, by rw [mul_add, map_add]⟩ + +theorem smul_mem_Alg2 {T S : E →L[ℂ] E} (a : ℂ) (h : S ∈ Alg2 T) : a • S ∈ Alg2 T := by + obtain ⟨f, rfl⟩ := h + exact ⟨a • f, by rw [mul_smul_comm, map_smul]⟩ + +theorem aeval_mul_mem_Alg2 {T S : E →L[ℂ] E} (p : ℂ[X]) (h : S ∈ Alg2 T) : + aeval T p * S ∈ Alg2 T := by + obtain ⟨f, rfl⟩ := h + exact ⟨p * f, by rw [← map_mul, mul_left_comm]⟩ + +theorem mul_mem_Alg2 {T S S' : E →L[ℂ] E} (h : S ∈ Alg2 T) (h' : S' ∈ Alg2 T) : + S * S' ∈ Alg2 T := by + obtain ⟨f, rfl⟩ := h + exact aeval_mul_mem_Alg2 _ h' + +theorem sum_mem_Alg2 {T : E →L[ℂ] E} {ι : Type} (s : Finset ι) (S : ι → E →L[ℂ] E) + (h : ∀ i ∈ s, S i ∈ Alg2 T) : ∑ i ∈ s, S i ∈ Alg2 T := by + classical + induction s using Finset.induction_on with + | empty => simpa using zero_mem_Alg2 T + | insert i s hi ih => + rw [Finset.sum_insert hi] + exact add_mem_Alg2 (h i (Finset.mem_insert_self i s)) + (ih fun j hj => h j (Finset.mem_insert_of_mem hj)) + +/-- `T ^ (k + 2) ∈ t²ℂ[t]`. -/ +theorem pow_mem_Alg2 (T : E →L[ℂ] E) (k : ℕ) : T ^ (k + 2) ∈ Alg2 T := + ⟨X ^ k, by rw [← pow_add, add_comm, map_pow, aeval_X]⟩ + +private theorem aeval_eq_sum_supp (A : E →L[ℂ] E) (p : ℂ[X]) : + aeval A p = ∑ j ∈ p.support, p.coeff j • A ^ j := by + rw [aeval_def, eval₂_eq_sum, Polynomial.sum_def] + exact Finset.sum_congr rfl fun j _ => (Algebra.smul_def _ _).symm + +theorem norm_pow_le_one (A : E →L[ℂ] E) (hA : ‖A‖ ≤ 1) (j : ℕ) : ‖A ^ j‖ ≤ 1 := by + induction j with + | zero => rw [pow_zero]; exact ContinuousLinearMap.norm_id_le + | succ j ih => + rw [pow_succ] + exact (norm_mul_le _ _).trans ((mul_le_of_le_one_right (norm_nonneg _) hA).trans ih) + +/-- `‖p(A)‖ ≤ Σ|c_i|` for a contraction `A`. -/ +theorem norm_aeval_le (A : E →L[ℂ] E) (hA : ‖A‖ ≤ 1) (p : ℂ[X]) : ‖aeval A p‖ ≤ l1 p := by + rw [aeval_eq_sum_supp, l1] + refine (norm_sum_le _ _).trans (Finset.sum_le_sum fun j _ => ?_) + rw [norm_smul] + exact mul_le_of_le_one_right (norm_nonneg _) (norm_pow_le_one A hA j) + +/-- Paper: "‖X^k − Y^k‖ ≤ k‖X − Y‖ for contractions", in the intertwining form +`‖A^j W − W B^j‖ ≤ j ‖A W − W B‖`. -/ +theorem norm_pow_intertwine (A : E →L[ℂ] E) (B : F →L[ℂ] F) (W : F →L[ℂ] E) + (hA : ‖A‖ ≤ 1) (hB : ‖B‖ ≤ 1) (j : ℕ) : + ‖(A ^ j) ∘L W - W ∘L (B ^ j)‖ ≤ j * ‖A ∘L W - W ∘L B‖ := by + induction j with + | zero => + have : (A ^ 0) ∘L W - W ∘L (B ^ 0) = 0 := by + ext v + simp + rw [this] + simp + | succ j ih => + have e : (A ^ (j + 1)) ∘L W - W ∘L (B ^ (j + 1)) = + A ∘L ((A ^ j) ∘L W - W ∘L (B ^ j)) + (A ∘L W - W ∘L B) ∘L (B ^ j) := by + ext v + simp [pow_succ'] + rw [e] + refine (norm_add_le _ _).trans ?_ + have h1 := ContinuousLinearMap.opNorm_comp_le A ((A ^ j) ∘L W - W ∘L (B ^ j)) + have h2 := ContinuousLinearMap.opNorm_comp_le (A ∘L W - W ∘L B) (B ^ j) + have h3 := mul_le_of_le_one_left (norm_nonneg ((A ^ j) ∘L W - W ∘L (B ^ j))) hA + have h4 := mul_le_of_le_one_right (norm_nonneg (A ∘L W - W ∘L B)) (norm_pow_le_one B hB j) + push_cast + linarith + +/-- `‖p(A) W − W p(B)‖ ≤ (Σ i|c_i|) ‖A W − W B‖` for contractions `A`, `B`. -/ +theorem norm_aeval_intertwine (A : E →L[ℂ] E) (B : F →L[ℂ] F) (W : F →L[ℂ] E) + (hA : ‖A‖ ≤ 1) (hB : ‖B‖ ≤ 1) (p : ℂ[X]) : + ‖aeval A p ∘L W - W ∘L aeval B p‖ ≤ ell p * ‖A ∘L W - W ∘L B‖ := by + have e : aeval A p ∘L W - W ∘L aeval B p = + ∑ j ∈ p.support, p.coeff j • ((A ^ j) ∘L W - W ∘L (B ^ j)) := by + rw [aeval_eq_sum_supp, aeval_eq_sum_supp] + ext v + simp [smul_sub, Finset.sum_sub_distrib] + rw [e, ell, Finset.sum_mul] + refine (norm_sum_le _ _).trans (Finset.sum_le_sum fun j _ => ?_) + rw [norm_smul] + have := mul_le_mul_of_nonneg_left (norm_pow_intertwine A B W hA hB j) (norm_nonneg (p.coeff j)) + linarith + +/-- `‖p(A) − p(B)‖ ≤ (Σ i|c_i|) ‖A − B‖` for contractions. -/ +theorem norm_aeval_sub_le (A B : E →L[ℂ] E) (hA : ‖A‖ ≤ 1) (hB : ‖B‖ ≤ 1) (p : ℂ[X]) : + ‖aeval A p - aeval B p‖ ≤ ell p * ‖A - B‖ := by + simpa using norm_aeval_intertwine A B (ContinuousLinearMap.id ℂ E) hA hB p + +/-! ### Inequality (1) of the paper, for `p` with `Σ(i+1)|c_i| ≤ L` and contractions `X`, `Y`. -/ + +/-- (1), first: `‖p(X)‖ ≤ L`. -/ +theorem norm_aeval_le_of_coeff {p : ℂ[X]} {L : ℝ} (hp : l1 p + ell p ≤ L) (A : E →L[ℂ] E) + (hA : ‖A‖ ≤ 1) : ‖aeval A p‖ ≤ L := + (norm_aeval_le A hA p).trans (by linarith [ell_nonneg p]) + +/-- (1), second: `‖p(X) − p(Y)‖ ≤ L ‖X − Y‖`. -/ +theorem norm_aeval_sub_le_of_coeff {p : ℂ[X]} {L : ℝ} (hp : l1 p + ell p ≤ L) (A B : E →L[ℂ] E) + (hA : ‖A‖ ≤ 1) (hB : ‖B‖ ≤ 1) : ‖aeval A p - aeval B p‖ ≤ L * ‖A - B‖ := + (norm_aeval_sub_le A B hA hB p).trans + (mul_le_mul_of_nonneg_right (by linarith [l1_nonneg p]) (norm_nonneg _)) + +/-- (1), third: `‖p(X)X² − p(Y)Y²‖ ≤ 2L ‖X − Y‖`. -/ +theorem norm_aeval_X2_sub_le_of_coeff {p : ℂ[X]} {L : ℝ} (hp : l1 p + ell p ≤ L) + (A B : E →L[ℂ] E) (hA : ‖A‖ ≤ 1) (hB : ‖B‖ ≤ 1) : + ‖aeval A (X ^ 2 * p) - aeval B (X ^ 2 * p)‖ ≤ 2 * L * ‖A - B‖ := + (norm_aeval_sub_le A B hA hB _).trans + (mul_le_mul_of_nonneg_right ((ell_X2_mul_le p).trans (by linarith)) (norm_nonneg _)) + +/-! ### Existence of `L(t)` by finite dimensionality -/ + +private theorem exists_bound_submodule [FiniteDimensional ℂ F] (W : Submodule ℂ F) + (g : W →ₗ[ℂ] ℂ) : ∃ C : ℝ, 0 ≤ C ∧ ∀ S : W, ‖g S‖ ≤ C * ‖(S : F)‖ := + ⟨‖LinearMap.toContinuousLinearMap g‖, ContinuousLinearMap.opNorm_nonneg _, + fun S => (LinearMap.toContinuousLinearMap g).le_opNorm S⟩ + +/-- Equivalent form: a constant `L > 0` with `l1 y ≤ L‖S‖` and `ell y ≤ L‖S‖` for every +`S ∈ t²ℂ[t]` and a suitable representing `y`. -/ +private theorem exists_coeffBound' [FiniteDimensional ℂ E] (T : E →L[ℂ] E) : + ∃ L : ℝ, 0 < L ∧ ∀ S ∈ Alg2 T, ∃ y : ℂ[X], S = aeval T (X ^ 2 * y) ∧ + l1 y ≤ L * ‖S‖ ∧ ell y ≤ L * ‖S‖ := by + let φ : ℂ[X] →ₗ[ℂ] (E →L[ℂ] E) := + (aeval T).toLinearMap ∘ₗ LinearMap.mulLeft ℂ (X ^ 2 : ℂ[X]) + have hφ : ∀ y, φ y = aeval T (X ^ 2 * y) := fun _ => rfl + let W := LinearMap.range φ + let b := Module.finBasis ℂ W + have hy : ∀ i, ∃ y, φ y = (b i : E →L[ℂ] E) := fun i => (b i).2 + choose y hy using hy + have hC : ∀ i, ∃ C : ℝ, 0 ≤ C ∧ ∀ S : W, ‖b.repr S i‖ ≤ C * ‖(S : E →L[ℂ] E)‖ := fun i => + exists_bound_submodule W (b.coord i) + choose C hC0 hC using hC + let N : Fin (finrank ℂ W) → ℝ := fun i => l1 (y i) + ell (y i) + have hN0 : ∀ i, 0 ≤ N i := fun i => add_nonneg (l1_nonneg _) (ell_nonneg _) + have hsum : 0 ≤ ∑ i, C i * N i := Finset.sum_nonneg fun i _ => mul_nonneg (hC0 i) (hN0 i) + refine ⟨1 + ∑ i, C i * N i, by linarith, ?_⟩ + rintro S ⟨f, hf⟩ + have hS : S ∈ W := ⟨f, hf.symm⟩ + let a : Fin (finrank ℂ W) → ℂ := fun i => b.repr ⟨S, hS⟩ i + have key : ∀ g : Fin (finrank ℂ W) → ℝ, (∀ i, 0 ≤ g i) → (∀ i, g i ≤ N i) → + ∑ i, ‖a i‖ * g i ≤ (1 + ∑ i, C i * N i) * ‖S‖ := by + intro g hg0 hg + have h1 : ∑ i, ‖a i‖ * g i ≤ (∑ i, C i * N i) * ‖S‖ := by + rw [Finset.sum_mul] + refine Finset.sum_le_sum fun i _ => ?_ + have h2 : ‖a i‖ ≤ C i * ‖S‖ := hC i ⟨S, hS⟩ + have h3 := mul_le_mul h2 (hg i) (hg0 i) (mul_nonneg (hC0 i) (norm_nonneg _)) + linarith + have := norm_nonneg S + linarith + refine ⟨∑ i, a i • y i, ?_, ?_, ?_⟩ + · rw [← hφ, map_sum] + simp only [map_smul, hy] + have := congrArg W.subtype (b.sum_repr ⟨S, hS⟩) + rw [map_sum] at this + simp only [map_smul] at this + exact this.symm + · refine (l1_sum_le _ _ _).trans (key _ (fun i => l1_nonneg _) fun i => ?_) + have := ell_nonneg (y i) + simp only [N] + linarith + · refine (ell_sum_le _ _ _).trans (key _ (fun i => ell_nonneg _) fun i => ?_) + have := l1_nonneg (y i) + simp only [N] + linarith + +/-- Paper, §2: Σ(i+1)|c_i| is bounded on I₁(t); `L(t) ≥ 1` is such a bound. -/ +theorem exists_coeffBound [FiniteDimensional ℂ E] (t : E →L[ℂ] E) : ∃ L : ℝ, CoeffBound t L := by + obtain ⟨L, hL, h⟩ := exists_coeffBound' t + refine ⟨1 + 2 * L, by linarith, fun A hA => ?_⟩ + obtain ⟨y, hy, h1, h2⟩ := h A hA.1 + refine ⟨y, hy, ?_⟩ + have := mul_le_of_le_one_right hL.le hA.2 + linarith + +/-- The constant `L(t) ≥ 1` of the paper (a choice). -/ +def Lconst [FiniteDimensional ℂ E] (t : E →L[ℂ] E) : ℝ := Classical.choose (exists_coeffBound t) + +theorem Lconst_spec [FiniteDimensional ℂ E] (t : E →L[ℂ] E) : CoeffBound t (Lconst t) := + Classical.choose_spec (exists_coeffBound t) + +theorem one_le_Lconst [FiniteDimensional ℂ E] (t : E →L[ℂ] E) : 1 ≤ Lconst t := (Lconst_spec t).1 + +end + +/-! ## One block: dimension, nilpotency, and "reach" inside a block -/ + +section OneBlock + +variable {K : Type} [NormedAddCommGroup K] [NormedSpace ℂ K] + +private theorem block_aeval_mul (T : K →L[ℂ] K) (f g : ℂ[X]) (x : K) : + aeval T (f * g) x = aeval T f (aeval T g x) := by + rw [map_mul]; rfl + +private theorem block_pow_mul (T : K →L[ℂ] K) (k : ℕ) (g : ℂ[X]) (x : K) : + aeval T (X ^ k * g) x = (T ^ k) (aeval T g x) := by + rw [block_aeval_mul, map_pow, aeval_X] + +private theorem block_aeval_eq_sum {T : K →L[ℂ] K} {q : ℕ} (hT : T ^ q = 0) (f : ℂ[X]) (x : K) : + aeval T f x = ∑ a : Fin q, f.coeff a • (T ^ (a : ℕ)) x := by + have h1 : aeval T f = ∑ a ∈ Finset.range (f.natDegree + 1 + q), f.coeff a • T ^ a := + aeval_eq_sum_range' (by omega) T + have h2 : ∑ a ∈ Finset.range q, f.coeff a • T ^ a + = ∑ a ∈ Finset.range (f.natDegree + 1 + q), f.coeff a • T ^ a := by + apply Finset.sum_subset + · intro a ha + simp only [Finset.mem_range] at ha ⊢ + omega + · intro a _ ha + simp only [Finset.mem_range, not_lt] at ha + rw [pow_eq_zero_of_le ha hT, smul_zero] + rw [h1, ← h2, Finset.sum_range (fun a => f.coeff a • T ^ a), _root_.sum_apply] + rfl + +/-- A block of size `d` satisfies `t ^ d = 0`. -/ +theorem IsBlock.pow_eq_zero {T : K →L[ℂ] K} {q : ℕ} (h : IsBlock T q) : T ^ q = 0 := by + obtain ⟨x0, hc, ha⟩ := h + ext ξ + obtain ⟨f, rfl⟩ := hc ξ + rw [← block_pow_mul, (ha _).2 (dvd_mul_right _ _)] + rfl + +theorem span_pow_of_cyclic {T : K →L[ℂ] K} {q : ℕ} {x0 : K} (hT : T ^ q = 0) + (hcyc : ∀ ξ : K, ∃ f : ℂ[X], aeval T f x0 = ξ) : + Submodule.span ℂ (Set.range fun a : Fin q => (T ^ (a : ℕ)) x0) = ⊤ := by + rw [eq_top_iff] + intro ξ _ + obtain ⟨f, rfl⟩ := hcyc ξ + rw [block_aeval_eq_sum hT] + exact Submodule.sum_mem _ fun a _ => + Submodule.smul_mem _ _ (Submodule.subset_span ⟨a, rfl⟩) + +/-- Paper, §2: "e, te, …, t^{d−1}e is a basis" — in particular `dim K = d`. -/ +theorem IsBlock.finrank_eq {T : K →L[ℂ] K} {q : ℕ} (h : IsBlock T q) : finrank ℂ K = q := by + have hT := h.pow_eq_zero + obtain ⟨x0, hc, ha⟩ := h + have hspan := span_pow_of_cyclic hT hc + have hli : LinearIndependent ℂ (fun a : Fin q => (T ^ (a : ℕ)) x0) := by + rw [Fintype.linearIndependent_iff] + intro g hg + have hcoef : ∀ a : Fin q, + (∑ b : Fin q, monomial (b : ℕ) (g b) : ℂ[X]).coeff a = g a := by + intro a + rw [finsetSum_coeff, Finset.sum_eq_single a] + · simp + · intro b _ hb + exact coeff_monomial_of_ne _ (fun h => hb (Fin.ext h.symm)) + · simp + have h0 : aeval T (∑ b : Fin q, monomial (b : ℕ) (g b) : ℂ[X]) x0 = 0 := by + rw [block_aeval_eq_sum hT] + simp only [hcoef] + exact hg + have hd := X_pow_dvd_iff.1 ((ha _).1 h0) + intro a + rw [← hcoef a] + exact hd a a.2 + have := finrank_eq_card_basis (Basis.mk hli hspan.ge) + simpa using this + +theorem isBlock_of_cyclic {T : K →L[ℂ] K} {q : ℕ} {x0 : K} + (hfin : finrank ℂ K = q) (hT : T ^ q = 0) + (hcyc : ∀ ξ : K, ∃ f : ℂ[X], aeval T f x0 = ξ) : IsBlock T q := by + have hspan := span_pow_of_cyclic hT hcyc + have hli : LinearIndependent ℂ (fun a : Fin q => (T ^ (a : ℕ)) x0) := + linearIndependent_of_top_le_span_of_card_eq_finrank hspan.ge (by simp [hfin]) + refine ⟨x0, hcyc, fun f => ⟨fun hf => ?_, ?_⟩⟩ + · rw [block_aeval_eq_sum hT] at hf + have := Fintype.linearIndependent_iff.1 hli (fun a => f.coeff a) hf + exact X_pow_dvd_iff.2 fun a ha => this ⟨a, ha⟩ + · rintro ⟨g, rfl⟩ + rw [block_pow_mul, hT] + rfl + +/-- Paper, §2, fact (B) ("ℂ[t]v = ran t^k", with "ran t^k = ker t^{d−k}"), used in Lemma 3.2(b), +in the form the proof consumes: if `ξ ∉ ran T^k`, `T^k v = 0` and `2k + 1 ≤ Q`, then +`T²ℂ[T] ξ ∋ v` (because `ℂ[T]ξ = ran T^j` with `j < k`, so `T²ℂ[T]ξ = ran T^{j+2} ⊇ ran T^{Q−k} += ker T^k`). -/ +theorem IsBlock.reach {T : K →L[ℂ] K} {Q : ℕ} (h : IsBlock T Q) (k : ℕ) (hk : 2 * k + 1 ≤ Q) + (ξ v : K) (hξ : ∀ w : K, (T ^ k) w ≠ ξ) (hv : (T ^ k) v = 0) : + ∃ S ∈ Alg2 T, S ξ = v := by + obtain ⟨x0, hc, ha⟩ := h + obtain ⟨f, rfl⟩ := hc ξ + obtain ⟨p, rfl⟩ := hc v + have hf : f ≠ 0 := by + rintro rfl + exact hξ 0 (by simp) + obtain ⟨l, g, hg, rfl⟩ := WfDvdMonoid.max_power_factor hf (irreducible_X (R := ℂ)) + have hl : l < k := by + by_contra hlk + obtain ⟨m, rfl⟩ := Nat.exists_eq_add_of_le (not_lt.1 hlk) + apply hξ (aeval T (X ^ m * g) x0) + rw [← block_pow_mul, pow_add, mul_assoc] + rw [← block_pow_mul, ha] at hv + obtain ⟨m, rfl⟩ : ∃ m, Q = k + (l + 2 + m) := ⟨Q - k - (l + 2), by omega⟩ + rw [pow_add, mul_dvd_mul_iff_left (pow_ne_zero k X_ne_zero)] at hv + obtain ⟨p', rfl⟩ := hv + have hcop : IsCoprime ((X : ℂ[X]) ^ (k + (l + 2 + m))) g := + ((irreducible_X (R := ℂ)).coprime_iff_not_dvd.2 hg).pow_left + obtain ⟨a, b, hab⟩ := hcop + refine ⟨aeval T (X ^ 2 * (X ^ m * p' * b)), ⟨_, rfl⟩, ?_⟩ + rw [← block_aeval_mul, ← sub_eq_zero, ← _root_.sub_apply, ← map_sub, ha] + refine ⟨-(a * (X ^ (l + 2 + m) * p')), ?_⟩ + linear_combination (X ^ (l + 2 + m) * p') * hab + +end OneBlock + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Construction.lean b/LeanPool/HilbertInvariantSubspace/Construction.lean new file mode 100644 index 0000000000..8f2f0d5a0a --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Construction.lean @@ -0,0 +1,245 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Lemma2 +public import LeanPool.HilbertInvariantSubspace.Tower + +/-! +# Construction (paper, §4 "The construction") + +Paper, §4 (condensed): "Let K_0 = ℂ, T_0 = 0, τ_0 = µ_0 = 1. Given the block (K_n, T_n) and µ_0, +…, µ_n, choose +L_n = L(T_n), then 0 < τ_{n+1} ≤ τ_n/2 with γ_{n+1} := 24 L_n τ_{n+1} ≤ 2^{−n−3} min(µ_0, …, +µ_n), then, by +Lemma 3.2, K_{n+1} = K_n^D, T_{n+1} = S, µ_{n+1} = µ. The hypothesis of Lemma 3.2 holds at each +step by induction: +‖T_n‖ + τ_{n+1} ≤ Σ_{1≤m≤n+1} τ_m < 1. For m > n, γ_m ≤ 2^{−m−2} µ_n, so Σ_{m>n} γ_m ≤ µ_n/4. (2) +Embed K_{m−1} ⊂ K_m isometrically by b ↦ ([b]_0 + [b]_{D−1})/√2; then +V±_m b = b (b ∈ K_{m−1}), ½ Σ± ‖V±_m v‖² = ‖v_0‖² + ‖v_{D−1}‖² ≤ ‖v‖² (v ∈ K_m). (3)" + +Lean: `baseLevel` is `(ℂ, 0)` with `τ_0 = µ_0 = 1`; `Level.exists_next` performs one step of the +recursion +(choosing `τ_{n+1} = min(τ_n/2, 2^{−n−3} min(µ_0..µ_n) / (24 L_n))` and applying `lemma2`); +`levelSeq` +iterates it with `Classical.choice`; `tower` packages the result as an +`HilbertInvariantSubspace.Tower`, verifying each of +that record's fields from Lemma 3.2 and the identities of `Slots.lean` (`Vminus_Vmap`, +`pyth_V`, +`inner_sepOp_V`, …). The invariant carried through the recursion is `‖T_n‖ + τ_n ≤ 1` together +with the +running minimum `µmin_n = min(µ_0, …, µ_n)`. +-/ + +@[expose] public section + +open Polynomial Module +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +/-- One level `(K_n, T_n)` of the recursion with its constants `τ_n, µ_n` and the running minimum +`µmin_n = min(µ_0, …, µ_n)`; invariant `‖T_n‖ + τ_n ≤ 1`. -/ +structure Level where + /-- The finite-dimensional Hilbert space at the level. -/ + K : Type + [nacg : NormedAddCommGroup K] + [ips : InnerProductSpace ℂ K] + [fd : FiniteDimensional ℂ K] + /-- The cyclic nilpotent operator on the level space. -/ + T : K →L[ℂ] K + /-- The length of the cyclic nilpotent block. -/ + q : ℕ + one_le_q : 1 ≤ q + block : IsBlock T q + /-- The positive tolerance reserved for the next perturbation. -/ + τ : ℝ + /-- The positive lower bound in the reach estimate at this level. -/ + μ : ℝ + /-- The smallest reach bound through this level. -/ + μmin : ℝ + τ_pos : 0 < τ + μ_pos : 0 < μ + μmin_pos : 0 < μmin + μmin_le : μmin ≤ μ + norm_T : ‖T‖ + τ ≤ 1 + +attribute [instance] Level.nacg Level.ips Level.fd + +/-- Paper: "K_0 = ℂ, T_0 = 0, τ_0 = µ_0 = 1". -/ +def baseLevel : Level where + K := ℂ + T := 0 + q := 1 + one_le_q := le_rfl + block := by + refine isBlock_of_cyclic (x0 := (1 : ℂ)) (Module.finrank_self ℂ) (by simp) fun ξ => ⟨C ξ, ?_⟩ + rw [aeval_C, Algebra.algebraMap_eq_smul_one] + simp + τ := 1 + μ := 1 + μmin := 1 + τ_pos := one_pos + μ_pos := one_pos + μmin_pos := one_pos + μmin_le := le_rfl + norm_T := by simp + +/-- The data joining level `n` to level `n + 1`: the embedding, `V∓`, and the conclusions of + Lemma 3.2 +with `τ = τ_{n+1}`, plus the paper's choice of `τ_{n+1}`. -/ +structure Link (n : ℕ) (a b : Level) where + /-- The isometric embedding from the current space into the next. -/ + V : a.K →ₗᵢ[ℂ] b.K + /-- The first signed coordinate map back to the current space. -/ + Vm : b.K →L[ℂ] a.K + /-- The last signed coordinate map back to the current space. -/ + Vp : b.K →L[ℂ] a.K + τ_half : b.τ ≤ a.τ / 2 + γ_le : 24 * Lconst a.T * b.τ ≤ (1 / 2) ^ (n + 3) * a.μmin + μmin_eq : b.μmin = min a.μmin b.μ + inter : ∀ v : a.K, ‖b.T (V v) - V (a.T v)‖ ≤ b.τ * ‖v‖ + aeval_le : ∀ p : ℂ[X], ‖aeval b.T p‖ ≤ ‖aeval a.T p‖ + ell p * b.τ + Vm_V : ∀ v : a.K, Vm (V v) = v + Vp_V : ∀ v : a.K, Vp (V v) = v + pyth : ∀ v : b.K, (‖Vm v‖ ^ 2 + ‖Vp v‖ ^ 2) / 2 ≤ ‖v‖ ^ 2 + reach : ∀ v w : b.K, ‖v‖ ≤ 2 → ‖w‖ ≤ 2 → 1 / 2 ≤ ‖Vm v‖ → 1 / 2 ≤ ‖Vp w‖ → + ∃ A ∈ I1 b.T, b.μ ≤ (⟪w, A v⟫_ℂ).re + split : ∀ Ap Am : a.K →L[ℂ] a.K, Ap ∈ I1 a.T → Am ∈ I1 a.T → + ∃ G ∈ I1 b.T, ∀ v w : b.K, + ‖⟪w, G v⟫_ℂ - (⟪Vp w, Ap (Vp v)⟫_ℂ + ⟪Vm w, Am (Vm v)⟫_ℂ) / 2‖ + ≤ 24 * Lconst a.T * b.τ * ‖v‖ * ‖w‖ + rank_lt : finrank ℂ a.K < finrank ℂ b.K + +/-- Paper, §4: "Given the block (K_n, T_n) … choose … τ_{n+1} … then, by Lemma 3.2, K_{n+1} = + K_n^D, +T_{n+1} = S, µ_{n+1} = µ. The hypothesis of Lemma 3.2 holds at each step by induction." -/ +theorem Level.exists_next (a : Level) (n : ℕ) : Nonempty (Σ b : Level, Link n a b) := by + have hL := one_le_Lconst a.T + have hτ := a.τ_pos + have hμ := a.μmin_pos + -- "choose … 0 < τ_{n+1} ≤ τ_n/2 with 24 L_n τ_{n+1} ≤ 2^{−n−3} min(µ_0..µ_n)" + set τ' : ℝ := min (a.τ / 2) ((1 / 2) ^ (n + 3) * a.μmin / (24 * Lconst a.T)) with hτ' + have hτ'0 : 0 < τ' := lt_min (by positivity) (by positivity) + have hτ'1 : τ' ≤ a.τ / 2 := min_le_left _ _ + have hτ'2 : 24 * Lconst a.T * τ' ≤ (1 / 2) ^ (n + 3) * a.μmin := by + have := min_le_right (a.τ / 2) ((1 / 2) ^ (n + 3) * a.μmin / (24 * Lconst a.T)) + rw [le_div_iff₀ (by positivity)] at this + linarith + have hn : ‖a.T‖ + τ' ≤ 1 := by linarith [a.norm_T] + -- Lemma 3.2 + obtain ⟨d, hd2, S, μ', hμ', hblock, ha, hS1, hreach, hsplit⟩ := + lemma2 a.T a.q a.block a.one_le_q τ' hτ'0 hn + have hd1 : 1 ≤ d := by omega + have ht1 : ‖a.T‖ ≤ 1 := by linarith + have hx1 : ‖lift d a.T‖ ≤ 1 := (norm_lift_le _).trans ht1 + let b : Level := + { K := Pw d a.K, T := S, q := a.q * (d + 1), one_le_q := by nlinarith [a.one_le_q] + block := hblock, τ := τ', μ := μ', μmin := min a.μmin μ', τ_pos := hτ'0, μ_pos := hμ' + μmin_pos := lt_min hμ hμ', μmin_le := min_le_right _ _ + norm_T := by + have := norm_le_norm_add_norm_sub' S (lift d a.T) + have := norm_lift_le (d := d) a.T + linarith [a.norm_T] } + refine ⟨⟨b, ⟨⟨(Vmap d a.K).toLinearMap, norm_Vmap hd1⟩, Vminus d a.K, Vplus d a.K, + hτ'1, hτ'2, rfl, ?_, ?_, ?_, ?_, ?_, hreach, ?_, ?_⟩⟩⟩ + · -- inter: ‖S(Vb) − V(Tb)‖ = ‖(S − T⊗1)(Vb)‖ ≤ τ‖b‖ + intro v + change ‖S (Vmap d a.K v) - Vmap d a.K (a.T v)‖ ≤ τ' * ‖v‖ + rw [← lift_Vmap, ← sub_apply] + refine ((S - lift d a.T).le_opNorm _).trans ?_ + rw [norm_Vmap hd1] + exact mul_le_mul_of_nonneg_right ha (norm_nonneg _) + · -- aeval_le: ‖p(S)‖ ≤ ‖p(T ⊗ 1)‖ + ell p ‖S − T ⊗ 1‖ + intro p + have h1 := norm_le_norm_add_norm_sub' (aeval S p) (aeval (lift d a.T) p) + have h2 := norm_aeval_sub_le S (lift d a.T) hS1 hx1 p + have h3 : ‖aeval (lift d a.T) p‖ ≤ ‖aeval a.T p‖ := by + rw [aeval_lift]; exact norm_lift_le _ + have h4 := mul_le_mul_of_nonneg_left ha (ell_nonneg p) + change ‖aeval S p‖ ≤ ‖aeval a.T p‖ + ell p * τ' + linarith + · exact fun v => Vminus_Vmap hd1 v + · exact fun v => Vplus_Vmap hd1 v + · exact fun v => pyth_V hd1 v + · -- split, in bilinear form + intro Ap Am hAp hAm + obtain ⟨G, hG, hGn⟩ := hsplit Ap Am hAp hAm + refine ⟨G, hG, fun v w => ?_⟩ + change ‖⟪w, G v⟫_ℂ - (⟪Vplus d a.K w, Ap (Vplus d a.K v)⟫_ℂ + + ⟪Vminus d a.K w, Am (Vminus d a.K v)⟫_ℂ) / 2‖ ≤ 24 * Lconst a.T * τ' * ‖v‖ * ‖w‖ + rw [← inner_sepOp_V hd1, ← inner_sub_right, ← sub_apply] + refine (norm_inner_le_norm _ _).trans ?_ + have := (G - sepOp d Ap Am).le_opNorm v + have h2 : ‖G - sepOp d Ap Am‖ * ‖v‖ ≤ 24 * Lconst a.T * τ' * ‖v‖ := + mul_le_mul_of_nonneg_right hGn (norm_nonneg _) + nlinarith [norm_nonneg w, norm_nonneg v] + · -- rank + change finrank ℂ a.K < finrank ℂ (Pw d a.K) + rw [finrank_Pw, a.block.finrank_eq] + nlinarith [a.one_le_q] + +/-- The levels, by recursion with choice. -/ +def levelSeq : ℕ → Level + | 0 => baseLevel + | n + 1 => (Classical.choice ((levelSeq n).exists_next n)).1 + +/-- The links between consecutive levels. -/ +def linkSeq (n : ℕ) : Link n (levelSeq n) (levelSeq (n + 1)) := + (Classical.choice ((levelSeq n).exists_next n)).2 + +theorem μmin_le_μ (k n : ℕ) (h : k ≤ n) : (levelSeq n).μmin ≤ (levelSeq k).μ := by + induction n with + | zero => + obtain rfl : k = 0 := Nat.le_zero.mp h + exact (levelSeq 0).μmin_le + | succ n ih => + rcases Nat.lt_or_eq_of_le h with h1 | rfl + · have : (levelSeq (n + 1)).μmin = min (levelSeq n).μmin (levelSeq (n + 1)).μ := + (linkSeq n).μmin_eq + rw [this] + exact (min_le_left _ _).trans (ih (Nat.lt_succ_iff.mp h1)) + · exact (levelSeq (n + 1)).μmin_le + +/-- **The Construction** of the paper, packaged as a `Tower` (see `Minimal/Tower.lean`). -/ +def tower : Tower where + K := fun n => (levelSeq n).K + T := fun n => (levelSeq n).T + V := fun n => (linkSeq n).V + Vm := fun n => (linkSeq n).Vm + Vp := fun n => (linkSeq n).Vp + τ := fun n => (levelSeq n).τ + μ := fun n => (levelSeq n).μ + τ_pos := fun n => (levelSeq n).τ_pos + μ_pos := fun n => (levelSeq n).μ_pos + τ_zero := rfl + μ_zero := rfl + τ_half := fun n => (linkSeq n).τ_half + γ_le := fun n k hk => (linkSeq n).γ_le.trans + (mul_le_mul_of_nonneg_left (μmin_le_μ k n hk) (by positivity)) + norm_T := fun n => by + have := (levelSeq n).norm_T + have := (linkSeq n).τ_half + have := (levelSeq (n + 1)).τ_pos + linarith + inter := fun n => (linkSeq n).inter + aeval_le := fun n => (linkSeq n).aeval_le + Vm_V := fun n => (linkSeq n).Vm_V + Vp_V := fun n => (linkSeq n).Vp_V + pyth := fun n => (linkSeq n).pyth + reach := fun n => (linkSeq n).reach + split := fun n => (linkSeq n).split + rank_lt := fun n => (linkSeq n).rank_lt + +theorem exists_tower : Nonempty Tower := ⟨tower⟩ + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Imports.lean b/LeanPool/HilbertInvariantSubspace/Imports.lean new file mode 100644 index 0000000000..4a73e62e2b --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Imports.lean @@ -0,0 +1,22 @@ +/- +Copyright (c) 2026 Lean Pool contributors. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Lean Pool contributors +-/ +module -- shake: keep-all --deprecated_module: ignore + +-- Generated project imports; run `lake exe mk_all`. +public import LeanPool.HilbertInvariantSubspace +public import LeanPool.HilbertInvariantSubspace.Blocks +public import LeanPool.HilbertInvariantSubspace.Construction +public import LeanPool.HilbertInvariantSubspace.Lemma1 +public import LeanPool.HilbertInvariantSubspace.Lemma2 +public import LeanPool.HilbertInvariantSubspace.Lemma2Reach +public import LeanPool.HilbertInvariantSubspace.Lemma2Setup +public import LeanPool.HilbertInvariantSubspace.Lemma2Split +public import LeanPool.HilbertInvariantSubspace.Limit +public import LeanPool.HilbertInvariantSubspace.Main +public import LeanPool.HilbertInvariantSubspace.Slots +public import LeanPool.HilbertInvariantSubspace.Solution +public import LeanPool.HilbertInvariantSubspace.Statement +public import LeanPool.HilbertInvariantSubspace.Tower diff --git a/LeanPool/HilbertInvariantSubspace/Lemma1.lean b/LeanPool/HilbertInvariantSubspace/Lemma1.lean new file mode 100644 index 0000000000..612f598441 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Lemma1.lean @@ -0,0 +1,384 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Blocks +public import Mathlib.Analysis.Complex.Polynomial.Basic +public import Mathlib.RingTheory.PowerSeries.Binomial +public import Mathlib.RingTheory.PowerSeries.Trunc + +/-! +# Lemma 3.1 (multipliers) of the paper, by the paper's route + +Paper: "**Lemma 3.1 (multipliers).** For d ≥ 1, τ ∈ (0, 1] there are D ≥ 2d + 1 and u_0 = −1, +u_{D−1} = 1, |u_j| ≤ τ otherwise, with ∏_j (1 − u_j z) ≡ 1 (mod z^d)." + +Lean: `exists_multipliers q r hr : ∃ d, 2 * q ≤ d ∧ 1 ≤ d ∧ ∃ u : Fin (d + 1) → ℂ, u 0 = -1 ∧ +u (Fin.last d) = 1 ∧ (∀ t, t ≠ 0 → t ≠ Fin.last d → ‖u t‖ ≤ r) ∧ X ^ q ∣ (∏ t, (1 - C (u t) * X)) +- 1`, +i.e. the paper's statement with `D = d + 1`, `d = q`, `τ = r` (the hypotheses `d ≥ 1`, `τ ≤ 1` +are not needed +in the statement: the proof runs the paper's argument with `τ = min r 1`, and `q = 0` is +trivial). + +The paper's argument, condensed (with `d` the order of vanishing, `τ ∈ (0,1]`): + +> Let `g = 1 + Σ_{k=1}^{d-1} c_k z^k` be the truncation of `(1 - z²)^{-1/ν}`, so +> `|c_k| ≤ 1/ν` and `(1 - z²) g^ν ≡ 1`. Write `g = ∏ (1 - λ_i z)`. If `|λ_i| > τ` then +> `1 ≤ Σ |c_k| |λ_i|^{-k} < d τ^{-d} / ν ≤ 1` (the paper fixes `ν ≥ d τ^{-d}` in advance), a +contradiction. +> Take `ν` copies of the `λ_i` and `2d - 1` zeros as the middle entries. + +How each step is realised here (`q` is the paper's `d`, `r` its `τ`, and `d + 1` its `D`): + +* `(1 + w)^{-1/ν}` is Mathlib's `PowerSeries.binomialSeries ℂ (-1/ν)`; additivity in the exponent + gives `((1 + w)^{-1/ν})^ν · (1 + w) = 1` (`binomialSeries_inv_pow`). Its coefficients are + `Ring.choose (-1/ν) k = (-1/ν)(-1/ν - 1)⋯(-1/ν - k + 1) / k!`, of absolute value `≤ 1/ν` for `k + ≥ 1` + (`norm_choose_le`). +* `G` is its truncation below degree `N`, so `G^ν (1 + w) ≡ 1 (mod w^N)` (`trunc_pow_mul`), and + `g(z) := G(-z²)` — the truncation of `(1 - z²)^{-1/ν}` below degree `2N` — satisfies + `g^ν (1 - z²) ≡ 1 (mod z^{2N})` (`gPoly_dvd`). We take `N = ⌊(q-1)/2⌋ + 1`, so that for `q ≥ 1` + `g` is exactly the truncation below degree `q` and `2N ≥ q`. (For `q = 0`, where the paper's + `g` would be + empty, we still keep the constant term; the conclusion `X^0 ∣ _` is trivial anyway.) +* Over `ℂ` a polynomial with constant term `1` is `∏ (1 - ρ⁻¹ z)` over its roots `ρ`, with +multiplicity + (`eq_prod_one_sub_inv_roots`); the `λ_i` are the `ρ⁻¹`. +* If `g(ρ) = 0` and `|ρ⁻¹| > τ` then `1 = |Σ_{k≥1} c_k ρ^{2k}| ≤ Σ |c_k| τ^{-2k} ≤ N' τ^{-2N'} / +ν` + (`N' = N - 1` nonconstant terms), impossible once `ν > N' τ^{-2N'}` (`gPoly_inv_root_le`). This + is the + paper's "`1 ≤ Σ |c_m| |λ_i|^{-m} < d τ^{-d}/ν`" (`(number of terms) · (max |c_k|) · τ^{-(top + degree)}`, up to the + harmless slack `d - 1 ≤ d`). It uses `τ ≤ 1`; the target statement allows any `r > 0`, so we + run the argument + with `τ = min r 1`. +* Middle entries: `ν` copies of the `λ_i` (from `g^ν`) and `2q - 1` zeros; the end entries `-1, +1` + supply `(1 + z)(1 - z) = 1 - z²`. +-/ + +@[expose] public section + +open Polynomial + +noncomputable section + +namespace HilbertInvariantSubspace + +/-! ### The coefficients of `(1 + w)^{-1/ν}`: `|c_k| ≤ 1/ν` -/ + +-- The following proof tracks two proofs in Mathlib. Its statement and induction track +-- `descPochhammer_eval_eq_prod_range`, in Mathlib/RingTheory/Polynomial/Pochhammer.lean: +-- Copyright (c) 2020 Kim Morrison. All rights reserved. +-- Released under Apache 2.0 license as described in the file LICENSE. +-- Authors: Kim Morrison +-- Its `smeval` rewrites track `Polynomial.descPochhammer_smeval_eq_descFactorial`, in +-- Mathlib/RingTheory/Binomial.lean: +-- Copyright (c) 2023 Scott Carnahan. All rights reserved. +-- Released under Apache 2.0 license as described in the file LICENSE. +-- Authors: Scott Carnahan +/-- `(descPochhammer ℤ n)(a) = ∏_{j simp + | succ n ih => + rw [descPochhammer_succ_right, Polynomial.smeval_mul, ih, Polynomial.smeval_sub, + Polynomial.smeval_X, Polynomial.smeval_natCast, Finset.prod_range_succ] + simp + +private theorem prod_add_le_factorial (ε : ℝ) (h0 : 0 ≤ ε) (h1 : ε ≤ 1) (n : ℕ) (hn : 1 ≤ n) : + ∏ j ∈ Finset.range n, (ε + j) ≤ n.factorial * ε := by + induction n, hn using Nat.le_induction with + | base => simp [Nat.factorial] + | succ m hm ih => + rw [Finset.prod_range_succ, Nat.factorial_succ] + push_cast + have hp : 0 ≤ ∏ j ∈ Finset.range m, (ε + (j : ℝ)) := + Finset.prod_nonneg fun j _ => by positivity + calc (∏ j ∈ Finset.range m, (ε + (j : ℝ))) * (ε + m) + ≤ (m.factorial * ε) * (m + 1) := mul_le_mul ih (by linarith) (by positivity) (by positivity) + _ = (m + 1) * m.factorial * ε := by ring + +/-- The paper's `|c_k| ≤ 1/ν`: for `k ≥ 1` the `k`-th coefficient of `(1 + w)^{-1/ν}` has + absolute +value at most `1/ν`. -/ +private theorem norm_choose_le (ν : ℕ) (hν : 1 ≤ ν) (n : ℕ) (hn : 1 ≤ n) : + ‖Ring.choose (-(ν : ℂ)⁻¹) n‖ ≤ (ν : ℝ)⁻¹ := by + have hν1 : (1 : ℝ) ≤ ν := by exact_mod_cast hν + have hε1 : (ν : ℝ)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ hν1 + rw [Ring.choose_eq_smul, descPochhammer_smeval_eq_prod, smul_eq_mul, norm_mul, norm_inv, + Complex.norm_natCast, norm_prod] + have hterm : ∀ j ∈ Finset.range n, ‖(-(ν : ℂ)⁻¹ - (j : ℂ))‖ = (ν : ℝ)⁻¹ + j := by + intro j _ + rw [show (-(ν : ℂ)⁻¹ - (j : ℂ)) = -((((ν : ℝ)⁻¹ + j : ℝ)) : ℂ) by push_cast; ring, norm_neg, + Complex.norm_real, Real.norm_of_nonneg (by positivity)] + rw [Finset.prod_congr rfl hterm, inv_mul_le_iff₀ (by positivity)] + exact prod_add_le_factorial _ (by positivity) hε1 n hn + +/-! ### `((1 + w)^{-1/ν})^ν (1 + w) = 1` and its truncation -/ + +private theorem binomialSeries_pow (a : ℂ) : + ∀ m : ℕ, (PowerSeries.binomialSeries ℂ a) ^ m = PowerSeries.binomialSeries ℂ ((m : ℂ) * a) + | 0 => by simp + | m + 1 => by + rw [pow_succ, binomialSeries_pow a m, ← PowerSeries.binomialSeries_add] + congr 1; push_cast; ring + +/-- `h = (1 + w)^{-1/ν}` satisfies `h^ν (1 + w) = 1` as formal power series. -/ +private theorem binomialSeries_inv_pow (ν : ℕ) (hν : ν ≠ 0) : + (PowerSeries.binomialSeries ℂ (-(ν : ℂ)⁻¹)) ^ ν * (1 + PowerSeries.X) = 1 := by + have hνC : (ν : ℂ) ≠ 0 := by exact_mod_cast hν + rw [binomialSeries_pow, mul_neg, mul_inv_cancel₀ hνC, + show (1 + PowerSeries.X : PowerSeries ℂ) = PowerSeries.binomialSeries ℂ ((1 : ℕ) : ℂ) by + rw [PowerSeries.binomialSeries_nat, pow_one], + ← PowerSeries.binomialSeries_add] + simp + +/-- Polynomials whose power series agree below degree `n` are congruent modulo `X^n`. -/ +private theorem X_pow_dvd_sub_of_trunc_eq {n : ℕ} {P Q : ℂ[X]} + (h : PowerSeries.trunc n (P : PowerSeries ℂ) = PowerSeries.trunc n (Q : PowerSeries ℂ)) : + (X : ℂ[X]) ^ n ∣ P - Q := by + rw [X_pow_dvd_iff] + intro d hd + have := congrArg (fun p : ℂ[X] => p.coeff d) h + simp only [PowerSeries.coeff_trunc, hd, ite_true, Polynomial.coeff_coe] at this + rw [coeff_sub, this, sub_self] + +/-- The truncation `G` of `(1 + w)^{-1/ν}` below degree `N` satisfies `G^ν (1 + w) ≡ 1 (mod + w^N)`. -/ +private theorem trunc_pow_mul (ν N : ℕ) (hν : ν ≠ 0) : + (X : ℂ[X]) ^ N ∣ + (PowerSeries.trunc N (PowerSeries.binomialSeries ℂ (-(ν : ℂ)⁻¹))) ^ ν * (1 + X) - 1 := by + apply X_pow_dvd_sub_of_trunc_eq + simp only [Polynomial.coe_mul, Polynomial.coe_pow, Polynomial.coe_add, Polynomial.coe_one, + Polynomial.coe_X] + rw [← PowerSeries.trunc_trunc_mul, PowerSeries.trunc_trunc_pow, PowerSeries.trunc_trunc_mul, + binomialSeries_inv_pow ν hν] + +/-- Substituting `w = -z²`: if `w^N ∣ G^ν (1 + w) - 1` then `z^{2N} ∣ G(-z²)^ν (1 - z²) - 1`. -/ +private theorem comp_neg_sq (ν N : ℕ) (G : ℂ[X]) (h : (X : ℂ[X]) ^ N ∣ G ^ ν * (1 + X) - 1) : + (X : ℂ[X]) ^ (2 * N) ∣ (G.comp (-X ^ 2)) ^ ν * (1 - X ^ 2) - 1 := by + obtain ⟨Q, hQ⟩ := h + have hc := congrArg (fun p : ℂ[X] => p.comp (-X ^ 2)) hQ + simp only [sub_comp, mul_comp, pow_comp, add_comp, one_comp, X_comp] at hc + rw [← sub_eq_add_neg] at hc + refine ⟨(-1) ^ N * Q.comp (-X ^ 2), ?_⟩ + rw [hc, neg_pow (X ^ 2 : ℂ[X]) N, pow_mul] + ring + +/-! ### `g`, the truncation of `(1 - z²)^{-1/ν}` -/ + +/-- `g(z) = Σ_{k ≤ N'} c_k (-z²)^k`: the truncation of `(1 - z²)^{-1/ν}` below degree `2N' + 1` + (equivalently, +below degree `2N' + 2`). -/ +private def gPoly (ν N' : ℕ) : ℂ[X] := + (PowerSeries.trunc (N' + 1) (PowerSeries.binomialSeries ℂ (-(ν : ℂ)⁻¹))).comp (-X ^ 2) + +/-- The paper's `(1 - z²) g^ν ≡ 1`. -/ +private theorem gPoly_dvd (ν N' : ℕ) (hν : ν ≠ 0) : + (X : ℂ[X]) ^ (2 * (N' + 1)) ∣ gPoly ν N' ^ ν * (1 - X ^ 2) - 1 := + comp_neg_sq ν (N' + 1) _ (trunc_pow_mul ν (N' + 1) hν) + +private theorem gPoly_eval (ν N' : ℕ) (z : ℂ) : + (gPoly ν N').eval z = + ∑ i ∈ Finset.range (N' + 1), Ring.choose (-(ν : ℂ)⁻¹) i * (-z ^ 2) ^ i := by + rw [gPoly, eval_comp, eval_neg, eval_pow, eval_X, ← eval₂_id, + PowerSeries.eval₂_trunc_eq_sum_range] + simp only [RingHom.id_apply, PowerSeries.binomialSeries_coeff, smul_eq_mul, mul_one] + +private theorem gPoly_coeff_zero (ν N' : ℕ) : (gPoly ν N').coeff 0 = 1 := by + rw [coeff_zero_eq_eval_zero, gPoly_eval, Finset.sum_range_succ'] + simp + +/-- If `Σ_{i ≤ N'} c_i w^i = 0` with `c_0 = 1`, `|c_i| ≤ ε` for `i ≥ 1`, and `|w| ≤ B` with `B ≥ + 1`, then +`1 ≤ N' B^{N'} ε`. (The paper: `1 ≤ Σ |c_m| |λ_i|^{-m} < d τ^{-d} / ν`.) -/ +private theorem one_le_of_root (N' : ℕ) (c : ℕ → ℂ) (ε B : ℝ) (hB : 1 ≤ B) (hc0 : c 0 = 1) + (hc : ∀ i, 1 ≤ i → ‖c i‖ ≤ ε) (w : ℂ) (hw : ‖w‖ ≤ B) + (hroot : ∑ i ∈ Finset.range (N' + 1), c i * w ^ i = 0) : 1 ≤ N' * B ^ N' * ε := by + rw [Finset.sum_range_succ', hc0, pow_zero, one_mul] at hroot + have hsum : ∑ i ∈ Finset.range N', c (i + 1) * w ^ (i + 1) = -1 := by + linear_combination hroot + have hε : 0 ≤ ε := (norm_nonneg _).trans (hc 1 le_rfl) + calc (1 : ℝ) = ‖∑ i ∈ Finset.range N', c (i + 1) * w ^ (i + 1)‖ := by rw [hsum]; simp + _ ≤ ∑ i ∈ Finset.range N', ‖c (i + 1) * w ^ (i + 1)‖ := norm_sum_le _ _ + _ ≤ ∑ i ∈ Finset.range N', ε * B ^ N' := by + refine Finset.sum_le_sum fun i hi => ?_ + rw [norm_mul, norm_pow] + have hi' : i + 1 ≤ N' := Finset.mem_range.1 hi + exact mul_le_mul (hc (i + 1) (Nat.le_add_left 1 i)) + ((pow_le_pow_left₀ (norm_nonneg w) hw (i + 1)).trans (pow_le_pow_right₀ hB hi')) + (pow_nonneg (norm_nonneg w) _) hε + _ = N' * B ^ N' * ε := by + rw [Finset.sum_const, Finset.card_range, nsmul_eq_mul]; ring + +/-- The root bound: once `ν > N' τ^{-2N'}`, every root `ρ` of `g` has `|ρ⁻¹| ≤ τ`, i.e. every +`λ_i` in `g = ∏ (1 - λ_i z)` has `|λ_i| ≤ τ`. -/ +private theorem gPoly_inv_root_le (ν N' : ℕ) (hν : 1 ≤ ν) (τ : ℝ) (hτ0 : 0 < τ) (hτ1 : τ ≤ 1) + (hlarge : (N' : ℝ) * (τ⁻¹ ^ 2) ^ N' < ν) (ρ : ℂ) (hρ : ρ ∈ (gPoly ν N').roots) : + ‖ρ⁻¹‖ ≤ τ := by + have hg0 : gPoly ν N' ≠ 0 := fun h => by simpa [h] using gPoly_coeff_zero ν N' + have hroot : ∑ i ∈ Finset.range (N' + 1), Ring.choose (-(ν : ℂ)⁻¹) i * (-ρ ^ 2) ^ i = 0 := by + rw [← gPoly_eval] + exact (mem_roots hg0).1 hρ + have hρ0 : ρ ≠ 0 := by + rintro rfl + rw [Finset.sum_range_succ'] at hroot + simp at hroot + by_contra hlt + rw [not_le, norm_inv] at hlt + have hρn : 0 < ‖ρ‖ := norm_pos_iff.2 hρ0 + have hρlt : ‖ρ‖ < τ⁻¹ := (lt_inv_comm₀ hτ0 hρn).1 hlt + have hw : ‖-ρ ^ 2‖ ≤ τ⁻¹ ^ 2 := by + rw [norm_neg, norm_pow] + exact pow_le_pow_left₀ (norm_nonneg _) hρlt.le 2 + have hB : 1 ≤ τ⁻¹ ^ 2 := one_le_pow₀ ((one_le_inv₀ hτ0).2 hτ1) + have h1 := one_le_of_root N' (Ring.choose (-(ν : ℂ)⁻¹)) (ν : ℝ)⁻¹ (τ⁻¹ ^ 2) hB + (Ring.choose_zero_right _) (fun i hi => norm_choose_le ν hν i hi) (-ρ ^ 2) hw hroot + have hν0 : (0 : ℝ) < ν := by exact_mod_cast hν + have h2 : (N' : ℝ) * (τ⁻¹ ^ 2) ^ N' * (ν : ℝ)⁻¹ < 1 := by + rw [← div_eq_mul_inv, div_lt_one hν0] + exact hlarge + linarith + +/-! ### `g = ∏ (1 - λ_i z)` over `ℂ` -/ + +/-- Over `ℂ`, a polynomial with constant term `1` is the product of `1 - ρ⁻¹ X` over its roots + `ρ` +(with multiplicity). -/ +private theorem eq_prod_one_sub_inv_roots (p : ℂ[X]) (h0 : p.coeff 0 = 1) : + p = (p.roots.map fun ρ => 1 - C ρ⁻¹ * X).prod := by + have hp : p ≠ 0 := fun h => by simp [h] at h0 + have hne : ∀ ρ ∈ p.roots, ρ ≠ 0 := by + intro ρ hρ hρ0 + rw [mem_roots hp, IsRoot.def, hρ0, ← coeff_zero_eq_eval_zero, h0] at hρ + exact one_ne_zero hρ + have h1 := C_leadingCoeff_mul_prod_multiset_X_sub_C + (IsAlgClosed.card_roots_eq_natDegree (p := p)) + have h2 : (p.roots.map fun a => X - C a).prod + = C (p.roots.map fun a => -a).prod * (p.roots.map fun ρ => 1 - C ρ⁻¹ * X).prod := by + rw [map_multiset_prod C, Multiset.map_map, ← Multiset.prod_map_mul] + refine congrArg Multiset.prod (Multiset.map_congr rfl fun a ha => ?_) + simp only [Function.comp_apply] + calc X - C a = -C a + C (a * a⁻¹) * X := by + rw [mul_inv_cancel₀ (hne a ha), C_1, one_mul, neg_add_eq_sub] + _ = C (-a) * (1 - C a⁻¹ * X) := by rw [C_mul, C_neg]; ring + have h3 : ((p.roots.map fun ρ => 1 - C ρ⁻¹ * X).prod).coeff 0 = 1 := by + rw [coeff_zero_multiset_prod] + refine Multiset.prod_eq_one fun x hx => ?_ + obtain ⟨f, hf, rfl⟩ := Multiset.mem_map.1 hx + obtain ⟨ρ, _, rfl⟩ := Multiset.mem_map.1 hf + simp + have h4 : p = C (p.leadingCoeff * (p.roots.map fun a => -a).prod) + * (p.roots.map fun ρ => 1 - C ρ⁻¹ * X).prod := by + rw [C_mul, mul_assoc, ← h2] + exact h1.symm + have h5 : p.leadingCoeff * (p.roots.map fun a => -a).prod = 1 := by + have := congrArg (fun f : ℂ[X] => f.coeff 0) h4 + simp only [coeff_C_mul, h3, h0, mul_one] at this + exact this.symm + rw [h5, C_1, one_mul] at h4 + exact h4 + +/-! ### Products of factors `1 - v X` with `‖v‖ ≤ r` (bookkeeping) -/ + +/-- `p` is a product of factors `1 - v X` with `‖v‖ ≤ r`. -/ +private def RootsGood (r : ℝ) (p : ℂ[X]) : Prop := + ∃ l : List ℂ, (∀ v ∈ l, ‖v‖ ≤ r) ∧ p = (l.map fun v => (1 - C v * X : ℂ[X])).prod + +private theorem rootsGood_one (r : ℝ) : RootsGood r 1 := ⟨[], by simp, by simp⟩ + +private theorem rootsGood_mul {r : ℝ} {p q : ℂ[X]} (hp : RootsGood r p) (hq : RootsGood r q) : + RootsGood r (p * q) := by + obtain ⟨l, hl, rfl⟩ := hp + obtain ⟨m, hm, rfl⟩ := hq + refine ⟨l ++ m, ?_, by simp⟩ + intro v hv + rcases List.mem_append.1 hv with h | h + · exact hl v h + · exact hm v h + +private theorem rootsGood_pow {r : ℝ} {p : ℂ[X]} (hp : RootsGood r p) (m : ℕ) : + RootsGood r (p ^ m) := by + induction m with + | zero => simpa using rootsGood_one r + | succ m ih => rw [pow_succ]; exact rootsGood_mul ih hp + +private theorem rootsGood_multiset {r : ℝ} (s : Multiset ℂ) (hs : ∀ v ∈ s, ‖v‖ ≤ r) : + RootsGood r (s.map fun v => (1 - C v * X : ℂ[X])).prod := + ⟨s.toList, fun v hv => hs v (Multiset.mem_toList.1 hv), by + rw [← Multiset.prod_coe, ← Multiset.map_coe, Multiset.coe_toList]⟩ + +/-! ### Lemma 3.1 -/ + +/-- **Lemma 3.1 (multipliers)** of the paper (`D = d + 1`, `d = q`, `τ = r`). -/ +theorem exists_multipliers (q : ℕ) (r : ℝ) (hr : 0 < r) : + ∃ d : ℕ, 2 * q ≤ d ∧ 1 ≤ d ∧ ∃ u : Fin (d + 1) → ℂ, u 0 = -1 ∧ u (Fin.last d) = 1 ∧ + (∀ t, t ≠ 0 → t ≠ Fin.last d → ‖u t‖ ≤ r) ∧ + (X : ℂ[X]) ^ q ∣ (∏ t, (1 - C (u t) * X)) - 1 := by + -- The paper assumes `τ ≤ 1`; for a general `r > 0` run it with `τ = min r 1`. + obtain ⟨τ, hτ0, hτ1, hτr⟩ : ∃ τ : ℝ, 0 < τ ∧ τ ≤ 1 ∧ τ ≤ r := + ⟨min r 1, lt_min hr one_pos, min_le_right _ _, min_le_left _ _⟩ + -- Keep the `N' + 1` terms of degree `< q` of the series in `z²` (`N' = ⌊(q-1)/2⌋`), so + -- `2(N'+1) ≥ q`. + obtain ⟨N', hqN⟩ : ∃ N' : ℕ, q ≤ 2 * (N' + 1) := ⟨(q - 1) / 2, by omega⟩ + -- `ν` large: `ν > N' τ^{-2N'}`. + obtain ⟨ν, hν1, hlarge⟩ : ∃ ν : ℕ, 1 ≤ ν ∧ (N' : ℝ) * (τ⁻¹ ^ 2) ^ N' < ν := by + refine ⟨⌊(N' : ℝ) * (τ⁻¹ ^ 2) ^ N'⌋₊ + 1, Nat.le_add_left 1 _, ?_⟩ + push_cast + exact Nat.lt_floor_add_one _ + have hν0 : ν ≠ 0 := by omega + -- `g = ∏ (1 - λ_i z)` with every `|λ_i| ≤ τ`. + have hfac := eq_prod_one_sub_inv_roots (gPoly ν N') (gPoly_coeff_zero ν N') + have hgood : RootsGood τ (gPoly ν N') := by + have hmap : ((gPoly ν N').roots.map fun ρ => 1 - C ρ⁻¹ * X) + = (((gPoly ν N').roots.map (·⁻¹)).map fun v => (1 - C v * X : ℂ[X])) := by + rw [Multiset.map_map]; rfl + rw [hfac, hmap] + refine rootsGood_multiset _ fun v hv => ?_ + obtain ⟨ρ, hρ, rfl⟩ := Multiset.mem_map.1 hv + exact gPoly_inv_root_le ν N' hν1 τ hτ0 hτ1 hlarge ρ hρ + -- `ν` copies of the `λ_i`: `g^ν`. + obtain ⟨l, hl, hlprod⟩ := rootsGood_pow hgood ν + -- Middle entries: those, and `2q - 1` zeros (which contribute factors `1`). + obtain ⟨L, hLlen, hL, hLprod⟩ : ∃ L : List ℂ, 2 * q ≤ L.length + 1 ∧ (∀ v ∈ L, ‖v‖ ≤ r) ∧ + (L.map fun v => (1 - C v * X : ℂ[X])).prod = gPoly ν N' ^ ν := by + refine ⟨l ++ List.replicate (2 * q - 1) 0, ?_, ?_, ?_⟩ + · simp only [List.length_append, List.length_replicate]; omega + · intro v hv + rcases List.mem_append.1 hv with h | h + · exact (hl v h).trans hτr + · rw [List.eq_of_mem_replicate h]; simpa using hr.le + · rw [hlprod]; simp + -- `u = (-1, L, 1)` and `∏ (1 - u_j z) = (1 + z)(1 - z) g^ν ≡ 1 (mod z^q)`. + refine ⟨L.length + 1, by omega, by omega, + Fin.cons (-1) (Fin.snoc (α := fun _ => ℂ) (fun i : Fin L.length => L[i.1]) 1), ?_, ?_, ?_, ?_⟩ + · simp + · rw [← Fin.succ_last, Fin.cons_succ, Fin.snoc_last] + · intro t + refine Fin.cases ?_ (fun s => ?_) t + · intro h; exact absurd rfl h + · refine Fin.lastCases ?_ (fun i => ?_) s + · intro _ h; exact absurd (Fin.succ_last _) h + · intro _ _ + rw [Fin.cons_succ, Fin.snoc_castSucc] + exact hL _ (List.getElem_mem _) + · rw [Fin.prod_univ_succ, Fin.prod_univ_castSucc] + simp only [Fin.cons_zero, Fin.cons_succ, Fin.snoc_castSucc, Fin.snoc_last] + rw [Fin.prod_univ_fun_getElem L (fun v => (1 - C v * X : ℂ[X])), hLprod] + refine (pow_dvd_pow X hqN).trans ?_ + convert gPoly_dvd ν N' hν0 using 1 + rw [C_neg, C_1] + ring + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Lemma2.lean b/LeanPool/HilbertInvariantSubspace/Lemma2.lean new file mode 100644 index 0000000000..2e48d8f274 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Lemma2.lean @@ -0,0 +1,96 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Lemma2Reach +public import LeanPool.HilbertInvariantSubspace.Lemma2Split + +/-! +# Lemma 3.2 (step) of the paper, assembled + +Paper: "**Lemma 3.2 (step).** Let (K, t) be a block of dimension d, L = L(t), τ > 0, ‖t‖ + τ ≤ 1. +There are D ≥ 3, +a block (K^D, S) and µ > 0 with: +(a) ‖S − t ⊗ 1‖ ≤ τ, hence ‖S‖ ≤ 1. +(b) *Reach.* If ‖v‖, ‖w‖ ≤ 2 and ‖V⁻v‖, ‖V⁺w‖ ≥ ½, some A ∈ I₁(S) has Re⟨Av, w⟩ ≥ µ. +(c) *Split.* For A± ∈ I₁(t) some G ∈ I₁(S) has ‖G − A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊‖ ≤ 24Lτ." + +Lean: `lemma2`. `K^D` is `Pw d K` with `D = d + 1` (so "D ≥ 3" is `2 ≤ d`), `t ⊗ 1` is `lift d +t`, +`L(t)` is `Lconst t`, `Re⟨Av, w⟩` is `(⟪w, A v⟫_ℂ).re`, `A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊` is `sepOp d A₊ A₋`. +Here the block `(K, t)` has dimension `q`; the conclusion records the size `Q = q·D` of the block +`(K^D, S)`, +which the Construction needs to iterate. `τ ≤ 1`, needed where Lemma 3.1 +(`τ ∈ (0, 1]`) and the estimates of (c) are invoked, follows from `‖t‖ + τ ≤ 1`. +-/ + +@[expose] public section + +open Polynomial Module +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +private theorem step_eps {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] (R : E →L[ℂ] E) + {σ : ℝ} (hσ : 0 < σ) : ∃ ε : ℂ, ε ≠ 0 ∧ ‖ε • R‖ ≤ σ := by + have hR : 0 < ‖R‖ + 1 := by positivity + have he : 0 < σ / (‖R‖ + 1) := div_pos hσ hR + refine ⟨((σ / (‖R‖ + 1) : ℝ) : ℂ), Complex.ofReal_ne_zero.2 he.ne', ?_⟩ + refine (ContinuousLinearMap.opNorm_smul_le _ R).trans ?_ + rw [Complex.norm_real, Real.norm_of_nonneg he.le, div_mul_eq_mul_div, div_le_iff₀ hR] + nlinarith [norm_nonneg R] + +theorem sq2_ne_zero : sq2 ≠ 0 := by + unfold sq2; exact Complex.ofReal_ne_zero.2 (by positivity) + +/-- **Lemma 3.2 (step)** of the paper. -/ +theorem lemma2 {K : Type} [NormedAddCommGroup K] [InnerProductSpace ℂ K] [FiniteDimensional ℂ K] + (t : K →L[ℂ] K) (q : ℕ) (ht : IsBlock t q) (hq : 1 ≤ q) (τ : ℝ) (hτ : 0 < τ) + (hn : ‖t‖ + τ ≤ 1) : + ∃ d : ℕ, 2 ≤ d ∧ ∃ (S : Pw d K →L[ℂ] Pw d K) (μ : ℝ), 0 < μ ∧ + IsBlock S (q * (d + 1)) ∧ + -- (a) + ‖S - lift d t‖ ≤ τ ∧ ‖S‖ ≤ 1 ∧ + -- (b) Reach + (∀ v w : Pw d K, ‖v‖ ≤ 2 → ‖w‖ ≤ 2 → 1 / 2 ≤ ‖Vminus d K v‖ → 1 / 2 ≤ ‖Vplus d K w‖ → + ∃ A ∈ I1 S, μ ≤ (⟪w, A v⟫_ℂ).re) ∧ + -- (c) Split + (∀ Ap Am : K →L[ℂ] K, Ap ∈ I1 t → Am ∈ I1 t → + ∃ G ∈ I1 S, ‖G - sepOp d Ap Am‖ ≤ 24 * Lconst t * τ) := by + have ht1 : ‖t‖ ≤ 1 := by linarith [norm_nonneg t] + have hτ1 : τ ≤ 1 := by linarith [norm_nonneg t] + obtain ⟨d, hd, hd1, u, hu0, hul, hur, hu⟩ := exists_multipliers q τ hτ + have hη0 : ((τ : ℝ) : ℂ) ≠ 0 := Complex.ofReal_ne_zero.2 hτ.ne' + have hη : ‖((τ : ℝ) : ℂ)‖ ≤ τ := by rw [Complex.norm_real, Real.norm_of_nonneg hτ.le] + obtain ⟨R, hR⟩ := exists_S t q ht hq u hu (τ : ℂ) hη0 + obtain ⟨ε, hε0, hε⟩ := step_eps R hτ + obtain ⟨hblock, hpow⟩ := hR ε hε0 + set S := lift d t + ε • R with hSdef + have hsub : S - lift d t = ε • R := by rw [hSdef, add_sub_cancel_left] + have ha : ‖S - lift d t‖ ≤ τ := by rw [hsub]; exact hε + have hS1 : ‖S‖ ≤ 1 := by + have := norm_le_norm_add_norm_sub' S (lift d t) + have := norm_lift_le (d := d) t + linarith + -- (b): qualitative statement, then compactness + have hqual : ∀ ξ ζ : Pw d K, Vminus d K ξ ≠ 0 → Vplus d K ζ ≠ 0 → + ∃ A ∈ Alg2 S, ⟪ζ, A ξ⟫_ℂ ≠ 0 := by + intro ξ ζ hξ hζ + refine qual_reach t q ht.pow_eq_zero hq hd u (τ : ℂ) ε S hblock hpow ξ ζ ?_ ?_ + · intro h; exact hξ (by rw [Vminus_apply, h, smul_zero]) + · intro h; exact hζ (by rw [Vplus_apply, h, smul_zero]) + obtain ⟨μ, hμ, hreach⟩ := reach_of_qual S (Vminus d K) (Vplus d K) hqual + refine ⟨d, by omega, S, μ, hμ, hblock, ha, hS1, hreach, fun Ap Am hAp hAm => ?_⟩ + exact split hd1 t ht1 u hu0 hul τ hτ1 hur (τ : ℂ) hη S ha hS1 hq hε0 hpow (Lconst t) + (Lconst_spec t) Ap Am hAp hAm + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Lemma2Reach.lean b/LeanPool/HilbertInvariantSubspace/Lemma2Reach.lean new file mode 100644 index 0000000000..e5b2c28675 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Lemma2Reach.lean @@ -0,0 +1,156 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Lemma2Setup + +/-! +# Lemma 3.2(b) of the paper: Reach + +Paper, Lemma 3.2(b) and its proof (condensed): "(b) *Reach.* If ‖v‖, ‖w‖ ≤ 2 and ‖V⁻v‖, ‖V⁺w‖ ≥ +½, some A ∈ I₁(S) has Re⟨Av, w⟩ ≥ µ. +*Proof.* S^{d²} = ε^d y^d. As (yv)_0 = −t v_0, vectors in ran S^{d²} have v_0 = 0. As +y[b]_{D−1} = [tb]_{D−1}, the last slot lies in ker S^{d²} = ran S^{Q−d²}. If v_0 ≠ 0 then +ℂ[S]v = ran S^k with k ≤ d² − 1, so S²ℂ[S]v ⊇ ran S^{d²+1} ⊇ ran S^{Q−d²} ∋ [w_{D−1}]_{D−1}, +using +Q − d² ≥ d² + d. Thus φ(v, w) = max_{A ∈ I₁(S)} Re⟨Av, w⟩ is positive on the set of pairs in (b); +it is continuous and that set is compact; let µ be the minimum of φ on it." + +Lean: +* `qual_reach` — the algebra: if `v_0 ≠ 0` and `w_{D−1} ≠ 0` then some `A ∈ S²ℂ[S]` has + `⟪w, A v⟫ ≠ 0` (indeed `A v = [w_{D−1}]_{D−1}`), via `IsBlock.reach` with `k = d²`, + `(y^d v)_0 = 0` and `y^d [b]_{D−1} = 0`. +* `reach_of_qual` — the compactness: on the compact set + `{(v, w) : ‖v‖ ≤ 2, ‖w‖ ≤ 2, ‖V⁻v‖ ≥ ½, ‖V⁺w‖ ≥ ½}` the open sets + `U_n = {(v, w) : ∃ A ∈ I₁(S), Re⟪w, A v⟫ > 1/(n+1)}` increase and cover, so one of them covers; + `µ := 1/(n+1)`. (This replaces "let µ be the minimum of φ" by the + equivalent finite-subcover argument; no maximum function φ is defined.) +Inner products: the paper's `Re⟨Av, w⟩` is Mathlib's `(⟪w, A v⟫_ℂ).re`. +-/ + +@[expose] public section + +open Polynomial Module +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +section Qual + +variable {K : Type} [NormedAddCommGroup K] [InnerProductSpace ℂ K] [FiniteDimensional ℂ K] {d : ℕ} + +omit [FiniteDimensional ℂ K] in +/-- Paper (b), the algebraic half: `v_0 ≠ 0`, `w_{D−1} ≠ 0` ⇒ some `A ∈ S²ℂ[S]` has `⟪w, Av⟫ ≠ + 0`. -/ +theorem qual_reach (T : K →L[ℂ] K) (q : ℕ) (hT0 : T ^ q = 0) (hq : 1 ≤ q) (hd : 2 * q ≤ d) + (u : Fin (d + 1) → ℂ) (η ε : ℂ) (S : Pw d K →L[ℂ] Pw d K) (hB : IsBlock S (q * (d + 1))) + (hpow : S ^ q = ε • yOp T u η) (ξ ζ : Pw d K) (hξ : ξ 0 ≠ 0) (hζ : ζ (Fin.last d) ≠ 0) : + ∃ A ∈ Alg2 S, ⟪ζ, A ξ⟫_ℂ ≠ 0 := by + have hk : S ^ (q * q) = ε ^ q • yOp T u η ^ q := by + rw [pow_mul, hpow] + let B := yOp T u η + have scalar_pow (n : ℕ) : (ε • B) ^ n = ε ^ n • B ^ n := by + induction n with + | zero => simp + | succ n ih => + rw [pow_succ, ih] + change ((ε ^ n • B ^ n) ∘L (ε • B)) = ε ^ (n + 1) • (B ^ n * B) + rw [ContinuousLinearMap.smul_comp, ContinuousLinearMap.comp_smul, smul_smul, ← pow_succ] + rfl + exact scalar_pow q + have hqd : 2 * (q * q) + 1 ≤ q * (d + 1) := by + have := Nat.mul_le_mul_left q hd + nlinarith + obtain ⟨A, hA, hAξ⟩ := hB.reach (q * q) hqd ξ + (sing (Fin.last d) (ζ (Fin.last d))) + (fun w hw => hξ (by + rw [← hw, hk, _root_.smul_apply, PiLp.smul_apply, + yOp_pow_apply_zero T q hT0, smul_zero])) + (by rw [hk, _root_.smul_apply, yOp_pow_sing_last T q hT0, smul_zero]) + refine ⟨A, hA, ?_⟩ + rw [hAξ, inner_sing] + exact fun h => hζ (inner_self_eq_zero.1 h) + +end Qual + +section Compact + +private theorem rescale_phase {E : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + {T S : E →L[ℂ] E} (hS : S ∈ Alg2 T) {ξ η : E} (hw : ⟪η, S ξ⟫_ℂ ≠ 0) : + ∃ S' ∈ I1 T, 0 < (⟪η, S' ξ⟫_ℂ).re := by + set w := ⟪η, S ξ⟫_ℂ with hwdef + have hw0 : 0 < ‖w‖ := norm_pos_iff.2 hw + have hS0 : 0 < ‖S‖ := by + refine norm_pos_iff.2 ?_ + rintro rfl + exact hw (by simp [hwdef]) + have hr : 0 < (‖w‖ * ‖S‖)⁻¹ := by positivity + refine ⟨((((‖w‖ * ‖S‖)⁻¹ : ℝ) : ℂ) * (starRingEnd ℂ) w) • S, ⟨smul_mem_Alg2 _ hS, ?_⟩, ?_⟩ + · rw [norm_smul, norm_mul, Complex.norm_real, Complex.norm_conj, Real.norm_of_nonneg hr.le] + apply le_of_eq + field_simp + · rw [_root_.smul_apply, inner_smul_right, ← hwdef, mul_assoc, + Complex.conj_mul', ← Complex.ofReal_pow, ← Complex.ofReal_mul, Complex.ofReal_re] + positivity + +/-- Paper (b), the compactness half, for a general finite-dimensional `E` with two maps `Pm, Pp` +(later `V⁻, V⁺`): if `Pm v ≠ 0, Pp w ≠ 0 ⇒ ∃ A ∈ T²ℂ[T], ⟪w, Av⟫ ≠ 0`, then there is `µ > 0` +with: +`‖v‖, ‖w‖ ≤ 2`, `‖Pm v‖, ‖Pp w‖ ≥ ½` ⇒ `∃ A ∈ I₁(T), Re⟪w, Av⟫ ≥ µ`. -/ +theorem reach_of_qual {E F : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [FiniteDimensional ℂ E] [NormedAddCommGroup F] [NormedSpace ℂ F] + (T : E →L[ℂ] E) (Pm Pp : E →L[ℂ] F) + (h : ∀ ξ η : E, Pm ξ ≠ 0 → Pp η ≠ 0 → ∃ S ∈ Alg2 T, ⟪η, S ξ⟫_ℂ ≠ 0) : + ∃ μ : ℝ, 0 < μ ∧ ∀ ξ η : E, ‖ξ‖ ≤ 2 → ‖η‖ ≤ 2 → 1 / 2 ≤ ‖Pm ξ‖ → 1 / 2 ≤ ‖Pp η‖ → + ∃ S ∈ I1 T, μ ≤ (⟪η, S ξ⟫_ℂ).re := by + have := FiniteDimensional.proper ℂ E + let A : Set (E × E) := (Metric.closedBall (0 : E) 2 ×ˢ Metric.closedBall (0 : E) 2) ∩ + ({z | 1 / 2 ≤ ‖Pm z.1‖} ∩ {z | 1 / 2 ≤ ‖Pp z.2‖}) + have hA : IsCompact A := by + refine ((isCompact_closedBall _ _).prod (isCompact_closedBall _ _)).inter_right + (IsClosed.inter ?_ ?_) + · exact isClosed_le continuous_const (by fun_prop) + · exact isClosed_le continuous_const (by fun_prop) + let U : ℕ → Set (E × E) := fun n => + {z | ∃ S ∈ I1 T, 1 / ((n : ℝ) + 1) < (⟪z.2, S z.1⟫_ℂ).re} + have hUo : ∀ n, IsOpen (U n) := by + intro n + rw [isOpen_iff_forall_mem_open] + rintro z ⟨S, hS, hz⟩ + refine ⟨{z | 1 / ((n : ℝ) + 1) < (⟪z.2, S z.1⟫_ℂ).re}, fun y hy => ⟨S, hS, hy⟩, ?_, hz⟩ + exact isOpen_lt continuous_const (by fun_prop) + have hmono : Monotone U := by + rintro m n hmn z ⟨S, hS, hz⟩ + exact ⟨S, hS, lt_of_le_of_lt (Nat.one_div_le_one_div hmn) hz⟩ + have hcov : A ⊆ ⋃ n, U n := by + rintro z ⟨-, h1, h2⟩ + have h1' : Pm z.1 ≠ 0 := by + intro h0 + simp only [Set.mem_ofPred_eq, h0, norm_zero] at h1 + linarith + have h2' : Pp z.2 ≠ 0 := by + intro h0 + simp only [Set.mem_ofPred_eq, h0, norm_zero] at h2 + linarith + obtain ⟨S, hS, hw⟩ := h _ _ h1' h2' + obtain ⟨S', hS', hpos⟩ := rescale_phase hS hw + obtain ⟨n, hn'⟩ := exists_nat_one_div_lt hpos + exact Set.mem_iUnion.2 ⟨n, S', hS', hn'⟩ + obtain ⟨n, hn⟩ := hA.elim_directed_cover U hUo hcov hmono.directed_le + refine ⟨1 / ((n : ℝ) + 1), Nat.one_div_pos_of_nat, fun ξ η hξ hη h1 h2 => ?_⟩ + obtain ⟨S, hS, hlt⟩ := + hn (show (ξ, η) ∈ A from ⟨⟨by simpa using hξ, by simpa using hη⟩, h1, h2⟩) + exact ⟨S, hS, hlt.le⟩ + +end Compact + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Lemma2Setup.lean b/LeanPool/HilbertInvariantSubspace/Lemma2Setup.lean new file mode 100644 index 0000000000..f50455f4cd --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Lemma2Setup.lean @@ -0,0 +1,468 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Lemma1 +public import LeanPool.HilbertInvariantSubspace.Slots + +/-! +# Lemma 3.2 (step) of the paper: the set-up of its proof (x, y, y^D = 0, the operator S), on +which (a) rests + +Paper, Lemma 3.2 and its proof (condensed): "**Lemma 3.2 (step).** Let (K, t) be a block of +dimension d, L = L(t), τ > 0, ‖t‖ + τ ≤ 1. There are +D ≥ 3, a block (K^D, S) and µ > 0 with: (a) ‖S − t ⊗ 1‖ ≤ τ, hence ‖S‖ ≤ 1. (b) Reach. … (c) +Split. … +*Proof.* Take D, u_j from Lemma 3.1, Q = dD, and commuting operators x = t ⊗ 1, +(yv)_j = u_j t v_j + τ v_{j−1} (v_{−1} = 0). +*y^D = 0.* y − u_i x maps {v_j = 0, j < i} into {v_j = 0, j ≤ i}, so ∏_i (y − u_i x) = 0; by +Lemma 3.1 and +x^d = 0 this product is y^D. *The operator S.* With e cyclic for t, the span of g_ij = x^i y^j +[e]_0 (i < d, j < D) +is invariant under x, y, contains slot 0, and (y − u_j x)[b]_j = τ[b]_{j+1}; so the g_ij are a +basis. Let R g_{d−1,j} = g_{0,j+1} (with g_{0,D} = 0), R g_ij = 0 otherwise, and S = x + εR with +ε > 0, ε‖R‖ ≤ τ. Then S^{i+dj}[e]_0 = ε^j g_ij, so (K^D, S) is a block and S^d = εy. (a) ‖S − x‖ += ε‖R‖ ≤ τ and +‖S‖ ≤ ‖t‖ + τ ≤ 1." + +Lean, in this file: +* `x = lift d t` (from `Slots.lean`) and `yOp t u η = coord (j ↦ u_j • t) + η • shift`, so + `(yOp t u η v)_j = u_j t v_j + η v_{j−1}`; the paper's `y` is `yOp t u τ`. `yOp_commute`: x, y + commute. +* `flagProd y x u i = (y − u_{i−1} x) ⋯ (y − u_0 x)`, `homogenise`: if `∏(1 − u_j z) ≡ 1 mod z^d` +and + `x^d = 0` then this product is `y^D`; `yOp_pow_eq_zero`: `y^D = 0` ("maps {v_j = 0, j < i} into + {v_j = 0, j ≤ i}" is `flagProd_apply_eq_zero`). +* `span_lift_yOp`: the `g_ij = x^i y^j [e]_0` span `K^D`. +* `exists_chain` (abstract): for commuting nilpotents `x` (order d) and `y` (order D) on a space +of + dimension dD spanned by the `x^i y^j e`, the operator `R` with `R g_{d−1,j} = g_{0,j+1}`, `R + g_ij = 0` + otherwise, makes `S = x + εR` a block of size `dD` with `S^d = ε y`, for every `ε ≠ 0`. +* `exists_S`: assembled for `K^D`, together with the two facts used in (b): + `(y^d v)_0 = 0` (`yOp_pow_apply_zero`) and `y^d [b]_{D−1} = 0` (`yOp_pow_sing_last`). +Part (a) proper (`‖S − x‖ ≤ τ` with `ε‖R‖ ≤ τ`, and `‖S‖ ≤ 1`) is concluded in `Lemma2.lean`. +-/ + +@[expose] public section + +open Polynomial Module +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +/-- The ordered product `(Φ - w (k-1) • T) * ... * (Φ - w 0 • T)`; with `Φ = y`, `T = x`, `w = u` + this +is the paper's `∏_{i 1 + | k + 1 => (Φ - w k • T) * flagProd Φ T w k + +section Y + +variable {K : Type} [NormedAddCommGroup K] [InnerProductSpace ℂ K] {d : ℕ} + +/-- The diagonal part `(u_j t)_j` of `y`, i.e. `t ⊗ diag(u)`. -/ +def yDiag (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) : Pw d K →L[ℂ] Pw d K := + coord (fun t => u t • T) + +/-- Paper: `(y v)_j = u_j t v_j + τ v_{j−1}` (`v_{−1} = 0`); here with a general complex weight + `η` in +place of `τ`. -/ +def yOp (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) (η : ℂ) : Pw d K →L[ℂ] Pw d K := + yDiag T u + η • shift d K + +@[simp] theorem yDiag_apply (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) (ξ : Pw d K) + (t : Fin (d + 1)) : yDiag T u ξ t = u t • T (ξ t) := rfl + +theorem yOp_apply (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) (η : ℂ) (ξ : Pw d K) + (t : Fin (d + 1)) : yOp T u η ξ t = u t • T (ξ t) + η • shift d K ξ t := rfl + +end Y + +/-- The homogenisation of `p` in degree `k`, evaluated at `(T, Φ)`. -/ +private def homog {A : Type} [Ring A] [Algebra ℂ A] (Φ T : A) (p : ℂ[X]) (k : ℕ) : A := + ∑ j ∈ Finset.range (k + 1), p.coeff j • (T ^ j * Φ ^ (k - j)) + +private theorem homog_step {A : Type} [Ring A] [Algebra ℂ A] (Φ T : A) (hc : Commute Φ T) + (p : ℂ[X]) (k : ℕ) (hp : p.coeff (k + 1) = 0) (c : ℂ) : + (Φ - c • T) * homog Φ T p k = homog Φ T (p * (1 - C c * X)) (k + 1) := by + have h1 : Φ * homog Φ T p k = homog Φ T p (k + 1) := by + unfold homog + rw [Finset.sum_range_succ _ (k + 1), hp, zero_smul, add_zero, Finset.mul_sum] + refine Finset.sum_congr rfl fun j hj => ?_ + have hj' : j ≤ k := Nat.lt_succ_iff.1 (Finset.mem_range.1 hj) + rw [mul_smul_comm, ← mul_assoc, (hc.pow_right j).eq, mul_assoc, ← pow_succ', + Nat.succ_sub hj'] + have h2 : T * homog Φ T p k = homog Φ T (p * X) (k + 1) := by + unfold homog + rw [Finset.sum_range_succ' _ (k + 1), Finset.mul_sum] + simp only [coeff_mul_X, mul_coeff_zero, coeff_X_zero, mul_zero, zero_smul, add_zero] + refine Finset.sum_congr rfl fun j _ => ?_ + rw [mul_smul_comm, ← mul_assoc, ← pow_succ', Nat.add_sub_add_right] + have h3 : p * (1 - C c * X) = p - C c * (p * X) := by ring + rw [sub_mul, smul_mul_assoc, h1, h2, h3] + unfold homog + rw [Finset.smul_sum, ← Finset.sum_sub_distrib] + refine Finset.sum_congr rfl fun j _ => ?_ + rw [coeff_sub, coeff_C_mul, sub_smul, mul_smul] + +private theorem roots_natDegree_le (w : ℕ → ℂ) (k : ℕ) : + (∏ i ∈ Finset.range k, (1 - C (w i) * X : ℂ[X])).natDegree ≤ k := by + induction k with + | zero => simp + | succ k ih => + rw [Finset.prod_range_succ] + refine natDegree_mul_le.trans (Nat.add_le_add ih ?_) + compute_degree + +private theorem flagProd_eq_homog {A : Type} [Ring A] [Algebra ℂ A] (Φ T : A) + (hc : Commute Φ T) (w : ℕ → ℂ) (k : ℕ) : + flagProd Φ T w k = homog Φ T (∏ i ∈ Finset.range k, (1 - C (w i) * X)) k := by + induction k with + | zero => simp [flagProd, homog] + | succ k ih => + rw [flagProd, ih, Finset.prod_range_succ, homog_step Φ T hc] + exact coeff_eq_zero_of_natDegree_lt (Nat.lt_succ_of_le (roots_natDegree_le w k)) + +theorem homogenise {A : Type} [Ring A] [Algebra ℂ A] (Φ T : A) (hc : Commute Φ T) (q : ℕ) + (hT : T ^ q = 0) (w : ℕ → ℂ) (n : ℕ) + (hw : (X : ℂ[X]) ^ q ∣ (∏ k ∈ Finset.range n, (1 - C (w k) * X)) - 1) : + flagProd Φ T w n = Φ ^ n := by + rw [flagProd_eq_homog Φ T hc] + generalize (∏ k ∈ Finset.range n, (1 - C (w k) * X : ℂ[X])) = P at hw + rw [X_pow_dvd_iff] at hw + have h1 : homog Φ T P n = homog Φ T 1 n := by + unfold homog + refine Finset.sum_congr rfl fun j _ => ?_ + rcases lt_or_ge j q with h | h + · have := hw j h + rw [coeff_sub, sub_eq_zero] at this + rw [this] + · rw [pow_eq_zero_of_le h hT] + simp + rw [h1] + unfold homog + rw [Finset.sum_range_succ'] + simp [coeff_one] + + +section NextAlg + +variable {K : Type} [NormedAddCommGroup K] [InnerProductSpace ℂ K] {d : ℕ} + +theorem yOp_commute (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) (η : ℂ) : + Commute (yOp T u η) (lift d T) := by + refine ContinuousLinearMap.ext fun ξ => PiLp.ext fun t => ?_ + rw [mul_apply_eq_comp, mul_apply_eq_comp, yOp_apply, lift_apply, + lift_apply, yOp_apply, map_add, map_smul, map_smul] + induction t using Fin.cases with + | zero => simp + | succ s => simp + +/-- If `ζ` vanishes below `k` then its shift vanishes below `k + 1`. -/ +private theorem shift_eq_zero (ζ : Pw d K) (k : ℕ) (h : ∀ s : Fin (d + 1), s.val < k → ζ s = 0) + (s : Fin (d + 1)) (hs : s.val < k + 1) : shift d K ζ s = 0 := by + induction s using Fin.cases with + | zero => rfl + | succ s => + rw [shift_apply_succ] + apply h + simp only [Fin.val_succ] at hs + simp only [Fin.val_castSucc] + omega + +private theorem flagProd_apply_eq_zero (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) (η : ℂ) + (w : ℕ → ℂ) (hw : ∀ s : Fin (d + 1), w s.val = u s) (k : ℕ) (ξ : Pw d K) : + ∀ s : Fin (d + 1), s.val < k → flagProd (yOp T u η) (lift d T) w k ξ s = 0 := by + induction k with + | zero => intro s hs; omega + | succ k ih => + intro s hs + have e : flagProd (yOp T u η) (lift d T) w (k + 1) ξ s = + u s • T (flagProd (yOp T u η) (lift d T) w k ξ s) + + η • shift d K (flagProd (yOp T u η) (lift d T) w k ξ) s + - w k • T (flagProd (yOp T u η) (lift d T) w k ξ s) := rfl + rw [e, shift_eq_zero _ k ih s hs] + rcases Nat.lt_succ_iff_lt_or_eq.mp hs with h | h + · rw [ih s h]; simp + · rw [← h, hw s]; simp + +theorem yOp_pow_eq_zero (T : K →L[ℂ] K) (q : ℕ) (hT : T ^ q = 0) (u : Fin (d + 1) → ℂ) (η : ℂ) + (hu : (X : ℂ[X]) ^ q ∣ (∏ t, (1 - C (u t) * X)) - 1) : yOp T u η ^ (d + 1) = 0 := by + let w : ℕ → ℂ := fun k => if h : k < d + 1 then u ⟨k, h⟩ else 0 + have hw : ∀ s : Fin (d + 1), w s.val = u s := fun s => by simp only [w, dite_eq_left s.isLt] + have h := homogenise (yOp T u η) (lift d T) (yOp_commute T u η) q + (by rw [lift_pow, hT, lift_zero]) w (d + 1) (by + rw [Finset.prod_range] + simpa only [hw] using hu) + rw [← h] + refine ContinuousLinearMap.ext fun ξ => PiLp.ext fun t => ?_ + exact flagProd_apply_eq_zero T u η w hw (d + 1) ξ t t.isLt + +private theorem yOp_pow_apply_zero' (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) + (η : ℂ) (ξ : Pw d K) (n : ℕ) : (yOp T u η ^ n) ξ 0 = (u 0) ^ n • (T ^ n) (ξ 0) := by + induction n with + | zero => simp + | succ n ih => + rw [pow_succ', mul_apply_eq_comp, yOp_apply, ih, shift_apply_zero, smul_zero, + add_zero, map_smul, smul_smul, pow_succ' (u 0), pow_succ' T, mul_apply_eq_comp] + +theorem yOp_pow_apply_zero (T : K →L[ℂ] K) (q : ℕ) (hT : T ^ q = 0) (u : Fin (d + 1) → ℂ) + (η : ℂ) (ξ : Pw d K) : (yOp T u η ^ q) ξ 0 = 0 := by + rw [yOp_pow_apply_zero', hT] + simp + +private theorem yOp_sing_last (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) (η : ℂ) (v : K) : + yOp T u η (sing (Fin.last d) v) = sing (Fin.last d) (u (Fin.last d) • T v) := by + refine PiLp.ext fun t => ?_ + have hs : shift d K (sing (Fin.last d) v) t = 0 := by + induction t using Fin.cases with + | zero => rfl + | succ s => rw [shift_apply_succ, sing_apply_ne (Fin.castSucc_lt_last s).ne] + rw [yOp_apply, hs, smul_zero, add_zero] + by_cases h : t = Fin.last d + · subst h; rw [sing_apply_self, sing_apply_self] + · rw [sing_apply_ne h, sing_apply_ne h, map_zero, smul_zero] + +private theorem yOp_pow_sing_last' (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) + (η : ℂ) (v : K) (n : ℕ) : (yOp T u η ^ n) (sing (Fin.last d) v) = + sing (Fin.last d) ((u (Fin.last d)) ^ n • (T ^ n) v) := by + induction n with + | zero => simp + | succ n ih => + rw [pow_succ', mul_apply_eq_comp, ih, yOp_sing_last, map_smul T, smul_smul, + pow_succ' (u _), pow_succ' T, mul_apply_eq_comp] + +theorem yOp_pow_sing_last (T : K →L[ℂ] K) (q : ℕ) (hT : T ^ q = 0) (u : Fin (d + 1) → ℂ) + (η : ℂ) (v : K) : (yOp T u η ^ q) (sing (Fin.last d) v) = 0 := by + rw [yOp_pow_sing_last', hT] + simp + +/-- `Φ ^ i (sing 0 x0)` vanishes above `i` and equals `η ^ i • x0` at `i`. -/ +private theorem yOp_pow_sing_zero (T : K →L[ℂ] K) (u : Fin (d + 1) → ℂ) (η : ℂ) (x0 : K) + (i : ℕ) : (∀ s : Fin (d + 1), i < s.val → (yOp T u η ^ i) (sing 0 x0) s = 0) ∧ + ∀ s : Fin (d + 1), s.val = i → (yOp T u η ^ i) (sing 0 x0) s = η ^ i • x0 := by + induction i with + | zero => + constructor + · intro s hs + rw [pow_zero, one_apply_eq_self] + exact sing_apply_ne (by rintro rfl; simp at hs) _ + · intro s hs + have : s = 0 := Fin.ext hs + subst this + simp + | succ i ih => + obtain ⟨h1, h2⟩ := ih + constructor + · intro s hs + rw [pow_succ', mul_apply_eq_comp, yOp_apply, h1 s (by omega)] + induction s using Fin.cases with + | zero => simp + | succ s => + simp only [Fin.val_succ] at hs + rw [shift_apply_succ, h1 _ (by simp only [Fin.val_castSucc]; omega)] + simp + · intro s hs + rw [pow_succ', mul_apply_eq_comp, yOp_apply, h1 s (by omega)] + induction s using Fin.cases with + | zero => simp at hs + | succ s => + simp only [Fin.val_succ] at hs + rw [shift_apply_succ, h2 _ (by simp only [Fin.val_castSucc]; omega), smul_smul, + pow_succ' η] + simp + +private theorem sum_sing (ξ : Pw d K) : ∑ s, sing s (ξ s) = ξ := by + refine PiLp.ext fun t => ?_ + have : (∑ s, sing s (ξ s) : Pw d K) t = ∑ s, (sing s (ξ s) : Pw d K) t := + map_sum (prj t) (fun s => (sing s (ξ s) : Pw d K)) Finset.univ + rw [this, Finset.sum_eq_single t] + · exact sing_apply_self _ _ + · intro s _ hs + exact sing_apply_ne hs.symm _ + · simp + +theorem span_lift_yOp (T : K →L[ℂ] K) (q : ℕ) (x0 : K) + (hx0 : Submodule.span ℂ (Set.range fun a : Fin q => (T ^ (a : ℕ)) x0) = ⊤) + (u : Fin (d + 1) → ℂ) (η : ℂ) (hη : η ≠ 0) : + Submodule.span ℂ (Set.range fun p : Fin q × Fin (d + 1) => + (lift d T ^ (p.1 : ℕ)) ((yOp T u η ^ (p.2 : ℕ)) (sing 0 x0))) = ⊤ := by + set W := Submodule.span ℂ (Set.range fun p : Fin q × Fin (d + 1) => + (lift d T ^ (p.1 : ℕ)) ((yOp T u η ^ (p.2 : ℕ)) (sing 0 x0))) with hW + have key : ∀ n : ℕ, ∀ i : Fin (d + 1), i.val = n → ∀ v : K, (sing i v : Pw d K) ∈ W := by + intro n + induction n using Nat.strong_induction_on with + | _ n ih => + intro i hi + have hgen : ∀ a : Fin q, (sing i ((T ^ (a : ℕ)) x0) : Pw d K) ∈ W := by + intro a + set ζ : Pw d K := (lift d T ^ (a : ℕ)) ((yOp T u η ^ (i : ℕ)) (sing 0 x0)) with hζ + have hζW : ζ ∈ W := Submodule.subset_span ⟨(a, i), rfl⟩ + have hζs : ∀ s, ζ s = (T ^ (a : ℕ)) ((yOp T u η ^ (i : ℕ)) (sing 0 x0) s) := by + intro s + rw [hζ, lift_pow, lift_apply] + have hrest : ∑ s ∈ Finset.univ.erase i, (sing s (ζ s) : Pw d K) ∈ W := by + refine Submodule.sum_mem _ fun s hs => ?_ + have hne : s.val ≠ i.val := fun h => (Finset.ne_of_mem_erase hs) (Fin.ext h) + rcases lt_or_gt_of_ne hne with h | h + · exact ih s.val (hi ▸ h) s rfl _ + · rw [hζs, (yOp_pow_sing_zero T u η x0 i).1 s h, map_zero, map_zero] + exact W.zero_mem + have hsum := sum_sing ζ + rw [← Finset.add_sum_erase _ _ (Finset.mem_univ i)] at hsum + have h1 : (sing i (ζ i) : Pw d K) ∈ W := by + rw [eq_sub_of_add_eq hsum] + exact W.sub_mem hζW hrest + rw [hζs, (yOp_pow_sing_zero T u η x0 i).2 i rfl, map_smul, map_smul] at h1 + exact (W.smul_mem_iff (pow_ne_zero _ hη)).mp h1 + intro v + have hv : v ∈ Submodule.span ℂ (Set.range fun a : Fin q => (T ^ (a : ℕ)) x0) := by + rw [hx0]; exact Submodule.mem_top + induction hv using Submodule.span_induction with + | mem x hx => + obtain ⟨a, rfl⟩ := hx + exact hgen a + | zero => rw [map_zero]; exact W.zero_mem + | add x y _ _ hx hy => rw [map_add]; exact W.add_mem hx hy + | smul c x _ hx => rw [map_smul]; exact W.smul_mem c hx + rw [eq_top_iff] + intro ξ _ + rw [← sum_sing ξ] + exact Submodule.sum_mem _ fun s _ => key s.val s rfl _ + + +end NextAlg + +/-- Paper, proof of Lemma 3.2, "The operator S", abstract core: "Let R g_{d−1,j} = g_{0,j+1}, R + g_ij = 0 +for i < d − 1 … S = x + εR … S^{i+dj}[e]_0 = ε^j g_ij … (K^D, S) is a block … S^d = εy." Here +`L` is +the paper's `x`, `Φ` is `y`, `q` is `d`, `e` is `[e]_0` and the basis is `b (a, i) = x^a y^i e`. +-/ +theorem exists_chain {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] [FiniteDimensional ℂ E] + (L Φ : E →L[ℂ] E) (q D : ℕ) (hq : 1 ≤ q) (_hD : 1 ≤ D) (hc : Commute Φ L) + (hL : L ^ q = 0) (hΦ : Φ ^ D = 0) (hfin : finrank ℂ E = q * D) (e : E) + (hspan : Submodule.span ℂ + (Set.range fun p : Fin q × Fin D => (L ^ (p.1 : ℕ)) ((Φ ^ (p.2 : ℕ)) e)) = ⊤) : + ∃ R : E →L[ℂ] E, ∀ ε : ℂ, ε ≠ 0 → + IsBlock (L + ε • R) (q * D) ∧ (L + ε • R) ^ q = ε • Φ := by + obtain ⟨r, rfl⟩ : ∃ r, q = r + 1 := ⟨q - 1, by omega⟩ + have hcard : Fintype.card (Fin (r + 1) × Fin D) = finrank ℂ E := by + rw [hfin, Fintype.card_prod, Fintype.card_fin, Fintype.card_fin] + obtain ⟨b, hb⟩ : ∃ b : Basis (Fin (r + 1) × Fin D) ℂ E, + ∀ p, b p = (L ^ (p.1 : ℕ)) ((Φ ^ (p.2 : ℕ)) e) := + ⟨basisOfTopLeSpanOfCardEqFinrank _ hspan.ge hcard, fun p => by + rw [coe_basisOfTopLeSpanOfCardEqFinrank]⟩ + obtain ⟨R, hR⟩ : ∃ R : E →L[ℂ] E, ∀ p : Fin (r + 1) × Fin D, + R (b p) = if (p.1 : ℕ) = r then (Φ ^ ((p.2 : ℕ) + 1)) e else 0 := + ⟨LinearMap.toContinuousLinearMap (b.constr ℂ fun p : Fin (r + 1) × Fin D => + if (p.1 : ℕ) = r then (Φ ^ ((p.2 : ℕ) + 1)) e else 0), fun p => by + rw [LinearMap.coe_toContinuousLinearMap', Basis.constr_basis]⟩ + -- (1) + have h1 : ∀ a i : ℕ, a < r + 1 → + R ((L ^ a) ((Φ ^ i) e)) = if a = r then (Φ ^ (i + 1)) e else 0 := by + intro a i ha + by_cases hi : i < D + · have := hR (⟨a, ha⟩, ⟨i, hi⟩) + rw [hb] at this + exact this + · have hi0 : Φ ^ i = 0 := pow_eq_zero_of_le (by omega) hΦ + have hi1 : Φ ^ (i + 1) = 0 := pow_eq_zero_of_le (by omega) hΦ + simp [hi0, hi1] + refine ⟨R, fun ε hε => ?_⟩ + set T : E →L[ℂ] E := L + ε • R with hT + have hTapp : ∀ v, T v = L v + ε • R v := fun v => rfl + have hpow : ∀ (A : E →L[ℂ] E) (n : ℕ) (v : E), (A ^ (n + 1)) v = A ((A ^ n) v) := by + intro A n v + rw [pow_succ'] + rfl + -- (2) + have h2 : ∀ a i : ℕ, a < r + 1 → (T ^ a) ((Φ ^ i) e) = (L ^ a) ((Φ ^ i) e) := by + intro a i + induction a with + | zero => intro _; simp + | succ a ih => + intro ha + rw [hpow, ih (by omega), hTapp, h1 a i (by omega), ite_eq_right (by omega), + smul_zero, add_zero, hpow] + -- (3) + have h3 : ∀ i : ℕ, (T ^ (r + 1)) ((Φ ^ i) e) = ε • (Φ ^ (i + 1)) e := by + intro i + rw [hpow, h2 r i (by omega), hTapp, h1 r i (by omega), ite_eq_left rfl, ← hpow, hL] + simp + -- (4) + have h4 : T ^ (r + 1) = ε • Φ := by + apply ContinuousLinearMap.coe_injective + apply b.ext + rintro ⟨⟨a, ha⟩, ⟨i, hi⟩⟩ + rw [hb] + change (T ^ (r + 1)) ((L ^ a) ((Φ ^ i) e)) = ε • Φ ((L ^ a) ((Φ ^ i) e)) + have e1 : (T ^ (r + 1)) ((L ^ a) ((Φ ^ i) e)) = (T ^ a) ((T ^ (r + 1)) ((Φ ^ i) e)) := by + rw [← h2 a i ha] + change (T ^ (r + 1) * T ^ a) _ = (T ^ a * T ^ (r + 1)) _ + rw [← pow_add, ← pow_add, add_comm] + have e2 : Φ ((L ^ a) ((Φ ^ i) e)) = (L ^ a) ((Φ ^ (i + 1)) e) := by + rw [hpow] + change (Φ * L ^ a) _ = (L ^ a * Φ) _ + rw [(hc.pow_right a).eq] + rw [e1, e2, h3, map_smul, h2 a (i + 1) ha] + refine ⟨?_, h4⟩ + -- (5) + have h5 : T ^ ((r + 1) * D) = 0 := by + rw [pow_mul, h4, _root_.smul_pow, hΦ, smul_zero] + -- (6) + refine isBlock_of_cyclic (x0 := e) hfin h5 ?_ + let F : ℂ[X] →ₗ[ℂ] E := + { toFun := fun f => aeval T f e + map_add' := fun f g => by simp + map_smul' := fun c f => by simp } + have hF : (⊤ : Submodule ℂ E) ≤ LinearMap.range F := by + rw [← hspan, Submodule.span_le] + rintro _ ⟨⟨⟨a, ha⟩, ⟨i, hi⟩⟩, rfl⟩ + refine ⟨(ε⁻¹ ^ i) • X ^ (a + (r + 1) * i), ?_⟩ + rw [map_smul] + change (ε⁻¹ ^ i) • aeval T (X ^ (a + (r + 1) * i) : ℂ[X]) e = (L ^ a) ((Φ ^ i) e) + rw [map_pow, aeval_X, pow_add, pow_mul, h4, _root_.smul_pow] + change (ε⁻¹ ^ i) • (T ^ a) ((ε ^ i) • (Φ ^ i) e) = _ + rw [map_smul, smul_smul, ← mul_pow, inv_mul_cancel₀ hε, one_pow, one_smul, h2 a i ha] + intro ξ + exact hF (Submodule.mem_top (x := ξ)) + + +section Assemble + +variable {K : Type} [NormedAddCommGroup K] [InnerProductSpace ℂ K] [FiniteDimensional ℂ K] {d : ℕ} + +/-- Paper, proof of Lemma 3.2 ("y^D = 0", "The operator S") assembled on `K^D`: given a block + `(K, t)` of size `q`, multipliers `u` as in +Lemma 3.1 (with `D = d + 1 ≥ 2q + 1`… only the congruence is used here) and a weight `η ≠ 0`, +there is +`R` such that for every `ε ≠ 0`, `S = x + εR` is a block of size `Q = q(d+1)` with `S^q = ε y`. +-/ +theorem exists_S (T : K →L[ℂ] K) (q : ℕ) (hT : IsBlock T q) (hq : 1 ≤ q) + (u : Fin (d + 1) → ℂ) (hu : (X : ℂ[X]) ^ q ∣ (∏ t, (1 - C (u t) * X)) - 1) + (η : ℂ) (hη : η ≠ 0) : + ∃ R : Pw d K →L[ℂ] Pw d K, ∀ ε : ℂ, ε ≠ 0 → + IsBlock (lift d T + ε • R) (q * (d + 1)) ∧ (lift d T + ε • R) ^ q = ε • yOp T u η := by + have hT0 := hT.pow_eq_zero + have hfin := hT.finrank_eq + obtain ⟨x0, hcyc, -⟩ := hT + exact exists_chain (lift d T) (yOp T u η) q (d + 1) hq (by omega) + (yOp_commute T u η) (by rw [lift_pow, hT0, lift_zero]) (yOp_pow_eq_zero T q hT0 u η hu) + (by rw [finrank_Pw, hfin]) (sing 0 x0) + (span_lift_yOp T q x0 (span_pow_of_cyclic hT0 hcyc) u η hη) + +end Assemble + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Lemma2Split.lean b/LeanPool/HilbertInvariantSubspace/Lemma2Split.lean new file mode 100644 index 0000000000..00105be174 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Lemma2Split.lean @@ -0,0 +1,406 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Lemma2Setup + +/-! +# Lemma 3.2(c) of the paper: Split + +Paper, Lemma 3.2(c) and its proof (condensed): "(c) *Split.* For A± ∈ I₁(t) some G ∈ I₁(S) has ‖G +− A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊‖ ≤ 24Lτ. +*Proof.* Let σ = E₊ − E₋, Z = xσ. Then ‖y − Z‖ ≤ 2τ, ‖y‖ ≤ 2, Z² ± xZ = 2x²E±. So +W± = ½(y² ± Sy) ∈ S²ℂ[S] (as y = S^d/ε) and ‖W± − x²E±‖ ≤ ½(6τ + 3τ). Put +G₀ = Σ± p_{A±}(S) W± and C = Σ± p_{A±}(x) x² E± = A₋ ⊕ 0 ⊕ ⋯ ⊕ A₊. By (1), +‖G₀ − C‖ ≤ 2(9/2 + 1)Lτ ≤ β := 12Lτ. As ‖C‖ ≤ 1, G = G₀/(1 + β) ∈ I₁(S) and ‖G − C‖ ≤ 24Lτ." + +Lean: `split` below proves this statement, for any `S` with the properties that the proof of +Lemma 3.2 provides (listed in +`split`'s docstring), with `sepOp d A₊ A₋` for `A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊` and the constant `24 * L * +τ`, +following the same route: `sigma`, `Zop` (= xσ), `norm_y_sub_Z_le` (‖y − Z‖ ≤ 2τ), +`norm_yOp_le_two`, +`Z_sq_add_smul_xZ` (Z² + eZx = 2x²E_e for e = ±1), `Wop`, `Wop_mem` (W± ∈ S²ℂ[S] from S^d = εy), +`norm_W_sub_le`, then `G₀`, `β = 12Lτ` and `G = G₀/(1+β)`. +The constants are the paper's: ‖y² − Z²‖ ≤ ‖y‖‖y − Z‖ + ‖y − Z‖‖Z‖ ≤ 6τ and +‖Sy − xZ‖ = ‖S(y − Z) + (S − x)Z‖ ≤ 2τ + τ = 3τ (using ‖S‖ ≤ 1 from (a)), so +‖W± − x²E±‖ ≤ ½(6τ + 3τ), each sign contributes (9/2 + 1)Lτ, and ‖G₀ − C‖ ≤ 11Lτ ≤ β = 12Lτ. +-/ + +@[expose] public section + +open Polynomial Module +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +section NormAlgebra + +variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] + +-- The following proof tracks that of `norm_mul_le_of_le` in Mathlib, +-- Mathlib/Analysis/Normed/Ring/Basic.lean: +-- Copyright (c) 2018 Patrick Massot. All rights reserved. +-- Released under Apache 2.0 license as described in the file LICENSE. +-- Authors: Patrick Massot, Johannes Hölzl +theorem norm_mul_le_of_le {A B : E →L[ℂ] E} {a b : ℝ} (ha : ‖A‖ ≤ a) (hb : ‖B‖ ≤ b) : + ‖A * B‖ ≤ a * b := + (norm_mul_le A B).trans (mul_le_mul ha hb (norm_nonneg _) ((norm_nonneg _).trans ha)) + +theorem norm_smul_half (A : E →L[ℂ] E) : ‖(1 / 2 : ℂ) • A‖ = ‖A‖ / 2 := by + rw [norm_smul] + simp + ring + +/-- The norm computation of (c) in the abstract: the paper's "‖W± − x²E±‖ ≤ ½(6τ + 3τ)" for +`W = ½(y² + e Sy)` against `½(Z² + e xZ)`, from `‖y‖ ≤ 2, ‖Z‖ ≤ 1, ‖S‖ ≤ 1, ‖y − Z‖ ≤ 2τ, ‖S − x‖ +≤ τ`. -/ +theorem norm_W_sub_aux (y Z S x : E →L[ℂ] E) (e : ℂ) (he : ‖e‖ = 1) (τ : ℝ) + (hy : ‖y‖ ≤ 2) (hZ : ‖Z‖ ≤ 1) (hS1 : ‖S‖ ≤ 1) (hyZ : ‖y - Z‖ ≤ 2 * τ) (hS : ‖S - x‖ ≤ τ) : + ‖(1 / 2 : ℂ) • (y * y + e • (S * y)) - (1 / 2 : ℂ) • (Z * Z + e • (x * Z))‖ ≤ + (6 * τ + 3 * τ) / 2 := by + -- ‖y² − Z²‖ = ‖y(y − Z) + (y − Z)Z‖ ≤ 2·2τ + 2τ·1 + have h1 : ‖y * y - Z * Z‖ ≤ 6 * τ := by + have : y * y - Z * Z = y * (y - Z) + (y - Z) * Z := by rw [mul_sub, sub_mul]; abel + rw [this] + refine (norm_add_le _ _).trans ?_ + have k1 := norm_mul_le_of_le hy hyZ + have k2 := norm_mul_le_of_le hyZ hZ + linarith + -- ‖Sy − xZ‖ = ‖S(y − Z) + (S − x)Z‖ ≤ 1·2τ + τ·1 + have h2 : ‖S * y - x * Z‖ ≤ 3 * τ := by + have : S * y - x * Z = S * (y - Z) + (S - x) * Z := by rw [mul_sub, sub_mul]; abel + rw [this] + refine (norm_add_le _ _).trans ?_ + have k1 := norm_mul_le_of_le hS1 hyZ + have k2 := norm_mul_le_of_le hS hZ + linarith + have hid : (1 / 2 : ℂ) • (y * y + e • (S * y)) - (1 / 2 : ℂ) • (Z * Z + e • (x * Z)) = + (1 / 2 : ℂ) • ((y * y - Z * Z) + e • (S * y - x * Z)) := by + simp only [smul_add, smul_sub] + abel + rw [hid, norm_smul_half] + have h3 : ‖y * y - Z * Z + e • (S * y - x * Z)‖ ≤ 6 * τ + 3 * τ := by + refine (norm_add_le _ _).trans ?_ + rw [norm_smul, he, one_mul] + linarith + linarith + +/-- `A(W − W') + (A − B)W' = AW − BW'` with the corresponding norm bound. -/ +theorem norm_mul_sub_mul_le (A B W W' : E →L[ℂ] E) {a c w δ : ℝ} (hA : ‖A‖ ≤ a) + (hAB : ‖A - B‖ ≤ c) (hW : ‖W - W'‖ ≤ δ) (hW' : ‖W'‖ ≤ w) : + ‖A * W - B * W'‖ ≤ a * δ + c * w := by + have : A * W - B * W' = A * (W - W') + (A - B) * W' := by rw [mul_sub, sub_mul]; abel + rw [this] + refine (norm_add_le _ _).trans ?_ + have k1 := norm_mul_le_of_le hA hW + have k2 := norm_mul_le_of_le hAB hW' + linarith + +end NormAlgebra + +section Split + +variable {K : Type} [NormedAddCommGroup K] [InnerProductSpace ℂ K] {d : ℕ} + +/-- `σ_j`: `+1` on the last slot, `−1` on slot 0, `0` elsewhere (the diagonal of `σ = E₊ − E₋`). +-/ +def sigma (d : ℕ) (j : Fin (d + 1)) : ℂ := if j = Fin.last d then 1 else if j = 0 then -1 else 0 + +/-- Paper: `Z = xσ`, i.e. `(Z v)_j = σ_j t v_j`. -/ +def Zop (d : ℕ) (t : K →L[ℂ] K) : Pw d K →L[ℂ] Pw d K := coord (fun j => sigma d j • t) + +/-- `x² E_s` for a slot `s`: `t²` in slot `s`, zero elsewhere. -/ +def x2E (d : ℕ) (t : K →L[ℂ] K) (s : Fin (d + 1)) : Pw d K →L[ℂ] Pw d K := + coord (fun j => if j = s then t * t else 0) + +/-- Paper: `W± = ½ (y² ± S y)`, with `e = ±1`. -/ +def Wop (y S : Pw d K →L[ℂ] Pw d K) (e : ℂ) : Pw d K →L[ℂ] Pw d K := + (1 / 2 : ℂ) • (y * y + e • (S * y)) + +theorem sigma_last : sigma d (Fin.last d) = 1 := by + unfold sigma; rw [ite_eq_left rfl] + +theorem sigma_zero (hd : 1 ≤ d) : sigma d 0 = -1 := by + unfold sigma; rw [ite_eq_right (zero_ne_last hd), ite_eq_left rfl] + +theorem sigma_other {j : Fin (d + 1)} (hl : j ≠ Fin.last d) (h0 : j ≠ 0) : sigma d j = 0 := by + unfold sigma; rw [ite_eq_right hl, ite_eq_right h0] + +theorem Zop_eq (hd : 1 ≤ d) (t : K →L[ℂ] K) : Zop d t = lift d t * (Eplus d K - Eminus d K) := by + unfold Zop lift Eplus Eminus + rw [coord_sub, coord_mul] + refine coord_congr fun j => ?_ + by_cases hl : j = Fin.last d + · subst hl + rw [sigma_last, ite_eq_left rfl, ite_eq_right (zero_ne_last hd).symm, + sub_zero, mul_one, one_smul] + · by_cases h0 : j = 0 + · subst h0 + rw [sigma_zero hd, ite_eq_right hl, ite_eq_left rfl, zero_sub, mul_neg, mul_one, neg_one_smul] + · rw [sigma_other hl h0, ite_eq_right hl, ite_eq_right h0, sub_zero, mul_zero, zero_smul] + +theorem norm_sigma_le_one (j : Fin (d + 1)) : ‖sigma d j‖ ≤ 1 := by + unfold sigma; split_ifs <;> simp + +/-- `σ_j² + σ_j = 2·[j = last]`. -/ +theorem sigma_rel_plus (hd : 1 ≤ d) (j : Fin (d + 1)) : + sigma d j ^ 2 + 1 * sigma d j = if j = Fin.last d then 2 else 0 := by + by_cases hl : j = Fin.last d + · subst hl; rw [sigma_last, ite_eq_left rfl]; norm_num + · by_cases h0 : j = 0 + · subst h0; rw [sigma_zero hd, ite_eq_right hl]; norm_num + · rw [sigma_other hl h0, ite_eq_right hl]; norm_num + +/-- `σ_j² − σ_j = 2·[j = 0]`. -/ +theorem sigma_rel_minus (hd : 1 ≤ d) (j : Fin (d + 1)) : + sigma d j ^ 2 + (-1) * sigma d j = if j = 0 then 2 else 0 := by + by_cases hl : j = Fin.last d + · subst hl; rw [sigma_last, ite_eq_right (zero_ne_last hd).symm]; norm_num + · by_cases h0 : j = 0 + · subst h0; rw [sigma_zero hd, ite_eq_left rfl]; norm_num + · rw [sigma_other hl h0, ite_eq_right h0]; norm_num + +/-- Paper: "Z² ± xZ = 2x²E±", as `Z² + e•(xZ) = 2 • x²E_s` whenever `σ_j² + eσ_j = 2·[j = s]`. -/ +theorem Z_sq_add_smul_xZ (t : K →L[ℂ] K) (e : ℂ) (s : Fin (d + 1)) + (hrel : ∀ j, sigma d j ^ 2 + e * sigma d j = if j = s then 2 else 0) : + Zop d t * Zop d t + e • (lift d t * Zop d t) = (2 : ℂ) • x2E d t s := by + unfold Zop lift x2E + rw [coord_mul, coord_mul, coord_smul, coord_add, coord_smul] + refine coord_congr fun j => ?_ + have h := hrel j + rw [smul_mul_smul_comm, mul_smul_comm, smul_smul, ← add_smul, ← sq, h] + split_ifs <;> simp + +theorem norm_Zop_le (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) : ‖Zop d t‖ ≤ 1 := by + refine norm_coord_le _ _ fun j => ?_ + rw [norm_smul] + exact (mul_le_mul (norm_sigma_le_one j) ht (norm_nonneg _) zero_le_one).trans (by norm_num) + +theorem norm_x2E_le (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) (s : Fin (d + 1)) : ‖x2E d t s‖ ≤ 1 := by + refine norm_coord_le _ _ fun j => ?_ + split_ifs + · exact norm_mul_le_of_le ht ht |>.trans (by norm_num) + · simp + +theorem norm_yDiag_le (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) (u : Fin (d + 1) → ℂ) + (hu : ∀ j, ‖u j‖ ≤ 1) : ‖yDiag t u‖ ≤ 1 := by + refine norm_coord_le _ _ fun j => ?_ + rw [norm_smul] + exact (mul_le_mul (hu j) ht (norm_nonneg _) zero_le_one).trans (by norm_num) + +/-- Paper: "‖y‖ ≤ 2" (from `|u_j| ≤ 1`, `‖t‖ ≤ 1`, `‖η‖ ≤ 1`). -/ +theorem norm_yOp_le_two (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) (u : Fin (d + 1) → ℂ) + (hu : ∀ j, ‖u j‖ ≤ 1) (η : ℂ) (hη : ‖η‖ ≤ 1) : ‖yOp t u η‖ ≤ 2 := by + unfold yOp + refine (norm_add_le (yDiag t u) (η • shift d K)).trans ?_ + have h1 := norm_yDiag_le t ht u hu + have h2 : ‖η • shift d K‖ ≤ 1 := + (ContinuousLinearMap.opNorm_smul_le η (shift d K)).trans + ((mul_le_mul hη norm_shift_le (ContinuousLinearMap.opNorm_nonneg (shift d K)) + zero_le_one).trans (by norm_num)) + linarith + +/-- Paper: "‖y − Z‖ ≤ 2τ". -/ +theorem norm_y_sub_Z_le (hd : 1 ≤ d) (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) (u : Fin (d + 1) → ℂ) + (hu0 : u 0 = -1) (hul : u (Fin.last d) = 1) (τ : ℝ) + (hu : ∀ j, j ≠ 0 → j ≠ Fin.last d → ‖u j‖ ≤ τ) (η : ℂ) (hη : ‖η‖ ≤ τ) : + ‖yOp t u η - Zop d t‖ ≤ 2 * τ := by + have hτ : 0 ≤ τ := (norm_nonneg _).trans hη + have e1 : yOp t u η - Zop d t = coord (fun j => (u j - sigma d j) • t) + η • shift d K := by + unfold yOp yDiag Zop + rw [add_sub_right_comm, coord_sub] + congr 1 + exact coord_congr fun j => (sub_smul _ _ _).symm + rw [e1] + refine (norm_add_le (coord fun j => (u j - sigma d j) • t) (η • shift d K)).trans ?_ + have h1 : ‖coord (fun j => (u j - sigma d j) • t)‖ ≤ τ := by + refine norm_coord_le _ _ fun j => ?_ + rw [norm_smul] + refine (mul_le_of_le_one_right (norm_nonneg _) ht).trans ?_ + by_cases hl : j = Fin.last d + · subst hl; rw [sigma_last, hul, sub_self, norm_zero]; exact hτ + · by_cases h0 : j = 0 + · subst h0; rw [sigma_zero hd, hu0, sub_self, norm_zero]; exact hτ + · rw [sigma_other hl h0, sub_zero]; exact hu j h0 hl + have h2 : ‖η • shift d K‖ ≤ τ := + (ContinuousLinearMap.opNorm_smul_le η (shift d K)).trans + ((mul_le_mul hη norm_shift_le (ContinuousLinearMap.opNorm_nonneg (shift d K)) hτ).trans + (by simp)) + linarith + +/-- Paper: "W± ∈ S²ℂ[S] (as y = S^d/ε)". -/ +theorem Wop_mem {S y : Pw d K →L[ℂ] Pw d K} {q : ℕ} (hq : 1 ≤ q) {ε : ℂ} (hε : ε ≠ 0) + (hpow : S ^ q = ε • y) (e : ℂ) : Wop y S e ∈ Alg2 S := by + have hy : y = ε⁻¹ • S ^ q := by + rw [hpow, smul_smul, inv_mul_cancel₀ hε, one_smul] + obtain ⟨r, rfl⟩ : ∃ r, q = r + 1 := ⟨q - 1, by omega⟩ + unfold Wop + refine smul_mem_Alg2 _ (add_mem_Alg2 ?_ (smul_mem_Alg2 _ ?_)) + · rw [hy] + change ((ε⁻¹ • S ^ (r + 1)) ∘L (ε⁻¹ • S ^ (r + 1))) ∈ Alg2 S + rw [ContinuousLinearMap.smul_comp, ContinuousLinearMap.comp_smul, smul_smul] + change (ε⁻¹ * ε⁻¹) • (S ^ (r + 1) * S ^ (r + 1)) ∈ Alg2 S + rw [← pow_add, show r + 1 + (r + 1) = 2 * r + 2 by omega] + exact smul_mem_Alg2 _ (pow_mem_Alg2 S _) + · rw [hy] + change (S ∘L (ε⁻¹ • S ^ (r + 1))) ∈ Alg2 S + rw [ContinuousLinearMap.comp_smul] + change ε⁻¹ • (S * S ^ (r + 1)) ∈ Alg2 S + rw [← pow_succ'] + exact smul_mem_Alg2 _ (pow_mem_Alg2 S _) + +/-- `x²E_s = ½ (Z² + e xZ)`. -/ +theorem x2E_eq (t : K →L[ℂ] K) (e : ℂ) (s : Fin (d + 1)) + (hrel : ∀ j, sigma d j ^ 2 + e * sigma d j = if j = s then 2 else 0) : + x2E d t s = (1 / 2 : ℂ) • (Zop d t * Zop d t + e • (lift d t * Zop d t)) := by + rw [Z_sq_add_smul_xZ t e s hrel, smul_smul] + norm_num + +/-- Paper: "‖W± − x²E±‖ ≤ ½(6τ + 3τ)". -/ +theorem norm_W_sub_le (hd : 1 ≤ d) (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) (u : Fin (d + 1) → ℂ) + (hu0 : u 0 = -1) (hul : u (Fin.last d) = 1) (τ : ℝ) (hτ1 : τ ≤ 1) + (hu : ∀ j, j ≠ 0 → j ≠ Fin.last d → ‖u j‖ ≤ τ) (η : ℂ) (hη : ‖η‖ ≤ τ) + (S : Pw d K →L[ℂ] Pw d K) (hS : ‖S - lift d t‖ ≤ τ) (hS1 : ‖S‖ ≤ 1) + (e : ℂ) (he : ‖e‖ = 1) (s : Fin (d + 1)) + (hrel : ∀ j, sigma d j ^ 2 + e * sigma d j = if j = s then 2 else 0) : + ‖Wop (yOp t u η) S e - x2E d t s‖ ≤ (6 * τ + 3 * τ) / 2 := by + have hτ : 0 ≤ τ := (norm_nonneg _).trans hη + have hu1 : ∀ j, ‖u j‖ ≤ 1 := by + intro j + by_cases h0 : j = 0 + · rw [h0, hu0]; simp + by_cases hl : j = Fin.last d + · rw [hl, hul]; simp + exact (hu j h0 hl).trans hτ1 + rw [x2E_eq t e s hrel, Wop] + exact norm_W_sub_aux _ _ _ _ e he τ (norm_yOp_le_two t ht u hu1 η (hη.trans hτ1)) + (norm_Zop_le t ht) hS1 (norm_y_sub_Z_le hd t ht u hu0 hul τ hu η hη) hS + +/-- One sign of (c): for `A = p(t)t²` with `Σ(i+1)|c_i| ≤ L` (as for `A ∈ I₁(t)` under + `CoeffBound t L`), +`G_e := p(S) W_e` is in `S²ℂ[S]` and within `(9/2 + 1)Lτ` of `p(x) x² E_s` = "A in slot s" +(Paper: "By (1)"). -/ +theorem split_one_sign (hd : 1 ≤ d) (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) (u : Fin (d + 1) → ℂ) + (hu0 : u 0 = -1) (hul : u (Fin.last d) = 1) (τ : ℝ) (hτ1 : τ ≤ 1) + (hu : ∀ j, j ≠ 0 → j ≠ Fin.last d → ‖u j‖ ≤ τ) (η : ℂ) (hη : ‖η‖ ≤ τ) + (S : Pw d K →L[ℂ] Pw d K) (hS : ‖S - lift d t‖ ≤ τ) (hS1 : ‖S‖ ≤ 1) + {q : ℕ} (hq : 1 ≤ q) {ε : ℂ} (hε : ε ≠ 0) (hpow : S ^ q = ε • yOp t u η) + (e : ℂ) (he : ‖e‖ = 1) (s : Fin (d + 1)) + (hrel : ∀ j, sigma d j ^ 2 + e * sigma d j = if j = s then 2 else 0) + (L : ℝ) (p : ℂ[X]) (hp : l1 p + ell p ≤ L) (A : K →L[ℂ] K) (hA : A = aeval t (X ^ 2 * p)) : + aeval S p * Wop (yOp t u η) S e ∈ Alg2 S ∧ + ‖aeval S p * Wop (yOp t u η) S e - coord (fun j => if j = s then A else 0)‖ + ≤ (9 / 2 + 1) * L * τ := by + have hτ : 0 ≤ τ := (norm_nonneg _).trans hη + have hL : 0 ≤ L := (add_nonneg (l1_nonneg p) (ell_nonneg p)).trans hp + refine ⟨aeval_mul_mem_Alg2 p (Wop_mem hq hε hpow e), ?_⟩ + have hx : ‖lift d t‖ ≤ 1 := (norm_lift_le t).trans ht + -- C_e = p(x) x² E_s + have hC : coord (fun j => if j = s then A else 0) = aeval (lift d t) p * x2E d t s := by + rw [aeval_lift] + unfold lift x2E + rw [coord_mul] + refine coord_congr fun j => ?_ + split_ifs + · rw [hA, mul_comm (X ^ 2) p, map_mul, map_pow, aeval_X, pow_two] + · rw [mul_zero] + rw [hC] + -- ‖p(S)(W − x²E) + (p(S) − p(x)) x²E‖ ≤ L · 9τ/2 + Lτ · 1 + have h := norm_mul_sub_mul_le (aeval S p) (aeval (lift d t) p) (Wop (yOp t u η) S e) (x2E d t s) + (norm_aeval_le_of_coeff hp S hS1) (norm_aeval_sub_le_of_coeff hp S (lift d t) hS1 hx) + (norm_W_sub_le hd t ht u hu0 hul τ hτ1 hu η hη S hS hS1 e he s hrel) (norm_x2E_le t ht s) + have k3 : L * ‖S - lift d t‖ * 1 ≤ L * τ := by + rw [mul_one]; exact mul_le_mul_of_nonneg_left hS hL + linarith + +/-- **Lemma 3.2(c) (Split)** of the paper, for the operator `S` built in the proof of Lemma 3.2: + for `A₊, A₋ ∈ I₁(t)` there +is `G ∈ I₁(S)` with `‖G − (A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊)‖ ≤ 24 L τ`. Hypotheses: `D = d + 1 ≥ 2`, `‖t‖ ≤ +1`, +`u` as in Lemma 3.1 with bound `τ ≤ 1`, the shift weight `η` with `‖η‖ ≤ τ` (the paper takes `η = +τ`), +`‖S − x‖ ≤ τ`, `‖S‖ ≤ 1`, `S^q = ε y` with `ε ≠ 0`, `q ≥ 1`, and `CoeffBound t L` (i.e. `L = +L(t)`). -/ +theorem split (hd : 1 ≤ d) (t : K →L[ℂ] K) (ht : ‖t‖ ≤ 1) (u : Fin (d + 1) → ℂ) + (hu0 : u 0 = -1) (hul : u (Fin.last d) = 1) (τ : ℝ) (hτ1 : τ ≤ 1) + (hu : ∀ j, j ≠ 0 → j ≠ Fin.last d → ‖u j‖ ≤ τ) (η : ℂ) (hη : ‖η‖ ≤ τ) + (S : Pw d K →L[ℂ] Pw d K) (hS : ‖S - lift d t‖ ≤ τ) (hS1 : ‖S‖ ≤ 1) + {q : ℕ} (hq : 1 ≤ q) {ε : ℂ} (hε : ε ≠ 0) (hpow : S ^ q = ε • yOp t u η) + (L : ℝ) (hL : CoeffBound t L) (Ap Am : K →L[ℂ] K) (hAp : Ap ∈ I1 t) (hAm : Am ∈ I1 t) : + ∃ G ∈ I1 S, ‖G - sepOp d Ap Am‖ ≤ 24 * L * τ := by + have hτ : 0 ≤ τ := (norm_nonneg _).trans hη + have hL1 : 1 ≤ L := hL.1 + obtain ⟨pp, hpp, hppL⟩ := hL.2 Ap hAp + obtain ⟨pm, hpm, hpmL⟩ := hL.2 Am hAm + -- G₀ = G₊ + G₋, C = C₊ + C₋ + set Gp := aeval S pp * Wop (yOp t u η) S 1 + set Gm := aeval S pm * Wop (yOp t u η) S (-1) + set Cp : Pw d K →L[ℂ] Pw d K := coord (fun j => if j = Fin.last d then Ap else 0) + set Cm : Pw d K →L[ℂ] Pw d K := coord (fun j => if j = 0 then Am else 0) + set C := sepOp d Ap Am + obtain ⟨hGp, hGp'⟩ := split_one_sign hd t ht u hu0 hul τ hτ1 hu η hη S hS hS1 hq hε hpow 1 + (by simp) (Fin.last d) (sigma_rel_plus hd) L pp hppL Ap hpp + obtain ⟨hGm, hGm'⟩ := split_one_sign hd t ht u hu0 hul τ hτ1 hu η hη S hS hS1 hq hε hpow (-1) + (by simp) 0 (sigma_rel_minus hd) L pm hpmL Am hpm + have hC : C = Cp + Cm := by + simp only [C, Cp, Cm, sepOp, coord_add] + refine coord_congr fun j => ?_ + by_cases hl : j = Fin.last d + · subst hl; simp [(zero_ne_last hd).symm] + · simp [hl] + -- Paper: ‖G₀ − C‖ ≤ 2(9/2 + 1)Lτ ≤ β := 12Lτ + set β : ℝ := 12 * L * τ + have hβ : 0 ≤ β := by positivity + have hG0C : ‖(Gp + Gm) - C‖ ≤ β := by + have : Gp + Gm - C = (Gp - Cp) + (Gm - Cm) := by rw [hC]; abel + rw [this] + refine (norm_add_le (Gp - Cp) (Gm - Cm)).trans ?_ + change _ ≤ 12 * L * τ + nlinarith + -- Paper: "As ‖C‖ ≤ 1, G = G₀/(1+β) ∈ I₁(S) and ‖G − C‖ ≤ β‖G‖ + β ≤ 24Lτ." + have hC1 : ‖C‖ ≤ 1 := norm_sepOp_le Ap Am 1 hAp.2 hAm.2 + have hc0 : (0 : ℝ) < 1 + β := by positivity + set c : ℝ := (1 + β)⁻¹ + have hcβ : (c : ℂ) + (c : ℂ) * (β : ℂ) = 1 := by + rw [← Complex.ofReal_mul, ← Complex.ofReal_add] + have : c + c * β = 1 := by + rw [show c + c * β = c * (1 + β) by ring] + exact inv_mul_cancel₀ hc0.ne' + rw [this, Complex.ofReal_one] + refine ⟨(c : ℂ) • (Gp + Gm), ⟨smul_mem_Alg2 _ (add_mem_Alg2 hGp hGm), ?_⟩, ?_⟩ + · -- ‖G‖ ≤ (‖C‖ + β)/(1 + β) ≤ 1 + rw [norm_smul, Complex.norm_real, Real.norm_of_nonneg (by positivity), + inv_mul_le_iff₀ hc0, mul_one] + have := norm_le_norm_add_norm_sub' (Gp + Gm) C + linarith + · -- ‖G − C‖ = ‖G₀ − C − βC‖/(1 + β) ≤ 2β/(1 + β) ≤ 24Lτ + have hid : (c : ℂ) • (Gp + Gm) - C = (c : ℂ) • ((Gp + Gm - C) - (β : ℂ) • C) := by + have e1 : (c : ℂ) • ((Gp + Gm - C) - (β : ℂ) • C) = + (c : ℂ) • (Gp + Gm) - ((c : ℂ) • C + ((c : ℂ) * (β : ℂ)) • C) := by + rw [smul_sub, smul_sub, smul_smul] + abel + rw [e1] + congr 1 + refine ContinuousLinearMap.ext fun v => ?_ + rw [add_apply, smul_apply, smul_apply, ← add_smul, hcβ, one_smul] + rw [hid, norm_smul, Complex.norm_real, Real.norm_of_nonneg (by positivity), + inv_mul_le_iff₀ hc0] + refine (norm_sub_le _ _).trans ?_ + rw [norm_smul, Complex.norm_real, Real.norm_of_nonneg hβ] + have : β * ‖C‖ ≤ β := mul_le_of_le_one_right hβ hC1 + change _ ≤ (1 + 12 * L * τ) * (24 * L * τ) + nlinarith + +end Split + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Limit.lean b/LeanPool/HilbertInvariantSubspace/Limit.lean new file mode 100644 index 0000000000..8210632c9d --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Limit.lean @@ -0,0 +1,648 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Tower +public import Mathlib.Analysis.InnerProductSpace.l2Space +import Mathlib.Tactic.Abel + +/-! +# The spaces `K_m` inside `ℓ²`, the operator `T`, the step "Limit", and the Theorem +(paper, end of §4 and §5 "Proof of the theorem") + +Paper, §4–§5 (condensed): "The completion of ⋃ K_m is separable and infinite-dimensional; so it +is unitarily +equivalent to ℓ². We fix such an equivalence and regard K_0 ⊂ K_1 ⊂ ⋯ as subspaces of ℓ²; the +coordinates of ℓ² +play no role below. Let P_m be the orthogonal projection onto K_m; P_m ξ → ξ for all ξ ∈ ℓ². For +A ∈ B(K_n), +A ⊗ 1 extends A with the same norm; iterating, A extends to  ∈ B(ℓ²), and A ↦  is an isometric +unital +homomorphism. By (a), T = lim T̂_n exists in norm, ‖T‖ ≤ 1, ‖T − T̂_n‖ ≤ 2τ_{n+1}. (4) +*Proof of the theorem.* Let M be a closed subspace of ℓ² invariant under T, {0} ≠ M ≠ ℓ²; take +unit vectors +ξ ∈ M, ζ ⊥ M, so ⟨q(T)ξ, ζ⟩ = 0 for all polynomials q. Fix n ≥ 1 with a = P_{n−1}ξ, b = P_{n−1}ζ +within 1/8 of ξ, ζ. +Put µ = µ_n. For N ≥ n let v = P_N ξ, w = P_N ζ, δ_N = ‖ξ − v‖ + ‖ζ − w‖ → 0. [Fibers, Splitting] +*Limit.* With q = z²p_A,  = q(T̂_N), and (1), (4) give ‖q(T) − Â‖ ≤ 4L_N τ_{N+1} ≤ γ_{N+1}. As +‖Â‖ ≤ 1, +by (2) Re⟨q(T)ξ, ζ⟩ ≥ µ/2 − ρ_N − γ_{N+1} − δ_N ≥ µ/4 − δ_N > 0 for large N, a contradiction." + +Lean. The argument is written for any complete inner product space, the type variable `H` of +this file, with +compatible isometries `J n : K_n → H` of dense union, and `H` is then taken to be `ℓ²(ℕ, ℂ) = lp +(fun _ : ℕ => ℂ) 2`: +`exists_embed` gives isometries `J n : K_n → ℓ²` with `J (n+1) ∘ V n = J n` and dense union +(built from nested +orthonormal bases), so the `K_m` sit inside `ℓ²` directly and the paper's passage through the +completion of +⋃ K_m and a unitary equivalence is not needed; `P_m = J_m J_m*` (`proj`, `norm_sub_proj_le`, +`proj_tendsto`). `exists_limit_op` gives `T` with `‖T‖ ≤ 1` and `‖T(J_n b) − J_n(T_n b)‖ ≤ +2τ_{n+1}‖b‖` +— this is the paper's (4), `‖T − T̂_n‖ ≤ 2τ_{n+1}`, restricted to `K_n`, which is all the proof +uses; the +operators `Â` on `ℓ²` are not constructed (**form deviation**, see DEVIATIONS.md: instead of +`‖q(T) − Â‖ ≤ 4 L_N τ_{N+1}` the proof uses `‖q(T)(J_N v) − J_N(q(T_N) v)‖ ≤ 2(Σ +i|q_i|)τ_{N+1}‖v‖ ≤ 4L_Nτ_{N+1}‖v‖`, +`aeval_inter`, and `‖q(T)‖ ≤ ‖q(T_N)‖ + 4L_Nτ_{N+1}`, `aeval_norm`). `Tower.limit_step` is the +displayed +inequality in contrapositive form — from `⟨q(T)ξ, ζ⟩ = 0` for all `q` it concludes +`µ/4 ≤ 2δ_N`, i.e. `µ/2 − ρ_N − γ_{N+1} − 2δ_N ≤ 0`, with `2δ_N` where the paper has `δ_N` (the +paper uses +`‖Â‖ ≤ 1`; here `‖q(T)‖ ≤ 2` is used instead, since `Â` is not built) — and +`Tower.no_invariant_subspace` +is the Theorem for any tower (`δ_N → 0` gives the contradiction either way). +-/ + +@[expose] public section + +open Polynomial Module Filter Topology +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +/-- The Hilbert space `ℓ²(ℕ, ℂ)`. -/ +abbrev ℓ2 : Type := lp (fun _ : ℕ => ℂ) 2 + +/-! ### Embedding the spaces `K_n` into `ℓ²` -/ + +section Embed + +/-- `J n` embeds the spaces `K n` compatibly into a complete inner product space `H` (a type + variable; `ℓ²` in +`exists_embed` and in `Main.lean`), with dense union: the Lean form of the paper's "regard K_0 +⊂ K_1 ⊂ ⋯ as +subspaces of ℓ²", whose union is dense. -/ +structure IsEmbed {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℂ H] + {K : ℕ → Type} [∀ n, NormedAddCommGroup (K n)] [∀ n, InnerProductSpace ℂ (K n)] + (V : ∀ n, K n →ₗᵢ[ℂ] K (n + 1)) (J : ∀ n, K n →ₗᵢ[ℂ] H) : Prop where + comp : ∀ n (v : K n), J (n + 1) (V n v) = J n v + dense : ∀ (x : H) (δ : ℝ), 0 < δ → ∃ N, ∀ n, N ≤ n → ∃ v : K n, ‖x - J n v‖ ≤ δ + +/-- An orthonormal basis of `E`, pushed through an isometry `V : E → F`, extends to an +orthonormal basis of `F`. -/ +private theorem embed_extend {E F : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + [NormedAddCommGroup F] [InnerProductSpace ℂ F] [FiniteDimensional ℂ F] + (V : E →ₗᵢ[ℂ] F) (h : finrank ℂ E ≤ finrank ℂ F) + (b : OrthonormalBasis (Fin (finrank ℂ E)) ℂ E) : + ∃ b' : OrthonormalBasis (Fin (finrank ℂ F)) ℂ F, ∀ i, b' (Fin.castLE h i) = V (b i) := by + classical + let v : Fin (finrank ℂ F) → F := fun j => + if hj : j.val < finrank ℂ E then V (b ⟨j.val, hj⟩) else 0 + let s : Set (Fin (finrank ℂ F)) := {j | j.val < finrank ℂ E} + have hv : Orthonormal ℂ (s.domRestrict v) := by + rw [orthonormal_iff_ite] + rintro ⟨i, hi⟩ ⟨j, hj⟩ + have hi' : i.val < finrank ℂ E := hi + have hj' : j.val < finrank ℂ E := hj + have h1 : s.domRestrict v ⟨i, hi⟩ = V (b ⟨i.val, hi'⟩) := dite_eq_left hi' + have h2 : s.domRestrict v ⟨j, hj⟩ = V (b ⟨j.val, hj'⟩) := dite_eq_left hj' + rw [h1, h2, LinearIsometry.inner_map_map, orthonormal_iff_ite.mp b.orthonormal] + simp [Fin.ext_iff] + obtain ⟨b', hb'⟩ := hv.exists_orthonormalBasis_extension_of_card_eq (by simp) + refine ⟨b', fun i => ?_⟩ + have hi : (Fin.castLE h i).val < finrank ℂ E := i.isLt + rw [hb' _ hi] + exact dite_eq_left hi + +/-- The standard unit vectors of `ℓ²`. -/ +private def embed_e (i : ℕ) : lp (fun _ : ℕ => ℂ) 2 := lp.single 2 i (1 : ℂ) + +-- The following two proofs track proofs in Mathlib: that of `embed_e_orthonormal` tracks the +-- proof +-- of `HilbertBasis.orthonormal`, and that of `embed_single` tracks the `lp.single_smul` step in +-- the proof of `HilbertBasis.hasSum_repr_symm`, both in +-- Mathlib/Analysis/InnerProductSpace/l2Space.lean: +-- Copyright (c) 2022 Heather Macbeth. All rights reserved. +-- Released under Apache 2.0 license as described in the file LICENSE. +-- Authors: Heather Macbeth +private theorem embed_e_orthonormal : Orthonormal ℂ embed_e := by + rw [orthonormal_iff_ite] + intro i j + unfold embed_e + rw [lp.inner_single_left, lp.single_apply, Pi.single_apply] + split_ifs <;> simp + +private theorem embed_single (i : ℕ) (a : ℂ) : + (lp.single 2 i a : lp (fun _ : ℕ => ℂ) 2) = a • embed_e i := by + unfold embed_e + rw [← lp.single_smul, smul_eq_mul, mul_one] + +/-- The isometry sending the `i`-th vector of an orthonormal basis to the `i`-th unit vector. -/ +private theorem embed_iso {E : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E] {m : ℕ} + (b : OrthonormalBasis (Fin m) ℂ E) : + ∃ J : E →ₗᵢ[ℂ] lp (fun _ : ℕ => ℂ) 2, ∀ i, J (b i) = embed_e i.val := by + let f : E →ₗ[ℂ] lp (fun _ : ℕ => ℂ) 2 := b.toBasis.constr ℂ fun i => embed_e i.val + have hf : ∀ i, f (b.toBasis i) = embed_e i.val := fun i => b.toBasis.constr_basis ℂ _ i + have h1 : Orthonormal ℂ b.toBasis := by + rw [OrthonormalBasis.coe_toBasis]; exact b.orthonormal + have h2 : Orthonormal ℂ (f ∘ b.toBasis) := by + have : f ∘ b.toBasis = embed_e ∘ Fin.val := funext hf + rw [this] + exact embed_e_orthonormal.comp _ Fin.val_injective + exact ⟨f.isometryOfOrthonormal h1 h2, fun i => hf i⟩ + +/-- Paper, §4: "The completion of ⋃ K_m is separable and infinite-dimensional; so it is unitarily + equivalent to ℓ². +We fix such an equivalence and regard K_0 ⊂ K_1 ⊂ ⋯ as subspaces of ℓ²." Here, directly: +compatible isometries +`J n : K_n → ℓ²` with dense union, for any sequence of finite-dimensional spaces with isometries +`V n : K_n → K_{n+1}` of increasing dimension. -/ +theorem exists_embed (K : ℕ → Type) [∀ n, NormedAddCommGroup (K n)] + [∀ n, InnerProductSpace ℂ (K n)] [∀ n, FiniteDimensional ℂ (K n)] + (V : ∀ n, K n →ₗᵢ[ℂ] K (n + 1)) (hV : ∀ n, finrank ℂ (K n) < finrank ℂ (K (n + 1))) : + ∃ J : ∀ n, K n →ₗᵢ[ℂ] lp (fun _ : ℕ => ℂ) 2, IsEmbed V J := by + have hle : ∀ n, n ≤ finrank ℂ (K n) := fun n => + (strictMono_nat_of_lt_succ (f := fun n => finrank ℂ (K n)) hV).le_apply + choose nxt hnxt using fun n => embed_extend (V n) (hV n).le + let b : ∀ n, OrthonormalBasis (Fin (finrank ℂ (K n))) ℂ (K n) := fun n => + Nat.rec (motive := fun n => OrthonormalBasis (Fin (finrank ℂ (K n))) ℂ (K n)) + (stdOrthonormalBasis ℂ (K 0)) nxt n + have hb : ∀ n i, b (n + 1) (Fin.castLE (hV n).le i) = V n (b n i) := fun n i => + hnxt n (b n) i + choose J hJ using fun n => embed_iso (b n) + refine ⟨J, ?_, ?_⟩ + · intro n v + have : (J (n + 1)).toLinearMap ∘ₗ (V n).toLinearMap = (J n).toLinearMap := by + refine (b n).toBasis.ext fun i => ?_ + change J (n + 1) (V n (b n i)) = J n (b n i) + rw [← hb, hJ, hJ] + rfl + exact LinearMap.congr_fun this v + · intro x δ hδ + have hs := (lp.hasSum_single (p := 2) (by simp) x).tendsto_sum_nat + obtain ⟨N, hN⟩ := Metric.tendsto_atTop.mp hs δ hδ + refine ⟨N, fun n hn => ?_⟩ + have hmem : (∑ i ∈ Finset.range N, (lp.single 2 i (x i) : lp (fun _ : ℕ => ℂ) 2)) ∈ + LinearMap.range (J n).toLinearMap := by + refine Submodule.sum_mem _ fun i hi => ?_ + have hi' : i < finrank ℂ (K n) := (Finset.mem_range.mp hi).trans_le (hn.trans (hle n)) + rw [embed_single] + exact Submodule.smul_mem _ _ ⟨b n ⟨i, hi'⟩, hJ n ⟨i, hi'⟩⟩ + obtain ⟨v, hv⟩ := hmem + refine ⟨v, ?_⟩ + have hv' : J n v = _ := hv + rw [hv', ← dist_eq_norm, dist_comm] + exact (hN N le_rfl).le + + +end Embed + +/-! ### The projections `P_m = J_m J_m*` -/ + +section Proj + +variable {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + {E : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E] [CompleteSpace E] + +/-- `J*` for an isometry `J`. -/ +def adj (J : E →ₗᵢ[ℂ] H) : H →L[ℂ] E := ContinuousLinearMap.adjoint J.toContinuousLinearMap + +theorem adj_J (J : E →ₗᵢ[ℂ] H) (v : E) : adj J (J v) = v := by + apply ext_inner_right ℂ + intro w + rw [adj, ContinuousLinearMap.adjoint_inner_left] + exact J.inner_map_map v w + +theorem inner_adj (J : E →ₗᵢ[ℂ] H) (x : H) (w : E) : ⟪w, adj J x⟫_ℂ = ⟪J w, x⟫_ℂ := by + rw [adj, ContinuousLinearMap.adjoint_inner_right]; rfl + +theorem norm_adj_le (J : E →ₗᵢ[ℂ] H) (x : H) : ‖adj J x‖ ≤ ‖x‖ := by + have h1 : ‖adj J‖ ≤ 1 := by + rw [adj, LinearIsometryEquiv.norm_map] + exact J.norm_toContinuousLinearMap_le + simpa using (adj J).le_of_opNorm_le h1 x + +/-- Paper: `P_m`, the orthogonal projection onto `K_m ⊂ ℓ²`; here `J J*` for an isometry `J : E → + H`. -/ +def proj (J : E →ₗᵢ[ℂ] H) (x : H) : H := J (adj J x) + +/-- `x − P x` is orthogonal to the range of `J`. -/ +theorem inner_sub_proj (J : E →ₗᵢ[ℂ] H) (x : H) (u : E) : ⟪J u, x - proj J x⟫_ℂ = 0 := by + rw [proj, inner_sub_right, ← inner_adj, ← J.inner_map_map, sub_self] + +/-- Best approximation: `‖x − P x‖ ≤ ‖x − J u‖` for every `u`. -/ +theorem norm_sub_proj_le (J : E →ₗᵢ[ℂ] H) (x : H) (u : E) : ‖x - proj J x‖ ≤ ‖x - J u‖ := by + have h : x - J u = (x - proj J x) + J (adj J x - u) := by + rw [map_sub, proj]; abel + have horth : ⟪x - proj J x, J (adj J x - u)⟫_ℂ = 0 := by + rw [← inner_conj_symm, inner_sub_proj, map_zero] + have hp := norm_add_sq_eq_norm_sq_add_norm_sq_of_inner_eq_zero _ _ horth + rw [← h] at hp + nlinarith [sq_nonneg ‖J (adj J x - u)‖, norm_nonneg (x - J u), norm_nonneg (x - proj J x)] + +theorem norm_proj_eq (J : E →ₗᵢ[ℂ] H) (x : H) : ‖proj J x‖ = ‖adj J x‖ := J.norm_map _ + +theorem norm_proj_le (J : E →ₗᵢ[ℂ] H) (x : H) : ‖proj J x‖ ≤ ‖x‖ := by + rw [norm_proj_eq]; exact norm_adj_le J x + +end Proj + +/-! ### The limit operator -/ + +namespace Tower + +variable (𝔗 : Tower) {H : Type} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + +private theorem τ_tendsto : Tendsto (fun n => 𝔗.τ (n + 1)) atTop (𝓝 0) := by + have hle : ∀ n, 𝔗.τ (n + 1) ≤ (1 / 2) ^ (n + 1) := fun n => 𝔗.τ_le_pow (n + 1) + have hlim : Tendsto (fun n : ℕ => (1 / 2 : ℝ) ^ (n + 1)) atTop (𝓝 0) := by + have := (tendsto_pow_atTop_nhds_zero_of_lt_one (r := (1 / 2 : ℝ)) (by norm_num) + (by norm_num)).comp (tendsto_add_atTop_nat 1) + exact this + exact squeeze_zero (fun n => (𝔗.τ_pos _).le) hle hlim + +omit [CompleteSpace H] in +/-- A vector of level `n` seen at a higher level `m`, with the accumulated defect +`Σ_{n exact ⟨v, rfl, by simp⟩ + | succ m hm ih => + obtain ⟨w, hw, hb⟩ := ih + refine ⟨𝔗.V m w, by rw [hJ.comp, hw], ?_⟩ + have hnorm : ‖w‖ = ‖v‖ := by + rw [← (J m).norm_map w, hw, (J n).norm_map] + have h1 : ‖J (m + 1) (𝔗.T (m + 1) (𝔗.V m w)) - J m (𝔗.T m w)‖ ≤ 𝔗.τ (m + 1) * ‖v‖ := by + rw [← hJ.comp m (𝔗.T m w), ← map_sub, LinearIsometry.norm_map, ← hnorm] + exact 𝔗.inter m w + have h2 := norm_sub_le_norm_sub_add_norm_sub (J (m + 1) (𝔗.T (m + 1) (𝔗.V m w))) + (J m (𝔗.T m w)) (J n (𝔗.T n v)) + have h3 : 2 * 𝔗.τ (m + 1 + 1) * ‖v‖ ≤ 𝔗.τ (m + 1) * ‖v‖ := + mul_le_mul_of_nonneg_right (by linarith [𝔗.τ_half (m + 1)]) (norm_nonneg v) + linarith + +/-- The operator `J_n T_n J_n*` on `H`, i.e. `T_n` extended by zero (the paper's `T̂_n` instead + acts as +`T_n ⊗ 1 ⊗ ⋯ ⊗ 1` on each `K_m`, `m > n`; see the module docstring and DEVIATIONS.md, F1). -/ +private theorem exists_compress (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (n : ℕ) : + ∃ A : H →L[ℂ] H, (∀ x, ‖A x‖ ≤ ‖x‖) ∧ ∀ v, A (J n v) = J n (𝔗.T n v) := by + refine ⟨(J n).toContinuousLinearMap ∘L 𝔗.T n ∘L adj (J n), ?_, ?_⟩ + · intro x + have h3 := (𝔗.T n).le_of_opNorm_le (𝔗.norm_T_le_one n) (adj (J n) x) + have h2 := norm_adj_le (J n) x + simp only [ContinuousLinearMap.comp_apply, LinearIsometry.coe_toContinuousLinearMap, + LinearIsometry.norm_map] + linarith + · intro v + simp only [ContinuousLinearMap.comp_apply, LinearIsometry.coe_toContinuousLinearMap, adj_J] + +/-- Paper, §4 and (4): "T = lim T̂_n exists in norm and ‖T‖ ≤ 1, ‖T − T̂_n‖ ≤ 2τ_{n+1}" — here as + the strong limit +of the compressions `J_m T_m J_m*`, with `‖T‖ ≤ 1` and `‖T(J_n b) − J_n(T_n b)‖ ≤ 2τ_{n+1}‖b‖`. +-/ +theorem exists_limit_op (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) : + ∃ T : H →L[ℂ] H, ‖T‖ ≤ 1 ∧ + ∀ n (v : 𝔗.K n), ‖T (J n v) - J n (𝔗.T n v)‖ ≤ 2 * 𝔗.τ (n + 1) * ‖v‖ := by + choose A hA hAJ using 𝔗.exists_compress J + have key : ∀ n (v : 𝔗.K n) m, n ≤ m → + ‖A m (J n v) - J n (𝔗.T n v)‖ ≤ 2 * 𝔗.τ (n + 1) * ‖v‖ := by + intro n v m hm + obtain ⟨w, hw, hb⟩ := 𝔗.exists_up' J hJ n v m hm + rw [← hw, hAJ] + have : 0 ≤ 𝔗.τ (m + 1) * ‖v‖ := mul_nonneg (𝔗.τ_pos _).le (norm_nonneg v) + linarith + have hC : ∀ x, CauchySeq (fun m => A m x) := by + intro x + rw [Metric.cauchySeq_iff'] + intro ε hε + obtain ⟨N, hN⟩ := hJ.dense x (ε / 3) (by linarith) + have hs : Tendsto (fun n => 2 * 𝔗.τ (n + 1) * (‖x‖ + ε / 3)) atTop (𝓝 0) := by + simpa using (𝔗.τ_tendsto.const_mul 2).mul_const (‖x‖ + ε / 3) + obtain ⟨n, hn1, hn2⟩ := + ((hs.eventually (gt_mem_nhds (show (0 : ℝ) < ε / 3 by linarith))).and + (eventually_ge_atTop N)).exists + obtain ⟨v, hv⟩ := hN n hn2 + refine ⟨n, fun m hm => ?_⟩ + have hvn : ‖v‖ ≤ ‖x‖ + ε / 3 := by + rw [← (J n).norm_map v] + have := norm_sub_norm_le (J n v) x + rw [norm_sub_rev] at this + linarith + have h1 := key n v m hm + have h2 := hA m (x - J n v) + have h3 := hA n (x - J n v) + have h4 : 2 * 𝔗.τ (n + 1) * ‖v‖ ≤ 2 * 𝔗.τ (n + 1) * (‖x‖ + ε / 3) := + mul_le_mul_of_nonneg_left hvn (by linarith [𝔗.τ_pos (n + 1)]) + have h5 : A m x - A n x = + A m (x - J n v) + (A m (J n v) - J n (𝔗.T n v)) - A n (x - J n v) := by + rw [map_sub, map_sub, hAJ]; abel + rw [dist_eq_norm, h5] + have h6 := norm_sub_le (A m (x - J n v) + (A m (J n v) - J n (𝔗.T n v))) (A n (x - J n v)) + have h7 := norm_add_le (A m (x - J n v)) (A m (J n v) - J n (𝔗.T n v)) + linarith + choose f hf using fun x => cauchySeq_tendsto_of_complete (hC x) + let L : H →ₗ[ℂ] H := + { toFun := f + map_add' := fun x y => by + refine tendsto_nhds_unique (hf (x + y)) ?_ + simpa only [map_add] using (hf x).add (hf y) + map_smul' := fun a x => by + refine tendsto_nhds_unique (hf (a • x)) ?_ + simpa only [map_smul, RingHom.id_apply] using (hf x).const_smul a } + have hL : ∀ x, ‖L x‖ ≤ 1 * ‖x‖ := by + intro x + rw [one_mul] + exact le_of_tendsto' (hf x).norm (fun m => hA m x) + refine ⟨L.mkContinuous 1 hL, L.mkContinuous_norm_le zero_le_one hL, fun n v => ?_⟩ + refine le_of_tendsto ((hf (J n v)).sub_const (J n (𝔗.T n v))).norm ?_ + filter_upwards [eventually_ge_atTop n] with m hm using key n v m hm + +private theorem aeval_chain (p : ℂ[X]) (n m : ℕ) (hm : n ≤ m) : + ‖aeval (𝔗.T m) p‖ ≤ + ‖aeval (𝔗.T n) p‖ + 2 * (ell p * 𝔗.τ (n + 1)) - 2 * (ell p * 𝔗.τ (m + 1)) := by + induction m, hm using Nat.le_induction with + | base => linarith + | succ m hm ih => + have h1 := 𝔗.aeval_le m p + have h2 : ell p * 𝔗.τ (m + 1 + 1) ≤ ell p * (𝔗.τ (m + 1) / 2) := + mul_le_mul_of_nonneg_left (𝔗.τ_half (m + 1)) (ell_nonneg p) + linarith + +/-- What the Limit step uses about `T`: `‖q(T) − q(T̂_N)‖ ≤ (Σ i|q_i|)‖T − T̂_N‖ ≤ 2(Σ + i|q_i|)τ_{N+1}` +(from (1) and (4)) restricted to `K_N` (`aeval_inter`), and the norm bound `‖q(T)‖ ≤ ‖q(T_N)‖ + +2(Σ i|q_i|)τ_{N+1}` +(`aeval_norm`). -/ +structure IsLimit (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (T : H →L[ℂ] H) : Prop where + norm_le : ‖T‖ ≤ 1 + aeval_inter : ∀ n (p : ℂ[X]) (v : 𝔗.K n), + ‖aeval T p (J n v) - J n (aeval (𝔗.T n) p v)‖ ≤ 2 * (ell p * 𝔗.τ (n + 1)) * ‖v‖ + aeval_norm : ∀ n (p : ℂ[X]), ‖aeval T p‖ ≤ ‖aeval (𝔗.T n) p‖ + 2 * (ell p * 𝔗.τ (n + 1)) + +omit [CompleteSpace H] in +theorem isLimit_of_inter (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) + (T : H →L[ℂ] H) (hT : ‖T‖ ≤ 1) + (hi : ∀ n (v : 𝔗.K n), ‖T (J n v) - J n (𝔗.T n v)‖ ≤ 2 * 𝔗.τ (n + 1) * ‖v‖) : + 𝔗.IsLimit J T := by + have hinter : ∀ n (p : ℂ[X]) (v : 𝔗.K n), + ‖aeval T p (J n v) - J n (aeval (𝔗.T n) p v)‖ ≤ 2 * (ell p * 𝔗.τ (n + 1)) * ‖v‖ := by + intro n p v + have h1 : ‖T ∘L (J n).toContinuousLinearMap - (J n).toContinuousLinearMap ∘L 𝔗.T n‖ ≤ + 2 * 𝔗.τ (n + 1) := + ContinuousLinearMap.opNorm_le_bound _ (by linarith [𝔗.τ_pos (n + 1)]) (fun w => hi n w) + have h2 := norm_aeval_intertwine T (𝔗.T n) (J n).toContinuousLinearMap hT + (𝔗.norm_T_le_one n) p + have h3 := h2.trans (mul_le_mul_of_nonneg_left h1 (ell_nonneg p)) + have h4 := ContinuousLinearMap.le_of_opNorm_le _ h3 v + calc _ ≤ ell p * (2 * 𝔗.τ (n + 1)) * ‖v‖ := h4 + _ = _ := by ring + refine ⟨hT, hinter, fun n p => ?_⟩ + set C := ‖aeval (𝔗.T n) p‖ + 2 * (ell p * 𝔗.τ (n + 1)) with hCdef + have hC : 0 ≤ C := by + have := mul_nonneg (ell_nonneg p) (𝔗.τ_pos (n + 1)).le + have := norm_nonneg (aeval (𝔗.T n) p) + linarith + have hlev : ∀ m, n ≤ m → ∀ v : 𝔗.K m, ‖aeval T p (J m v)‖ ≤ C * ‖J m v‖ := by + intro m hm v + have h1 := hinter m p v + have h2 := ContinuousLinearMap.le_of_opNorm_le _ (𝔗.aeval_chain p n m hm) v + have h3 := norm_sub_norm_le (aeval T p (J m v)) (J m (aeval (𝔗.T m) p v)) + rw [LinearIsometry.norm_map] at h3 ⊢ + rw [← hCdef] at h2 + linarith + refine ContinuousLinearMap.opNorm_le_bound _ hC (fun x => ?_) + have hclosed : IsClosed {x : H | ‖aeval T p x‖ ≤ C * ‖x‖} := + isClosed_le (aeval T p).continuous.norm (continuous_const.mul continuous_norm) + have hx : x ∈ closure {x : H | ‖aeval T p x‖ ≤ C * ‖x‖} := by + rw [Metric.mem_closure_iff] + intro ε hε + obtain ⟨N, hN⟩ := hJ.dense x (ε / 2) (by linarith) + obtain ⟨v, hv⟩ := hN (max N n) (le_max_left _ _) + refine ⟨J _ v, hlev _ (le_max_right _ _) v, ?_⟩ + rw [dist_eq_norm] + linarith + rwa [hclosed.closure_eq] at hx + +theorem exists_limit (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) : + ∃ T : H →L[ℂ] H, 𝔗.IsLimit J T := by + obtain ⟨T, hT, hi⟩ := 𝔗.exists_limit_op J hJ + exact ⟨T, 𝔗.isLimit_of_inter J hJ T hT hi⟩ + +/-! ### The Limit step and the Theorem -/ + +omit [CompleteSpace H] in +theorem J_up (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) (n k : ℕ) (v : 𝔗.K n) : + J (n + k) (𝔗.up n k v) = J n v := by + induction k with + | zero => rfl + | succ k ih => rw [up_succ]; exact (hJ.comp (n + k) _).trans ih + +/-- `P_N a = a` for `a ∈ K_n ⊂ K_N`: `J_N* (J_n a) = a` seen in `K_N`. -/ +theorem adj_J_up (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) (n k : ℕ) (v : 𝔗.K n) : + adj (J (n + k)) (J n v) = 𝔗.up n k v := by + rw [← 𝔗.J_up J hJ n k v, adj_J] + +/-- Paper: "δ_N → 0": `‖x − P_N x‖ → 0`. -/ +theorem proj_tendsto (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) (x : H) : + Tendsto (fun N => ‖x - proj (J N) x‖) atTop (𝓝 0) := by + rw [Metric.tendsto_atTop] + intro ε hε + obtain ⟨N, hN⟩ := hJ.dense x (ε / 2) (by linarith) + refine ⟨N, fun n hn => ?_⟩ + obtain ⟨v, hv⟩ := hN n hn + rw [dist_zero_right, Real.norm_of_nonneg (norm_nonneg _)] + exact lt_of_le_of_lt ((norm_sub_proj_le (J n) x v).trans hv) (by linarith) + +omit [CompleteSpace H] in +private theorem aeval_mem (T : H →L[ℂ] H) (M : Submodule ℂ H) (hinv : ∀ x ∈ M, T x ∈ M) + (p : ℂ[X]) (x : H) (hx : x ∈ M) : aeval T p x ∈ M := by + have hpow : ∀ j : ℕ, (T ^ j) x ∈ M := by + intro j + induction j with + | zero => exact hx + | succ j ih => + rw [pow_succ'] + exact hinv _ ih + induction p using Polynomial.induction_on' with + | add p q hp hq => + rw [map_add] + exact M.add_mem hp hq + | monomial j a => + rw [aeval_monomial, Algebra.algebraMap_eq_smul_one, smul_mul_assoc, one_mul] + exact M.smul_mem a (hpow j) + +omit [CompleteSpace H] in +private theorem exists_unit (M : Submodule ℂ H) (h : M ≠ ⊥) : ∃ x ∈ M, ‖x‖ = 1 := by + obtain ⟨x, hx, hx0⟩ := Submodule.exists_mem_ne_zero_of_ne_bot h + have hpos : 0 < ‖x‖ := norm_pos_iff.mpr hx0 + refine ⟨((‖x‖⁻¹ : ℝ) : ℂ) • x, M.smul_mem _ hx, ?_⟩ + rw [norm_smul, Complex.norm_real, Real.norm_of_nonneg (inv_pos.mpr hpos).le, + inv_mul_cancel₀ hpos.ne'] + +/-- **Limit step** (paper), at base level `b` (the paper's `n − 1`) and height `k` (`N = b + 1 + + k`): if +`⟨q(T)ξ, ζ⟩ = 0` for all `q`, `‖ξ‖ = ‖ζ‖ = 1`, and `P_b ξ, P_b ζ` are within `1/8` of `ξ, ζ`, +then +`µ_{b+1}/4 ≤ 2 δ_N` where `δ_N = ‖ξ − P_Nξ‖ + ‖ζ − P_Nζ‖`. In the proof, `a = P_bξ`, `b = P_bζ` +are +`adj (J b) ξ`, `adj (J b) ζ` seen in `K_b`, and `v = P_Nξ`, `w = P_Nζ` are `adj (J N) ξ`, `adj (J +N) ζ` in `K_N`. -/ +theorem limit_step (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) (T : H →L[ℂ] H) + (hT : 𝔗.IsLimit J T) (ξ ζ : H) (hξ : ‖ξ‖ = 1) (hζ : ‖ζ‖ = 1) + (horth : ∀ q : ℂ[X], ⟪ζ, aeval T q ξ⟫_ℂ = 0) (b : ℕ) + (hb1 : ‖ξ - proj (J b) ξ‖ ≤ 1 / 8) (hb2 : ‖ζ - proj (J b) ζ‖ ≤ 1 / 8) (k : ℕ) : + 𝔗.μ (b + 1) / 4 ≤ + 2 * (‖ξ - proj (J (b + 1 + k)) ξ‖ + ‖ζ - proj (J (b + 1 + k)) ζ‖) := by + -- a = P_b ξ, b = P_b ζ : 7/8 ≤ ‖a‖ ≤ 1 + have ha1 : ‖adj (J b) ξ‖ ≤ 1 := (norm_adj_le (J b) ξ).trans hξ.le + have hb1' : ‖adj (J b) ζ‖ ≤ 1 := (norm_adj_le (J b) ζ).trans hζ.le + have ha2 : 7 / 8 ≤ ‖adj (J b) ξ‖ := by + have := norm_sub_norm_le ξ (ξ - proj (J b) ξ) + rw [sub_sub_cancel, norm_proj_eq, hξ] at this + linarith + have hb2' : 7 / 8 ≤ ‖adj (J b) ζ‖ := by + have := norm_sub_norm_le ζ (ζ - proj (J b) ζ) + rw [sub_sub_cancel, norm_proj_eq, hζ] at this + linarith + -- v = P_N ξ, w = P_N ζ : ‖v‖, ‖w‖ ≤ 1 + have hv1 : ‖adj (J (b + 1 + k)) ξ‖ ≤ 1 := (norm_adj_le _ ξ).trans hξ.le + have hw1 : ‖adj (J (b + 1 + k)) ζ‖ ≤ 1 := (norm_adj_le _ ζ).trans hζ.le + -- ‖v − a‖ ≤ 1/8 in K_N: v − a = P_N (ξ − P_b ξ) + have hup : ∀ x : H, adj (J (b + 1 + k)) (proj (J b) x) = + 𝔗.up (b + 1) k (𝔗.V b (adj (J b) x)) := by + intro x + rw [proj, ← hJ.comp b, 𝔗.adj_J_up J hJ (b + 1) k] + have hva : ‖adj (J (b + 1 + k)) ξ - 𝔗.up (b + 1) k (𝔗.V b (adj (J b) ξ))‖ ≤ 1 / 8 := by + rw [← hup, ← map_sub] + exact (norm_adj_le _ _).trans hb1 + have hwb : ‖adj (J (b + 1 + k)) ζ - 𝔗.up (b + 1) k (𝔗.V b (adj (J b) ζ))‖ ≤ 1 / 8 := by + rw [← hup, ← map_sub] + exact (norm_adj_le _ _).trans hb2 + -- Fibers: the family A_s and C with Re⟨Cv, w⟩ ≥ µ/2 + obtain ⟨A, hA, hC⟩ := 𝔗.fibers b k _ _ ha1 ha2 hb1' hb2' _ _ hva hwb + -- Splitting: A' ∈ I₁(T_N) with ‖A' − C‖ ≤ ρ_N + obtain ⟨A', hA', hAC⟩ := 𝔗.splitting (b + 1) k A hA + -- A' = q(T_N), q = z² p, Σ(i+1)|p_i| ≤ L_N + obtain ⟨p, hp, hpL⟩ := (Lconst_spec (𝔗.T (b + 1 + k))).2 A' hA' + have hellq : ell (X ^ 2 * p) ≤ 2 * Lconst (𝔗.T (b + 1 + k)) := + (ell_X2_mul_le p).trans (by linarith) + -- Paper, Limit: "(1), (4) give ‖q(T) − Â‖ ≤ 4 L_N τ_{N+1} ≤ γ_{N+1}" (here on K_N) + have hγ : 2 * (ell (X ^ 2 * p) * 𝔗.τ (b + 1 + k + 1)) ≤ 𝔗.gam (b + 1 + k + 1) := by + rw [gam_succ] + have h1 := mul_le_mul_of_nonneg_right hellq (𝔗.τ_pos (b + 1 + k + 1)).le + have h2 : 0 ≤ Lconst (𝔗.T (b + 1 + k)) * 𝔗.τ (b + 1 + k + 1) := + mul_nonneg (by linarith [one_le_Lconst (𝔗.T (b + 1 + k))]) (𝔗.τ_pos _).le + linarith + have hγ1 := 𝔗.gam_le (b + 1 + k) + -- ‖q(T)‖ ≤ ‖Â‖ + γ_{N+1} ≤ 2 + have hqT : ‖aeval T (X ^ 2 * p)‖ ≤ 2 := by + have h1 := hT.aeval_norm (b + 1 + k) (X ^ 2 * p) + rw [← hp] at h1 + linarith [hA'.2] + have hinter := hT.aeval_inter (b + 1 + k) (X ^ 2 * p) (adj (J (b + 1 + k)) ξ) + rw [← hp] at hinter + -- ⟨q(T)ξ, ζ⟩ = ⟨q(T)ξ, ζ − w⟩ + ⟨q(T)(ξ − v), w⟩ + ⟨(q(T) − Â)v, w⟩ + ⟨(A' − C)v, w⟩ + ⟨Cv, w⟩ + have hid : ⟪ζ, aeval T (X ^ 2 * p) ξ⟫_ℂ = + ⟪ζ - J (b + 1 + k) (adj (J (b + 1 + k)) ζ), aeval T (X ^ 2 * p) ξ⟫_ℂ + + ⟪J (b + 1 + k) (adj (J (b + 1 + k)) ζ), + aeval T (X ^ 2 * p) (ξ - J (b + 1 + k) (adj (J (b + 1 + k)) ξ))⟫_ℂ + + ⟪J (b + 1 + k) (adj (J (b + 1 + k)) ζ), + aeval T (X ^ 2 * p) (J (b + 1 + k) (adj (J (b + 1 + k)) ξ)) - + J (b + 1 + k) (A' (adj (J (b + 1 + k)) ξ))⟫_ℂ + + ⟪adj (J (b + 1 + k)) ζ, (A' - 𝔗.Cop (b + 1) k A) (adj (J (b + 1 + k)) ξ)⟫_ℂ + + ⟪adj (J (b + 1 + k)) ζ, 𝔗.Cop (b + 1) k A (adj (J (b + 1 + k)) ξ)⟫_ℂ := by + rw [sub_apply, inner_sub_right (𝕜 := ℂ) (adj (J (b + 1 + k)) ζ), + ← (J (b + 1 + k)).inner_map_map (adj (J (b + 1 + k)) ζ) (A' _)] + simp only [inner_sub_left, inner_sub_right, map_sub] + abel + -- the four error terms + have e1 : ‖⟪ζ - J (b + 1 + k) (adj (J (b + 1 + k)) ζ), aeval T (X ^ 2 * p) ξ⟫_ℂ‖ ≤ + ‖ζ - proj (J (b + 1 + k)) ζ‖ * 2 := by + refine (norm_inner_le_norm _ _).trans (mul_le_mul_of_nonneg_left ?_ (norm_nonneg _)) + have := (aeval T (X ^ 2 * p)).le_of_opNorm_le hqT ξ + rwa [hξ, mul_one] at this + have e2 : ‖⟪J (b + 1 + k) (adj (J (b + 1 + k)) ζ), + aeval T (X ^ 2 * p) (ξ - J (b + 1 + k) (adj (J (b + 1 + k)) ξ))⟫_ℂ‖ ≤ + 1 * (2 * ‖ξ - proj (J (b + 1 + k)) ξ‖) := by + refine (norm_inner_le_norm _ _).trans (mul_le_mul ?_ ?_ (norm_nonneg _) zero_le_one) + · rw [(J _).norm_map]; exact hw1 + · exact (aeval T (X ^ 2 * p)).le_of_opNorm_le hqT _ + have e3 : ‖⟪J (b + 1 + k) (adj (J (b + 1 + k)) ζ), + aeval T (X ^ 2 * p) (J (b + 1 + k) (adj (J (b + 1 + k)) ξ)) - + J (b + 1 + k) (A' (adj (J (b + 1 + k)) ξ))⟫_ℂ‖ ≤ 1 * (𝔗.gam (b + 1 + k + 1) * 1) := by + refine (norm_inner_le_norm _ _).trans (mul_le_mul ?_ ?_ (norm_nonneg _) zero_le_one) + · rw [(J _).norm_map]; exact hw1 + · refine hinter.trans ?_ + exact mul_le_mul hγ hv1 (norm_nonneg _) (𝔗.gam_nonneg _) + have e4 : ‖⟪adj (J (b + 1 + k)) ζ, (A' - 𝔗.Cop (b + 1) k A) (adj (J (b + 1 + k)) ξ)⟫_ℂ‖ ≤ + 1 * (𝔗.rho (b + 1) k * 1) := by + refine (norm_inner_le_norm _ _).trans (mul_le_mul hw1 ?_ (norm_nonneg _) zero_le_one) + exact ((A' - 𝔗.Cop (b + 1) k A).le_opNorm _).trans + (mul_le_mul hAC hv1 (norm_nonneg _) ((norm_nonneg _).trans hAC)) + -- ρ_N + γ_{N+1} = Σ_{b+1 < m ≤ N+1} γ_m ≤ µ_{b+1}/4 + have hρ : 𝔗.rho (b + 1) k + 𝔗.gam (b + 1 + k + 1) ≤ 𝔗.μ (b + 1) / 4 := by + have h := 𝔗.sum_gam_le (b + 1) (k + 1) + rw [Finset.sum_range_succ, show b + 1 + 1 + k = b + 1 + k + 1 by omega] at h + rw [rho] + have bound : (1 / 4 : ℝ) - (1 / 2) ^ (k + 1 + 2) ≤ 1 / 4 := + sub_le_self _ (by positivity) + exact h.trans (by + simpa only [div_eq_mul_inv, one_mul] using + mul_le_mul_of_nonneg_left bound (𝔗.μ_pos (b + 1)).le) + -- combine: 0 = Re⟨q(T)ξ, ζ⟩ ≥ µ/2 − ρ_N − γ_{N+1} − 2δ_N + have h0 := horth (X ^ 2 * p) + rw [hid] at h0 + have hre := congrArg Complex.re h0 + rw [Complex.zero_re, Complex.add_re, Complex.add_re, Complex.add_re, Complex.add_re] at hre + have r1 := Complex.abs_re_le_norm + ⟪ζ - J (b + 1 + k) (adj (J (b + 1 + k)) ζ), aeval T (X ^ 2 * p) ξ⟫_ℂ + have r2 := Complex.abs_re_le_norm ⟪J (b + 1 + k) (adj (J (b + 1 + k)) ζ), + aeval T (X ^ 2 * p) (ξ - J (b + 1 + k) (adj (J (b + 1 + k)) ξ))⟫_ℂ + have r3 := Complex.abs_re_le_norm ⟪J (b + 1 + k) (adj (J (b + 1 + k)) ζ), + aeval T (X ^ 2 * p) (J (b + 1 + k) (adj (J (b + 1 + k)) ξ)) - + J (b + 1 + k) (A' (adj (J (b + 1 + k)) ξ))⟫_ℂ + have r4 := Complex.abs_re_le_norm + ⟪adj (J (b + 1 + k)) ζ, (A' - 𝔗.Cop (b + 1) k A) (adj (J (b + 1 + k)) ξ)⟫_ℂ + rw [abs_le] at r1 r2 r3 r4 + linarith [r1.1, r2.1, r3.1, r4.1] + +/-- **The Theorem, for any tower**: the limit operator `T` on `H` has no closed invariant + subspace +other than `{0}` and `H` (with `H = ℓ²` this is Theorem 1.1, `Main.lean`). -/ +theorem no_invariant_subspace (J : ∀ n, 𝔗.K n →ₗᵢ[ℂ] H) (hJ : IsEmbed 𝔗.V J) (T : H →L[ℂ] H) + (hT : 𝔗.IsLimit J T) (M : Submodule ℂ H) (hM : IsClosed (M : Set H)) + (hinv : ∀ x ∈ M, T x ∈ M) : M = ⊥ ∨ M = ⊤ := by + -- "Let M be a closed subspace of ℓ² invariant under T, {0} ≠ M ≠ ℓ²; take unit vectors ξ ∈ M, + -- ζ ⊥ M" + by_contra hcon + rw [not_or] at hcon + obtain ⟨hbot, htop⟩ := hcon + have : CompleteSpace M := hM.completeSpace_coe + have horth : Mᗮ ≠ ⊥ := fun h => htop (Submodule.orthogonal_eq_bot_iff.mp h) + obtain ⟨ξ, hξM, hξ⟩ := exists_unit M hbot + obtain ⟨ζ, hζM, hζ⟩ := exists_unit Mᗮ horth + -- "then ⟨q(T)ξ, ζ⟩ = 0 for all polynomials q" + have hq : ∀ q : ℂ[X], ⟪ζ, aeval T q ξ⟫_ℂ = 0 := fun q => + Submodule.inner_left_of_mem_orthogonal (aeval_mem T M hinv q ξ hξM) hζM + -- "Fix n ≥ 1 with a = P_{n−1}ξ, b = P_{n−1}ζ within 1/8 of ξ, ζ" + have h1 := 𝔗.proj_tendsto J hJ ξ + have h2 := 𝔗.proj_tendsto J hJ ζ + obtain ⟨b, hb⟩ := ((h1.eventually (gt_mem_nhds (by norm_num : (0:ℝ) < 1 / 8))).and + (h2.eventually (gt_mem_nhds (by norm_num : (0:ℝ) < 1 / 8)))).exists + -- "≥ µ/4 − δ_N > 0 for large N, a contradiction" + have hμ := 𝔗.μ_pos (b + 1) + have hshift : Tendsto (fun k : ℕ => b + 1 + k) atTop atTop := + Filter.tendsto_atTop_atTop.mpr fun n => ⟨n, fun k hk => by omega⟩ + have h3 : Tendsto (fun k => 2 * (‖ξ - proj (J (b + 1 + k)) ξ‖ + ‖ζ - proj (J (b + 1 + k)) ζ‖)) + atTop (𝓝 0) := by + have := ((h1.comp hshift).add (h2.comp hshift)).const_mul 2 + simpa [Function.comp_def] using this + have h4 := ge_of_tendsto' h3 fun k => 𝔗.limit_step J hJ T hT ξ ζ hξ hζ hq b hb.1.le hb.2.le k + linarith + +end Tower + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Main.lean b/LeanPool/HilbertInvariantSubspace/Main.lean new file mode 100644 index 0000000000..4f65870431 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Main.lean @@ -0,0 +1,95 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Construction +public import LeanPool.HilbertInvariantSubspace.Limit + +/-! +# Theorem 1.1 of the paper + +Paper: "**Theorem 1.1.** There is a bounded operator T on ℓ² whose only closed invariant +subspaces are +{0} and ℓ²." + +Lean: `HilbertInvariantSubspace.exists_no_invariant_subspace` is this statement, with `ℓ² = ℓ²(ℕ, +ℂ)` +(`lp (fun _ : ℕ => ℂ) 2`); `HilbertInvariantSubspace.exists_on_separable_hilbert_space` restates +it existentially — there is a separable +infinite-dimensional complex Hilbert space `H` carrying such an operator — the form that answers +the +invariant subspace problem as usually posed (`ℓ²` is such a space: `ℓ2_separable`, +`ℓ2_not_finiteDimensional`, and Mathlib's +instances for completeness and the inner product). +-/ + +@[expose] public section + +open Polynomial Module +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +/-- Theorem 1.1 of the paper, on `ℓ²(ℕ, ℂ)`. -/ +theorem exists_no_invariant_subspace : + ∃ T : ℓ2 →L[ℂ] ℓ2, ∀ M : Submodule ℂ ℓ2, + IsClosed (M : Set ℓ2) → (∀ x ∈ M, T x ∈ M) → M = ⊥ ∨ M = ⊤ := by + obtain ⟨J, hJ⟩ := exists_embed tower.K tower.V tower.rank_lt + obtain ⟨T, hT⟩ := tower.exists_limit J hJ + exact ⟨T, fun M hM hinv => tower.no_invariant_subspace J hJ T hT M hM hinv⟩ + +-- The density step `hd` in the following proof of `ℓ2_separable` tracks the proof of +-- `HilbertBasis.dense_span` and the `lp.hasSum_single` and `lp.single_smul` steps in that of +-- `HilbertBasis.hasSum_repr_symm`, and the orthonormality step in `ℓ2_not_finiteDimensional` +-- tracks +-- the proof of `HilbertBasis.orthonormal`, all in Mathlib, +-- Mathlib/Analysis/InnerProductSpace/l2Space.lean: +-- Copyright (c) 2022 Heather Macbeth. All rights reserved. +-- Released under Apache 2.0 license as described in the file LICENSE. +-- Authors: Heather Macbeth +theorem ℓ2_separable : TopologicalSpace.SeparableSpace ℓ2 := by + have hd : Dense + ((Submodule.span ℂ (Set.range fun i : ℕ => (lp.single 2 i (1 : ℂ) : ℓ2))) : Set ℓ2) := by + intro x + have hs := (lp.hasSum_single (p := 2) (by simp) x).tendsto_sum_nat + refine mem_closure_of_tendsto hs (Filter.Eventually.of_forall fun N => ?_) + refine Submodule.sum_mem _ fun i _ => ?_ + have : (lp.single 2 i (x i) : ℓ2) = (x i) • lp.single 2 i (1 : ℂ) := by + rw [← lp.single_smul, smul_eq_mul, mul_one] + rw [this] + exact Submodule.smul_mem _ _ (Submodule.subset_span ⟨i, rfl⟩) + have h := + (Set.countable_range fun i : ℕ => (lp.single 2 i (1 : ℂ) : ℓ2)).isSeparable.span (R := ℂ) + rw [← TopologicalSpace.isSeparable_univ_iff, ← hd.closure_eq] + exact h.closure + +theorem ℓ2_not_finiteDimensional : ¬ FiniteDimensional ℂ ℓ2 := by + intro h + have ho : Orthonormal ℂ (fun i : ℕ => (lp.single 2 i (1 : ℂ) : ℓ2)) := by + rw [orthonormal_iff_ite] + intro i j + rw [lp.inner_single_left, lp.single_apply, Pi.single_apply] + split_ifs <;> simp + exact Module.Finite.not_linearIndependent_of_infinite _ ho.linearIndependent + +/-- Theorem 1.1 in existential form: there is a bounded operator `T` on a separable +infinite-dimensional complex Hilbert space `H` whose only closed invariant subspaces are `{0}` +and `H`. -/ +theorem exists_on_separable_hilbert_space : + ∃ (H : Type) (_ : NormedAddCommGroup H) (_ : InnerProductSpace ℂ H) (_ : CompleteSpace H), + TopologicalSpace.SeparableSpace H ∧ ¬ FiniteDimensional ℂ H ∧ + ∃ T : H →L[ℂ] H, ∀ M : Submodule ℂ H, + IsClosed (M : Set H) → (∀ x ∈ M, T x ∈ M) → M = ⊥ ∨ M = ⊤ := + ⟨ℓ2, inferInstance, inferInstance, inferInstance, ℓ2_separable, ℓ2_not_finiteDimensional, + exists_no_invariant_subspace⟩ + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Slots.lean b/LeanPool/HilbertInvariantSubspace/Slots.lean new file mode 100644 index 0000000000..83902622bb --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Slots.lean @@ -0,0 +1,375 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Blocks +public import Mathlib.Analysis.InnerProductSpace.PiL2 + +/-! +# Notation on `K^D` (paper, §2, last paragraph) + +Paper, §2 (condensed): "On K^D write v = (v_0, …, v_{D−1}), [b]_j for b in slot j, V⁻v = √2 v_0, +V⁺v = √2 v_{D−1}, +and E₋, E₊ for the projections onto the first and last slot." + +Lean: `Pw d K` is the Hilbert sum of `D = d + 1` copies of `K` (`PiLp 2`), slots indexed by +`Fin (d + 1)`, slot `0` first and `Fin.last d` last. `prj j` is `v ↦ v_j`, `sing j` is `b ↦ +[b]_j`, +`coord A` is the block-diagonal operator `(A_j)_j`, `lift d A = A ⊗ 1`, `shift` is `[b]_j ↦ +[b]_{j+1}`, +`Vminus = √2 • prj 0`, `Vplus = √2 • prj (Fin.last d)`, `Eminus`/`Eplus` the slot projections as +operators on `Pw d K`, `Vmap b = ([b]_0 + [b]_{D−1})/√2` (the embedding `K ⊂ K^D` of the +Construction), and `sepOp d Ap Am = Am ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ Ap` (the operator `A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊` of +Lemma 3.2(c); mind the argument order: plus first). +-/ + +@[expose] public section + +open Polynomial Module +open scoped InnerProductSpace + +noncomputable section + +namespace HilbertInvariantSubspace + +/-- The Hilbert sum of `d + 1` copies of `K`: the paper's `K^D` with `D = d + 1`. -/ +abbrev Pw (d : ℕ) (K : Type) : Type := PiLp 2 (fun _ : Fin (d + 1) => K) + +section Next + +variable {K : Type} [NormedAddCommGroup K] [InnerProductSpace ℂ K] {d : ℕ} + +/-- `v ↦ v_j`. -/ +def prj (t : Fin (d + 1)) : Pw d K →L[ℂ] K := PiLp.proj 2 (fun _ : Fin (d + 1) => K) t + +/-- An operator into `Pw d K` from its coordinates. -/ +def mkPi {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] (B : Fin (d + 1) → E →L[ℂ] K) : + E →L[ℂ] Pw d K := + ((PiLp.continuousLinearEquiv 2 ℂ (fun _ : Fin (d + 1) => K)).symm : + (Fin (d + 1) → K) →L[ℂ] Pw d K) ∘L ContinuousLinearMap.pi B + +/-- `b ↦ [b]_j`: `b` in slot `j`. -/ +def sing (t : Fin (d + 1)) : K →L[ℂ] Pw d K := + mkPi (fun s => if s = t then ContinuousLinearMap.id ℂ K else 0) + +/-- The block-diagonal operator `(coord A v)_j = A_j v_j`. -/ +def coord (A : Fin (d + 1) → K →L[ℂ] K) : Pw d K →L[ℂ] Pw d K := + mkPi (fun t => A t ∘L prj t) + +/-- `A ⊗ 1`: `A` in every slot. -/ +def lift (d : ℕ) (A : K →L[ℂ] K) : Pw d K →L[ℂ] Pw d K := coord (fun _ => A) + +/-- The slot shift `(shift v)_0 = 0`, `(shift v)_{j+1} = v_j` (so `[b]_j ↦ [b]_{j+1}`, +`[b]_{D-1} ↦ 0`). -/ +def shift (d : ℕ) (K : Type) [NormedAddCommGroup K] [InnerProductSpace ℂ K] : + Pw d K →L[ℂ] Pw d K := + mkPi (fun t => Fin.cases 0 (fun s : Fin d => prj s.castSucc) t) + +/-- The scalar `1/√2` as a complex number. -/ +def isq2 : ℂ := (((Real.sqrt 2)⁻¹ : ℝ) : ℂ) + +/-- The scalar `√2` as a complex number. -/ +def sq2 : ℂ := ((Real.sqrt 2 : ℝ) : ℂ) + +/-- Paper: `V⁻ v = √2 v_0`. -/ +def Vminus (d : ℕ) (K : Type) [NormedAddCommGroup K] [InnerProductSpace ℂ K] : Pw d K →L[ℂ] K := + sq2 • prj 0 + +/-- Paper: `V⁺ v = √2 v_{D−1}`. -/ +def Vplus (d : ℕ) (K : Type) [NormedAddCommGroup K] [InnerProductSpace ℂ K] : Pw d K →L[ℂ] K := + sq2 • prj (Fin.last d) + +/-- Paper: `E₋`, the projection onto the first slot. -/ +def Eminus (d : ℕ) (K : Type) [NormedAddCommGroup K] [InnerProductSpace ℂ K] : + Pw d K →L[ℂ] Pw d K := + coord (fun t => if t = 0 then 1 else 0) + +/-- Paper: `E₊`, the projection onto the last slot. -/ +def Eplus (d : ℕ) (K : Type) [NormedAddCommGroup K] [InnerProductSpace ℂ K] : + Pw d K →L[ℂ] Pw d K := + coord (fun t => if t = Fin.last d then 1 else 0) + +/-- The Construction's embedding `b ↦ ([b]_0 + [b]_{D−1})/√2`. -/ +def Vmap (d : ℕ) (K : Type) [NormedAddCommGroup K] [InnerProductSpace ℂ K] : K →L[ℂ] Pw d K := + isq2 • (sing 0 + sing (Fin.last d)) + +/-- `Am ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ Ap`: `Ap` in the last slot, `Am` in slot `0`, zero elsewhere. -/ +def sepOp (d : ℕ) (Ap Am : K →L[ℂ] K) : Pw d K →L[ℂ] Pw d K := + coord (fun t => if t = Fin.last d then Ap else if t = 0 then Am else 0) + +@[simp] theorem prj_apply (t : Fin (d + 1)) (ξ : Pw d K) : prj t ξ = ξ t := rfl + +@[simp] theorem mkPi_apply {E : Type} [NormedAddCommGroup E] [NormedSpace ℂ E] + (B : Fin (d + 1) → E →L[ℂ] K) (x : E) (t : Fin (d + 1)) : mkPi B x t = B t x := rfl + +theorem sing_apply (t s : Fin (d + 1)) (v : K) : sing t v s = if s = t then v else 0 := by + unfold sing + rw [mkPi_apply] + split_ifs <;> rfl + +@[simp] theorem sing_apply_self (t : Fin (d + 1)) (v : K) : sing t v t = v := by + simp [sing_apply] + +theorem sing_apply_ne {t s : Fin (d + 1)} (h : s ≠ t) (v : K) : sing t v s = 0 := by + simp [sing_apply, h] + +@[simp] theorem coord_apply (A : Fin (d + 1) → K →L[ℂ] K) (ξ : Pw d K) (t : Fin (d + 1)) : + coord A ξ t = A t (ξ t) := rfl + +@[simp] theorem lift_apply (A : K →L[ℂ] K) (ξ : Pw d K) (t : Fin (d + 1)) : + lift d A ξ t = A (ξ t) := rfl + +@[simp] theorem shift_apply_zero (ξ : Pw d K) : shift d K ξ 0 = 0 := rfl + +@[simp] theorem shift_apply_succ (ξ : Pw d K) (s : Fin d) : + shift d K ξ s.succ = ξ s.castSucc := rfl + +theorem Vmap_apply (v : K) (t : Fin (d + 1)) : + Vmap d K v t = isq2 • (sing 0 v t + sing (Fin.last d) v t) := rfl + +@[simp] theorem Vminus_apply (ξ : Pw d K) : Vminus d K ξ = sq2 • ξ 0 := rfl + +@[simp] theorem Vplus_apply (ξ : Pw d K) : Vplus d K ξ = sq2 • ξ (Fin.last d) := rfl + +theorem coord_mul (A B : Fin (d + 1) → K →L[ℂ] K) : + coord A * coord B = coord (fun t => A t * B t) := rfl + +theorem coord_add (A B : Fin (d + 1) → K →L[ℂ] K) : + coord A + coord B = coord (fun t => A t + B t) := rfl + +theorem coord_sub (A B : Fin (d + 1) → K →L[ℂ] K) : + coord A - coord B = coord (fun t => A t - B t) := rfl + +theorem coord_smul (a : ℂ) (A : Fin (d + 1) → K →L[ℂ] K) : + a • coord A = coord (fun t => a • A t) := rfl + +theorem coord_congr {A B : Fin (d + 1) → K →L[ℂ] K} (h : ∀ t, A t = B t) : coord A = coord B := by + rw [show A = B from funext h] + +theorem lift_mul (A B : K →L[ℂ] K) : lift d (A * B) = lift d A * lift d B := rfl + +theorem lift_one : lift d (1 : K →L[ℂ] K) = 1 := rfl + +theorem lift_zero : lift d (0 : K →L[ℂ] K) = 0 := rfl + +theorem lift_sub (A B : K →L[ℂ] K) : lift d (A - B) = lift d A - lift d B := rfl + +theorem lift_pow (A : K →L[ℂ] K) (n : ℕ) : lift d A ^ n = lift d (A ^ n) := by + induction n with + | zero => simp [lift_one] + | succ n ih => rw [pow_succ, pow_succ, ih, lift_mul] + +theorem aeval_lift (A : K →L[ℂ] K) (p : ℂ[X]) : aeval (lift d A) p = lift d (aeval A p) := by + induction p using Polynomial.induction_on' with + | add p q hp hq => + rw [map_add, map_add, hp, hq] + rfl + | monomial n a => + rw [aeval_monomial, aeval_monomial, lift_pow, ← Algebra.smul_def, ← Algebra.smul_def] + rfl + +/-! ### Norms and inner products on `Pw d K` -/ + +theorem zero_ne_last (hd : 1 ≤ d) : (0 : Fin (d + 1)) ≠ Fin.last d := by + intro h + have := congrArg Fin.val h + simp at this + omega + +omit [InnerProductSpace ℂ K] in +theorem norm_sq_Pw (ξ : Pw d K) : ‖ξ‖ ^ 2 = ∑ t, ‖ξ t‖ ^ 2 := + PiLp.norm_sq_eq_of_L2 (fun _ : Fin (d + 1) => K) ξ + +-- The following proof tracks that of `le_of_sq_le_sq` in Mathlib, +-- Mathlib/Algebra/Order/Ring/Abs.lean: +-- Copyright (c) 2016 Jeremy Avigad. All rights reserved. +-- Released under Apache 2.0 license as described in the file LICENSE. +-- Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro +theorem le_of_sq_le {a b : ℝ} (hb : 0 ≤ b) (h : a ^ 2 ≤ b ^ 2) : a ≤ b := + (le_abs_self a).trans (abs_le_of_sq_le_sq h hb) + +theorem norm_isq2_sq : ‖isq2‖ ^ 2 = 1 / 2 := by + unfold isq2 + rw [Complex.norm_real, Real.norm_eq_abs, sq_abs, inv_pow, Real.sq_sqrt (by norm_num)] + norm_num + +theorem norm_sq2 : ‖sq2‖ = Real.sqrt 2 := by + unfold sq2 + rw [Complex.norm_real, Real.norm_of_nonneg (Real.sqrt_nonneg _)] + +theorem norm_sq2_sq : ‖sq2‖ ^ 2 = 2 := by + rw [norm_sq2, Real.sq_sqrt (by norm_num)] + +theorem sq2_mul_isq2 : sq2 * isq2 = 1 := by + unfold sq2 isq2 + rw [← Complex.ofReal_mul, mul_inv_cancel₀ (by positivity)] + simp + +theorem finrank_Pw [FiniteDimensional ℂ K] : finrank ℂ (Pw d K) = finrank ℂ K * (d + 1) := by + rw [(WithLp.linearEquiv 2 ℂ (Fin (d + 1) → K)).finrank_eq, Module.finrank_pi_fintype] + simp [mul_comm] + +omit [InnerProductSpace ℂ K] in +theorem norm_apply_le (ξ : Pw d K) (t : Fin (d + 1)) : ‖ξ t‖ ≤ ‖ξ‖ := + PiLp.norm_apply_le ξ t + +theorem norm_coord_le (A : Fin (d + 1) → K →L[ℂ] K) (C : ℝ) (hA : ∀ t, ‖A t‖ ≤ C) : + ‖coord A‖ ≤ C := by + have hC : 0 ≤ C := (norm_nonneg _).trans (hA 0) + refine ContinuousLinearMap.opNorm_le_bound _ hC fun ξ => ?_ + refine le_of_sq_le (by positivity) ?_ + rw [mul_pow, norm_sq_Pw, norm_sq_Pw, Finset.mul_sum] + refine Finset.sum_le_sum fun t _ => ?_ + rw [coord_apply, ← mul_pow] + refine pow_le_pow_left₀ (norm_nonneg _) ?_ 2 + exact ((A t).le_opNorm _).trans (mul_le_mul_of_nonneg_right (hA t) (norm_nonneg _)) + +theorem norm_lift_le (A : K →L[ℂ] K) : ‖lift d A‖ ≤ ‖A‖ := + norm_coord_le _ _ fun _ => le_rfl + +theorem norm_shift_le : ‖shift d K‖ ≤ 1 := by + refine ContinuousLinearMap.opNorm_le_bound _ zero_le_one fun ξ => ?_ + refine le_of_sq_le (by positivity) ?_ + rw [one_mul, norm_sq_Pw, norm_sq_Pw, Fin.sum_univ_succ, Fin.sum_univ_castSucc] + simp only [shift_apply_zero, shift_apply_succ, norm_zero] + have := sq_nonneg ‖ξ (Fin.last d)‖ + linarith + +theorem norm_prj_le (t : Fin (d + 1)) : ‖(prj t : Pw d K →L[ℂ] K)‖ ≤ 1 := + ContinuousLinearMap.opNorm_le_bound _ zero_le_one fun ξ => by + rw [one_mul]; exact norm_apply_le ξ t + +theorem inner_sing (ζ : Pw d K) (t : Fin (d + 1)) (v : K) : + ⟪ζ, sing t v⟫_ℂ = ⟪ζ t, v⟫_ℂ := by + rw [PiLp.inner_apply, Finset.sum_eq_single t] + · rw [sing_apply_self] + · intro s _ hs + rw [sing_apply_ne hs, inner_zero_right] + · intro h + exact absurd (Finset.mem_univ t) h + +theorem norm_sing (t : Fin (d + 1)) (v : K) : ‖(sing t v : Pw d K)‖ = ‖v‖ := by + refine (pow_left_inj₀ (norm_nonneg _) (norm_nonneg _) two_ne_zero).mp ?_ + rw [norm_sq_Pw, Finset.sum_eq_single t] + · rw [sing_apply_self] + · intro s _ hs + rw [sing_apply_ne hs, norm_zero] + simp + · intro h + exact absurd (Finset.mem_univ t) h + +theorem Vmap_apply_zero (hd : 1 ≤ d) (v : K) : Vmap d K v 0 = isq2 • v := by + rw [Vmap_apply, sing_apply_self, sing_apply_ne (zero_ne_last hd), add_zero] + +theorem Vmap_apply_last (hd : 1 ≤ d) (v : K) : Vmap d K v (Fin.last d) = isq2 • v := by + rw [Vmap_apply, sing_apply_self, sing_apply_ne (zero_ne_last hd).symm, zero_add] + +theorem Vmap_apply_ne {t : Fin (d + 1)} (h0 : t ≠ 0) (hl : t ≠ Fin.last d) (v : K) : + Vmap d K v t = 0 := by + rw [Vmap_apply, sing_apply_ne h0, sing_apply_ne hl] + simp + +/-- The embedding `b ↦ ([b]_0 + [b]_{D−1})/√2` is an isometry (`D ≥ 2`). -/ +theorem norm_Vmap (hd : 1 ≤ d) (v : K) : ‖Vmap d K v‖ = ‖v‖ := by + refine (pow_left_inj₀ (norm_nonneg _) (norm_nonneg _) two_ne_zero).mp ?_ + rw [norm_sq_Pw, Finset.sum_eq_add_of_mem 0 (Fin.last d) (Finset.mem_univ _) + (Finset.mem_univ _) (zero_ne_last hd)] + · rw [Vmap_apply_zero hd, Vmap_apply_last hd, norm_smul, mul_pow, norm_isq2_sq] + ring + · intro c _ hc + rw [Vmap_apply_ne hc.1 hc.2] + simp + +/-- Paper (3), first part: `V⁻ b = b` for `b` in the image of the embedding. -/ +theorem Vminus_Vmap (hd : 1 ≤ d) (v : K) : Vminus d K (Vmap d K v) = v := by + rw [Vminus_apply, Vmap_apply_zero hd, smul_smul, sq2_mul_isq2, one_smul] + +/-- Paper (3), first part: `V⁺ b = b` for `b` in the image of the embedding. -/ +theorem Vplus_Vmap (hd : 1 ≤ d) (v : K) : Vplus d K (Vmap d K v) = v := by + rw [Vplus_apply, Vmap_apply_last hd, smul_smul, sq2_mul_isq2, one_smul] + +theorem lift_Vmap (A : K →L[ℂ] K) (v : K) : lift d A (Vmap d K v) = Vmap d K (A v) := by + refine PiLp.ext fun t => ?_ + rw [lift_apply, Vmap_apply, Vmap_apply] + simp only [sing_apply, map_smul, map_add] + split_ifs <;> simp + +omit [InnerProductSpace ℂ K] in +theorem pyth_last_zero (hd : 1 ≤ d) (ξ : Pw d K) : + ‖ξ (Fin.last d)‖ ^ 2 + ‖ξ 0‖ ^ 2 ≤ ‖ξ‖ ^ 2 := by + rw [norm_sq_Pw, ← Finset.sum_pair (f := fun t => ‖ξ t‖ ^ 2) (zero_ne_last hd).symm] + exact Finset.sum_le_sum_of_subset_of_nonneg (Finset.subset_univ _) fun _ _ _ => by positivity + +/-- Paper (3), second part: `½ (‖V⁻ v‖² + ‖V⁺ v‖²) ≤ ‖v‖²`. -/ +theorem pyth_V (hd : 1 ≤ d) (ξ : Pw d K) : + (‖Vminus d K ξ‖ ^ 2 + ‖Vplus d K ξ‖ ^ 2) / 2 ≤ ‖ξ‖ ^ 2 := by + rw [Vminus_apply, Vplus_apply, norm_smul, norm_smul, mul_pow, mul_pow, norm_sq2_sq] + have := pyth_last_zero hd ξ + linarith + +theorem norm_sepOp_le (Sp Sm : K →L[ℂ] K) (M : ℝ) (hp : ‖Sp‖ ≤ M) (hm : ‖Sm‖ ≤ M) : + ‖sepOp d Sp Sm‖ ≤ M := by + have hM : 0 ≤ M := (norm_nonneg _).trans hp + refine norm_coord_le _ _ fun t => ?_ + split_ifs + · exact hp + · exact hm + · rwa [norm_zero] + +theorem inner_sepOp (hd : 1 ≤ d) (Sp Sm : K →L[ℂ] K) (ξ ζ : Pw d K) : + ⟪ζ, sepOp d Sp Sm ξ⟫_ℂ = + ⟪ζ (Fin.last d), Sp (ξ (Fin.last d))⟫_ℂ + ⟪ζ 0, Sm (ξ 0)⟫_ℂ := by + rw [PiLp.inner_apply, Finset.sum_eq_add_of_mem (Fin.last d) 0 (Finset.mem_univ _) + (Finset.mem_univ _) (zero_ne_last hd).symm] + · unfold sepOp + rw [coord_apply, coord_apply] + simp only [ite_true, zero_ne_last hd, ite_false] + · intro c _ hc + unfold sepOp + rw [coord_apply] + simp [hc.1, hc.2] + +/-- `⟪w, (A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊) v⟫ = ½ ⟪V⁺ w, A₊ V⁺ v⟫ + ½ ⟪V⁻ w, A₋ V⁻ v⟫`: the operator +`A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊` is `½ ((V⁻)* A₋ V⁻ + (V⁺)* A₊ V⁺)`, stated through inner products. -/ +theorem inner_sepOp_V (hd : 1 ≤ d) (Sp Sm : K →L[ℂ] K) (ξ ζ : Pw d K) : + ⟪ζ, sepOp d Sp Sm ξ⟫_ℂ = + (⟪Vplus d K ζ, Sp (Vplus d K ξ)⟫_ℂ + ⟪Vminus d K ζ, Sm (Vminus d K ξ)⟫_ℂ) / 2 := by + rw [inner_sepOp hd] + simp only [Vplus_apply, Vminus_apply, map_smul, inner_smul_left, inner_smul_right] + have hc : (starRingEnd ℂ) sq2 = sq2 := by unfold sq2; exact Complex.conj_ofReal _ + have hs : sq2 * sq2 = 2 := by + unfold sq2; rw [← Complex.ofReal_mul, Real.mul_self_sqrt (by norm_num)]; norm_num + rw [hc, ← mul_assoc, ← mul_assoc, hs] + ring + +theorem sepOp_add (Ap Am Bp Bm : K →L[ℂ] K) : + sepOp d (Ap + Bp) (Am + Bm) = sepOp d Ap Am + sepOp d Bp Bm := by + unfold sepOp + rw [coord_add] + refine coord_congr fun t => ?_ + split_ifs <;> simp + +theorem sepOp_sub (Ap Am Bp Bm : K →L[ℂ] K) : + sepOp d (Ap - Bp) (Am - Bm) = sepOp d Ap Am - sepOp d Bp Bm := by + unfold sepOp + rw [coord_sub] + refine coord_congr fun t => ?_ + split_ifs <;> simp + +theorem sepOp_smul (a : ℂ) (Ap Am : K →L[ℂ] K) : + sepOp d (a • Ap) (a • Am) = a • sepOp d Ap Am := by + unfold sepOp + rw [coord_smul] + refine coord_congr fun t => ?_ + split_ifs <;> simp + +end Next + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Solution.lean b/LeanPool/HilbertInvariantSubspace/Solution.lean new file mode 100644 index 0000000000..55e30b9fc1 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Solution.lean @@ -0,0 +1,44 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Statement +public import LeanPool.HilbertInvariantSubspace.Main + +/-! +# Proofs of the statements, each from the corresponding theorem of the development +(`Minimal/Main.lean`) +-/ + +@[expose] public section + +namespace HilbertInvariantSubspace + +open Statement + +/-- Theorem 1.1, on `ℓ²(ℕ, ℂ)`. -/ +theorem onL2 : OnL2 := + HilbertInvariantSubspace.exists_no_invariant_subspace + +/-- The invariant subspace problem, as posed in `Statement.ISP`, has a negative answer. -/ +theorem not_ISP : ¬ ISP := by + intro h + obtain ⟨T, hT⟩ := HilbertInvariantSubspace.exists_no_invariant_subspace + have := HilbertInvariantSubspace.ℓ2_separable + obtain ⟨M, h1, h2, h3, h4⟩ := h L2 HilbertInvariantSubspace.ℓ2_not_finiteDimensional T + rcases hT M h1 h4 with h | h + · exact h2 h + · exact h3 h + +/-- The existential form. -/ +theorem hilbert_space_form : HilbertSpaceForm := + HilbertInvariantSubspace.exists_on_separable_hilbert_space + +end HilbertInvariantSubspace diff --git a/LeanPool/HilbertInvariantSubspace/Statement.lean b/LeanPool/HilbertInvariantSubspace/Statement.lean new file mode 100644 index 0000000000..9dd2ce5818 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Statement.lean @@ -0,0 +1,52 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import Mathlib.Analysis.InnerProductSpace.Defs +public import Mathlib.Analysis.Normed.Lp.lpSpace +public import Mathlib.Analysis.Normed.Operator.Basic +public import Mathlib.LinearAlgebra.FiniteDimensional.Defs + +/-! +# A bounded operator on ℓ² without non-trivial closed invariant subspaces + +Definitions and statements, using Mathlib only. The proofs are in Solution.lean. +-/ + +@[expose] public section + +namespace HilbertInvariantSubspace.Statement + +/-- The Hilbert space of square-summable complex sequences. -/ +abbrev L2 : Type := ↥(lp (fun _ : ℕ => ℂ) 2) + +/-- Theorem 1.1 of the paper: on `ℓ²(ℕ, ℂ)` there is a bounded operator whose only closed + invariant subspaces +are `⊥` and `⊤`. -/ +def OnL2 : Prop := ∃ T : L2 →L[ℂ] L2, ∀ M : Submodule ℂ L2, + IsClosed (M : Set L2) → (∀ x ∈ M, T x ∈ M) → M = ⊥ ∨ M = ⊤ + +/-- The invariant subspace problem as usually posed: every bounded operator on every separable +infinite-dimensional complex Hilbert space has a closed invariant subspace other than `{0}` and +the +whole space. -/ +def ISP : Prop := ∀ (H : Type) [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H] + [TopologicalSpace.SeparableSpace H], ¬ FiniteDimensional ℂ H → ∀ T : H →L[ℂ] H, + ∃ M : Submodule ℂ H, IsClosed (M : Set H) ∧ M ≠ ⊥ ∧ M ≠ ⊤ ∧ ∀ x ∈ M, T x ∈ M + +/-- Existential form: some separable infinite-dimensional complex Hilbert space carries such an + operator. -/ +def HilbertSpaceForm : Prop := + ∃ (H : Type) (_ : NormedAddCommGroup H) (_ : InnerProductSpace ℂ H) (_ : CompleteSpace H), + TopologicalSpace.SeparableSpace H ∧ ¬ FiniteDimensional ℂ H ∧ + ∃ T : H →L[ℂ] H, ∀ M : Submodule ℂ H, + IsClosed (M : Set H) → (∀ x ∈ M, T x ∈ M) → M = ⊥ ∨ M = ⊤ + +end HilbertInvariantSubspace.Statement diff --git a/LeanPool/HilbertInvariantSubspace/Tower.lean b/LeanPool/HilbertInvariantSubspace/Tower.lean new file mode 100644 index 0000000000..bef26bdca2 --- /dev/null +++ b/LeanPool/HilbertInvariantSubspace/Tower.lean @@ -0,0 +1,558 @@ +/- +Copyright (c) 2026 Anthropic, PBC. All rights reserved. +Released under Apache 2.0 license as described in the file LICENSE. +Authors: Claude (Anthropic) +-/ + +-- SPDX-License-Identifier: Apache-2.0 +-- Modified for Lean Pool. + +module + +public import LeanPool.HilbertInvariantSubspace.Blocks +public import Mathlib.Analysis.InnerProductSpace.Adjoint + +/-! +# The tower (what the Construction delivers), and the steps "Fibers" and "Splitting" +(paper, §4 "The construction" and §5 "Proof of the theorem") + +This file is written against an abstract record `Tower` of what the paper's Construction (§4) +produces: +spaces `K_n` with operators `T_n`, the embeddings `K_n ⊂ K_{n+1}`, the maps `V⁻_{n+1}, V⁺_{n+1}`, +the constants `τ_n, µ_n, L_n = L(T_n), γ_{n+1} = 24 L_n τ_{n+1}`, and, as further fields of the +record +(hypotheses for this file, all proved for the actual construction in `Construction.lean`): the +paper's +Lemma 3.2 (a) in the form of the two consequences the proof uses (`‖T_{n+1} b − T_n b‖ ≤ +τ_{n+1}‖b‖` +for `b ∈ K_n` and `‖p(T_{n+1})‖ ≤ ‖p(T_n)‖ + (Σ i|c_i|) τ_{n+1}`), (b) Reach, (c) Split in +bilinear form, +the identity `V±_m b = b` and inequality (3), the paper's bookkeeping `τ_0 = µ_0 = 1`, `τ_{n+1} ≤ +τ_n/2`, +`γ_{n+1} ≤ 2^{−n−3} µ_k` for every `k ≤ n` (i.e. `≤ 2^{−n−3} min(µ_0, …, µ_n)`), `‖T_n‖ + τ_{n+1} +≤ 1`, +and `dim K_n < dim K_{n+1}` (used to make the closed union of the `K_n` infinite-dimensional). +`Construction.lean` +builds such a record from Lemma 3.2; `Limit.lean` embeds the `K_n` in `ℓ²`, builds `T` and +finishes the proof. Here: + +Paper, §5, Fibers (condensed): "For s ∈ {±}^{N−n} let V^s = V^{s_{n+1}}_{n+1} ⋯ V^{s_N}_N : K_N → +K_n, and let E_s be +the mean over s. By (3), E_s‖V^s v − a‖² = E_s‖V^s(v − a)‖² ≤ 1/64, so ‖V^s v − a‖ ≥ ¼ for at +most a +quarter of the s; likewise for w, b. For the remaining s (at least half), ‖V^s v‖ ≤ 5/4 and +‖V⁻_n V^s v‖ ≥ 7/8 − √2/4 > ½, likewise for w with V⁺_n, so Reach gives A_s ∈ I₁(T_n) with +Re⟨A_s V^s v, V^s w⟩ ≥ µ. Put A_s = 0 otherwise. Then C = E_s (V^s)* A_s V^s has Re⟨Cv, w⟩ ≥ +µ/2." + +Paper, §5, Splitting (condensed): "For any family A_s ∈ I₁(T_n) there is A ∈ I₁(T_N) with +‖A − C‖ ≤ ρ_N := Σ_{n n, sort by s_N: +C = C₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ C₊ with C± of the same form at level N − 1. Replacing C± by the A± ∈ +I₁(T_{N−1}) given by induction +costs max± ‖A± − C±‖ ≤ ρ_{N−1}, and Split gives A = G at a further cost γ_N." + +Lean (namespace `HilbertInvariantSubspace.Tower`, for a tower `𝔗`, a base level `b` and a height +`k`, so that +the paper's `n` is `b` and `N` is `b + k`; sign strings are `s : Fin k → Bool`, `true = +`, index +`0` the +top level): +* `up b k : K b → K (b + k)` the composite embedding; `Vs b k s : K (b + k) →L K b` the map +`V^s`; + `Vs_up`: `V^s a = a` for `a ∈ K_b`; `sum_norm_sq_Vs_le`: `E_s ‖V^s u‖² ≤ ‖u‖²` (from (3)). +* `sep n B₊ B₋ = ½((V⁺)* B₊ V⁺ + (V⁻)* B₋ V⁻)`, the operator `B₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ B₊` on `K_{n+1}` +written + without coordinates; `Cop b k A` the operator `C = E_s (V^s)* A_s V^s`, *defined* by the + recursion + "sort by s_N" (the top sign) and shown to have the averaging formula in `inner_Cop`. +* `splitting`: the paper's Splitting, with `rho b k = Σ_{j 0 + | n + 1 => 24 * Lconst (𝔗.T n) * 𝔗.τ (n + 1) + +theorem gam_succ (n : ℕ) : 𝔗.gam (n + 1) = 24 * Lconst (𝔗.T n) * 𝔗.τ (n + 1) := rfl + +theorem gam_nonneg (m : ℕ) : 0 ≤ 𝔗.gam m := by + cases m with + | zero => exact le_rfl + | succ n => + rw [gam_succ] + have := one_le_Lconst (𝔗.T n) + have := 𝔗.τ_pos (n + 1) + positivity + +theorem norm_T_le_one (n : ℕ) : ‖𝔗.T n‖ ≤ 1 := by + linarith [𝔗.norm_T n, 𝔗.τ_pos (n + 1)] + +theorem τ_le_pow (n : ℕ) : 𝔗.τ n ≤ (1 / 2) ^ n := by + induction n with + | zero => rw [𝔗.τ_zero]; norm_num + | succ n ih => have := 𝔗.τ_half n; rw [pow_succ]; linarith + +/-- `γ_{n+1} ≤ 2^{−n−3} µ_0 ≤ 1/8`. -/ +theorem gam_le (n : ℕ) : 𝔗.gam (n + 1) ≤ 1 / 8 := by + have h := 𝔗.γ_le n 0 (Nat.zero_le n) + rw [𝔗.μ_zero, mul_one, ← gam_succ] at h + exact h.trans ((pow_le_pow_of_le_one (by norm_num) (by norm_num) (by omega : 3 ≤ n + 3)).trans + (by norm_num)) + +/-- Paper (2): "Σ_{m>n} γ_m ≤ µ_n/4", in the finite form `Σ_{j norm_num + | succ k ih => + rw [Finset.sum_range_succ] + have h := 𝔗.γ_le (n + k) n (by omega) + rw [← gam_succ, show n + k + 1 = n + 1 + k by ring] at h + have h2 : (1 / 2 : ℝ) ^ (n + k + 3) * 𝔗.μ n ≤ (1 / 2) ^ (k + 1 + 2) * 𝔗.μ n := + mul_le_mul_of_nonneg_right (pow_le_pow_of_le_one (by norm_num) (by norm_num) (by omega)) + (𝔗.μ_pos n).le + have e2 : (1 / 2 : ℝ) ^ (k + 2) = 2 * (1 / 2) ^ (k + 1 + 2) := by ring + rw [e2] at ih + linarith + +/-! ### The composite embeddings and the maps `V^s` -/ + +/-- `K_b ⊂ K_{b+k}`: the composite of the embeddings. -/ +def up (b : ℕ) : ∀ k : ℕ, 𝔗.K b → 𝔗.K (b + k) + | 0 => id + | k + 1 => fun a => 𝔗.V (b + k) (up b k a) + +theorem up_succ (b k : ℕ) (a : 𝔗.K b) : 𝔗.up b (k + 1) a = 𝔗.V (b + k) (𝔗.up b k a) := rfl + +theorem norm_up (b k : ℕ) (a : 𝔗.K b) : ‖𝔗.up b k a‖ = ‖a‖ := by + induction k with + | zero => rfl + | succ k ih => rw [up_succ, LinearIsometry.norm_map, ih] + +theorem up_sub (b k : ℕ) (a a' : 𝔗.K b) : 𝔗.up b k (a - a') = 𝔗.up b k a - 𝔗.up b k a' := by + induction k with + | zero => rfl + | succ k ih => rw [up_succ, up_succ, up_succ, ih, map_sub] + +/-- `V^{±}_{n+1}` according to a sign: `true ↦ V⁺`, `false ↦ V⁻`. -/ +def W (n : ℕ) : Bool → (𝔗.K (n + 1) →L[ℂ] 𝔗.K n) + | true => 𝔗.Vp n + | false => 𝔗.Vm n + +theorem W_V (n : ℕ) (c : Bool) (b : 𝔗.K n) : 𝔗.W n c (𝔗.V n b) = b := by + cases c + · exact 𝔗.Vm_V n b + · exact 𝔗.Vp_V n b + +/-- Paper: `V^s = V^{s_{n+1}}_{n+1} ⋯ V^{s_N}_N : K_N → K_n`, for `s : Fin k → Bool` (index `0` = + top level +`N = b + k`). -/ +def Vs (b : ℕ) : ∀ k : ℕ, (Fin k → Bool) → (𝔗.K (b + k) →L[ℂ] 𝔗.K b) + | 0, _ => ContinuousLinearMap.id ℂ _ + | k + 1, s => Vs b k (Fin.tail s) ∘L 𝔗.W (b + k) (s 0) + +theorem Vs_succ_apply (b k : ℕ) (s : Fin (k + 1) → Bool) (v : 𝔗.K (b + k + 1)) : + 𝔗.Vs b (k + 1) s v = 𝔗.Vs b k (Fin.tail s) (𝔗.W (b + k) (s 0) v) := rfl + +theorem Vs_cons_apply (b k : ℕ) (c : Bool) (s : Fin k → Bool) (v : 𝔗.K (b + k + 1)) : + 𝔗.Vs b (k + 1) (Fin.cons c s) v = 𝔗.Vs b k s (𝔗.W (b + k) c v) := by + rw [Vs_succ_apply, Fin.tail_cons, Fin.cons_zero] + +/-- Paper: `V^s a = a` for `a ∈ K_n` (from `V±_m b = b`). -/ +theorem Vs_up (b k : ℕ) (s : Fin k → Bool) (a : 𝔗.K b) : 𝔗.Vs b k s (𝔗.up b k a) = a := by + induction k with + | zero => rfl + | succ k ih => rw [Vs_succ_apply, up_succ, W_V, ih] + +/-- Sums over sign strings of length `k + 1` split by the top sign. -/ +theorem sum_cons {M : Type} [AddCommMonoid M] (k : ℕ) (f : (Fin (k + 1) → Bool) → M) : + ∑ s, f s = + (∑ s : Fin k → Bool, f (Fin.cons true s)) + (∑ s : Fin k → Bool, f (Fin.cons false s)) := by + rw [← Fintype.sum_equiv (Fin.consEquiv fun _ => Bool) (fun p => f (Fin.cons p.1 p.2)) f + (fun p => rfl), Fintype.sum_prod_type, Fintype.sum_bool] + +theorem card_signs (k : ℕ) : (Fintype.card (Fin k → Bool) : ℝ) = 2 ^ k := by + simp + +/-- Paper, Fibers: "Applying (3) level by level, E_s ‖V^s u‖² ≤ ‖u‖²" (as a sum: `Σ_s ‖V^s u‖² ≤ + 2^k ‖u‖²`). -/ +theorem sum_norm_sq_Vs_le (b k : ℕ) (u : 𝔗.K (b + k)) : + ∑ s : Fin k → Bool, ‖𝔗.Vs b k s u‖ ^ 2 ≤ 2 ^ k * ‖u‖ ^ 2 := by + induction k with + | zero => simp [Vs] + | succ k ih => + rw [sum_cons] + simp only [Vs_cons_apply, W] + have h1 := ih (𝔗.Vp (b + k) u) + have h2 := ih (𝔗.Vm (b + k) u) + have h3 := 𝔗.pyth (b + k) u + have h4 := mul_le_mul_of_nonneg_left h3 (by positivity : (0 : ℝ) ≤ 2 ^ k) + rw [pow_succ] + linarith + +/-- `‖V⁻ u‖ ≤ √2 ‖u‖`, from (3). -/ +theorem norm_Vm_le (n : ℕ) (u : 𝔗.K (n + 1)) : ‖𝔗.Vm n u‖ ≤ Real.sqrt 2 * ‖u‖ := by + have h := 𝔗.pyth n u + have h2 : ‖𝔗.Vm n u‖ ^ 2 ≤ (Real.sqrt 2 * ‖u‖) ^ 2 := by + rw [mul_pow, Real.sq_sqrt (by norm_num)]; nlinarith [sq_nonneg ‖𝔗.Vp n u‖] + exact (abs_le_of_sq_le_sq' h2 (by positivity)).2 + +/-- `‖V⁺ u‖ ≤ √2 ‖u‖`, from (3). -/ +theorem norm_Vp_le (n : ℕ) (u : 𝔗.K (n + 1)) : ‖𝔗.Vp n u‖ ≤ Real.sqrt 2 * ‖u‖ := by + have h := 𝔗.pyth n u + have h2 : ‖𝔗.Vp n u‖ ^ 2 ≤ (Real.sqrt 2 * ‖u‖) ^ 2 := by + rw [mul_pow, Real.sq_sqrt (by norm_num)]; nlinarith [sq_nonneg ‖𝔗.Vm n u‖] + exact (abs_le_of_sq_le_sq' h2 (by positivity)).2 + +/-! ### The operator `B₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ B₊` in coordinate-free form, and `C = E_s (V^s)* A_s V^s` +-/ + +/-- `sep n B₊ B₋ = ½((V⁺_{n+1})* B₊ V⁺_{n+1} + (V⁻_{n+1})* B₋ V⁻_{n+1})`: the paper's `B₋ ⊕ 0 ⊕ ⋯ + ⊕ 0 ⊕ B₊` +on `K_{n+1} = K_n^D`. -/ +def sep (n : ℕ) (Bp Bm : 𝔗.K n →L[ℂ] 𝔗.K n) : 𝔗.K (n + 1) →L[ℂ] 𝔗.K (n + 1) := + (1 / 2 : ℂ) • (ContinuousLinearMap.adjoint (𝔗.Vp n) ∘L Bp ∘L 𝔗.Vp n + + ContinuousLinearMap.adjoint (𝔗.Vm n) ∘L Bm ∘L 𝔗.Vm n) + +theorem inner_sep (n : ℕ) (Bp Bm : 𝔗.K n →L[ℂ] 𝔗.K n) (v w : 𝔗.K (n + 1)) : + ⟪w, 𝔗.sep n Bp Bm v⟫_ℂ = (⟪𝔗.Vp n w, Bp (𝔗.Vp n v)⟫_ℂ + ⟪𝔗.Vm n w, Bm (𝔗.Vm n v)⟫_ℂ) / 2 := by + simp only [sep, smul_apply, add_apply, + ContinuousLinearMap.comp_apply, inner_smul_right, inner_add_right, + ContinuousLinearMap.adjoint_inner_right] + ring + +theorem sep_sub (n : ℕ) (Bp Bm Cp Cm : 𝔗.K n →L[ℂ] 𝔗.K n) : + 𝔗.sep n Bp Bm - 𝔗.sep n Cp Cm = 𝔗.sep n (Bp - Cp) (Bm - Cm) := by + simp only [sep, ContinuousLinearMap.comp_sub, ContinuousLinearMap.sub_comp, ← smul_sub] + congr 1 + abel + +/-- An operator whose bilinear form is bounded by `c‖v‖‖w‖` has norm at most `c`. -/ +theorem opNorm_le_of_inner_le {E : Type} [NormedAddCommGroup E] [InnerProductSpace ℂ E] + (B : E →L[ℂ] E) {c : ℝ} (hc : 0 ≤ c) (h : ∀ v w : E, ‖⟪w, B v⟫_ℂ‖ ≤ c * ‖v‖ * ‖w‖) : + ‖B‖ ≤ c := by + refine ContinuousLinearMap.opNorm_le_bound _ hc fun v => ?_ + have h1 := h v (B v) + have h2 : ‖B v‖ ^ 2 ≤ ‖⟪B v, B v⟫_ℂ‖ := by + rw [← inner_self_eq_norm_sq (𝕜 := ℂ) (B v)] + exact Complex.re_le_norm _ + by_cases h0 : ‖B v‖ = 0 + · rw [h0]; positivity + · have hp : 0 < ‖B v‖ := lt_of_le_of_ne (norm_nonneg _) (Ne.symm h0) + nlinarith + +private theorem cs2 {a1 a2 b1 b2 A B : ℝ} (hA : 0 ≤ A) (hB : 0 ≤ B) + (ha : a1 ^ 2 + a2 ^ 2 ≤ A ^ 2) (hb : b1 ^ 2 + b2 ^ 2 ≤ B ^ 2) : + a1 * b1 + a2 * b2 ≤ A * B := by + have h3 : (a1 * b1 + a2 * b2) ^ 2 ≤ (a1 ^ 2 + a2 ^ 2) * (b1 ^ 2 + b2 ^ 2) := by + nlinarith [sq_nonneg (a1 * b2 - a2 * b1)] + have h4 : (a1 ^ 2 + a2 ^ 2) * (b1 ^ 2 + b2 ^ 2) ≤ A ^ 2 * B ^ 2 := + mul_le_mul ha hb (by positivity) (by positivity) + have h5 : (a1 * b1 + a2 * b2) ^ 2 ≤ (A * B) ^ 2 := by rw [mul_pow]; exact h3.trans h4 + exact le_trans (le_abs_self _) (abs_le_of_sq_le_sq h5 (mul_nonneg hA hB)) + +/-- `|⟪w, (B₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ B₊) v⟫| ≤ M‖v‖‖w‖` when `‖B±‖ ≤ M` (Cauchy–Schwarz and (3)). -/ +theorem inner_sep_le (n : ℕ) (Bp Bm : 𝔗.K n →L[ℂ] 𝔗.K n) {M : ℝ} (hp : ‖Bp‖ ≤ M) (hm : ‖Bm‖ ≤ M) + (v w : 𝔗.K (n + 1)) : ‖⟪w, 𝔗.sep n Bp Bm v⟫_ℂ‖ ≤ M * ‖v‖ * ‖w‖ := by + have hM : 0 ≤ M := (norm_nonneg _).trans hp + rw [inner_sep, norm_div, Complex.norm_ofNat] + have e1 : ‖⟪𝔗.Vp n w, Bp (𝔗.Vp n v)⟫_ℂ‖ ≤ ‖𝔗.Vp n w‖ * (M * ‖𝔗.Vp n v‖) := + (norm_inner_le_norm _ _).trans (mul_le_mul_of_nonneg_left + ((Bp.le_opNorm _).trans (mul_le_mul_of_nonneg_right hp (norm_nonneg _))) (norm_nonneg _)) + have e2 : ‖⟪𝔗.Vm n w, Bm (𝔗.Vm n v)⟫_ℂ‖ ≤ ‖𝔗.Vm n w‖ * (M * ‖𝔗.Vm n v‖) := + (norm_inner_le_norm _ _).trans (mul_le_mul_of_nonneg_left + ((Bm.le_opNorm _).trans (mul_le_mul_of_nonneg_right hm (norm_nonneg _))) (norm_nonneg _)) + have e3 := norm_add_le ⟪𝔗.Vp n w, Bp (𝔗.Vp n v)⟫_ℂ ⟪𝔗.Vm n w, Bm (𝔗.Vm n v)⟫_ℂ + have hv := 𝔗.pyth n v + have hw := 𝔗.pyth n w + have key : ‖𝔗.Vp n w‖ * ‖𝔗.Vp n v‖ + ‖𝔗.Vm n w‖ * ‖𝔗.Vm n v‖ ≤ + (Real.sqrt 2 * ‖w‖) * (Real.sqrt 2 * ‖v‖) := + cs2 (by positivity) (by positivity) + (by rw [mul_pow, Real.sq_sqrt (by norm_num)]; linarith) + (by rw [mul_pow, Real.sq_sqrt (by norm_num)]; linarith) + have hsq : Real.sqrt 2 * Real.sqrt 2 = 2 := Real.mul_self_sqrt (by norm_num) + have key' : M * (‖𝔗.Vp n w‖ * ‖𝔗.Vp n v‖ + ‖𝔗.Vm n w‖ * ‖𝔗.Vm n v‖) ≤ M * (2 * ‖w‖ * ‖v‖) := by + refine mul_le_mul_of_nonneg_left (key.trans_eq ?_) hM + rw [show Real.sqrt 2 * ‖w‖ * (Real.sqrt 2 * ‖v‖) = + (Real.sqrt 2 * Real.sqrt 2) * ‖w‖ * ‖v‖ by ring, hsq] + rw [div_le_iff₀ (by norm_num : (0:ℝ) < 2)] + linarith + +/-- Paper, §2 ("its norm is max ‖A±‖") and Splitting ("costs max± ‖A± − C±‖"), as: `‖B±‖ ≤ M ⇒ + ‖sep B₊ B₋‖ ≤ M`. -/ +theorem norm_sep_le (n : ℕ) (Bp Bm : 𝔗.K n →L[ℂ] 𝔗.K n) {M : ℝ} (hp : ‖Bp‖ ≤ M) (hm : ‖Bm‖ ≤ M) : + ‖𝔗.sep n Bp Bm‖ ≤ M := + opNorm_le_of_inner_le _ ((norm_nonneg _).trans hp) (𝔗.inner_sep_le n Bp Bm hp hm) + +/-- Lemma 3.2(c) Split for the tower, with the operator norm: +`∃ G ∈ I₁(T_{n+1}), ‖G − (A₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ A₊)‖ ≤ γ_{n+1}`. -/ +theorem split_op (n : ℕ) (Ap Am : 𝔗.K n →L[ℂ] 𝔗.K n) (hAp : Ap ∈ I1 (𝔗.T n)) + (hAm : Am ∈ I1 (𝔗.T n)) : + ∃ G ∈ I1 (𝔗.T (n + 1)), ‖G - 𝔗.sep n Ap Am‖ ≤ 𝔗.gam (n + 1) := by + obtain ⟨G, hG, h⟩ := 𝔗.split n Ap Am hAp hAm + refine ⟨G, hG, opNorm_le_of_inner_le _ (𝔗.gam_nonneg _) fun v w => ?_⟩ + rw [sub_apply, inner_sub_right, inner_sep, gam_succ] + exact h v w + +/-- Paper: `C = E_s (V^s)* A_s V^s`, defined by "sort by s_N": `C = C₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ C₊` with +`C±` the same construction at height `k` for the sub-families `s ↦ A_{(±, s)}`. The averaging +formula +is `inner_Cop`. -/ +def Cop (b : ℕ) : ∀ k : ℕ, ((Fin k → Bool) → (𝔗.K b →L[ℂ] 𝔗.K b)) → (𝔗.K (b + k) →L[ℂ] 𝔗.K (b + k)) + | 0, A => A Fin.elim0 + | k + 1, A => 𝔗.sep (b + k) (Cop b k fun s => A (Fin.cons true s)) + (Cop b k fun s => A (Fin.cons false s)) + +/-- Paper: `⟨Cv, w⟩ = E_s ⟨A_s V^s v, V^s w⟩`, i.e. `⟪w, C v⟫ = 2^{−k} Σ_s ⟪V^s w, A_s V^s v⟫`. +-/ +theorem inner_Cop (b k : ℕ) (A : (Fin k → Bool) → (𝔗.K b →L[ℂ] 𝔗.K b)) (v w : 𝔗.K (b + k)) : + ⟪w, 𝔗.Cop b k A v⟫_ℂ = (∑ s, ⟪𝔗.Vs b k s w, A s (𝔗.Vs b k s v)⟫_ℂ) / 2 ^ k := by + induction k with + | zero => + simp only [Cop, Vs, pow_zero, div_one, ContinuousLinearMap.id_apply] + rw [Fintype.sum_unique] + rfl + | succ k ih => + simp only [Cop] + refine (𝔗.inner_sep (b + k) _ _ v w).trans ?_ + rw [ih, ih, sum_cons] + simp only [Vs_cons_apply, W] + rw [pow_succ] + field_simp + +/-- Paper: `ρ_N := Σ_{n + -- "For N = n take A = C." + exact ⟨A Fin.elim0, hA _, by simp [Cop, rho_zero]⟩ + | succ k ih => + -- "sort by s_N: … C = C₋ ⊕ 0 ⊕ ⋯ ⊕ 0 ⊕ C₊ with C± of the same form at level N − 1" + obtain ⟨Ap, hAp, hp⟩ := ih (fun s => A (Fin.cons true s)) (fun s => hA _) + obtain ⟨Am, hAm, hm⟩ := ih (fun s => A (Fin.cons false s)) (fun s => hA _) + -- "Split costs γ_N" + obtain ⟨G, hG, hG'⟩ := 𝔗.split_op (b + k) Ap Am hAp hAm + refine ⟨G, hG, ?_⟩ + -- "Replacing C± by A± costs max ‖A± − C±‖ ≤ ρ_{N−1}" + have h1 : ‖𝔗.sep (b + k) Ap Am - 𝔗.Cop b (k + 1) A‖ ≤ 𝔗.rho b k := by + simp only [Cop] + rw [sep_sub] + exact 𝔗.norm_sep_le _ _ _ hp hm + rw [rho_succ] + calc ‖G - 𝔗.Cop b (k + 1) A‖ + = ‖(G - 𝔗.sep (b + k) Ap Am) + (𝔗.sep (b + k) Ap Am - 𝔗.Cop b (k + 1) A)‖ := by + congr 1; abel + _ ≤ ‖G - 𝔗.sep (b + k) Ap Am‖ + ‖𝔗.sep (b + k) Ap Am - 𝔗.Cop b (k + 1) A‖ := norm_add_le _ _ + _ ≤ 𝔗.gam (b + k + 1) + 𝔗.rho b k := add_le_add hG' h1 + _ = 𝔗.rho b k + 𝔗.gam (b + k + 1) := add_comm _ _ + +/-! ### Fibers -/ + +private theorem sqrt2_lt : Real.sqrt 2 < 3 / 2 := by + rw [show (3 / 2 : ℝ) = Real.sqrt ((3 / 2) ^ 2) by rw [Real.sqrt_sq (by norm_num)]] + exact Real.sqrt_lt_sqrt (by norm_num) (by norm_num) + +/-- **Fibers** (paper). Base level `b` (the paper's `n − 1`), so Reach is used for the block +`K_{b+1} = K_b^D` with constant `µ_{b+1}`; height `k`, so `N = b + 1 + k`; `a0, b0 ∈ K_b` are the +paper's +`a = P_{n−1}ξ`, `b = P_{n−1}ζ` seen in `K_{n−1}`, with `7/8 ≤ ‖a0‖ ≤ 1` (from `‖ξ‖ = 1`, +`‖ξ − a‖ ≤ 1/8`); `v, w ∈ K_N` with `‖v − a‖, ‖w − b‖ ≤ 1/8`. Conclusion: a family `A_s ∈ +I₁(T_{b+1})` +whose averaged operator `C` has `Re⟨Cv, w⟩ ≥ µ_{b+1}/2`. -/ +theorem fibers (b k : ℕ) (a0 b0 : 𝔗.K b) (ha1 : ‖a0‖ ≤ 1) (ha2 : 7 / 8 ≤ ‖a0‖) + (hb1 : ‖b0‖ ≤ 1) (hb2 : 7 / 8 ≤ ‖b0‖) (v w : 𝔗.K (b + 1 + k)) + (hv : ‖v - 𝔗.up (b + 1) k (𝔗.V b a0)‖ ≤ 1 / 8) (hw : ‖w - 𝔗.up (b + 1) k (𝔗.V b b0)‖ ≤ 1 / 8) : + ∃ A : (Fin k → Bool) → (𝔗.K (b + 1) →L[ℂ] 𝔗.K (b + 1)), + (∀ s, A s ∈ I1 (𝔗.T (b + 1))) ∧ 𝔗.μ (b + 1) / 2 ≤ (⟪w, 𝔗.Cop (b + 1) k A v⟫_ℂ).re := by + classical + set a := 𝔗.V b a0 with ha_def + set bb := 𝔗.V b b0 with hb_def + set μ := 𝔗.μ (b + 1) with hμ_def + have hμ : 0 < μ := 𝔗.μ_pos _ + have hna : ‖a‖ = ‖a0‖ := (𝔗.V b).norm_map a0 + have hnb : ‖bb‖ = ‖b0‖ := (𝔗.V b).norm_map b0 + -- the good sign strings + let good : (Fin k → Bool) → Prop := fun s => + ‖𝔗.Vs (b + 1) k s v - a‖ < 1 / 4 ∧ ‖𝔗.Vs (b + 1) k s w - bb‖ < 1 / 4 + -- "Reach gives A_s ∈ I₁(T_n) with Re⟨A_s V^s v, V^s w⟩ ≥ µ" + have hgood : ∀ s, good s → ∃ As ∈ I1 (𝔗.T (b + 1)), + μ ≤ (⟪𝔗.Vs (b + 1) k s w, As (𝔗.Vs (b + 1) k s v)⟫_ℂ).re := by + rintro s ⟨h1, h2⟩ + refine 𝔗.reach b _ _ ?_ ?_ ?_ ?_ + · -- ‖V^s v‖ ≤ 5/4 ≤ 2 + have := norm_le_norm_add_norm_sub' (𝔗.Vs (b + 1) k s v) a + linarith + · have := norm_le_norm_add_norm_sub' (𝔗.Vs (b + 1) k s w) bb + linarith + · -- ‖V⁻ V^s v‖ ≥ ‖V⁻ a‖ − √2/4 = ‖a0‖ − √2/4 ≥ 7/8 − √2/4 > 1/2 + have e1 : 𝔗.Vm b (𝔗.Vs (b + 1) k s v) = a0 + 𝔗.Vm b (𝔗.Vs (b + 1) k s v - a) := by + rw [map_sub, ha_def, 𝔗.Vm_V]; abel + have e2 := 𝔗.norm_Vm_le b (𝔗.Vs (b + 1) k s v - a) + have e3 := norm_sub_norm_le a0 (-(𝔗.Vm b (𝔗.Vs (b + 1) k s v - a))) + rw [sub_neg_eq_add, ← e1, norm_neg] at e3 + nlinarith [sqrt2_lt, Real.sqrt_nonneg 2] + · have e1 : 𝔗.Vp b (𝔗.Vs (b + 1) k s w) = b0 + 𝔗.Vp b (𝔗.Vs (b + 1) k s w - bb) := by + rw [map_sub, hb_def, 𝔗.Vp_V]; abel + have e2 := 𝔗.norm_Vp_le b (𝔗.Vs (b + 1) k s w - bb) + have e3 := norm_sub_norm_le b0 (-(𝔗.Vp b (𝔗.Vs (b + 1) k s w - bb))) + rw [sub_neg_eq_add, ← e1, norm_neg] at e3 + nlinarith [sqrt2_lt, Real.sqrt_nonneg 2] + -- "Put A_s = 0 otherwise." + let A : (Fin k → Bool) → (𝔗.K (b + 1) →L[ℂ] 𝔗.K (b + 1)) := fun s => + if h : good s then Classical.choose (hgood s h) else 0 + have hA : ∀ s, A s ∈ I1 (𝔗.T (b + 1)) := by + intro s + by_cases h : good s + · simp only [A, h, ↓reduceDIte]; exact (Classical.choose_spec (hgood s h)).1 + · simp only [A, h, ↓reduceDIte]; exact zero_mem_I1 _ + refine ⟨A, hA, ?_⟩ + -- pointwise: Re⟨A_s V^s v, V^s w⟩ ≥ µ (1 − 16‖V^s v − a‖² − 16‖V^s w − b‖²) + have hpt : ∀ s, μ * (1 - 16 * ‖𝔗.Vs (b + 1) k s v - a‖ ^ 2 - 16 * ‖𝔗.Vs (b + 1) k s w - bb‖ ^ 2) + ≤ (⟪𝔗.Vs (b + 1) k s w, A s (𝔗.Vs (b + 1) k s v)⟫_ℂ).re := by + intro s + by_cases h : good s + · simp only [A, h, ↓reduceDIte] + refine le_trans ?_ (Classical.choose_spec (hgood s h)).2 + nlinarith [sq_nonneg ‖𝔗.Vs (b + 1) k s v - a‖, sq_nonneg ‖𝔗.Vs (b + 1) k s w - bb‖] + · simp only [A, h, ↓reduceDIte, zero_apply, inner_zero_right, Complex.zero_re] + -- one of the two distances is ≥ 1/4 + rcases not_and_or.mp h with h1 | h1 <;> rw [not_lt] at h1 + · have : (1 / 4 : ℝ) ^ 2 ≤ ‖𝔗.Vs (b + 1) k s v - a‖ ^ 2 := + pow_le_pow_left₀ (by norm_num) h1 2 + nlinarith [sq_nonneg ‖𝔗.Vs (b + 1) k s w - bb‖] + · have : (1 / 4 : ℝ) ^ 2 ≤ ‖𝔗.Vs (b + 1) k s w - bb‖ ^ 2 := + pow_le_pow_left₀ (by norm_num) h1 2 + nlinarith [sq_nonneg ‖𝔗.Vs (b + 1) k s v - a‖] + -- "E_s‖V^s v − a‖² = E_s‖V^s(v − a)‖² ≤ 1/64" (by (3)) + have hva : ∑ s : Fin k → Bool, ‖𝔗.Vs (b + 1) k s v - a‖ ^ 2 ≤ 2 ^ k * (1 / 8) ^ 2 := by + have e : ∀ s, 𝔗.Vs (b + 1) k s v - a = 𝔗.Vs (b + 1) k s (v - 𝔗.up (b + 1) k a) := by + intro s; rw [map_sub, Vs_up] + simp only [e] + exact (𝔗.sum_norm_sq_Vs_le (b + 1) k _).trans + (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) hv 2) (by positivity)) + have hwb : ∑ s : Fin k → Bool, ‖𝔗.Vs (b + 1) k s w - bb‖ ^ 2 ≤ 2 ^ k * (1 / 8) ^ 2 := by + have e : ∀ s, 𝔗.Vs (b + 1) k s w - bb = 𝔗.Vs (b + 1) k s (w - 𝔗.up (b + 1) k bb) := by + intro s; rw [map_sub, Vs_up] + simp only [e] + exact (𝔗.sum_norm_sq_Vs_le (b + 1) k _).trans + (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (norm_nonneg _) hw 2) (by positivity)) + -- average + rw [inner_Cop, Complex.div_re, Complex.re_sum] + have h2k : (2 : ℂ) ^ k = ((2 ^ k : ℝ) : ℂ) := by push_cast; rfl + rw [h2k, Complex.ofReal_re, Complex.ofReal_im, Complex.normSq_ofReal] + simp only [mul_zero, zero_div, add_zero] + have hsum := Finset.sum_le_sum fun s (_ : s ∈ Finset.univ) => hpt s + rw [← Finset.mul_sum, Finset.sum_sub_distrib, Finset.sum_sub_distrib, Finset.sum_const, + Finset.card_univ, ← Finset.mul_sum, ← Finset.mul_sum] at hsum + simp only [nsmul_eq_mul, Fintype.card_pi, Fintype.card_bool, Finset.prod_const, + Finset.card_univ, Fintype.card_fin, Nat.cast_pow, Nat.cast_ofNat, mul_one] at hsum + have hpos : (0 : ℝ) < 2 ^ k := by positivity + have pa := mul_le_mul_of_nonneg_left hva hμ.le + have pb := mul_le_mul_of_nonneg_left hwb hμ.le + have h1 : μ * 2 ^ k / 2 ≤ ∑ s, (⟪𝔗.Vs (b + 1) k s w, A s (𝔗.Vs (b + 1) k s v)⟫_ℂ).re := by + linarith + rw [le_div_iff₀ (by positivity)] + have h2 := mul_le_mul_of_nonneg_right h1 hpos.le + linarith + +end Tower + +end HilbertInvariantSubspace diff --git a/LeanPool/projects/hilbert-invariant-subspace.yaml b/LeanPool/projects/hilbert-invariant-subspace.yaml new file mode 100644 index 0000000000..126852c85a --- /dev/null +++ b/LeanPool/projects/hilbert-invariant-subspace.yaml @@ -0,0 +1,50 @@ +slug: hilbert-invariant-subspace +title: A counterexample to the invariant subspace problem on ℓ² +summary: >- + Constructs a bounded complex-linear operator on ℓ²(ℕ, ℂ) whose only + closed invariant subspaces are zero and the whole space. The construction + uses cyclic nilpotent operators on finite-dimensional blocks, polynomial + multiplier estimates, and a tower of compatible isometric embeddings. + The result gives a negative answer to the invariant subspace problem for + separable infinite-dimensional complex Hilbert spaces. +branch: functional analysis +entry_module: LeanPool.HilbertInvariantSubspace +authors: + - Claude (Anthropic) +source: + title: A counterexample to the invariant subspace problem on ℓ² + url: https://github.com/anthropics/formal-math/blob/6bb031d7ecd6f25331359cd20e5d4333f389da9b/isp-hilbert-spaces/paper.pdf + github_repo: anthropics/formal-math + commit: 6bb031d7ecd6f25331359cd20e5d4333f389da9b + project_path: isp-hilbert-spaces + lean_solution_url: https://github.com/anthropics/formal-math/blob/6bb031d7ecd6f25331359cd20e5d4333f389da9b/isp-hilbert-spaces/Solution.lean#L31-L33 + announcement_url: https://github.com/anthropics/formal-math/pull/72 + announcement_date: '2026-12-02T18:10:48Z' +license: Apache-2.0 +status: verified +provenance: AI +provenance_evidence: >- + Anthropic's upstream README credits an internal Claude research model with + discovering the result and writing the Lean formalization. Anthropic + researchers checked the paper and helped improve its presentation. +main_declarations: + - HilbertInvariantSubspace.exists_no_invariant_subspace + - HilbertInvariantSubspace.not_ISP + - HilbertInvariantSubspace.exists_on_separable_hilbert_space +main_results: + - declaration: HilbertInvariantSubspace.exists_no_invariant_subspace + source_ref: 'Theorem 1.1 on ℓ²(ℕ, ℂ).' + informal: Some bounded complex-linear operator on the space of square-summable complex sequences leaves only the zero and full closed subspaces invariant. + - declaration: HilbertInvariantSubspace.not_ISP + source_ref: 'Negative answer described in the introduction, obtained by applying Theorem 1.1 to the separable infinite-dimensional Hilbert space ℓ²(ℕ, ℂ).' + informal: It is false that every bounded operator on every separable infinite-dimensional complex Hilbert space has a nontrivial proper closed invariant subspace. + - declaration: HilbertInvariantSubspace.exists_on_separable_hilbert_space + source_ref: 'Theorem 1.1 provides the witness on ℓ². The upstream Solution.lean declaration hilbert_space_form gives the explicit existential formulation.' + informal: There is a separable infinite-dimensional complex Hilbert space and a bounded operator on it with only trivial closed invariant subspaces. +tags: + - hilbert-spaces + - operator-theory + - invariant-subspaces +msc: + - 47A15 + - 46C05