Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - feat(analysis/inner_product_space): in finite dimension, hilbert basis = orthonormal basis #15540

Closed
wants to merge 8 commits into from
36 changes: 36 additions & 0 deletions src/analysis/inner_product_space/l2_space.lean
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Authors: Heather Macbeth
-/
import analysis.inner_product_space.projection
import analysis.normed_space.lp_space
import analysis.inner_product_space.pi_L2

/-!
# Hilbert sum of a family of inner product spaces
Expand Down Expand Up @@ -403,6 +404,23 @@ protected lemma tsum_inner_mul_inner (b : hilbert_basis ι 𝕜 E) (x y : E) :
∑' i, ⟪x, b i⟫ * ⟪b i, y⟫ = ⟪x, y⟫ :=
(b.has_sum_inner_mul_inner x y).tsum_eq

-- Note : this should be `b.repr` composed with an identification of `lp (λ i : ι, 𝕜) 2` with
-- `pi_Lp 2 (λ i : ι, 𝕜)`, but we don't have this yet (July 2022).
ADedecker marked this conversation as resolved.
Show resolved Hide resolved
/-- A finite Hilbert basis is an orthonormal basis. -/
protected def to_orthonormal_basis [fintype ι] (b : hilbert_basis ι 𝕜 E) :
orthonormal_basis ι 𝕜 E :=
orthonormal_basis.mk b.orthonormal
begin
rw [← set.image_univ, ← finset.coe_univ, ← finset.coe_image],
have := (span 𝕜 (finset.univ.image b : set E)).closed_of_finite_dimensional,
rw [← this.submodule_topological_closure_eq, finset.coe_image, finset.coe_univ, set.image_univ],
exact b.dense_span
ADedecker marked this conversation as resolved.
Show resolved Hide resolved
end

@[simp] lemma coe_to_orthonormal_basis [fintype ι] (b : hilbert_basis ι 𝕜 E) :
(b.to_orthonormal_basis : ι → E) = b :=
orthonormal_basis.coe_mk _ _

variables {v : ι → E} (hv : orthonormal 𝕜 v)
include hv cplt

Expand Down Expand Up @@ -437,6 +455,24 @@ hilbert_basis.coe_mk hv _

omit hv

-- Note : this should be `b.repr` composed with an identification of `lp (λ i : ι, 𝕜) 2` with
-- `pi_Lp 2 (λ i : ι, 𝕜)`, but we don't have that yet (July 2022).
/-- An orthonormal basis is an Hilbert basis. -/
protected def _root_.orthonormal_basis.to_hilbert_basis [fintype ι] (b : orthonormal_basis ι 𝕜 E) :
hilbert_basis ι 𝕜 E :=
hilbert_basis.mk b.orthonormal
begin
ADedecker marked this conversation as resolved.
Show resolved Hide resolved
rw [← set.image_univ, ← finset.coe_univ, ← finset.coe_image],
have := (span 𝕜 (finset.univ.image b : set E)).closed_of_finite_dimensional,
rw [this.submodule_topological_closure_eq, finset.coe_image, finset.coe_univ, set.image_univ,
← orthonormal_basis.coe_to_basis],
exact b.to_basis.span_eq
ADedecker marked this conversation as resolved.
Show resolved Hide resolved
end

@[simp] lemma _root_.orthonormal_basis.coe_to_hilbert_basis [fintype ι]
(b : orthonormal_basis ι 𝕜 E) : (b.to_hilbert_basis : ι → E) = b :=
hilbert_basis.coe_mk _ _

/-- A Hilbert space admits a Hilbert basis extending a given orthonormal subset. -/
lemma _root_.orthonormal.exists_hilbert_basis_extension
{s : set E} (hs : orthonormal 𝕜 (coe : s → E)) :
Expand Down