reconsider ZS = {0 } as non empty set ;
reconsider O = 0 as Element of ZS by TARSKI:def 1;
deffunc H1( Element of ZS, Element of ZS) -> Element of NAT = 0 ;
consider FF being Function of [:ZS,ZS:], REAL such that
A1:
for x, y being Element of ZS holds FF . x,y = H1(x,y)
from BINOP_1:sch 4();
deffunc H2( real number , Element of ZS) -> Element of ZS = O;
deffunc H3( Element of ZS, Element of ZS) -> Element of ZS = O;
consider F being BinOp of ZS such that
A2:
for x, y being Element of ZS holds F . x,y = H3(x,y)
from BINOP_1:sch 4();
consider G being Function of [:REAL ,ZS:],ZS such that
A3:
for a being Element of REAL
for x being Element of ZS holds G . a,x = H2(a,x)
from BINOP_1:sch 4();
set W = RLSMetrStruct(# ZS,FF,O,F,G #);
A4:
for a, b being real number
for x being VECTOR of holds (a + b) * x = (a * x) + (b * x)
take
RLSMetrStruct(# ZS,FF,O,F,G #)
; ( RLSMetrStruct(# ZS,FF,O,F,G #) is strict & RLSMetrStruct(# ZS,FF,O,F,G #) is Abelian & RLSMetrStruct(# ZS,FF,O,F,G #) is add-associative & RLSMetrStruct(# ZS,FF,O,F,G #) is right_zeroed & RLSMetrStruct(# ZS,FF,O,F,G #) is right_complementable & RLSMetrStruct(# ZS,FF,O,F,G #) is RealLinearSpace-like & RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive & RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
thus
RLSMetrStruct(# ZS,FF,O,F,G #) is strict
; ( RLSMetrStruct(# ZS,FF,O,F,G #) is Abelian & RLSMetrStruct(# ZS,FF,O,F,G #) is add-associative & RLSMetrStruct(# ZS,FF,O,F,G #) is right_zeroed & RLSMetrStruct(# ZS,FF,O,F,G #) is right_complementable & RLSMetrStruct(# ZS,FF,O,F,G #) is RealLinearSpace-like & RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive & RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
for x, y being VECTOR of holds x + y = y + x
hence
RLSMetrStruct(# ZS,FF,O,F,G #) is Abelian
by RLVECT_1:def 5; ( RLSMetrStruct(# ZS,FF,O,F,G #) is add-associative & RLSMetrStruct(# ZS,FF,O,F,G #) is right_zeroed & RLSMetrStruct(# ZS,FF,O,F,G #) is right_complementable & RLSMetrStruct(# ZS,FF,O,F,G #) is RealLinearSpace-like & RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive & RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
for x, y, z being VECTOR of holds (x + y) + z = x + (y + z)
proof
let x,
y,
z be
VECTOR of ;
(x + y) + z = x + (y + z)
reconsider X =
x,
Y =
y,
Z =
z as
Element of
ZS ;
(x + y) + z = H3(
H3(
X,
Y),
Z)
by A2;
hence
(x + y) + z = x + (y + z)
by A2;
verum
end;
hence
RLSMetrStruct(# ZS,FF,O,F,G #) is add-associative
by RLVECT_1:def 6; ( RLSMetrStruct(# ZS,FF,O,F,G #) is right_zeroed & RLSMetrStruct(# ZS,FF,O,F,G #) is right_complementable & RLSMetrStruct(# ZS,FF,O,F,G #) is RealLinearSpace-like & RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive & RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
for x being VECTOR of holds x + (0. RLSMetrStruct(# ZS,FF,O,F,G #)) = x
proof
let x be
VECTOR of ;
x + (0. RLSMetrStruct(# ZS,FF,O,F,G #)) = x
reconsider X =
x as
Element of
ZS ;
x + (0. RLSMetrStruct(# ZS,FF,O,F,G #)) = H3(
X,
O)
by A2;
hence
x + (0. RLSMetrStruct(# ZS,FF,O,F,G #)) = x
by TARSKI:def 1;
verum
end;
hence
RLSMetrStruct(# ZS,FF,O,F,G #) is right_zeroed
by RLVECT_1:def 7; ( RLSMetrStruct(# ZS,FF,O,F,G #) is right_complementable & RLSMetrStruct(# ZS,FF,O,F,G #) is RealLinearSpace-like & RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive & RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
thus
RLSMetrStruct(# ZS,FF,O,F,G #) is right_complementable
( RLSMetrStruct(# ZS,FF,O,F,G #) is RealLinearSpace-like & RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive & RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
A5:
for a being real number
for x, y being VECTOR of holds a * (x + y) = (a * x) + (a * y)
A6:
for a, b being real number
for x being VECTOR of holds (a * b) * x = a * (b * x)
for x being VECTOR of holds 1 * x = x
hence
RLSMetrStruct(# ZS,FF,O,F,G #) is RealLinearSpace-like
by A5, A4, A6, RLVECT_1:def 9; ( RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive & RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
A7:
for a, b, c being Point of holds
( dist a,a = 0 & ( dist a,b = 0 implies a = b ) & dist a,b = dist b,a & dist a,c <= (dist a,b) + (dist b,c) )
proof
let a,
b,
c be
Point of ;
( dist a,a = 0 & ( dist a,b = 0 implies a = b ) & dist a,b = dist b,a & dist a,c <= (dist a,b) + (dist b,c) )
A8:
dist a,
a =
FF . a,
a
by METRIC_1:def 1
.=
0
by A1
;
hence
dist a,
a = 0
;
( ( dist a,b = 0 implies a = b ) & dist a,b = dist b,a & dist a,c <= (dist a,b) + (dist b,c) )
A9:
a = 0
by TARSKI:def 1;
hence
(
dist a,
b = 0 implies
a = b )
by TARSKI:def 1;
( dist a,b = dist b,a & dist a,c <= (dist a,b) + (dist b,c) )
A10:
b = 0
by TARSKI:def 1;
hence
dist a,
b = dist b,
a
by A9;
dist a,c <= (dist a,b) + (dist b,c)
thus
dist a,
c <= (dist a,b) + (dist b,c)
by A9, A10, A8;
verum
end;
hence
RLSMetrStruct(# ZS,FF,O,F,G #) is Reflexive
by METRIC_1:1; ( RLSMetrStruct(# ZS,FF,O,F,G #) is discerning & RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
thus
RLSMetrStruct(# ZS,FF,O,F,G #) is discerning
by A7, METRIC_1:2; ( RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric & RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
thus
RLSMetrStruct(# ZS,FF,O,F,G #) is symmetric
by A7, METRIC_1:3; ( RLSMetrStruct(# ZS,FF,O,F,G #) is triangle & RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
thus
RLSMetrStruct(# ZS,FF,O,F,G #) is triangle
by A7, METRIC_1:4; ( RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous & RLSMetrStruct(# ZS,FF,O,F,G #) is translatible )
for r being Element of REAL
for v, w being VECTOR of holds dist (r * v),(r * w) = (abs r) * (dist v,w)
proof
let r be
Element of
REAL ;
for v, w being VECTOR of holds dist (r * v),(r * w) = (abs r) * (dist v,w)let v,
w be
VECTOR of ;
dist (r * v),(r * w) = (abs r) * (dist v,w)
reconsider v1 =
v,
w1 =
w as
Element of
ZS ;
X:
FF . v1,
w1 = H1(
v1,
w1)
by A1;
thus dist (r * v),
(r * w) =
FF . (r * v),
(r * w)
by METRIC_1:def 1
.=
(abs r) * 0
by A1
.=
(abs r) * H1(
v1,
w1)
by A1
.=
(abs r) * (FF . v1,w1)
by X
.=
(abs r) * (dist v,w)
by METRIC_1:def 1
;
verum
end;
hence
RLSMetrStruct(# ZS,FF,O,F,G #) is homogeneous
by Def5; RLSMetrStruct(# ZS,FF,O,F,G #) is translatible
for u, w, v being VECTOR of holds dist v,w = dist (v + u),(w + u)
hence
RLSMetrStruct(# ZS,FF,O,F,G #) is translatible
by Def6; verum