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(normed_space/inner_product): euclidean_space.norm_eq #6744

Closed
wants to merge 3 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/analysis/normed_space/inner_product.lean
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,15 @@ space use `euclidean_space 𝕜 (fin n)`. -/
def euclidean_space (𝕜 : Type*) [is_R_or_C 𝕜]
(n : Type*) [fintype n] : Type* := pi_Lp 2 one_le_two (λ (i : n), 𝕜)

lemma euclidean_space.norm_eq {𝕜 : Type*} [is_R_or_C 𝕜] {n : Type*} [fintype n]
(x : euclidean_space 𝕜 n) : ∥ x ∥ = real.sqrt (∑ (i : n), ∥x i∥ ^ 2) :=
pechersky marked this conversation as resolved.
Show resolved Hide resolved
begin
have : (2 : ℝ) = (2 : ℕ) := by norm_num,
have h : ∀ (x : ℝ) (n : ℕ), real.rpow x n = monoid.pow x n := by simp,
simp_rw [pi_Lp.norm_eq, real.sqrt_eq_rpow, this, ←real.rpow_eq_pow, h],
simp
end
pechersky marked this conversation as resolved.
Show resolved Hide resolved

/-! ### Inner product space structure on subspaces -/

/-- Induced inner product on a submodule. -/
Expand Down