let m be non zero Nat; for x, y, z, w being Element of REAL m
for i being Nat
for d, p, q, r being Real st 1 <= i & i <= m & |.(y - x).| < d & |.(z - x).| < d & p = (proj (i,m)) . y & z = (reproj (i,y)) . q & r in [.p,q.] & w = (reproj (i,y)) . r holds
|.(w - x).| < d
let x, y, z, w be Element of REAL m; for i being Nat
for d, p, q, r being Real st 1 <= i & i <= m & |.(y - x).| < d & |.(z - x).| < d & p = (proj (i,m)) . y & z = (reproj (i,y)) . q & r in [.p,q.] & w = (reproj (i,y)) . r holds
|.(w - x).| < d
let i be Nat; for d, p, q, r being Real st 1 <= i & i <= m & |.(y - x).| < d & |.(z - x).| < d & p = (proj (i,m)) . y & z = (reproj (i,y)) . q & r in [.p,q.] & w = (reproj (i,y)) . r holds
|.(w - x).| < d
let d, p, q, r be Real; ( 1 <= i & i <= m & |.(y - x).| < d & |.(z - x).| < d & p = (proj (i,m)) . y & z = (reproj (i,y)) . q & r in [.p,q.] & w = (reproj (i,y)) . r implies |.(w - x).| < d )
assume that
A1:
( 1 <= i & i <= m )
and
A2:
( |.(y - x).| < d & |.(z - x).| < d )
and
A3:
( p = (proj (i,m)) . y & z = (reproj (i,y)) . q )
and
A4:
r in [.p,q.]
and
A5:
w = (reproj (i,y)) . r
; |.(w - x).| < d
set wx = w - x;
set yx = y - x;
set zx = z - x;
A6:
( Sum (sqr (y - x)) = |.(y - x).| ^2 & Sum (sqr (w - x)) = |.(w - x).| ^2 & Sum (sqr (z - x)) = |.(z - x).| ^2 )
by TOPREAL9:5;
A7:
( (proj (i,m)) . z = q & (proj (i,m)) . w = r )
by A1, A3, A5, Th39;
A8:
( p <= r & r <= q )
by A4, XXREAL_1:1;
i in Seg m
by A1;
then A9:
( i in dom (y - x) & i in dom (w - x) & i in dom (z - x) )
by FINSEQ_1:89;
set x1 = x;
reconsider r = r as Element of REAL by XREAL_0:def 1;
A10:
for l being Nat st l in Seg m & l <> i holds
(sqr (y - x)) . l = (sqr (w - x)) . l
proof
let l be
Nat;
( l in Seg m & l <> i implies (sqr (y - x)) . l = (sqr (w - x)) . l )
assume A11:
(
l in Seg m &
l <> i )
;
(sqr (y - x)) . l = (sqr (w - x)) . l
then A12:
(
l in dom (y - x) &
l in dom (w - x) &
l in dom y )
by FINSEQ_1:89;
then A13:
l in Seg (len y)
by FINSEQ_1:def 3;
then A14:
( 1
<= l &
l <= len y )
by FINSEQ_1:1;
(
l in Seg (len y) &
l in Seg (len (Replace (y,i,r))) )
by A13, FINSEQ_7:5;
then A15:
(
l in dom y &
l in dom (Replace (y,i,r)) )
by FINSEQ_1:def 3;
(
sqr (y - x) = sqrreal * (y - x) &
sqr (w - x) = sqrreal * (w - x) )
by RVSUM_1:def 8;
then
(
(sqr (y - x)) . l = sqrreal . ((y - x) . l) &
(sqr (w - x)) . l = sqrreal . ((w - x) . l) )
by A12, FUNCT_1:13;
then
(
(sqr (y - x)) . l = ((y - x) . l) ^2 &
(sqr (w - x)) . l = ((w - x) . l) ^2 )
by RVSUM_1:def 2;
then A16:
(
(sqr (y - x)) . l = ((y . l) - (x . l)) ^2 &
(sqr (w - x)) . l = ((w . l) - (x . l)) ^2 )
by A12, VALUED_1:13;
w . l = (Replace (y,i,r)) . l
by A5, PDIFF_1:def 5;
then
w . l = (Replace (y,i,r)) /. l
by A15, PARTFUN1:def 6;
then
w . l = y /. l
by A11, A14, FINSEQ_7:10;
hence
(sqr (y - x)) . l = (sqr (w - x)) . l
by A15, A16, PARTFUN1:def 6;
verum
end;
A17:
for l being Nat st l in Seg m & l <> i holds
(sqr (z - x)) . l = (sqr (w - x)) . l
proof
let l be
Nat;
( l in Seg m & l <> i implies (sqr (z - x)) . l = (sqr (w - x)) . l )
assume A18:
(
l in Seg m &
l <> i )
;
(sqr (z - x)) . l = (sqr (w - x)) . l
then A19:
(
l in dom (z - x) &
l in dom (w - x) &
l in dom z )
by FINSEQ_1:89;
then A20:
l in Seg (len z)
by FINSEQ_1:def 3;
then A21:
( 1
<= l &
l <= len z )
by FINSEQ_1:1;
(
l in Seg (len z) &
l in Seg (len (Replace (z,i,r))) )
by A20, FINSEQ_7:5;
then A22:
(
l in dom z &
l in dom (Replace (z,i,r)) )
by FINSEQ_1:def 3;
(
sqr (z - x) = sqrreal * (z - x) &
sqr (w - x) = sqrreal * (w - x) )
by RVSUM_1:def 8;
then
(
(sqr (z - x)) . l = sqrreal . ((z - x) . l) &
(sqr (w - x)) . l = sqrreal . ((w - x) . l) )
by A19, FUNCT_1:13;
then
(
(sqr (z - x)) . l = ((z - x) . l) ^2 &
(sqr (w - x)) . l = ((w - x) . l) ^2 )
by RVSUM_1:def 2;
then A23:
(
(sqr (z - x)) . l = ((z . l) - (x . l)) ^2 &
(sqr (w - x)) . l = ((w . l) - (x . l)) ^2 )
by A19, VALUED_1:13;
w . l = ((reproj (i,z)) . r) . l
by A1, A3, Th40, A5;
then
w . l = (Replace (z,i,r)) . l
by PDIFF_1:def 5;
then
w . l = (Replace (z,i,r)) /. l
by A22, PARTFUN1:def 6;
then
w . l = z /. l
by A18, A21, FINSEQ_7:10;
hence
(sqr (z - x)) . l = (sqr (w - x)) . l
by A22, A23, PARTFUN1:def 6;
verum
end;