Skip to content
This repository was archived by the owner on Jul 24, 2024. It is now read-only.

Commit f435f95

Browse files
committed
feat(analysis/inner_product_space): ext lemmas for dense subspaces (#17450)
1 parent b12099d commit f435f95

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

src/analysis/inner_product_space/basic.lean

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2249,6 +2249,23 @@ end
22492249
lemma mem_orthogonal_singleton_of_inner_left (u : E) {v : E} (hv : ⟪v, u⟫ = 0) : v ∈ (𝕜 ∙ u)ᗮ :=
22502250
mem_orthogonal_singleton_of_inner_right u $ inner_eq_zero_sym.2 hv
22512251

2252+
lemma submodule.sub_mem_orthogonal_of_inner_left {x y : E}
2253+
(h : ∀ (v : K), ⟪x, v⟫ = ⟪y, v⟫) : x - y ∈ Kᗮ :=
2254+
begin
2255+
rw submodule.mem_orthogonal',
2256+
intros u hu,
2257+
rw [inner_sub_left, sub_eq_zero],
2258+
exact h ⟨u, hu⟩,
2259+
end
2260+
2261+
lemma submodule.sub_mem_orthogonal_of_inner_right {x y : E}
2262+
(h : ∀ (v : K), ⟪(v : E), x⟫ = ⟪(v : E), y⟫) : x - y ∈ Kᗮ :=
2263+
begin
2264+
intros u hu,
2265+
rw [inner_sub_right, sub_eq_zero],
2266+
exact h ⟨u, hu⟩,
2267+
end
2268+
22522269
variables (K)
22532270

22542271
/-- `K` and `Kᗮ` have trivial intersection. -/

src/analysis/inner_product_space/projection.lean

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -856,6 +856,38 @@ begin
856856
{ rw [h, submodule.bot_orthogonal_eq_top] }
857857
end
858858

859+
namespace dense
860+
861+
open submodule
862+
863+
variables {x y : E} [complete_space E]
864+
865+
/-- If `S` is dense and `x - y ∈ Kᗮ`, then `x = y`. -/
866+
lemma eq_of_sub_mem_orthogonal (hK : dense (K : set E)) (h : x - y ∈ Kᗮ) : x = y :=
867+
begin
868+
rw [dense_iff_topological_closure_eq_top, topological_closure_eq_top_iff] at hK,
869+
rwa [hK, submodule.mem_bot, sub_eq_zero] at h,
870+
end
871+
872+
lemma eq_zero_of_mem_orthogonal (hK : dense (K : set E)) (h : x ∈ Kᗮ) : x = 0 :=
873+
hK.eq_of_sub_mem_orthogonal (by rwa [sub_zero])
874+
875+
lemma eq_of_inner_left (hK : dense (K : set E)) (h : ∀ v : K, ⟪x, v⟫ = ⟪y, v⟫) : x = y :=
876+
hK.eq_of_sub_mem_orthogonal (submodule.sub_mem_orthogonal_of_inner_left h)
877+
878+
lemma eq_zero_of_inner_left (hK : dense (K : set E)) (h : ∀ v : K, ⟪x, v⟫ = 0) : x = 0 :=
879+
hK.eq_of_inner_left (λ v, by rw [inner_zero_left, h v])
880+
881+
lemma eq_of_inner_right (hK : dense (K : set E))
882+
(h : ∀ v : K, ⟪(v : E), x⟫ = ⟪(v : E), y⟫) : x = y :=
883+
hK.eq_of_sub_mem_orthogonal (submodule.sub_mem_orthogonal_of_inner_right h)
884+
885+
lemma eq_zero_of_inner_right (hK : dense (K : set E))
886+
(h : ∀ v : K, ⟪(v : E), x⟫ = 0) : x = 0 :=
887+
hK.eq_of_inner_right (λ v, by rw [inner_zero_right, h v])
888+
889+
end dense
890+
859891
/-- The reflection in `Kᗮ` of an element of `K` is its negation. -/
860892
lemma reflection_mem_subspace_orthogonal_precomplement_eq_neg
861893
[complete_space E] {v : E} (hv : v ∈ K) :

0 commit comments

Comments
 (0)