Zulip Chat Archive

Stream: Is there code for X?

Topic: 0_le_re_iner_orthogonalProjection


IvΓ‘n Renison (May 05 2025 at 13:14):

Hi, do we have code for this?

variable {π•œ E : Type*} [RCLike π•œ]
variable? [HilbertSpace π•œ E] => [NormedAddCommGroup E] [InnerProductSpace π•œ E] [CompleteSpace E]
variable [FiniteDimensional π•œ E]

lemma zero_le_re_iner_orthogonalProjection (K : Submodule π•œ E) [K.HasOrthogonalProjection] (x : E) :
    0 ≀ RCLike.re (inner π•œ (↑(K.orthogonalProjection x)) x) := sorry

My intuition for way this is true is very geometric, so I'm not being able to prove it, and I don't find it in Mathlib

Jireh Loreaux (May 05 2025 at 13:21):

My guess is probably not. What we should have (at some point, but do not currently I believe) is the map K.orthogonalProjection (which has type E β†’β‚—[π•œ] β†₯K) as a map P : E β†’β‚—[π•œ] E, which is P := K.subtype βˆ˜β‚— K.orthogonalProjection. This is a projection in the sense that P = P ^ 2 = star P, from which the result follows trivially (and we should develop API to make this so).

However, at this point, I don't think P is an existing definition in Mathlib, nor do we have any API developed for elements of the form P = P ^ 2 = star P.

IvΓ‘n Renison (May 05 2025 at 13:22):

Ok, thanks

Jireh Loreaux (May 05 2025 at 13:24):

(side note: this lemma would be called re_inner_orthogonalProjection_nonneg or something, not zero_le...)

Yury G. Kudryashov (May 05 2025 at 20:04):

IMHO, the right lemma here is to say that this inner product is equal to the square of the norm of the projection.

IvΓ‘n Renison (May 06 2025 at 07:37):

Great! With that idea I was able to prove it, and even to prove that it is a projection in the sense thatΒ P = P ^ 2 = star P. Thanks


Last updated: Dec 20 2025 at 21:32 UTC