:: METRIC_1 semantic presentation
:: deftheorem Def1 defines dist METRIC_1:def 1 :
:: deftheorem Def2 defines Empty^2-to-zero METRIC_1:def 2 :
Lemma1:
[{} ,{} ] in [:{{} },{{} }:]
by ZFMISC_1:34;
E2: Empty^2-to-zero . {} ,{} =
Empty^2-to-zero . [{} ,{} ]
.=
0
by Lemma1, FUNCOP_1:13
;
Lemma3:
for b1, b2 being Element of {{} } holds
( Empty^2-to-zero . b1,b2 = 0 iff b1 = b2 )
Lemma4:
for b1, b2 being Element of {{} } holds Empty^2-to-zero . b1,b2 = Empty^2-to-zero . b2,b1
Lemma5:
for b1, b2, b3 being Element of {{} } holds Empty^2-to-zero . b1,b3 <= (Empty^2-to-zero . b1,b2) + (Empty^2-to-zero . b2,b3)
definition
let c1 be
set ;
let c2 be
PartFunc of
[:c1,c1:],
REAL ;
attr a2 is
Reflexive means :
Def3:
:: METRIC_1:def 3
for
b1 being
Element of
a1 holds
a2 . b1,
b1 = 0;
attr a2 is
discerning means :
Def4:
:: METRIC_1:def 4
for
b1,
b2 being
Element of
a1 st
a2 . b1,
b2 = 0 holds
b1 = b2;
attr a2 is
symmetric means :
Def5:
:: METRIC_1:def 5
for
b1,
b2 being
Element of
a1 holds
a2 . b1,
b2 = a2 . b2,
b1;
attr a2 is
triangle means :
Def6:
:: METRIC_1:def 6
for
b1,
b2,
b3 being
Element of
a1 holds
a2 . b1,
b3 <= (a2 . b1,b2) + (a2 . b2,b3);
end;
:: deftheorem Def3 defines Reflexive METRIC_1:def 3 :
:: deftheorem Def4 defines discerning METRIC_1:def 4 :
:: deftheorem Def5 defines symmetric METRIC_1:def 5 :
:: deftheorem Def6 defines triangle METRIC_1:def 6 :
:: deftheorem Def7 defines Reflexive METRIC_1:def 7 :
:: deftheorem Def8 defines discerning METRIC_1:def 8 :
:: deftheorem Def9 defines symmetric METRIC_1:def 9 :
:: deftheorem Def10 defines triangle METRIC_1:def 10 :
theorem Th1: :: METRIC_1:1
theorem Th2: :: METRIC_1:2
theorem Th3: :: METRIC_1:3
theorem Th4: :: METRIC_1:4
theorem Th5: :: METRIC_1:5
theorem Th6: :: METRIC_1:6
definition
let c1 be
set ;
func discrete_dist c1 -> Function of
[:a1,a1:],
REAL means :
Def11:
:: METRIC_1:def 11
for
b1,
b2 being
Element of
a1 holds
(
a2 . b1,
b1 = 0 & (
b1 <> b2 implies
a2 . b1,
b2 = 1 ) );
existence
ex b1 being Function of [:c1,c1:], REAL st
for b2, b3 being Element of c1 holds
( b1 . b2,b2 = 0 & ( b2 <> b3 implies b1 . b2,b3 = 1 ) )
uniqueness
for b1, b2 being Function of [:c1,c1:], REAL st ( for b3, b4 being Element of c1 holds
( b1 . b3,b3 = 0 & ( b3 <> b4 implies b1 . b3,b4 = 1 ) ) ) & ( for b3, b4 being Element of c1 holds
( b2 . b3,b3 = 0 & ( b3 <> b4 implies b2 . b3,b4 = 1 ) ) ) holds
b1 = b2
end;
:: deftheorem Def11 defines discrete_dist METRIC_1:def 11 :
:: deftheorem Def12 defines DiscreteSpace METRIC_1:def 12 :
definition
func real_dist -> Function of
[:REAL ,REAL :],
REAL means :
Def13:
:: METRIC_1:def 13
for
b1,
b2 being
Element of
REAL holds
a1 . b1,
b2 = abs (b1 - b2);
existence
ex b1 being Function of [:REAL ,REAL :], REAL st
for b2, b3 being Element of REAL holds b1 . b2,b3 = abs (b2 - b3)
uniqueness
for b1, b2 being Function of [:REAL ,REAL :], REAL st ( for b3, b4 being Element of REAL holds b1 . b3,b4 = abs (b3 - b4) ) & ( for b3, b4 being Element of REAL holds b2 . b3,b4 = abs (b3 - b4) ) holds
b1 = b2
end;
:: deftheorem Def13 defines real_dist METRIC_1:def 13 :
theorem Th7: :: METRIC_1:7
canceled;
theorem Th8: :: METRIC_1:8
canceled;
theorem Th9: :: METRIC_1:9
theorem Th10: :: METRIC_1:10
theorem Th11: :: METRIC_1:11
:: deftheorem Def14 defines RealSpace METRIC_1:def 14 :
:: deftheorem Def15 defines Ball METRIC_1:def 15 :
:: deftheorem Def16 defines cl_Ball METRIC_1:def 16 :
:: deftheorem Def17 defines Sphere METRIC_1:def 17 :
Lemma26:
for b1 being real number
for b2 being non empty MetrStruct
for b3 being Element of b2 holds Ball b3,b1 = { b4 where B is Element of b2 : dist b3,b4 < b1 }
Lemma27:
for b1 being real number
for b2 being non empty MetrStruct
for b3 being Element of b2 holds cl_Ball b3,b1 = { b4 where B is Element of b2 : dist b3,b4 <= b1 }
Lemma28:
for b1 being real number
for b2 being non empty MetrStruct
for b3 being Element of b2 holds Sphere b3,b1 = { b4 where B is Element of b2 : dist b3,b4 = b1 }
theorem Th12: :: METRIC_1:12
theorem Th13: :: METRIC_1:13
theorem Th14: :: METRIC_1:14
theorem Th15: :: METRIC_1:15
theorem Th16: :: METRIC_1:16
theorem Th17: :: METRIC_1:17
theorem Th18: :: METRIC_1:18
theorem Th19: :: METRIC_1:19
theorem Th20: :: METRIC_1:20