@@ -120,30 +120,50 @@ theorem real_inner_smul_right (x y : F) (r : ℝ) : ⟪x, r • y⟫_ℝ = r *
120120theorem inner_smul_real_right (x y : E) (r : ℝ) : ⟪x, (r : 𝕜) • y⟫ = r • ⟪x, y⟫ := by
121121 rw [inner_smul_right, Algebra.smul_def]
122122
123- /-- The inner product as a sesquilinear form.
123+
124+ variable (𝕜)
125+
126+ /-- The inner product as a sesquilinear map.
124127
125128Note that in the case `𝕜 = ℝ` this is a bilinear form. -/
126- @[simps!]
127- def sesqFormOfInner : E →ₗ[𝕜] E →ₗ⋆[𝕜] 𝕜 :=
128- LinearMap.mk₂'ₛₗ (RingHom.id 𝕜) (starRingEnd _) (fun x y => ⟪y, x⟫)
129- (fun _x _y _z => inner_add_right _ _ _) (fun _r _x _y => inner_smul_right _ _ _)
130- (fun _x _y _z => inner_add_left _ _ _) fun _r _x _y => inner_smul_left _ _ _
129+ def innerₛₗ : E →ₗ⋆[𝕜] E →ₗ[𝕜] 𝕜 :=
130+ LinearMap.mk₂'ₛₗ _ _ (fun v w => ⟪v, w⟫) inner_add_left (fun _ _ _ => inner_smul_left _ _ _)
131+ inner_add_right fun _ _ _ => inner_smul_right _ _ _
132+
133+ @[simp]
134+ theorem coe_innerₛₗ_apply (v : E) : ⇑(innerₛₗ 𝕜 v) = fun w => ⟪v, w⟫ :=
135+ rfl
136+
137+ @[simp]
138+ theorem innerₛₗ_apply_apply (v w : E) : innerₛₗ 𝕜 v w = ⟪v, w⟫ :=
139+ rfl
140+
141+ variable (F)
142+ /-- The inner product as a bilinear map in the real case. -/
143+ def innerₗ : F →ₗ[ℝ] F →ₗ[ℝ] ℝ := innerₛₗ ℝ
144+
145+ @[simp] lemma flip_innerₗ : (innerₗ F).flip = innerₗ F := by
146+ ext v w
147+ exact real_inner_comm v w
131148
132- /-- The real inner product as a bilinear form.
149+ variable {F}
150+
151+ @[simp] lemma innerₗ_apply_apply (v w : F) : innerₗ F v w = ⟪v, w⟫_ℝ := rfl
152+
153+ variable {𝕜}
133154
134- Note that unlike `sesqFormOfInner`, this does not reverse the order of the arguments. -/
135- @[simps!]
136- def bilinFormOfRealInner : BilinForm ℝ F := sesqFormOfInner.flip
155+ @ [deprecated (since := "2025-12-26" )] alias sesqFormOfInner := innerₛₗ
156+ @ [deprecated (since := "2025-12-26" )] alias bilinFormOfRealInner := innerₗ
137157
138158/-- An inner product with a sum on the left. -/
139159theorem sum_inner {ι : Type *} (s : Finset ι) (f : ι → E) (x : E) :
140160 ⟪∑ i ∈ s, f i, x⟫ = ∑ i ∈ s, ⟪f i, x⟫ :=
141- map_sum (sesqFormOfInner (𝕜 := 𝕜) (E := E) x) _ _
161+ map_sum ((innerₛₗ 𝕜).flip x) _ _
142162
143163/-- An inner product with a sum on the right. -/
144164theorem inner_sum {ι : Type *} (s : Finset ι) (f : ι → E) (x : E) :
145165 ⟪x, ∑ i ∈ s, f i⟫ = ∑ i ∈ s, ⟪x, f i⟫ :=
146- map_sum (LinearMap.flip sesqFormOfInner x) _ _
166+ map_sum (innerₛₗ 𝕜 x) _ _
147167
148168/-- An inner product with a sum on the left, `Finsupp` version. -/
149169protected theorem Finsupp.sum_inner {ι : Type *} (l : ι →₀ 𝕜) (v : ι → E) (x : E) :
0 commit comments