The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V16. Normed spaces and functional analysis

Mathlib.Analysis.InnerProductSpace.Basic

163 declarations and 4 deprecated aliases. Mathlib docs Β· Source

Properties of inner product spaces

This file proves many basic properties of inner product spaces (real or complex).

Main results

  • inner_mul_inner_self_le: the Cauchy-Schwarz inequality (one of many variants).
  • norm_inner_eq_norm_iff: the equality criterion in the Cauchy-Schwarz inequality (also in many variants).
  • inner_eq_sum_norm_sq_div_four: the polarization identity.

Tags

inner product space, Hilbert space, norm

theorem inner_conj_symm E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), (starRingEnd π•œ) (inner π•œ y x) = inner π•œ x y

theorem real_inner_comm E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F), inner ℝ y x = inner ℝ x y

theorem inner_eq_zero_symm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, inner π•œ x y = 0 ↔ inner π•œ y x = 0

instance instSymmEqInnerOfNat E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Sort u_4} (v : ΞΉ β†’ E), Std.Symm fun i j ↦ inner π•œ (v i) (v j) = 0

theorem inner_self_im E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), RCLike.im (inner π•œ x x) = 0

theorem inner_add_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y z : E), inner π•œ (x + y) z = inner π•œ x z + inner π•œ y z

theorem inner_add_right E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y z : E), inner π•œ x (y + z) = inner π•œ x y + inner π•œ x z

theorem inner_re_symm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), RCLike.re (inner π•œ x y) = RCLike.re (inner π•œ y x)

theorem inner_im_symm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), RCLike.im (inner π•œ x y) = -RCLike.im (inner π•œ y x)

theorem inner_smul_left_eq_star_smul E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {𝕝 : Type u_4} [inst_3 : CommSemiring 𝕝] [inst_4 : StarRing 𝕝] [inst_5 : Algebra 𝕝 π•œ] [inst_6 : Module 𝕝 E]
  [IsScalarTower 𝕝 π•œ E] [StarModule 𝕝 π•œ] (x y : E) (r : 𝕝), inner π•œ (r β€’ x) y = (starRingEnd 𝕝) r β€’ inner π•œ x y

See inner_smul_left for the common special when π•œ = 𝕝.

theorem inner_smul_left_eq_smul E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {𝕝 : Type u_4} [inst_3 : CommSemiring 𝕝] [inst_4 : StarRing 𝕝] [inst_5 : Algebra 𝕝 π•œ] [inst_6 : Module 𝕝 E]
  [IsScalarTower 𝕝 π•œ E] [StarModule 𝕝 π•œ] [TrivialStar 𝕝] (x y : E) (r : 𝕝), inner π•œ (r β€’ x) y = r β€’ inner π•œ x y

Special case of inner_smul_left_eq_star_smul when the acting ring has a trivial star (e.g. β„•, β„€, β„šβ‰₯0, β„š, ℝ).

theorem inner_smul_right_eq_smul E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {𝕝 : Type u_4} [inst_3 : CommSemiring 𝕝] [inst_4 : StarRing 𝕝] [inst_5 : Algebra 𝕝 π•œ] [inst_6 : Module 𝕝 E]
  [IsScalarTower 𝕝 π•œ E] [StarModule 𝕝 π•œ] (x y : E) (r : 𝕝), inner π•œ x (r β€’ y) = r β€’ inner π•œ x y

See inner_smul_right for the common special when π•œ = 𝕝.

theorem inner_smul_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E) (r : π•œ), inner π•œ (r β€’ x) y = (starRingEnd π•œ) r * inner π•œ x y

See inner_smul_left_eq_star_smul for the case of a general algebra action.

theorem real_inner_smul_left E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F) (r : ℝ),
  inner ℝ (r β€’ x) y = r * inner ℝ x y

theorem inner_smul_real_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E) (r : ℝ), inner π•œ (↑r β€’ x) y = r β€’ inner π•œ x y

theorem inner_smul_right E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E) (r : π•œ), inner π•œ x (r β€’ y) = r * inner π•œ x y

See inner_smul_right_eq_smul for the case of a general algebra action.

theorem real_inner_smul_right E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F) (r : ℝ),
  inner ℝ x (r β€’ y) = r * inner ℝ x y

theorem inner_smul_real_right E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E) (r : ℝ), inner π•œ x (↑r β€’ y) = r β€’ inner π•œ x y

def innerβ‚›β‚— E1 #

(π•œ : Type u_1) β†’
  {E : Type u_2} β†’
    [inst : RCLike π•œ] β†’ [inst_1 : SeminormedAddCommGroup E] β†’ [inst_2 : InnerProductSpace π•œ E] β†’ E →ₗ⋆[π•œ] E β†’β‚—[π•œ] π•œ

The inner product as a sesquilinear map.

Note that in the case π•œ = ℝ this is a bilinear form.

theorem coe_innerβ‚›β‚—_apply E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (v : E), ⇑((innerβ‚›β‚— π•œ) v) = fun w ↦ inner π•œ v w

theorem innerβ‚›β‚—_apply_apply E0 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (v w : E), ((innerβ‚›β‚— π•œ) v) w = inner π•œ v w

def innerβ‚— E1 #

(F : Type u_3) β†’ [inst : SeminormedAddCommGroup F] β†’ [inst_1 : InnerProductSpace ℝ F] β†’ F β†’β‚—[ℝ] F β†’β‚—[ℝ] ℝ

The inner product as a bilinear map in the real case.

theorem flip_innerβ‚— E0 #

βˆ€ (F : Type u_3) [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F], (innerβ‚— F).flip = innerβ‚— F

theorem innerβ‚—_apply_apply E0 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (v w : F),
  ((innerβ‚— F) v) w = inner ℝ v w

theorem sum_inner E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} (s : Finset ΞΉ) (f : ΞΉ β†’ E) (x : E), inner π•œ (βˆ‘ i ∈ s, f i) x = βˆ‘ i ∈ s, inner π•œ (f i) x

An inner product with a sum on the left.

theorem inner_sum E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} (s : Finset ΞΉ) (f : ΞΉ β†’ E) (x : E), inner π•œ x (βˆ‘ i ∈ s, f i) = βˆ‘ i ∈ s, inner π•œ x (f i)

An inner product with a sum on the right.

theorem Finsupp.sum_inner E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} {M : Type u_5} [inst_3 : Zero M] (l : ΞΉ β†’β‚€ M) (v : ΞΉ β†’ M β†’ E) (x : E),
  inner π•œ (l.sum v) x = l.sum fun i a ↦ inner π•œ (v i a) x

An inner product with a sum on the left, Finsupp version.

theorem Finsupp.inner_sum E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} {M : Type u_5} [inst_3 : Zero M] (l : ΞΉ β†’β‚€ M) (v : ΞΉ β†’ M β†’ E) (x : E),
  inner π•œ x (l.sum v) = l.sum fun i a ↦ inner π•œ x (v i a)

An inner product with a sum on the right, Finsupp version.

theorem DFinsupp.sum_inner E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} [inst_3 : DecidableEq ΞΉ] {Ξ± : ΞΉ β†’ Type u_5} [inst_4 : (i : ΞΉ) β†’ AddZeroClass (Ξ± i)]
  [inst_5 : (i : ΞΉ) β†’ (x : Ξ± i) β†’ Decidable (x β‰  0)] (f : (i : ΞΉ) β†’ Ξ± i β†’ E) (l : Ξ β‚€ (i : ΞΉ), Ξ± i) (x : E),
  inner π•œ (l.sum f) x = l.sum fun i a ↦ inner π•œ (f i a) x

theorem DFinsupp.inner_sum E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} [inst_3 : DecidableEq ΞΉ] {Ξ± : ΞΉ β†’ Type u_5} [inst_4 : (i : ΞΉ) β†’ AddZeroClass (Ξ± i)]
  [inst_5 : (i : ΞΉ) β†’ (x : Ξ± i) β†’ Decidable (x β‰  0)] (f : (i : ΞΉ) β†’ Ξ± i β†’ E) (l : Ξ β‚€ (i : ΞΉ), Ξ± i) (x : E),
  inner π•œ x (l.sum f) = l.sum fun i a ↦ inner π•œ x (f i a)

theorem inner_zero_left E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), inner π•œ 0 x = 0

theorem inner_re_zero_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), RCLike.re (inner π•œ 0 x) = 0

theorem inner_zero_right E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), inner π•œ x 0 = 0

theorem inner_re_zero_right E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), RCLike.re (inner π•œ x 0) = 0

theorem inner_self_nonneg E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E}, 0 ≀ RCLike.re (inner π•œ x x)

theorem real_inner_self_nonneg E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F}, 0 ≀ inner ℝ x x

theorem inner_self_ofReal_re E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), ↑(RCLike.re (inner π•œ x x)) = inner π•œ x x

theorem inner_self_eq_norm_sq_to_K E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), inner π•œ x x = ↑‖xβ€– ^ 2

theorem inner_self_re_eq_norm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), RCLike.re (inner π•œ x x) = β€–inner π•œ x xβ€–

theorem inner_self_ofReal_norm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), ↑‖inner π•œ x xβ€– = inner π•œ x x

theorem real_inner_self_abs E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x : F), |inner ℝ x x| = inner ℝ x x

theorem norm_inner_symm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–inner π•œ x yβ€– = β€–inner π•œ y xβ€–

theorem inner_neg_left E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), inner π•œ (-x) y = -inner π•œ x y

theorem inner_neg_right E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), inner π•œ x (-y) = -inner π•œ x y

theorem inner_neg_neg E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), inner π•œ (-x) (-y) = inner π•œ x y

theorem inner_self_conj E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), (starRingEnd π•œ) (inner π•œ x x) = inner π•œ x x

theorem inner_sub_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y z : E), inner π•œ (x - y) z = inner π•œ x z - inner π•œ y z

theorem inner_sub_right E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y z : E), inner π•œ x (y - z) = inner π•œ x y - inner π•œ x z

theorem inner_mul_symm_re_eq_norm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), RCLike.re (inner π•œ x y * inner π•œ y x) = β€–inner π•œ x y * inner π•œ y xβ€–

theorem inner_add_add_self E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), inner π•œ (x + y) (x + y) = inner π•œ x x + inner π•œ x y + inner π•œ y x + inner π•œ y y

Expand βŸͺx + y, x + y⟫

theorem real_inner_add_add_self E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ (x + y) (x + y) = inner ℝ x x + 2 * inner ℝ x y + inner ℝ y y

Expand βŸͺx + y, x + y⟫_ℝ

theorem inner_sub_sub_self E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), inner π•œ (x - y) (x - y) = inner π•œ x x - inner π•œ x y - inner π•œ y x + inner π•œ y y

theorem real_inner_sub_sub_self E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ (x - y) (x - y) = inner ℝ x x - 2 * inner ℝ x y + inner ℝ y y

Expand βŸͺx - y, x - y⟫_ℝ

theorem parallelogram_law E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, inner π•œ (x + y) (x + y) + inner π•œ (x - y) (x - y) = 2 * (inner π•œ x x + inner π•œ y y)

Parallelogram law

theorem inner_mul_inner_self_le E3 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–inner π•œ x yβ€– * β€–inner π•œ y xβ€– ≀ RCLike.re (inner π•œ x x) * RCLike.re (inner π•œ y y)

Cauchy–Schwarz inequality.

theorem real_inner_mul_inner_self_le E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ x y * inner ℝ x y ≀ inner ℝ x x * inner ℝ y y

Cauchy–Schwarz inequality for real inner products.

theorem inner_eq_ofReal_norm_sq_left_iff E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {v w : E}, inner π•œ v w = ↑‖vβ€– ^ 2 ↔ inner π•œ v (v - w) = 0

theorem inner_eq_norm_sq_left_iff E0 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {v w : F},
  inner ℝ v w = β€–vβ€– ^ 2 ↔ inner ℝ v (v - w) = 0

theorem inner_eq_ofReal_norm_sq_right_iff E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {v w : E}, inner π•œ v w = ↑‖wβ€– ^ 2 ↔ inner π•œ (v - w) w = 0

theorem inner_eq_norm_sq_right_iff E0 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {v w : F},
  inner ℝ v w = β€–wβ€– ^ 2 ↔ inner ℝ (v - w) w = 0

theorem inner_self_eq_zero E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E}, inner π•œ x x = 0 ↔ x = 0

theorem inner_self_ne_zero E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E}, inner π•œ x x β‰  0 ↔ x β‰  0

theorem ext_inner_left E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, (βˆ€ (v : E), inner π•œ v x = inner π•œ v y) β†’ x = y

theorem ext_iff_inner_left E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, x = y ↔ βˆ€ (v : E), inner π•œ v x = inner π•œ v y

theorem ext_inner_right E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, (βˆ€ (v : E), inner π•œ x v = inner π•œ y v) β†’ x = y

theorem ext_iff_inner_right E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, x = y ↔ βˆ€ (v : E), inner π•œ x v = inner π•œ y v

theorem re_inner_self_nonpos E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E}, RCLike.re (inner π•œ x x) ≀ 0 ↔ x = 0

theorem re_inner_self_pos E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E}, 0 < RCLike.re (inner π•œ x x) ↔ x β‰  0

theorem real_inner_self_nonpos E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F}, inner ℝ x x ≀ 0 ↔ x = 0

theorem real_inner_self_pos E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F}, 0 < inner ℝ x x ↔ x β‰  0

theorem linearIndependent_of_ne_zero_of_inner_eq_zero E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {ΞΉ : Type u_4} {v : ΞΉ β†’ E},
  (βˆ€ (i : ΞΉ), v i β‰  0) β†’ (Pairwise fun i j ↦ inner π•œ (v i) (v j) = 0) β†’ LinearIndependent π•œ v

A family of vectors is linearly independent if they are nonzero and orthogonal.

theorem norm_eq_sqrt_re_inner E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), β€–xβ€– = √(RCLike.re (inner π•œ x x))

theorem norm_eq_sqrt_real_inner E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x : F), β€–xβ€– = √(inner ℝ x x)

theorem inner_self_eq_norm_mul_norm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), RCLike.re (inner π•œ x x) = β€–xβ€– * β€–xβ€–

theorem inner_self_eq_norm_sq E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), RCLike.re (inner π•œ x x) = β€–xβ€– ^ 2

theorem real_inner_self_eq_norm_mul_norm E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x : F), inner ℝ x x = β€–xβ€– * β€–xβ€–

theorem real_inner_self_eq_norm_sq E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x : F), inner ℝ x x = β€–xβ€– ^ 2

theorem norm_add_sq E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–x + yβ€– ^ 2 = β€–xβ€– ^ 2 + 2 * RCLike.re (inner π•œ x y) + β€–yβ€– ^ 2

Expand the square

theorem norm_add_pow_two E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–x + yβ€– ^ 2 = β€–xβ€– ^ 2 + 2 * RCLike.re (inner π•œ x y) + β€–yβ€– ^ 2

Alias of norm_add_sq.


Expand the square

theorem norm_add_sq_real E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x + yβ€– ^ 2 = β€–xβ€– ^ 2 + 2 * inner ℝ x y + β€–yβ€– ^ 2

Expand the square

theorem norm_add_pow_two_real E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x + yβ€– ^ 2 = β€–xβ€– ^ 2 + 2 * inner ℝ x y + β€–yβ€– ^ 2

Alias of norm_add_sq_real.


Expand the square

theorem norm_add_mul_self E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–x + yβ€– * β€–x + yβ€– = β€–xβ€– * β€–xβ€– + 2 * RCLike.re (inner π•œ x y) + β€–yβ€– * β€–yβ€–

Expand the square

theorem norm_add_mul_self_real E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x + yβ€– * β€–x + yβ€– = β€–xβ€– * β€–xβ€– + 2 * inner ℝ x y + β€–yβ€– * β€–yβ€–

Expand the square

theorem norm_sub_sq E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–x - yβ€– ^ 2 = β€–xβ€– ^ 2 - 2 * RCLike.re (inner π•œ x y) + β€–yβ€– ^ 2

Expand the square

theorem norm_sub_pow_two E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–x - yβ€– ^ 2 = β€–xβ€– ^ 2 - 2 * RCLike.re (inner π•œ x y) + β€–yβ€– ^ 2

Alias of norm_sub_sq.


Expand the square

theorem norm_sub_sq_real E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x - yβ€– ^ 2 = β€–xβ€– ^ 2 - 2 * inner ℝ x y + β€–yβ€– ^ 2

Expand the square

theorem norm_sub_pow_two_real E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x - yβ€– ^ 2 = β€–xβ€– ^ 2 - 2 * inner ℝ x y + β€–yβ€– ^ 2

Alias of norm_sub_sq_real.


Expand the square

theorem norm_sub_mul_self E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–x - yβ€– * β€–x - yβ€– = β€–xβ€– * β€–xβ€– - 2 * RCLike.re (inner π•œ x y) + β€–yβ€– * β€–yβ€–

Expand the square

theorem norm_sub_mul_self_real E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x - yβ€– * β€–x - yβ€– = β€–xβ€– * β€–xβ€– - 2 * inner ℝ x y + β€–yβ€– * β€–yβ€–

Expand the square

theorem norm_inner_le_norm E3 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–inner π•œ x yβ€– ≀ β€–xβ€– * β€–yβ€–

Cauchy–Schwarz inequality with norm

theorem nnNorm_inner_le_nnNorm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–inner π•œ x yβ€–β‚Š ≀ β€–xβ€–β‚Š * β€–yβ€–β‚Š

theorem eNorm_inner_le_eNorm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–inner π•œ x yβ€–β‚‘ ≀ β€–xβ€–β‚‘ * β€–yβ€–β‚‘

theorem re_inner_le_norm E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), RCLike.re (inner π•œ x y) ≀ β€–xβ€– * β€–yβ€–

theorem abs_real_inner_le_norm E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F), |inner ℝ x y| ≀ β€–xβ€– * β€–yβ€–

Cauchy–Schwarz inequality with norm

theorem real_inner_le_norm E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F), inner ℝ x y ≀ β€–xβ€– * β€–yβ€–

Cauchy–Schwarz inequality with norm

theorem inner_eq_zero_of_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E} (y : E), β€–xβ€– = 0 β†’ inner π•œ x y = 0

theorem inner_eq_zero_of_right E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E) {y : E}, β€–yβ€– = 0 β†’ inner π•œ x y = 0

theorem parallelogram_law_with_norm_mul E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [InnerProductSpace π•œ E] (x y : E),
  β€–x + yβ€– * β€–x + yβ€– + β€–x - yβ€– * β€–x - yβ€– = 2 * (β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€–)

theorem parallelogram_law_with_norm E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [InnerProductSpace π•œ E] (x y : E),
  β€–x + yβ€– ^ 2 + β€–x - yβ€– ^ 2 = 2 * (β€–xβ€– ^ 2 + β€–yβ€– ^ 2)

theorem parallelogram_law_with_nnNorm_mul E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [InnerProductSpace π•œ E] (x y : E),
  β€–x + yβ€–β‚Š * β€–x + yβ€–β‚Š + β€–x - yβ€–β‚Š * β€–x - yβ€–β‚Š = 2 * (β€–xβ€–β‚Š * β€–xβ€–β‚Š + β€–yβ€–β‚Š * β€–yβ€–β‚Š)

theorem parallelogram_law_with_nnNorm E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [InnerProductSpace π•œ E] (x y : E),
  β€–x + yβ€–β‚Š ^ 2 + β€–x - yβ€–β‚Š ^ 2 = 2 * (β€–xβ€–β‚Š ^ 2 + β€–yβ€–β‚Š ^ 2)

theorem norm_sq_add_norm_sq_add_norm_sq_add_norm_add_add_sq E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [InnerProductSpace π•œ E]
  (x y z : E), β€–xβ€– ^ 2 + β€–yβ€– ^ 2 + β€–zβ€– ^ 2 + β€–x + y + zβ€– ^ 2 = β€–x + yβ€– ^ 2 + β€–y + zβ€– ^ 2 + β€–x + zβ€– ^ 2

theorem re_inner_eq_norm_add_mul_self_sub_norm_mul_self_sub_norm_mul_self_div_two E2 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), RCLike.re (inner π•œ x y) = (β€–x + yβ€– * β€–x + yβ€– - β€–xβ€– * β€–xβ€– - β€–yβ€– * β€–yβ€–) / 2

Polarization identity: The real part of the inner product, in terms of the norm.

theorem re_inner_eq_norm_mul_self_add_norm_mul_self_sub_norm_sub_mul_self_div_two E2 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), RCLike.re (inner π•œ x y) = (β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€– - β€–x - yβ€– * β€–x - yβ€–) / 2

Polarization identity: The real part of the inner product, in terms of the norm.

theorem re_inner_eq_norm_add_mul_self_sub_norm_sub_mul_self_div_four E2 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), RCLike.re (inner π•œ x y) = (β€–x + yβ€– * β€–x + yβ€– - β€–x - yβ€– * β€–x - yβ€–) / 4

Polarization identity: The real part of the inner product, in terms of the norm.

theorem im_inner_eq_norm_sub_i_smul_mul_self_sub_norm_add_i_smul_mul_self_div_four E2 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E),
  RCLike.im (inner π•œ x y) = (β€–x - RCLike.I β€’ yβ€– * β€–x - RCLike.I β€’ yβ€– - β€–x + RCLike.I β€’ yβ€– * β€–x + RCLike.I β€’ yβ€–) / 4

Polarization identity: The imaginary part of the inner product, in terms of the norm.

theorem inner_eq_sum_norm_sq_div_four E3 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E),
  inner π•œ x y = (↑‖x + yβ€– ^ 2 - ↑‖x - yβ€– ^ 2 + (↑‖x - RCLike.I β€’ yβ€– ^ 2 - ↑‖x + RCLike.I β€’ yβ€– ^ 2) * RCLike.I) / 4

Polarization identity: The inner product, in terms of the norm.

theorem real_inner_eq_norm_add_mul_self_sub_norm_mul_self_sub_norm_mul_self_div_two E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ x y = (β€–x + yβ€– * β€–x + yβ€– - β€–xβ€– * β€–xβ€– - β€–yβ€– * β€–yβ€–) / 2

Polarization identity: The real inner product, in terms of the norm.

theorem real_inner_eq_norm_mul_self_add_norm_mul_self_sub_norm_sub_mul_self_div_two E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ x y = (β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€– - β€–x - yβ€– * β€–x - yβ€–) / 2

Polarization identity: The real inner product, in terms of the norm.

theorem norm_add_sq_eq_norm_sq_add_norm_sq_iff_real_inner_eq_zero E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x + yβ€– * β€–x + yβ€– = β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€– ↔ inner ℝ x y = 0

Pythagorean theorem, if-and-only-if vector inner product form.

theorem norm_add_eq_sqrt_iff_real_inner_eq_zero E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  β€–x + yβ€– = √(β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€–) ↔ inner ℝ x y = 0

Pythagorean theorem, if-and-if vector inner product form using square roots.

theorem norm_add_sq_eq_norm_sq_add_norm_sq_of_inner_eq_zero E2 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), inner π•œ x y = 0 β†’ β€–x + yβ€– * β€–x + yβ€– = β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€–

Pythagorean theorem, vector inner product form.

theorem norm_add_sq_eq_norm_sq_add_norm_sq_real E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  inner ℝ x y = 0 β†’ β€–x + yβ€– * β€–x + yβ€– = β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€–

Pythagorean theorem, vector inner product form.

theorem norm_sub_sq_eq_norm_sq_add_norm_sq_iff_real_inner_eq_zero E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  β€–x - yβ€– * β€–x - yβ€– = β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€– ↔ inner ℝ x y = 0

Pythagorean theorem, subtracting vectors, if-and-only-if vector inner product form.

theorem norm_sub_eq_sqrt_iff_real_inner_eq_zero E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  β€–x - yβ€– = √(β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€–) ↔ inner ℝ x y = 0

Pythagorean theorem, subtracting vectors, if-and-if vector inner product form using square roots.

theorem norm_sub_sq_eq_norm_sq_add_norm_sq_real E2 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  inner ℝ x y = 0 β†’ β€–x - yβ€– * β€–x - yβ€– = β€–xβ€– * β€–xβ€– + β€–yβ€– * β€–yβ€–

Pythagorean theorem, subtracting vectors, vector inner product form.

theorem real_inner_add_sub_eq_zero_iff E0 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ (x + y) (x - y) = 0 ↔ β€–xβ€– = β€–yβ€–

The sum and difference of two vectors are orthogonal if and only if they have the same norm.

theorem norm_sub_eq_norm_add E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {v w : E}, inner π•œ v w = 0 β†’ β€–w - vβ€– = β€–w + vβ€–

Given two orthogonal vectors, their sum and difference have equal norms.

theorem abs_real_inner_div_norm_mul_norm_le_one E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  |inner ℝ x y / (β€–xβ€– * β€–yβ€–)| ≀ 1

The real inner product of two vectors, divided by the product of their norms, has absolute value at most 1.

theorem real_inner_smul_self_left E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x : F) (r : ℝ),
  inner ℝ (r β€’ x) x = r * (β€–xβ€– * β€–xβ€–)

The inner product of a vector with a multiple of itself.

theorem real_inner_smul_self_right E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x : F) (r : ℝ),
  inner ℝ x (r β€’ x) = r * (β€–xβ€– * β€–xβ€–)

The inner product of a vector with a multiple of itself.

theorem inner_sum_smul_sum_smul_of_sum_eq_zero E1 #

βˆ€ {F : Type u_3} [inst : SeminormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {ι₁ : Type u_4} {s₁ : Finset ι₁}
  {w₁ : ι₁ β†’ ℝ} (v₁ : ι₁ β†’ F),
  βˆ‘ i ∈ s₁, w₁ i = 0 β†’
    βˆ€ {ΞΉβ‚‚ : Type u_5} {sβ‚‚ : Finset ΞΉβ‚‚} {wβ‚‚ : ΞΉβ‚‚ β†’ ℝ} (vβ‚‚ : ΞΉβ‚‚ β†’ F),
      βˆ‘ i ∈ sβ‚‚, wβ‚‚ i = 0 β†’
        inner ℝ (βˆ‘ i₁ ∈ s₁, w₁ i₁ β€’ v₁ i₁) (βˆ‘ iβ‚‚ ∈ sβ‚‚, wβ‚‚ iβ‚‚ β€’ vβ‚‚ iβ‚‚) =
          (-βˆ‘ i₁ ∈ s₁, βˆ‘ iβ‚‚ ∈ sβ‚‚, w₁ i₁ * wβ‚‚ iβ‚‚ * (β€–v₁ i₁ - vβ‚‚ iβ‚‚β€– * β€–v₁ i₁ - vβ‚‚ iβ‚‚β€–)) / 2

The inner product of two weighted sums, where the weights in each sum add to 0, in terms of the norms of pairwise differences.

theorem inner_eq_zero_iff_forall_re_inner_smul_left E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, inner π•œ x y = 0 ↔ βˆ€ (c : π•œ), RCLike.re (inner π•œ (c β€’ x) y) = 0

βŸͺx, y⟫ = 0 if and only if re βŸͺc β€’ x, y⟫ = 0 for every c : π•œ

theorem dist_div_norm_sq_smul E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  x β‰  0 β†’ y β‰  0 β†’ βˆ€ (R : ℝ), dist ((R / β€–xβ€–) ^ 2 β€’ x) ((R / β€–yβ€–) ^ 2 β€’ y) = R ^ 2 / (β€–xβ€– * β€–yβ€–) * dist x y

Formula for the distance between the images of two nonzero points under an inversion with center zero. See also EuclideanGeometry.dist_inversion_inversion for inversions around a general point.

theorem norm_inner_div_norm_mul_norm_eq_one_of_ne_zero_of_ne_zero_mul E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E} {r : π•œ}, x β‰  0 β†’ r β‰  0 β†’ β€–inner π•œ x (r β€’ x)β€– / (β€–xβ€– * β€–r β€’ xβ€–) = 1

The inner product of a nonzero vector with a nonzero multiple of itself, divided by the product of their norms, has absolute value 1.

theorem abs_real_inner_div_norm_mul_norm_eq_one_of_ne_zero_of_ne_zero_mul E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F} {r : ℝ},
  x β‰  0 β†’ r β‰  0 β†’ |inner ℝ x (r β€’ x)| / (β€–xβ€– * β€–r β€’ xβ€–) = 1

The inner product of a nonzero vector with a nonzero multiple of itself, divided by the product of their norms, has absolute value 1.

theorem real_inner_div_norm_mul_norm_eq_one_of_ne_zero_of_pos_mul E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F} {r : ℝ},
  x β‰  0 β†’ 0 < r β†’ inner ℝ x (r β€’ x) / (β€–xβ€– * β€–r β€’ xβ€–) = 1

The inner product of a nonzero vector with a positive multiple of itself, divided by the product of their norms, has value 1.

theorem real_inner_div_norm_mul_norm_eq_neg_one_of_ne_zero_of_neg_mul E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x : F} {r : ℝ},
  x β‰  0 β†’ r < 0 β†’ inner ℝ x (r β€’ x) / (β€–xβ€– * β€–r β€’ xβ€–) = -1

The inner product of a nonzero vector with a negative multiple of itself, divided by the product of their norms, has value -1.

theorem norm_inner_eq_norm_tfae E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E),
  [β€–inner π•œ x yβ€– = β€–xβ€– * β€–yβ€–, x = 0 ∨ y = (inner π•œ x y / inner π•œ x x) β€’ x, x = 0 ∨ βˆƒ r, y = r β€’ x,
      x = 0 ∨ y ∈ π•œ βˆ™ x].TFAE

theorem norm_inner_eq_norm_iff E3 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, x β‰  0 β†’ y β‰  0 β†’ (β€–inner π•œ x yβ€– = β€–xβ€– * β€–yβ€– ↔ βˆƒ r, r β‰  0 ∧ y = r β€’ x)

If the inner product of two vectors is equal to the product of their norms, then the two vectors are multiples of each other. One form of the equality case for Cauchy-Schwarz. Compare inner_eq_norm_mul_iff, which takes the stronger hypothesis βŸͺx, y⟫ = β€–xβ€– * β€–yβ€–.

theorem norm_inner_div_norm_mul_norm_eq_one_iff E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), β€–inner π•œ x y / (↑‖xβ€– * ↑‖yβ€–)β€– = 1 ↔ x β‰  0 ∧ βˆƒ r, r β‰  0 ∧ y = r β€’ x

The inner product of two vectors, divided by the product of their norms, has absolute value 1 if and only if they are nonzero and one is a multiple of the other. One form of equality case for Cauchy-Schwarz.

theorem abs_real_inner_div_norm_mul_norm_eq_one_iff E0 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  |inner ℝ x y / (β€–xβ€– * β€–yβ€–)| = 1 ↔ x β‰  0 ∧ βˆƒ r, r β‰  0 ∧ y = r β€’ x

The inner product of two vectors, divided by the product of their norms, has absolute value 1 if and only if they are nonzero and one is a multiple of the other. One form of equality case for Cauchy-Schwarz.

theorem inner_eq_norm_mul_iff_div E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, x β‰  0 β†’ (inner π•œ x y = ↑‖xβ€– * ↑‖yβ€– ↔ (↑‖yβ€– / ↑‖xβ€–) β€’ x = y)

theorem inner_eq_norm_mul_iff E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, inner π•œ x y = ↑‖xβ€– * ↑‖yβ€– ↔ ↑‖yβ€– β€’ x = ↑‖xβ€– β€’ y

If the inner product of two vectors is equal to the product of their norms (i.e., βŸͺx, y⟫ = β€–xβ€– * β€–yβ€–), then the two vectors are nonnegative real multiples of each other. One form of the equality case for Cauchy-Schwarz. Compare norm_inner_eq_norm_iff, which takes the weaker hypothesis abs βŸͺx, y⟫ = β€–xβ€– * β€–yβ€–.

theorem inner_eq_norm_mul_iff_real E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  inner ℝ x y = β€–xβ€– * β€–yβ€– ↔ β€–yβ€– β€’ x = β€–xβ€– β€’ y

If the inner product of two vectors is equal to the product of their norms (i.e., βŸͺx, y⟫ = β€–xβ€– * β€–yβ€–), then the two vectors are nonnegative real multiples of each other. One form of the equality case for Cauchy-Schwarz. Compare norm_inner_eq_norm_iff, which takes the weaker hypothesis abs βŸͺx, y⟫ = β€–xβ€– * β€–yβ€–.

theorem real_inner_div_norm_mul_norm_eq_one_iff E0 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ x y / (β€–xβ€– * β€–yβ€–) = 1 ↔ x β‰  0 ∧ βˆƒ r, 0 < r ∧ y = r β€’ x

The inner product of two vectors, divided by the product of their norms, has value 1 if and only if they are nonzero and one is a positive multiple of the other.

theorem real_inner_div_norm_mul_norm_eq_neg_one_iff E0 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] (x y : F),
  inner ℝ x y / (β€–xβ€– * β€–yβ€–) = -1 ↔ x β‰  0 ∧ βˆƒ r < 0, y = r β€’ x

The inner product of two vectors, divided by the product of their norms, has value -1 if and only if they are nonzero and one is a negative multiple of the other.

theorem inner_eq_one_iff_of_norm_eq_one E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, β€–xβ€– = 1 β†’ β€–yβ€– = 1 β†’ (inner π•œ x y = 1 ↔ x = y)

If the inner product of two unit vectors is 1, then the two vectors are equal. One form of the equality case for Cauchy-Schwarz.

theorem inner_eq_neg_one_iff_of_norm_eq_one E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x y : E}, β€–xβ€– = 1 β†’ β€–yβ€– = 1 β†’ (inner π•œ x y = -1 ↔ x = -y)

If the inner product of two unit vectors is -1, then the two vectors are negations of each other.

theorem real_inner_le_one_of_norm_eq_one E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  β€–xβ€– = 1 β†’ β€–yβ€– = 1 β†’ inner ℝ x y ≀ 1

The inner product of two unit vectors is less than or equal to 1.

theorem neg_one_le_real_inner_of_norm_eq_one E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  β€–xβ€– = 1 β†’ β€–yβ€– = 1 β†’ -1 ≀ inner ℝ x y

The inner product of two unit vectors is greater than or equal to -1.

theorem real_inner_mem_Icc_of_norm_eq_one E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  β€–xβ€– = 1 β†’ β€–yβ€– = 1 β†’ inner ℝ x y ∈ Set.Icc (-1) 1

If x and y are unit vectors, then -1 ≀ βŸͺx, y⟫ ≀ 1.

theorem inner_self_eq_one_of_norm_eq_one E1 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] [inst_1 : NormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  {x : E}, β€–xβ€– = 1 β†’ inner π•œ x x = 1

theorem inner_lt_norm_mul_iff_real E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  inner ℝ x y < β€–xβ€– * β€–yβ€– ↔ β€–yβ€– β€’ x β‰  β€–xβ€– β€’ y

theorem inner_lt_one_iff_real_of_norm_eq_one E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  β€–xβ€– = 1 β†’ β€–yβ€– = 1 β†’ (inner ℝ x y < 1 ↔ x β‰  y)

If the inner product of two unit vectors is strictly less than 1, then the two vectors are distinct. One form of the equality case for Cauchy-Schwarz.

theorem norm_add_eq_iff_real E1 #

βˆ€ {F : Type u_3} [inst : NormedAddCommGroup F] [inst_1 : InnerProductSpace ℝ F] {x y : F},
  β€–x + yβ€– = β€–xβ€– + β€–yβ€– ↔ β€–yβ€– β€’ x = β€–xβ€– β€’ y

Equality is achieved in the triangle inequality iff the two vectors are collinear.

abbrev InnerProductSpace.induced E1 #

{π•œ : Type u_1} β†’
  {E : Type u_2} β†’
    [inst : RCLike π•œ] β†’
      {G : Type u_4} β†’
        [inst_1 : SeminormedAddCommGroup E] β†’
          [inst_2 : InnerProductSpace π•œ E] β†’
            [inst_3 : AddCommGroup G] β†’
              [inst_4 : Module π•œ G] β†’
                {F : Type u_5} β†’
                  [inst_5 : FunLike F G E] β†’ [inst_6 : LinearMapClass F π•œ G E] β†’ (f : F) β†’ InnerProductSpace π•œ G

A linear map from a Module to an InnerProductSpace induces an InnerProductSpace structure on the domain using the SeminormedAddCommGroup.induced norm.

See note [reducible non-instances].

theorem inner_induced_eq E0 #

βˆ€ {π•œ : Type u_1} {E : Type u_2} [inst : RCLike π•œ] {G : Type u_4} [inst_1 : SeminormedAddCommGroup E]
  [inst_2 : InnerProductSpace π•œ E] [inst_3 : AddCommGroup G] [inst_4 : Module π•œ G] (g₁ gβ‚‚ : G) (f : G β†’β‚—[π•œ] E),
  inner π•œ g₁ gβ‚‚ = inner π•œ (f g₁) (f gβ‚‚)

instance RCLike.innerProductSpace E0 #

{π•œ : Type u_1} β†’ [inst : RCLike π•œ] β†’ InnerProductSpace π•œ π•œ

A field π•œ satisfying RCLike is itself a π•œ-inner product space.

theorem RCLike.inner_apply E0 #

βˆ€ {π•œ : Type u_1} [inst : RCLike π•œ] (x y : π•œ), inner π•œ x y = y * (starRingEnd π•œ) x

theorem RCLike.inner_apply' E1 #

βˆ€ {π•œ : Type u_1} [inst : RCLike π•œ] (x y : π•œ), inner π•œ x y = (starRingEnd π•œ) x * y

A version of RCLike.inner_apply that swaps the order of multiplication.

def Inner.rclikeToReal E1 #

(π•œ : Type u_1) β†’
  (E : Type u_2) β†’ [inst : RCLike π•œ] β†’ [inst_1 : SeminormedAddCommGroup E] β†’ [InnerProductSpace π•œ E] β†’ Inner ℝ E

A general inner product implies a real inner product. This is not registered as an instance since π•œ does not appear in the return type Inner ℝ E.

abbrev InnerProductSpace.rclikeToReal E1 #

(π•œ : Type u_1) β†’
  (E : Type u_2) β†’
    [inst : RCLike π•œ] β†’ [inst_1 : SeminormedAddCommGroup E] β†’ [InnerProductSpace π•œ E] β†’ InnerProductSpace ℝ E

A general inner product space structure implies a real inner product structure.

This is not registered as an instance since

  • π•œ does not appear in the return type InnerProductSpace ℝ E,
  • It is likely to create instance diamonds, as it builds upon the diamond-prone NormedSpace.restrictScalars.

However, it can be used in a proof to obtain a real inner product space structure from a given π•œ-inner product space structure.

theorem real_inner_eq_re_inner E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x y : E), inner ℝ x y = RCLike.re (inner π•œ x y)

theorem real_inner_I_smul_self E1 #

βˆ€ (π•œ : Type u_1) {E : Type u_2} [inst : RCLike π•œ] [inst_1 : SeminormedAddCommGroup E] [inst_2 : InnerProductSpace π•œ E]
  (x : E), inner ℝ x (RCLike.I β€’ x) = 0

def InnerProductSpace.complexToReal E1 #

{G : Type u_4} β†’ [inst : SeminormedAddCommGroup G] β†’ [InnerProductSpace β„‚ G] β†’ InnerProductSpace ℝ G

A complex inner product implies a real inner product. This cannot be an instance since it creates a diamond with PiLp.innerProductSpace because re (sum i, βŸͺx i, y i⟫) and sum i, re βŸͺx i, y i⟫ are not defeq.

instance instInnerProductSpaceRealComplex E0 #

InnerProductSpace ℝ β„‚

theorem Complex.inner E0 #

βˆ€ (w z : β„‚), inner ℝ w z = (z * (starRingEnd β„‚) w).re

instance RCLike.toInnerProductSpaceReal E0 #

{π•œ : Type u_1} β†’ [inst : RCLike π•œ] β†’ InnerProductSpace ℝ π•œ

An RCLike field is a real inner product space.

theorem Real.inner_apply E0 #

βˆ€ (x y : ℝ), inner ℝ x y = x * y

theorem isSymm_inner E1 #

βˆ€ {E : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E], (innerβ‚— E).IsSymm

theorem isNonneg_inner E1 #

βˆ€ {E : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E], (innerβ‚— E).IsNonneg

theorem isPosSemidef_inner E1 #

βˆ€ {E : Type u_2} [inst : NormedAddCommGroup E] [inst_1 : InnerProductSpace ℝ E], (innerβ‚— E).IsPosSemidef

Deprecated aliases

NameNew nameSince
enorm_inner_le_enormeNorm_inner_le_eNorm2026-11-06
nnnorm_inner_le_nnnormnnNorm_inner_le_nnNorm2026-10-31
parallelogram_law_with_nnnormparallelogram_law_with_nnNorm2026-10-31
parallelogram_law_with_nnnorm_mulparallelogram_law_with_nnNorm_mul2026-10-31