Zulip Chat Archive
Stream: new members
Topic: Scalar product in Euclidean space
Michael Novak (Feb 18 2026 at 16:24):
I'm working with vectors in EuclideanSpace ℝ (Fin 2) and I want to use a theorem like theorem Matrix.smul_vec2 but for the Euclidean space I'm working with. How can I do this?
Aaron Liu (Feb 18 2026 at 17:05):
Aaron Liu (Feb 18 2026 at 17:06):
can you give a #mwe?
Eric Wieser (Feb 18 2026 at 17:15):
Perhaps
import Mathlib
example (c x y : ℝ) : c • !₂[x, y] = sorry := by
rw [← WithLp.toLp_smul, Matrix.smul_vec2]
Michael Novak (Feb 18 2026 at 19:01):
Eric Wieser said:
Perhaps
import Mathlib example (c x y : ℝ) : c • !₂[x, y] = sorry := by rw [← WithLp.toLp_smul, Matrix.smul_vec2]
That's exactly what I was looking for, thank you very much!
Michael Novak (Feb 18 2026 at 19:02):
Aaron Liu said:
Sorry, I was away from my computer for a few hours, but as you can see my question was answered. Thank you very much for trying to help!
Last updated: Feb 28 2026 at 14:05 UTC