let M be MetrStruct ; ( ( for a, b, c being Element of M holds
( ( dist a,b = 0 implies a = b ) & ( a = b implies dist a,b = 0 ) & dist a,b = dist b,a & dist a,c <= (dist a,b) + (dist b,c) ) ) implies M is MetrSpace )
assume A1:
for a, b, c being Element of M holds
( ( dist a,b = 0 implies a = b ) & ( a = b implies dist a,b = 0 ) & dist a,b = dist b,a & dist a,c <= (dist a,b) + (dist b,c) )
; M is MetrSpace
A2:
the distance of M is symmetric
A3:
the distance of M is triangle
proof
let a,
b,
c be
Element of
M;
METRIC_1:def 6 the distance of M . a,c <= (the distance of M . a,b) + (the distance of M . b,c)
A4:
the
distance of
M . b,
c = dist b,
c
;
( the
distance of
M . a,
c = dist a,
c & the
distance of
M . a,
b = dist a,
b )
;
hence
the
distance of
M . a,
c <= (the distance of M . a,b) + (the distance of M . b,c)
by A1, A4;
verum
end;
A5:
the distance of M is discerning
the distance of M is Reflexive
hence
M is MetrSpace
by A5, A2, A3, Def7, Def8, Def9, Def10; verum