Zulip Chat Archive

Stream: Is there code for X?

Topic: norm of orthonormal basis


Rémy Degenne (Mar 26 2025 at 07:15):

Do we have the fact that the norm of an element of an orthonormal basis is 1?
I expected the following examples to be simplified by simp, but now I can't even find a result that applies:

import Mathlib.Analysis.InnerProductSpace.PiL2

example {E : Type*} [NormedAddCommGroup E] [InnerProductSpace  E] [FiniteDimensional  E]
    (b : OrthonormalBasis (Fin (Module.finrank  E))  E) (i : Fin (Module.finrank  E)) :
    b i = 1 := by
  sorry

example {E : Type*} [NormedAddCommGroup E] [InnerProductSpace  E] [FiniteDimensional  E]
    (i : Fin (Module.finrank  E)) :
    stdOrthonormalBasis  E i = 1 := by
  sorry

Rémy Degenne (Mar 26 2025 at 07:21):

I looked at how those bases are defined, and the first example is proved simply by exact b.orthonormal.1 i. The second is a consequence of the first. Problem solved.
But we are missing the API lemma for that (which should be simp).

Yaël Dillies (Mar 26 2025 at 07:56):

Maybe the lemma isn't simp because it has a weak key of norm _?

Rémy Degenne (Mar 26 2025 at 08:20):

As far as I can tell there is no lemma? So it can't be simp.
You have to unpack the def of Orthonormal to find it. I'll make a PR with a simp lemma.

Rémy Degenne (Mar 26 2025 at 09:00):

#23332


Last updated: May 02 2025 at 03:31 UTC