import Lib.GLn.SchurModule.GramMatrix /-! # Auerbach's lemma, ultrametric matrix bounds and Gram norms This file collects norm estimates for linear maps and matrices. ## Main definitions and results * `New.exists_auerbach`: linear forms indexed by a compact space that vanish together only at `0`, with images in a normed field depending continuously on the index, contain the coordinate forms of a basis on whose vectors all forms of the family take values of image norm at most `1`. These forms are chosen to maximise the norm of the image of their determinant; Cramer's rule gives the bound. * `New.norm_mulVec_le_of_nonneg`, `New.norm_mulVec_le`: over an ultrametric field, a matrix whose entries have norm at most `c ≥ 0` multiplies the sup norm of a vector by at most `c`, whatever its size. * `New.sqrt_weylNormSq_le_of_dual`: a bound on the Gram norm of Weyl modules by duality. * `New.sqrt_weylNormSq_sum_le`: the triangle inequality for the Gram norm of Weyl modules. ## Relation to the literature Known result: Auerbach's lemma, here for a compact family of linear forms. -/ /-! ## Auerbach's lemma for a compact family of linear forms -/ section Auerbach open Module Basis /-- Auerbach's lemma. Let `ℓ a` (`a` in a compact topological space `A`) be linear forms on a finite-dimensional `K`-space `U` whose only common zero is `0`. Let `φ : K →+* L` map to a normed field, and let `a ↦ φ (ℓ a v)` be continuous for every `v`. Then there are indices `S k` and a basis `z` such that the coordinates of `z` are the forms `ℓ (S k)` and `‖φ (ℓ a (z k))‖ ≤ 1` for all `a`, `k`. The result depends on the basis `b` only through its index type `ι`. The topology `topA` of `A` is implicit: it is found from the continuity hypothesis. -/ lemma New.exists_auerbach {K U A L ι : Type*} [Field K] [AddCommGroup U] [Module K U] [Module.Finite K U] [Fintype ι] {topA : TopologicalSpace A} [CompactSpace A] [NormedField L] (b : Basis ι K U) (ℓ : A → Dual K U) (h_sep : ∀ v : U, (∀ a : A, ℓ a v = 0) → v = 0) (φ : K →+* L) (hℓ_cont : ∀ v : U, Continuous fun a : A ↦ φ (ℓ a v)) : ∃ (S : ι → A) (z : Basis ι K U), (∀ k : ι, z.coord k = ℓ (S k)) ∧ ∀ (a : A) (k : ι), ‖φ (ℓ a (z k))‖ ≤ 1 := by classical -- Choose `S` to maximise `‖φ (det (ℓ ∘ S))‖` and let `z` be the basis dual to `ℓ ∘ S`. By -- Cramer's rule `ℓ a (z k)` is the determinant with `S k` replaced by `a` over the maximal one. -- First, the forms span the dual space, so the determinant is nonzero on some family of them. have h_span : Submodule.span K (Set.range ℓ) = ⊤ := Submodule.span_eq_top_of_ne_zero fun v hv ↦ by simpa using mt (h_sep v) hv obtain ⟨S₀, hS₀⟩ : ∃ S₀ : ι → A, b.dualBasis.det (ℓ ∘ S₀) ≠ 0 := by by_contra! h_zero exact b.dualBasis.det_ne_zero (AlternatingMap.coe_multilinearMap_injective (MultilinearMap.ext_of_span_eq_top (fun _ ↦ h_span) h_zero)) -- `φ` of the determinant is a polynomial in the `φ (ℓ (S k) (b j))`, so its norm has a maximum. let D (S : ι → A) : K := b.dualBasis.det (ℓ ∘ S) have h_det_eq (S : ι → A) : φ (D S) = (Matrix.of fun j k ↦ φ (ℓ (S k) (b j))).det := by simp [D, det_apply, Matrix.det_apply, toMatrix] have h_cont : Continuous fun S : ι → A ↦ φ (D S) := by simp only [h_det_eq] exact (continuous_matrix fun j k ↦ (hℓ_cont (b j)).comp (continuous_apply k)).matrix_det obtain ⟨S, hS⟩ : ∃ S : ι → A, ∀ S' : ι → A, ‖φ (D S')‖ ≤ ‖φ (D S)‖ := h_cont.norm.exists_forall_ge' S₀ (by simp [Filter.cocompact_eq_bot]) have h_pos : 0 < ‖φ (D S)‖ := lt_of_lt_of_le (by simpa [D] using hS₀) (hS S₀) obtain ⟨h_indep, h_top⟩ : LinearIndependent K (ℓ ∘ S) ∧ Submodule.span K (Set.range (ℓ ∘ S)) = ⊤ := b.dualBasis.is_basis_iff_det.2 (by simpa [D] using h_pos) let z : Basis ι K U := (Basis.mk h_indep h_top.ge).dualBasis.map (evalEquiv K U).symm refine ⟨S, z, fun k ↦ by ext; simp [z], fun a k ↦ ?_⟩ have cramer : D S * ℓ a (z k) = D (Function.update S k a) := by -- Cramer's rule in the dual space, evaluated at the form `ℓ a` simpa [D, z, Function.comp_update] using DFunLike.congr_fun (b.dualBasis.det_smul_mk_coord_eq_det_update h_indep h_top.ge k) (ℓ a) -- maximality of `S` against `S` with `S k` replaced by `a`; cancel the positive factor have h_max : ‖φ (D S)‖ * ‖φ (ℓ a (z k))‖ ≤ ‖φ (D S)‖ := by rw [← norm_mul, ← map_mul, cramer] exact hS (Function.update S k a) exact (mul_le_iff_le_one_right h_pos).1 h_max end Auerbach /-! ## Sup norm bound for matrix–vector products over ultrametric fields -/ /-- Over an ultrametric normed field, a matrix whose entries have norm at most `c ≥ 0` multiplies the sup norm of a vector by at most `c`, whatever the size of the matrix. -/ lemma New.norm_mulVec_le_of_nonneg {K l m : Type*} [NormedField K] [IsUltrametricDist K] [Fintype l] [Fintype m] {M : Matrix l m K} {c : ℝ} (hc : 0 ≤ c) (hM : ∀ (i : l) (j : m), ‖M i j‖ ≤ c) (x : m → K) : ‖M.mulVec x‖ ≤ c * ‖x‖ := by refine (pi_norm_le_iff_of_nonneg (by positivity)).2 fun i ↦ ?_ -- In an ultrametric field a sum is bounded by its largest term. rw [M.mulVec_apply_eq_sum] refine IsUltrametricDist.norm_sum_le_of_forall_le_of_nonneg (by positivity) fun j _ ↦ ?_ exact (norm_mul_le _ _).trans (mul_le_mul (hM i j) (norm_le_pi_norm x j) (norm_nonneg _) hc) /-- If all entries of a matrix `M` over an ultrametric normed field have norm at most `c`, then `‖M.mulVec x‖ ≤ c * ‖x‖` in the sup norm. This is the form of `New.norm_mulVec_le_of_nonneg` for explicit constants: the hypothesis `0 ≤ c` comes last and is proved by `simp` when omitted. -/ lemma New.norm_mulVec_le {K l m : Type*} [NormedField K] [IsUltrametricDist K] [Fintype l] [Fintype m] {M : Matrix l m K} {c : ℝ} (hM : ∀ (i : l) (j : m), ‖M i j‖ ≤ c) (x : m → K) (hc : 0 ≤ c := by simp) : ‖M.mulVec x‖ ≤ c * ‖x‖ := New.norm_mulVec_le_of_nonneg hc hM x /-! ## Duality for Gram norms For an automorphism `σ` of `ℂ`, we bound the values at `σ ∘ v` of the Gram norm `ξ ↦ √(weylNormSq ξ)`, where `New.weylNormSq ξ` is the real part of `ξ* G ξ` for the integer Gram matrix `G`. The coordinates are indexed by `New.WeylIndex n κ`: families, one for each `τ : T`, of basis tableaux with entries indexed by `n` and column multiplicities `κ τ`. -/ namespace New open Matrix «GL» variable {T n : Type} [Fintype T] [DecidableEq T] [Fintype n] [DecidableEq n] {κ : T → ℕ → ℕ} (σ : ℂ ≃+* ℂ) /-- Duality for the Gram norm `ξ ↦ √(weylNormSq ξ)` after an automorphism `σ` of `ℂ`, on vectors indexed by `WeylIndex n κ` (families of basis tableaux): here `weylNormSq ξ` is `Re (ξ* G ξ)` for the positive definite integer Gram matrix `G = weylGram n κ` of the Weyl-module basis given by these tableaux (entries in `n`, column multiplicities `κ τ` for each `τ : T`). If `‖σ (c ⬝ᵥ v)‖ ≤ C` for every vector `c` with `‖σ (c ⬝ᵥ w)‖ ≤ √(weylNormSq (σ ∘ w))` for all `w`, then the Gram norm of `σ ∘ v` is at most `C`. -/ lemma sqrt_weylNormSq_le_of_dual {v : WeylIndex n κ → ℂ} {C : ℝ} (h_dual : ∀ c : WeylIndex n κ → ℂ, (∀ w : WeylIndex n κ → ℂ, ‖σ (c ⬝ᵥ w)‖ ≤ √(weylNormSq (σ ∘ w))) → ‖σ (c ⬝ᵥ v)‖ ≤ C) : √(weylNormSq (σ ∘ v)) ≤ C := by -- Test with the functional `w ↦ ⟨σ v, σ w⟩ / N` pulled back through `σ`, where `⟨·, ·⟩` is the -- Gram pairing and `N = √⟨σ v, σ v⟩`. set N : ℝ := √(weylNormSq (σ ∘ v)) with hN let c : WeylIndex n κ → ℂ := σ.symm ∘ ((N : ℂ)⁻¹ • star (σ ∘ v) ᵥ* weylGramOver) have hc (w : WeylIndex n κ → ℂ) : ‖σ (c ⬝ᵥ w)‖ = ‖star (σ ∘ v) ⬝ᵥ weylGramOver *ᵥ (σ ∘ w)‖ / N := by have h_pull (x y : WeylIndex n κ → ℂ) : σ (σ.symm ∘ x ⬝ᵥ y) = x ⬝ᵥ σ ∘ y := by simp [dotProduct] simp [c, h_pull, ← dotProduct_mulVec, inv_mul_eq_div, hN, abs_of_nonneg] -- Cauchy–Schwarz for the positive definite Gram matrix: `c` has norm at most one. have h_norm (w : WeylIndex n κ → ℂ) : ‖σ (c ⬝ᵥ w)‖ ≤ √(weylNormSq (σ ∘ w)) := by rw [hc w] refine div_le_of_le_mul₀ (Real.sqrt_nonneg _) (Real.sqrt_nonneg _) ?_ have h_sq : ‖star (σ ∘ v) ⬝ᵥ weylGramOver *ᵥ (σ ∘ w)‖ ^ 2 ≤ weylNormSq (σ ∘ w) * weylNormSq (σ ∘ v) := posDef_cauchy_schwarz weylGramOver_posDef (σ ∘ v) (σ ∘ w) simpa [weylNormSq_nonneg, hN] using Real.abs_le_sqrt h_sq -- At `w = v` the value is `N ^ 2 / N = N`. refine le_of_eq_of_le ?_ (h_dual c h_norm) simp [hc, ← coe_weylNormSq, abs_of_nonneg (weylNormSq_nonneg _), hN] /-- Triangle inequality for the Gram norm `ξ ↦ √(weylNormSq ξ)` on vectors indexed by `WeylIndex n κ` (families of basis tableaux, entries in `n`, column multiplicities `κ τ`), where `weylNormSq ξ = Re (ξ* G ξ)` for the positive definite integer Gram matrix `G = weylGram n κ`, after an automorphism `σ` of `ℂ`: the Gram norm of `σ` applied to a finite sum of vectors is at most the sum of their Gram norms after `σ`. -/ lemma sqrt_weylNormSq_sum_le {α : Type*} (s : Finset α) (f : α → WeylIndex n κ → ℂ) : √(weylNormSq (σ ∘ ∑ a ∈ s, f a)) ≤ ∑ a ∈ s, √(weylNormSq (σ ∘ f a)) := by -- By duality it suffices to bound a functional `c` of norm at most one on the sum. refine sqrt_weylNormSq_le_of_dual σ fun c hc ↦ ?_ calc ‖σ (c ⬝ᵥ ∑ a ∈ s, f a)‖ = ‖∑ a ∈ s, σ (c ⬝ᵥ f a)‖ := by rw [dotProduct_sum, map_sum] _ ≤ ∑ a ∈ s, √(weylNormSq (σ ∘ f a)) := norm_sum_le_of_le s fun a _ ↦ hc (f a) end New