let n be Element of NAT ; :: thesis: for x being Element of REAL (n + 1) holds |.x.| ^2 = (|.(x | n).| ^2 ) + ((x . (n + 1)) ^2 )
let x be Element of REAL (n + 1); :: thesis: |.x.| ^2 = (|.(x | n).| ^2 ) + ((x . (n + 1)) ^2 )
reconsider x = x as Element of (n + 1) -tuples_on REAL by EUCLID:def 1;
A1:
n + 1 = len x
by FINSEQ_1:def 18;
then
n + 1 in Seg (len x)
by FINSEQ_1:6;
then A2:
n + 1 in dom x
by FINSEQ_1:def 3;
A3:
x | n = x | (Seg n)
by FINSEQ_1:def 15;
len (x | n) = n
by A1, FINSEQ_1:80, NAT_1:11;
then reconsider xn = x | n as Element of n -tuples_on REAL by FINSEQ_2:110;
A4: x =
x | (n + 1)
by A1, FINSEQ_1:79
.=
x | (Seg (n + 1))
by FINSEQ_1:def 15
.=
(x | n) ^ <*(x . (n + 1))*>
by A2, A3, FINSEQ_5:11
;
A5:
|.x.| = sqrt (Sum (sqr x))
by EUCLID:def 5;
( sqr x is Element of REAL (n + 1) & ( for k being Element of NAT st k in Seg (n + 1) holds
0 <= (sqr x) . k ) )
then
0 <= Sum (sqr x)
by Th7;
then A6:
|.x.| ^2 = Sum (sqr x)
by A5, SQUARE_1:def 4;
A7:
|.(x | n).| = sqrt (Sum (sqr (x | n)))
by EUCLID:def 5;
( sqr (x | n) is Element of REAL n & ( for k being Element of NAT st k in Seg n holds
0 <= (sqr (x | n)) . k ) )
then
0 <= Sum (sqr (x | n))
by Th7;
then A8:
(|.(x | n).| ^2 ) + ((x . (n + 1)) ^2 ) = (Sum (sqr (x | n))) + ((x . (n + 1)) ^2 )
by A7, SQUARE_1:def 4;
(sqr (x | n)) ^ <*((x . (n + 1)) ^2 )*> =
(mlt xn,xn) ^ <*((x . (n + 1)) * (x . (n + 1)))*>
.=
mlt (xn ^ <*(x . (n + 1))*>),((x | n) ^ <*(x . (n + 1))*>)
by RFUNCT_4:2
.=
sqr x
by A4
;
hence
|.x.| ^2 = (|.(x | n).| ^2 ) + ((x . (n + 1)) ^2 )
by A6, A8, RVSUM_1:104; :: thesis: verum