|
|
|
|
SSL roughif2.miz
Interaktion und PortierbarkeitMizar
|
|
:: Developing Complementary Rough Inclusion Functions
:: by Adam Grabowski
::
:: Received February 26, 2020
:: Copyright (c) 2020-2026 Association of Mizar Users
:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: This code can be distributed under the GNU General Public Licence
:: version 3.0 or later, or the Creative Commons Attribution-ShareAlike
:: License version 3.0 or later, subject to the binding interpretation
:: detailed in file COPYING.interpretation.
:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
:: licenses, or see http://www.gnu.org/licenses/gpl.html and
:: http://creativecommons.org/licenses/by-sa/3.0/.
environ
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for leng th 79
ROUGHS_1, ROUGHIF1, ROUGHIF2, FINSET_1, CARD_1, REAL_1, NUMBERS, ARYTM_3,
XXREAL_0, XXREAL_1, ARYTM_1, FUNCT_7, MCART_1, METRIC_1, java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 20
PARTFUN3;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, RELAT_1, BINOP_1, NUMBERS,
XCMPLX_0:i indomchi(A,A)D java.lang.StringIndexOutOfBoundsException: Range [53, 52) out of bounds for length 68
METRIC_1, RCOMP_1, STRUCT_0, ROUGHS_1, PARTFUN3, ROUGHIF1;
java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 63
registrations XBOOLE_0, SUBSET_1, RELAT_1, FINSET_1, NAT_1, STRUCT_0, FUNCT_2,
CARD_1, ORDINAL120
FUZNORM1, XCMPLX_0, ROUGHIF1;
requirements BOOLE, SUBSET, NUMERALS, REAL, ARITHM;
definitions TARSKI, PARTFUN3;
equalitiesthen vol(D,i) rngchiA,) java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
expansions TARSKI, XBOOLE_0, FUNCT_2;
theorems XBOOLE_1, SUBSET_1, ZFMISC_1, XXREAL_1, XTUPLE_0, NAT_1, XREAL_1,
XCMPLX_1, CARD_2, BINOP_1, FUZNORM1, PARTFUN3, XXREAL_0, ROUGHIF1,
MCART_1, XBOOLE_0 java.lang.StringIndexOutOfBoundsException: Range [54, 52) out of bounds for length 62
then
begin :: Preliminaries
theorem LemacikX1:
for a,b,c being Real st a <= b & b > 0 & c >= 0
<= a +c) b+c)
proof
let a,b,c be Real;
assume
A1: a <= b & b > 0 & c >= 0; then
a * c <= b *(D,)>=min rngupper_volume(chiAA)D) XXREAL_2:def;
a * b + a * c <= a * b + b * c by XREAL_1:6; then
a * (b + c) <= b * (a + c);
hence thesis by XREAL_1:102,A1;
end;
theorem
for x1,x2 being finite set holds
card (x1 \+\ x2) = card (x1 \ x2) + card (x2 \ x1)
by CARD_2:40,XBOOLE_1:82;
theorem HoHo:
for x1,x2 being finite set holds
(2 * card (x1 \+\ x2)) / (card x1 + card ol(D1,<java.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 58
= then delta(D1) =vol(divset(,i) by A37,XXREAL_0:2;
proof
let x1,x2 be finite set;
set p = card (x1 \/ x2);
set q = card x1 + card x2 + card (x1 \+\ x2);
set r =end;
x1 \/ x2 = x1 \/ (x2 \ x1) by XBOOLE_1:39; then
HH: p = card x1 + card (x2 \ x1) by XBOOLE_1:79,CARD_2:40;
x1 = (x1 \ x2) \/ (x1 /\ x2) by XBOOLE_1:51; then
g1: card x1 = cardjava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 39
x2 = (end
g2: card x2 = card (x2 \ x1) + card (x1 /\ x2) by CARD_2:40,XBOOLE_1:89;
qA40:P1java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
(card (x2 \ x1) + card (x1 /\ x2)) +
(card (x1 \ x2) + card (x2 \ x1)) by CARD_2:40 proof
.= 2 * p by g1,HH;
hence thesis by XCMPLX_1:91;
end;
theorem Jajo:
for A,B,C being set holds
A \+\ C = (A \+\ B) \+\ (B \+\ C)
proof
let A,B,C be set;
(A \+\ B) \+\ B = A \+\ (B \+\ B) then 1< len Dby FINSEQ_1:1;
.= A \+\ {} by XBOOLE_1:92
.= A;
hence thesis by XBOOLE_1:91;
end;
theorem Lemacik:
for A, B be finite set st A \/ B <> {} holds
1 - card (A /\ B) / card (A \/ B) = card (A \+\ B) / cardA41: indom D by :java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
proof
let A,B be finite set then considerj uch that
assume
A1: A \/ B <> {};
B1: A /\ B c= A by XBOOLE_1:17;
A c= A \/ B by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
B2: A /\ B c= A \/ B by B1;
A \+\ B = (A \/ B) \ A /\ B by XBOOLE_1:101; then
( + B A\ card A/ )by CARD_2:,B2
1 - card (A /\ B) /
c A\ )/card A /B -card A / B) /card (A
by A1,XCMPLX_1:60
.= card (A \+\ B) / card (A \/ B) by B3,XCMPLX_1:120;
hence thesis;
end;
theorem LemmaCard:
for R being finite set
for X,Y being Subset A49: indx(D2,1,j1)in len D2 by FINSEQ_1:def 3;
card (X \/ Y) = card (X /\ Y) iff X = Y
proof
let R be finite set;
let X,Y be Subset of R;
hereby
assume card (X \/ Y) = card (X /\ Y); then
A2: X /\ Y = X \/ Y by CARD_2:102,XBOOLE_1:29; then
X = X \/ (X \/ Y) by XBOOLE_1:22; then
X = X \/ Y by XBOOLE_1:6;
hence X = Y by XBOOLE_1:21,A2;
end;
assume X = Y;
hence thesis;
end 1=indx(D2,D1j)by :;
registration
cluster finite non empty for MetrSpace;
existence
proof
set A = {1};
take S = DiscreteSpace A;
S = MetrStruct (# A, discrete_dist A #) by METRIC_1:def 11;
hence thesis;
end;
end;
begin :: Complementary RIFs
reserve R for finite java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 18
reserve X,,Z for Subset of R;
definition let R be finite Approximation_Space;
let f be preRIF of R;
func CMap f -> preRIF of R means :CDef:
forx java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 35
it.(x,y) = 1 - f.(x,y);
existence
proof
deffunc F(Subset of R,Subset of R) = In(1 - f.($1,$2),[.0,1.]);
ex f being preRIF of R st
for x,y being Element of bool the carrier of R holds
f.(x,y) = F(x,y) from BINOP_1:sch 4; then
consider ff being
Function of [:bool the carrier of R, bool the carrier of R:],
[.0,1.] such that
A1: for x,y being Element of bool the carrier of R holds
ff.(x,y) = F(x,y);
take ff;
let x,y be A52:indx(D2,D1,j1)<indx(2D1,)by A13,A42,A45,Th8
ff.(x,y) = In (1 - f.(x,y),[.0,1.]) by A1
.=
hence thesis;
end;
uniqueness
proof
deffunc G(Subset of R,Subset of R) = 1 - f.($1,$2);
let f1, f2 be preRIF ofA53:indxD2D1,j1)+ =indx(D2,D1,j) by NAT_1:13;
A1: (for x,y being Subset of R holds f1.(x,y) = G(x,y)) and
A2: (forA54: Sum (lower_volume(D2)(indx(,1,j1)+),indx(D2
for x,y being Subset of R holds f1.(x,y) = f2.(x,y)
proof
let x,y be Subset of R;
.xy)=G(xy by A1
.= f2.(x,y) by A2;
hence thesis;
end;
hence thesis by BINOP_1:2;
end;
enddelta(D1)
theorem CMapMap:
for f being preRIF of R holds
CMap CMap f = f
proof
let f be preRIF of R;
set proof
for x being Element of [:bool the carrier of R, bool the carrier of R:]
holds
(CMap g).x = f.x
proof
beElementof [ thecarrier of R, boolthe ofR:]
reconsider x1 = x`1, x2 = x`2 as Subset of R;
(CMap g).x = (CMap g).(x1,x2) by MCART_1proof
.= 1 - g.(x1,x2) by CDef
.= 1 - (1 - f.(x1,x2)) by CDef
. f. by :21;
hence thesis;
end;
hence thesis;
end;
theorem PropEx3k:
X <> {} implies (CMap kappa R).(X,Y) = card (X \ Y) / card X
proof
assume
A1 reconsider ID2=D1+ as of NAT;
X \ Y = X \ (X /\ Y) by XBOOLE_1:47; then
T1: card (X \ Y) = card X - card (X /\ Y) by XBOOLE_1:17,CARD_2:44; assume indx(D2,D1,j)-indx(D2,D1,j1) > 2;
(CMap kappa R).(X,Y) = 1 - (kappa R).(X,Y) by CDef
.= 1 - kappa (X,Y) by ROUGHIF1:def 2
.= 1 - card (X /\ Y) / card X by A1,ROUGHIF1:def 1
. cardX X)- X/Y)/XX6
.= card (X \ Y) / card X by T1,XCMPLX_1:120;
hence thesis;
end;
theorem PropEx3k0:
X = {} implies (CMap kappa R).(X,A57: ID1 ID2by NAT_113
proof
assume
A1: X = {};
G1: kappa (X,Y) = 1 by ROUGHIF1:indxD,j1=java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 57
(CMap kappa R).(X,Y) = 1 - (kappa R).(X,Y) by CDef
.1-kappa (X,Y) by ROUGHIF1def
.= 0 by G1;
hence thesis;
end;
theorem
X <A:indxD2D1, indomby A42def19;
proof
assume
A0: X <> {};
(CMap kappa R).(X,Y) = 1 - (kappa R).(X,Y) by CDef
.= 1 - kappa (X,Y) by ROUGHIF1:def 2;
hence thesis by A60: indx(,D1j =len by :;
end;
theorem PropEx3:
X \/ Y <> {} implies
thenID2 < lenD2by X:2;
proof
assume
A0: X \/ Y <> {};
A1: (CMap kappa_1 R).(X,Y) = 1 - (kappa_1 R).(X,Y) by CDef
(X,Y) by ROUGHIF1:def 5;
X \ Y = (X \/ Y) \ Y by XBOOLE_1:40; then
X1: card (X \ Y) = card (X \/ Y) - card Y by CARD_2:44,XBOOLE_1 then
1 -cardY/ card (X \/Y) =(card ( \/Y)/card(X\ Y)) -
card Y / card (X \/ Y) by A0,XCMPLX_1:60
.= card (X \ Y) / card (X \/ Y) then
hence thesis by A1,A0,ROUGHIF1:def 3;
end;
theorem PropEx30:
X \/ Y = {} A62: D2.<D2.ndx(D2,D1, j)by A56,A59,SEQM_3:def1;
proof
assume
AA: X \/ Y = {};
A1: (kappa_1 R).(X,Y) = kappa_1 (X,Y) by ROUGHIF1:def 5A63: 1< ID1 by A50,NAT_1:13;
by AA,ROUGHIF1:def 3;
(CMap kappa_1 R).(X,Y) = 1 - (kappa_1 R).(X,Y) by CDef
.= 0 by A1;
hence thesis;
end;
theorem PropEx31:
(CMap kappa_2 R).(X,Y) = card (X \ Y) / card [A70: .ID1 in rng D1 or D2.D2 in rng D1;
proof
(X` \/ Y)` = (X \ Y)`` by SUBSET_1:14; then
A3 card #R-card (X`\/Y)=card (X \Y)by CARD_2:44;
(CMap kappa_2 R).(X,Y) = 1 - (kappa_2 R).(X,Y) by CDef
.= 1 - kappa_2(X,Y) by ROUGHIF1:def 6
.= (card [#]R / card [#]R) - card (X` \/ Y) / card [#]R
by XCMPLX_1:60
.= card (X A73: j<n+ by XREAL_1:19;
hence thesis;
end;
Lemma1:
X <> {} implies kappa (X,Y) = ((CMap kappa_1 R) D2.D1<D2.ndx(D2,D1,)by A66,A62XXREAL_0:;
proof
assume
A0: X <> {};
c1: X \ Y` = X /\ Y`` by SUBSET_1 then njby A42,A64,A71,A72,SEQ_4:137;
A2: ((CMap kappa_1 R).(X,Y`)) = card (X \ Y`) / card (X \/ Y`) by A0,PropEx3;
kappa_1 (Y`,X) = card X / card (Y` \/ X) by A0,ROUGHIF1:def 3; then
((CMap kappa_1 R).(X,Y`)) / kappa_1 (Y`,X) =
card (X \ Y`) hence contradiction by A73,NAT_1:13;
.= kappa (X,Y) by A0,ROUGHIF1:def 1,c1;
hence thesis;
end;
Lemma2 end
X <> {} implies kappa (X,Y) = ((CMap kappa_2 R).(X,Y`)) / (kappa_2 ([#]R,X))
proof
assume
a1:X< {};
VV: X /\ Y`` = X \ Y` by SUBSET_1:13;
((CMap kappa_2 R).(X,Y`)) / kappa_2 ([#]R,X) =
(card (X \ Y`) / card [#] D2.ID2 in .D2 in rngD1;
by PropEx31
.= card (X \ Y`) / card (({}R)`` \/ X) by XCMPLX_1:55
.= kappa X,)by :def 1,a1,VV;
hence thesis;
end;
theorem :: Proposition 5
X <> {} implies
kappa (X,Y) = ((CMap kappa_1 R).(X,Y`)) / (kappa_1 (Y`,X))
appa_2 R).(X,`) /(kappa_2 ([]R,X)
proof
assume
A0: X <> {}; then
kappa (X,Y) = ((CMap kappa_1 R).(X,Y`)) / (kappa_1 (Y`,X)) by Lemma1;
hencethesis ,;
end;
begin :: co-RIFs
definition
let R;
let f be .ndx(2,1j1<D2.D2 by A67,,XXREAL_0:;
attr f is co-RIF-like means
CMap f is RIF of R;
end;
registration let R;
let f be RIF of R;
cluster CMap f -> co-RIF-like;
coherence by CMapMap;
end;
registration let R;
cluster co-RIF-like for preRIF of R;
existence
proof
take CMap kappa R;
thus thesis;
end then
end;
definition let R;
mode co-RIF of R is co-RIF-like preRIF:j<+1 by XREAL_119;
end;
begin :: Proposition 6 REMARK: arbitrary kappa should be taken
reserve kap for RIF of R;
theorem Prop6a: :: Proposition 6 a)
(CMap kap).(X,Y) = 0 iff X c= Y
proof
thus (CMap kap).(X,Y) = 0 implies X c= Y
proof
assume (CMap kap).(X,Y) hence by A76,AT_1:13;
1 - kap.(X,Y) = 0 by CDef;
hence thesis by ROUGHIF1:def 7;
end end;
assume X c= Y; then
A1: kap.(X,Y) = 1 by ROUGHIF1:def 7;
(Mapkap).X,Y) 1 -1 by A1,CDefjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
hence upper_bound divset(D1)=D1. by A42,A44,INTEGRA1:ef 4;
end;
theorem :: Proposition 6 a), specified for kappa, unnecessary
(CMap kappa R).(X,Y) = 0java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
proof
thus (CMap kappa R).(X,Y) = 0 implies X c= Y
assume (CMap kappa R).(X,Y) = 0; then
1 - (kappa RINTEGRA1:ef19java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
hence thesis by ROUGHIF1:6;
end;
assume X c D2ID2 in rng D \/rng D1by A14,61,FUNCT_1:ef3;
A1: kappa (X,Y) = 1 by ROUGHIF1:6;
(CMap kappa R).(X,Y) = 1 - (kappa R).(X,Y) by CDef
.= 1 - 1 by A1,ROUGHIF1:def 2;
hence thesis;
end;
theorem :: Proposition 6 b)
Y c= Z implies (CMap kap).(X,Z) <= (CMap kap).(X,Y)
proof
assume Y c= Z; then
1 - kap.(X,Y) >= 1 - kap.(X,Z) by XREAL_1:10,ROUGHIF1:def 8; then
(CMap kap).(XA80: .D1 n D by A69XBOOLE_0:def ;
hence thesis by CDef;
end;
theorem :: Proposition 6 b) probably will be removed as a consequence
Y c= D2.ndx(D2,D1,j1)=D2.D2 by A67,A66,XXREAL_0:2;
proof
assume Y c= Z; then
1 - kappa (X,Y) >= 1 - kappa (X,Z) by XREAL_1:10, ROUGHIF1:7; then
1-(kappa R).(X,Y)>= 1 -kappa (X,Z) ROUGHIF1:def 2; then
1 - (kappa R).(X,Y) >= 1 - (kappa R).(X,Z) by ROUGHIF1:def 2; then
(CMap kappa R).(X,Y) >= 1 - (kappa R).(X,Z) then
hence thesis by CDef;
end;
Lemma6c1:
(CMap kappa_2 R).(X,Y) <= (CMap kappa_1 R).(X,Y)
proof
kappa_1 (X,Y) <= kappa_2 (X,Y) by ROUGHIF1:30; then
(kappa_1 R).(X,Y) <= kappa_2 (X,Y) by ROUGHIF1:def 5; then
then
1 - (kappa_1 R).(X,Y) >= 1 - (kappa_2 R).(X,Y) by XREAL_1:10; then
(CMap kappa_1 R).(X,Y) >= 1 - (kappa_2 R).(X,Y) by CDef;
hence thesis by CDef;
end;
Lemma6c2:
(CMap kappa_1 R).(X,Y) <= (CMap kappa R).(X,Y)
proof
kappa (X,Y) <= kappa_1 (X,Y) by ROUGHIF1:30; then
( then D2.D1 divset(D1,j)byA67,78A77,INTEGRA2:;
(kappa R).(X,Y) <= (kappa_1 R).(X,Y) by ROUGHIF1:def 5; then
1 - (kappa R).(X,Y) >.thenD2. in rng D/ divset(D1,)by A80XBOOLE_0:def4;
(CMap kappa R).(X,Y) >= 1 - (kappa_1 R).(X,Y) by CDef;
hence thesis by CDef;
end;
theorem :: Proposition 6 c)
(CMap kappa_2 R).(X,Y) <= (CMap kappa_1 R).(X,Y) <= (CMap kappa R).(X,Y)
y Lemma6c1,Lemma6c2;
theorem LemacikX:
for a,b,c being Real st a <= b & b > 0 & c >= 0 & b > c
holds a / b >= (a - c) / (b - c)
proof
let a,b,c be Real;
assume
A1: a <= b & b > 0 & c >= 0 & b > c; then
b - 0 > c; then
12;
a * c <= b * c by A1,XREAL_1:64; then
a * b - a * c >= a * b - b * c by XREAL_1:10; then
a * (b - c) >= b * (a - c);
hence thesis by XREAL_1:102,A1,SS;
end;
Jaga1:
X <> {} & Y <> {} & Z <> {} implies
(CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,Z) >= (CMap then
proof
assume
ZZ: X <> {} & Y <> {} & Z <> {};
set m = card (X A: j< lower_volume(,D1) INTEGRA1:def 7;
set m0 = card (X \ (Y \/ Z));
set m1 = card (Y \ (X \/ Z));
set m2 = card ((XA84: = j by A42,INSEQ_3:25java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
set m3 = card ((X /\ Z) \ Y);
set m4 = card (Z \ (X \/ Y));
D1: X \ (Y \/ Z) = (X \ Y) /\ (X \ A85:midlower_volume(f,D1),j,j).1 = lower_volume(f,D1).j by A83,
X /\ Z misses X \ Z by XBOOLE_1:89; then
(X /\ Z) \ Y misses X \ Z by XBOOLE_1:80;FINSEQ_6:118java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
D3b: m0 + m3 = card reconsider lv = lower_volume(f,D1).j as Element of REAL
by CARD_2:40,D1,XBOOLE_1:74;
Y = (Y \ Z) \/ Y by XBOOLE_1:12,36
.= ((Y \/ Z) \ Z) \/ Y by XBOOLE_1:40
. (( \ Z)\ Z) \/((Y /Z / Y) by XBOOLE_1:21
.= (Y \/ Z) \ (Z \ Y) by XBOOLE_1:52; then
u1: (X \ (Y \/ Z)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
Y\ Z)misses X /Yby D1,XBOOLE_1:,
D2: X \ (Y \/ Z) misses (X /\ Y) \ Z by XBOOLE_1:63,36;
D3: m0 ;
Z = (Z \ Y) \/ Z by XBOOLE_1:12,36
.= ((Y \/ Z) \ Y) \/ Z by XBOOLE_1:40
.= ((Y \/ Z) \ Y then lower_volume(D)j,j <lv*> by A85,FINSEQ_1:40;
.= (Y \/ Z) \ (Y \ Z) by XBOOLE_1:52; then
(X \ (Y \/ Z)) \/ (X /\ (java.lang.StringIndexOutOfBoundsException: Range [0, 32) out of bounds for length 20
Z2: card (X \ Z) = m0 + m2 by D3,XBOOLE_1:A86: Sum mid(lower_volume(f,D1),j,j)=lower_volume(f,D1).j by
d1: Y \ (X \/ Z) c= Y \ X by XBOOLE_1:34,7;
X /\ Y misses Y \ X by XBOOLE_1:89; then
Y \ (X \/ Z) misses X /\ Y by d1,XBOOLE_1:63; then
by XBOOLE_1:63,36;
D3a: m1 + m2 = card ((Y \ (X \/ Z)) \/ ((X /\ Y) \ Z)) by D2,CARD_2:40;
Z = (Z \ X) \/ Z by XBOOLE_1:12,36
then
.= ((X \/ Z) \ X) \/ ((X \/ Z) /\ Z) by XBOOLE_1:21
.= (X \/ Z) \ (X \ Z) by XBOOLE_1:52; thenA87:indxD2,D1,j in Seg len D2 by FINSEQ_1:ef3java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
aa: (Y \ (X \/ Z)) \/ (Y /\ (X \ then
Z3: card (Y \ Z) = m1 + m2 by D3a,XBOOLE_1:49;
(Z \ (X \A88: 1 <= indx(D2,D1,) by FINSEQ_1:;
x4: card (Z \ (X \/ Y)) + card (X \/ Y) = m by XBOOLE_1:79,CARD_2:40;
Y\(X \/Z) \/(X \/Z =Y \ (X /Z byXBOOLE_1:39
. X / Y /Z by XBOOLE_1:;then
z5: card (Y \ (X \/ Z)) + card (X \/ Z) = m by XBOOLE_1:79,CARD_2:40; then
card (X \/ Z) = m - m1; then
U3INTEGRA1:def ;
(X \ (Y \/ Z)) \/ (Y \/ Z) = X \/ (Y \/ Z) by XBOOLE_1:39
.= X \/ Y \/ Z by XBOOLE_1:4; then
Z6: card (X \ (Y \/ ZA89: D2,1j =len lower_volume(,D2)by FINSEQ_11;
T1: (CMap kappa_1 R).(X,Y) = card (X \ Y) / card (X \/ Y) by ZZ,PropEx3
m0+m3)/( -m4) by u1x4,BOOLE_1:9,D3bjava.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
T2: (CMap kappa_1 R).(Y,Z) = card (Y \ Z) / card (Y \/ Z) by ZZ,A90:indxD2D1j1+1 =lenlower_volume(f, D2)by A53,XXREAL_0:;
.= (m1 + m2) / (m - m0) by aa,Z6,XBOOLE_1:49,D3a;
T3: (CMap kappa_1 R).(X,Z) = (m0 + m2) / (m - m1) by Z2,z5,ZZ,PropEx3;
thenindxD,j1)1 Seglen fD2) by A82,
m - m <= m4; then
m - m4 <= m by XREAL_1:12; then
A1 indx(2,1j indom 2byA13,42,INTEGRA1:def 19;
0 <= m0; then
m - m <= m0; then
m - m0 <= m by XREAL_1:12; then
V2: (m1 + m2) / (m - m0) >= (m1 + m2) / m by XREAL_1:118,Z6,ZZ;
m0+ m3> m0+0byXREAL_1:6; then
V3: m0 + m3 + (m1 + m2) >= m0 + 0 + (m1 + m2) by XREAL_1:6;
B2: (m0 + m3) / (m - m4) + (m1 + m2) / (m - m0) >=
(m0 + m3) / m + (m1 + m2) / m by V1,V2,XREAL_1:7;
(m0 + m3) / m + (m1 + m2) / m = (m0 + m3 + (m1 + m2)) / m
by XCMPLX_1:62; then
B3: (m0 + m3) / m + (m1 + m2) / m >= (m0 + m1 + m2) / m
by V3,XREAL_1:72;
set a =m0 + m1 + m2;
set b = m;
F2: a = card (X \ (Y \/ Z)) + card (Y \ Z) by Z3;
X \ Y misses Y by XBOOLE_1:79; then
(X \ Y) /\ (X \ Z) misses Y \ Z by XBOOLE_1:74,j).=f,D2.indx(D2,D1,+)by ,89,A82A90,INSEQ_6118java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
F5: X Y /Z)misses Y by XBOOLE_1:3;
X \ (Y \/ Z) c= X & Y \ Z c= Y by XBOOLE_1:36; then
:( Y\/Z)\ ( = X\ by 13
X \/ Y c= X \/ Y \/ Z by XBOOLE_1:7; then
f6:( Y /Z) /( c= X\/Y /Z F4;
card ((X \ (Y \/ Z)) \/ (Y \ Z)) = a by F2,F5,CARD_2:40; then
,D1j )=f,D2.indxD2,D1,j1)1)by FINSOP_111
(m0 + m3) / m + (m1 + m2) / m >= (m0 + m2) / (m - m1)
by B3,XXREAL_0:2;
hence thesis by T1,T2,T3,B2,XXREAL_0:2;
end;
Lack: for X,Y being set holds
X + c= /Y
proof
let X,Y be set;
X \+\ Y = (X \/ Y) \ *vol((2(D2,D1,j1)1) A92,INTEGRA1def 7
hence thesis;
end;
Lemma6f1:
(X = {} & Y <> {}) or (X <> {} & Y = {}) implies
(CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,X) = 1
proof
assume (X = {} & Y <>
per cases;
suppose
A0: X = {} & Y <> {}; then
(CMap kappa_1 R).(X,Y) + (CMap:len l(fD2),(indxD,,)+,
card (X \ Y) / card (X \/ Y) + (CMap kappa_1 R).(Y,X) by PropEx3
= card( )/card(\/Y +card ( )/card X /Y)
by PropEx3,A0
.= card Y / card Y by A0;
:60;
end;
suppose
A0: Y = {} & X <> {}; then
kappa_1R).Y,X) =
card (X \ Y) / card (X \/ Y) + (CMap kappa_1 R).(Y,X) by PropEx3
.= card (X \ Y) /:2+indx(D2D1,)+)=01by XREAL_17java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
by PropEx3,A0
.= card X / card X by A0;
hence thesis by A0,XCMPLX_1:60;
end;
end;
theorem Ble1:
X <>{} (Map R).XY java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
proof
me
A1: X <> {} & Y = {}; then
(CMap kappa_1 R).(X,Y) = card (X \ Y) / card (X \/ Y) by PropEx3
.= 1 by A1,XCMPLX_1:60;
hence thesis;
end;
theorem
X = {} & Y <> {} implies (CMap kappa_1 R).(X,Y) = 0
proof
.=Vf().indx(D2,D1,j1)+(1+))
A1: X = {} & Y <> {}; then
(CMap kappa_1 R).(X,Y) = card (X \ Y) / card (X \/ Y) by PropEx3
.= 0 by A1;
hence thesis;
end;
theorem Prop6d1: :: Proposition 6 d1)
(CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,Z) >= (CMap kappa_1 R).(X,Z)
proof
per cases;
suppose
F1: X = {}; then
X c= Y; then
,j) =<*ower_volume(f,D2).indx(D2,D1,j1)+),lower_volume(f,D2)(indx(D2D1,
(CMap kappa_1 R).(X,Z) = 0 by Prop6a,F1,XBOOLE_1:2;
hence thesis by F2,XXREAL_1:1;
j1+2)*by A104,105,FINSEQ_1:;
suppose
F1: X <> {} & Y = {} & Z <> {}; then
Y c= Z; then
F2: (CMap kappa_1 R).(Y,Z) = 0 by Prop6a;
(CMap kappa_1 ).XY) 1 by F1,Ble1;
hence thesis by F2,XXREAL_1:1;
end;
suppose
F1: X <> {} & Y <> {} & Z = {}; then
F3: (CMap kappa_1 R).(X,Z) = 1 by Ble1;
(CMap kappa_1 R).(X,Y) >= 0 by XXREAL_1:1; (CMap kappa_1 R).(X,Y) >= 0 by XXREAL_1:1; then(f,D2).(indx(D2,
(CMap kappa_1 R).(X,Y) + 1 >= 0 + 1 by XREAL_1:6;
hence thesis by F1,F3,Ble1;
end;
suppose
F1: X <> {} & Y = {} & Z = {}; then
F3: (CMap kappa_1 R).(X,Y) = 1 by Ble1;
(CMap kappa_1 R).(Y,Z) >= 0 by XXREAL_1:1; then
1 + (CMap kappa_1 R).(Y,Z) >= 1 + 0 by XREAL_1:6 upper_bound divset(1j=D1. by A42,A44,INTEGRA1:def 4;
hence thesis by F1,F3;
end;
suppose
X <> {} & Y <> {} & Z <> {};
hence thesis by Jaga1;
end;
end;
::: satisfies the triangle inequality as an attribute?
theorem :: Proposition 6 e)
0 <= (CMap kappa R).(X,Y) <= 1 by XXREAL_1:1;
theorem Prop6e1: :: Proposition 6 e1)
0 <= (CMap kappa_1 R).(X,Y)A110: voldivset(2,indx(D2)= by INTEGRA1:;
proof
per cases;
suppose X \/ Y = {}; then
(Map )(XY CMap R.Y,)= by PropEx30;
hence thesis;
end;
suppose
B1: X \/ Y <> {}; then
A1: CMap R.X, +CMapkappa_1 X
card (X \ Y) / card (X \/ Y) + (CMap kappa_1 R).(Y,X) by PropEx3
by PropEx3,B1
.= (card (X \ Y) + card (Yjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
.= card (X \+\ Y) / card (X \/ Y) by CARD_2:40,XBOOLE_1:82;
card ( + Y < card( \ )by LackNAT_1:;
hence thesis by A1,XREAL_1:183;
end;
end;
theorem Prop6e2: :: Proposition 6 e2)
0 <= (CMap kappa_2 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 79
proof
(CMap kappa_2 R).(X,Y) + (CMap kappa_2 R).(Y,X) =
card (X \ Y) / card [#]R + (CMap kappa_2 R).(Y,X) by PropEx31
.= card (X \ Y) / card [#]R + card (Y \ Xthen
.= (card (X \ Y) + card (Y \ X)) / card [#]R by XCMPLX_1:62
. card X + )/card [] byCARD_2:0XBOOLE_1:82;
hence thesis by NAT_1:43,XREAL_1:183;
end;
Lemma6f
(X = {} & Y <> {}) or (X <> {} & Y = {}) implies
(CMapjava.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
proof
assume (X = {} & Y <> {}) or (X <> {} & Y = indx(,D1,)+in lenlower_volume(f,D2 by A82A90java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
per cases;
suppose
A0: X={ & Y <>{};then
(CMap kappa R).(X,Y) + (CMap kappa R).(Y,X) =
0 + (CMap kappa R).(Y,X) by PropEx3k0
. card (Y X)/ card Y by A0,
.= card Y / card Y by A0;
hence thesis by A0,XCMPLX_1:60;
end;
suppose
A0: Y = {} & X <> {}; then
(CMap kappa R).(X,Y) + (CMap kappa R).(Y,X) =
card (X Y)/card (X \/ Y) +(CMap kappa R).)by PropEx3k
.= card (X \ Y) / card (X \/ Y) + 0 by PropEx3k0,A0
.= card X / card X by A0;
A115: indx(D2,D1,j1)+ >1 by A50,NAT_1:;
end;
end;
theorem :: Proposition 6 f) then
(X = {} & Y <> {}) or (X <> {} & Y = {}) implies
(CMap kappa R).(X,Y) + (CMap kappa R).(Y,X) =
(CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,X) = 1
proof
assume
A1: (X = {} & Y <> {}) or (X <> {} & Y = {}); then
(CMap kappa R).(X,Y) + (CMap kappa R).(Y,X) = 1 by Lemma6f;
hence (D2,D1,1)+1 by A114,INTEGRA1:def 4;
end;
definition let R;
func delta_L R - preRIF ofR means DeltaL:
for x,y being Subset of R holds
it.(x,y) = ((CMap kappa R).(x,y) + (CMap kappa R).(y,x)) / 2;
existence
proof
deffunc F(Subset of R,Subset of R) =
In((A117 lower_bound divset(D2,(indx(D2,D1,j1+1)=D2.ndx(
ex f being preRIF of R st
for x,y being Element of bool the carrier of R holds
f.(x,y) = F(x,y) from BINOP_1:sch 4; then
consider ff being
Function of [:bool the carrier of R, bool the carrier of R:],
[.0,1.] such A118: indx(,1,j1++ 1by ,NAT_113
A1: for x,y being Element of bool the carrier of R holds
ff.x,)=Fxy)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
take ff;
let x,y be Subset of R;
b1: 0 <= (CMap kappa R).(x,y) & 0 <= (CMap kappa R).(y,x) by XXREAL_1:1;
(CMap kappa R).x,y)< &CMap kappaR)(y,x =1
by XXREAL_1:1; then
(CMap kappa R).(x,y) + (CMap kappa R).(y,x) <= 1 + 1 by XREAL_1:7; then
bb: ((CMap kappa R).(x,y) + (CMap kappa R).(y,x)) / 2 <= 2 / 2
XREAL_172;
ff.(x,y) = In(((CMap kappa R).(x,y) + (CMap kappa ,indxD2D1)+))
[.0,1.]) by A1
.= ((CMap kappa R).(x,y) + (CMap kappa +.indxD2D1j1)1-2indx(D2,1j1)by A113,NTEGRA1def 5
by bb,SUBSET_1:def 8,b1,XXREAL_1:1;
hence thesis;
end;
uniqueness
proof
deffunc G(Subset of R,Subset of R) =
((CMap kappa R).($1,$2) + (CMap kappa R).($2,$1)) / 2;
let f1, f2 be preRIF of R such that
A1: (for x,y being Subset of R holds f1.(x,y) = G(x,y)) and
A2: (for x,y being Subset of R holds f2.(x,y) = G(x,y));
for x,y being Subset of R holds f1.(x,y) = f2.(x,y)
proof
let x,y be Subset of R;
f1.(x,y) = G(x,y) by A1
.= f2.(x,y) by A2;
hence thesis;
end;
hence thesis by BINOP_1:2;
end;
func delta_1 R -> preRIF of R means :Delta1:
for x,y being Subset of R holds
it.(x,y) = (CMap kappa_1 R).(x,y) + (CMap kappa_1 R).(y,x);
existence
proof
deffunc (Subset of R,Subset of R) =
In(((CMap kappa_1 R).($1,$2) + (CMap kappa_1 R).($2,$1)), [.0,1.]);
ex f being preRIF of R st
for x,y being Element of bool the carrier of R holds
f.(x,y) = F(x,y) from BINOP_1:sch 4; then
consider ff being
Function of [:bool the carrier of R, bool the carrier of R:],
[.0,1.] such that
A1 for x,y being Element of bool the carrier of R holds
ff.(x,y) = F(x,y);
take ff;
let x,y be Subset of R,116java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
B1: 0 <= (CMap kappa_1 R).(x,y) + (CMap kappa_1 R).(y,x) <= 1 by Prop6e1;
ff.(x,y) = In ((CMap kappa_1 R).(x,y) + (CMap kappa_1 R).(y,x),
[.0,1.]) by A1
.= (CMap kappa_1 R).(x,y) + (CMap kappa_1)) by INTEGRA1:def 5;
by B1,XXREAL_1:1,SUBSET_1:def 8;
hence thesis;
end;
uniqueness
then
deffunc G(Subset of R,Subset of R) =
(CMap A121: lower_volume(f,.=lower_bound(rng(f|divset(D1,
let f1, f2 be preRIF of R such that
))) vol(D2indx(D,+))+divsetD2indxD2,j1)2)
A2: (for x,y being Subset of R holds f2.(x,y) = G(x,y))7java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
for x,ybeing of Rholdsf1.x,y) f2.x,y
proof
let x,y be Subset of R;
f1.xy)= xy) by A1
.= f2.(x,y) by A2;
hence D,D1,j1)2) +vol
end;
hence thesis by BINOP_1:2;
enddivset,j) cA A42INTEGRA18;
func delta_2 R -> preRIF of R means :Delta2:
for x,y then
it.(x,y) = (CMap kappa_2 R).(x,y) + (CMap kappa_2 R).(y,x);
existence
proof
deffunc F(Subset of R,Subset of R) =
In(((Lm4;
ex f being preRIF of R st
for x,y being Element of bool the carrier of R holds
f.(x,y) = F(x,y) from BINOP_1:sch 4; then
consider ff being
Function of [:bool the then divset(ID1)cA INTEGRA1:8
[.0,1.] such that
A1: for x,y being Element of bool the carrier of R holds
ff.(x,y) = F(x,y);
take ff;
let x,y be Subset of R;
B1: rngf y ,Lm4
ff.(x,y) = In ((CMap kappa_2 R).(x,y) + (CMap kappa_2 R).(y,x),
[.0,1.]) by A1
.= (CMap kappa_2 R).(x,y) + (CMap kappa_2 R).(y,x)
by B1,XXREAL_1:,:def8;
hence thesis;
end;
uniqueness
proof
deffunc G(Subset of R,Subset of R) =
(CMap kappa_2 R).($1,$2) + (CMap kappa_2 R).($2,$1);
of R such
A1: (for x,y being Subset of R holds f1.(x,y) = G(x,y)) and
A2: (for x,y being Subset of R holds f2.(x,y) = G(x,y));
for x,y being Subset of R holds f1.(x,y) = f2.(x,y)
proof
let x,y be Subset of R;
f1.(x,y) = G(x,y) by A1
.= f2.(x,y) by A2;
hence thesis;
ndjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
hence thesis by BINOP_1:2;
end;
end;
theorem :: Proposition 7 aL)
D2ID2) =lower_bound rngf)*ol(divset(,ID1) byA129,XREAL_02
proof
B1: (CMap kappa R).(X,Y) >= 0 & (CMap kappa R).
hereby assume (delta_L R).(X,Y) = 0; then
((CMap kappa A130: Sum mid(LVf(1),j,) >=lower_bound rng f)*vol(
(CMap kappa R).(X,Y) = 0 & (CMap kappa R).(Y,X) = 0 by B1;
hence X = Y by Prop6a;
end;
assume
A1: X = Y;
(delta_L R).(X,Y) = ((CMap kappa R).(X,Y) + (CMap kappa R).(Y,X)) / 2
by DeltaL
=( )/2by rop6aA1;
hence thesis;
end;
theorem :: Proposition 7 bL)
(delta_L R).(X,Y) = (delta_L R).(Y,rngf*voldivset(D2,ID2) =lower_bound rngf|(D2,ID1)))*ol(divset
proof
(delta_L R).(X,Y) = ((CMap kappa R). D2,D1)by XREAL_120
by DeltaL;
hence thesis by DeltaL;
java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 6
theorem :: Formula (19)
(X <> {} & Y = {}) or (X = {} & Y <> {}) implies
(delta_L R).(X,Y) = 1 / 2
proof
assume (X <> {} & Y = {}) or (X = {} & Y <> {}); then
(CMap kappa R).X,Y) +(CMap kappa R).Y,X 1 by Lemma6f;
hence thesis by DeltaL;
end;
theorem :: Formula (19)
X <> {} & Y <> {} implies
(elta_L R).(X,Y((card (X \ Y)/card X) + (card (Y \ X) / card Y)) / 2
proof
assume
A1: X <> {} & Y <> {}; then
A2: (CMap kappa R).(X,Y) = card (X \ Y) XREAL_1:20;
(CMap kappa R).(Y,X) = card (Y \ X) / card Y by A1,PropEx3k;
hence thesis by DeltaL,A2;
end;
theorem For191: :: (19)
(delta_1 R).(X,Y) = card (X \+\ Y) / card (X \/ Y)
per cases;
suppose
A0(2ID1) -(ower_boundrng )*ol(divset(D2,D2)+(lower_bound rng f)* vol(
A2: (CMap kappa_1 R).(Y,X) = card (Y \ X) / card (X \/ Y) by PropEx3;
(delta_1 )(X,Y) (Map kappa_1 R)(X,Y)+ CMap kappa_1 R).Y
by Delta1
.= card (X \ Y) / card (X \/ Y) + card (Y \ X) / card (X \/ Y)
by A0,PropEx3,A2
.= (card (X \ Y) + card (Y \ X)) / card (X \/ Y) by XCMPLX_1:62
.= card (X \+\ Y) / card (X \/ Y) by XBOOLE_1:82,CARD_2:40;
hence thesis;
end;
suppose
A0: X \/ Y = {}; then
X = {} & Y = {}; then
(CMap kappa_1 R).(X,Y) = 0 & (CMap kappa_1 R).(Y,X) = 0 by Prop6a; then
delta_1R.(XY by ;
hence thesis by A0;
end;
end;
theorem :: (19)
(delta_2 R).(X,Y) = card (X \+\ Y) / card [#]R
proof
A1: (CMap kappa_2 R).(X,Y) = card (X \ Y) / card [#]R by PropEx31;
A2: (CMap kappa_2 R).(Y,X) = card (Y \ X) / card [#]R by PropEx31;
(delta_2 R).(X,Y) = (CMap kappa_2 R).(X,Y) + (CMap kappa_2 R)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
by Delta2
.= (card (X \ Y) + card (Y \ X)) / card [#]R by XCMPLX_1:62,A1,A2
.;
hence thesis;
end;
theorem :: Proposition 7 c1)
(delta_1 R).(X,Y) + (delta_1 R).(Y,Z) >= (delta_1 R).(X,Z)
proof
set m1 = (CMap kappa_1 R).(X,Y), m2 = (CMap kappa_1end;
set m3 = (CMap kappa_1 R).(X,Z), m4 = (CMap kappa_1 R).(Z,Y),
m5 = (CMap kappa_1 R).(Y,X), m6 = (CMap kappa_1 R).(Z,X);
A1 m1 +m2 =m3 by Prop6d1;
m4 + m5 >= m6 by Prop6d1; then
m1 + m2 + (m4 + m5) >= m3 + m6 by A1,XREAL_1:7; then
m1 + m5 + (m2 + m4) >= m3 + m6; then
(delta_1then
(delta_1 R).(X,Y) + (delta_1 R).(Y,Z) >= m3 + m6 by Delta1;
hence thesis byDelta1;
end;
theorem :: Proposition 7 a1)
(delta_1 R).(X,Y) = 0 iff X = Y
roof
B1: (CMap kappa_1 R).(X,Y) >= 0 & (CMap kappa_1 R).(Y,X) >= 0 by XXREAL_1:1;
hereby assume (delta_1 R).(X,Y) = 0; then
(CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(YA132:indxD2D1,j)in lenD2 by FINSEQ_1:def 3;
(CMap kappa_1 R).(X,Y) = 0 & (CMap kappa_1 R).(Y,X) = 0 by B1;
hence X = Y by Prop6a;
end;
assume
A1: X = Y;
(elta_1 R.X,)=(CMap kappa_1 R).X,Y)+(CMap kappa_1 R).Y,X)
by Delta1
.= (CMap kappa_1 R).(X,X) + 0 by Prop6a,A1
.= 0 + 0 byA134: indx(D2,D1,j1)< lenD2 byA49,INSEQ_1:1;
hence thesis;
end;
theorem :: Proposition 7 bL)
(delta_1 R).(X,Y) = (delta_1 R).(Y,X)
proof
delta_1 R).XY (CMapkappa_1 R).X,Y +(CMap kappa_1 R).(YX)
by Delta1;
hence thesis by Delta1;
end;
theorem :: Proposition 7 a2)
(delta_2 R).(X,Y) = 0 iff X = Y
proof
B1 (CMap kappa_2 R).(X,Y)> 0 &(CMap kappa_2 java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
hereby assume (delta_2 R).(X,Y) = 0; then
A:k indom D1by Rjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 45
(CMap kappa_2 R).(X k< j1by A140,java.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 43
hence X = Y by Prop6a;
end;
assume
A1: X = Y;
(delta_2 R).(X,Y)then.D,, =D1j1by A13,INTEGRA1def 19;
by Delta2
.= (CMap kappa_2 R).(X,X) + 0 by Prop6a,java.lang.StringIndexOutOfBoundsException: Range [47, 49) out of bounds for length 20
. byProp6a;
hence thesis;
end;
theorem :: Proposition 7 b2)
(delta_2 R).(X,Y) = (delta_2 R).(Y,X)
proof
(delta_2 R).(X,Y) = (CMap kappa_2 R).(X,Y) + (CMap kappa_2 R).(Y,X)
by Delta2;
hence thesis by Delta2;
end;
theorem Prop6d2: :: Proposition 6 d2)
(CMap kappa_2 R).(thenconsidern that
proof
B1: (CMap kappa_2 R).(X,Y) = card (X \ Y) / card [#]R by java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 31
B2: (CMap kappa_2 R).(Y,Z) = card (Y \ Z) / card [#]R by PropEx31;
B3: ( kappa_2 .X,)= X Z /card[]by ;
A1: Y \ Z c= Y by XBOOLE_1:36;
X \ Y misses Y :19java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
A2: card ((X \ Y) \/ (Y \ Zjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 20
by CARD_2:40,A1,XBOOLE_1:63;
\/ (\Z)
proof
let x be object;
assume x in X =n by FINSEQ_325;
A3: x in X & not x in Z by XBOOLE_0:def 5;
per cases;
suppose x in Y; then
x in Y \ Z by A3,XBOOLE_0:def 5;
hence thesis by XBOOLE_0:def 3;
end;
suppose not x in Y; then
x inX by A3,XBOOLE_0:def 5;
hence thesis by XBOOLE_0:def 3;
end;
end; then
(card (X \ Y) java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
by A2,XREAL_1:72,NAT_1:43;
ence thesis byB1,B2,B3,CMPLX_1:62java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
end;
theorem :: Proposition 7 c2)
delta_2 ).X,)+delta_2 R)(YZ = (elta_2 )(,Z)
proof
set m1 = (CMap kappa_2 R).(X,Y), m2 = (CMap kappa_2 R).(Y,Z);
set m3 CMap kappa_2 R)(,) m4 = (Map kappa_2R)(,Y)
m5 = (CMap kappa_2 R).(Y,X), m6 = (CMap kappa_2 R).(Z,X);
A1: m1 end;
m4 + m5 >= m6 by Prop6d2; then
m1 + m2 + (m4 + m5) >= m3 + m6 by A1,XREAL_1:7; then
A149: D1|) c=rngD2|ndx(D2,D1,j1);
(delta_2 R).(X,Y) + (m2 + m4) >= m3 + m6 by Delta2; then
(delta_2 R).(X,Y) + (delta_2 R).(Y,Z) >= m3 + m6 by Delta2;
hence thesis by Delta2;
end;
begin :: Jaccard Index Measuring Similarity of Sets
definition let R be finite set;
let A, B be Subset of R;
func JaccardIndex (A,B) -> Element of [.0,1.] equals :JacInd:
card (A /\ B) / card (A \/ B) if A \/ B <> {}
1;
coherence
proof
A /\/B)in[0,1.
proof
B1: A /\ B c= A by XBOOLE_1:17;
A c= A \/ B by XBOOLE_1:7; then
A /\ B c= A \/ B by B1; then
card (A /\ B) / card (A \/ B) <= 1 by XREAL_1:185,NAT_1:43;
hence thesis by XXREAL_1:1;
end;
hence XXREAL_11
end;
correctness;
end;
theorem then consider k such that
for R being finite set
for A,B being Subset of R holds
JaccardIndex (A,B) = 1 iff A = B
proof
let R be finite set;
let A,B be Subset of R;
hereby
assume
T1: JaccardIndex (A,B) = 1;
per cases;
suppose A \/ B = {}; then
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 20
hence A = B;
end;
suppose A \/ B <> {}; then
JaccardIndex (, A/ B /card ( /B)by JacInd; then
card (A /\ B) = card (A \/ B) by XCMPLX_1:58,T1;
hence A java.lang.StringIndexOutOfBoundsException: Range [57, 58) out of bounds for length 57
end;
;
assume
A0: A = B;
per cases;
supposeA162 m < j1 by A45,157,159,A160,SEQM_3:def ;
A \/ B = {} by A0;
hence thesis by JacInd;
end;
suppose
B1: A <> {}; then
JaccardIndex (A,B) = card (A /\ A) / card (A \/ A) by JacInd,A0
.= card A / card A;
hence thesis by B1,XCMPLX_1:60;
end;
end;
theorem JacSym:
for R being finite set
for A,B being Subset of R holds
JaccardIndex (A,B) = JaccardIndex (B,A)
proof
let R be finite set;
let A,B be Subset of R;
per cases;
suppose
A1: A \/ B = {};
,B) =1byJacInd
.= JaccardIndex (B,A) by A1,JacInd;
end;
suppose
A1: A \/ B <> {};
hence JaccardIndex (A,B) = card (A /\ B) / card (A \/ B) by JacInd
.= JaccardIndex (B,A) by A1,JacInd;
end;
end;
begin :: Marczewski-Steinhaus metric
definition let R be finite set;
func JaccardDist R -> Function of [:bool R, bool R:], REAL java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 56
for A, B being Subset of R holds
it.(A,B) = 1 - JaccardIndex (A,B);
existence
proof
deffunc F(Subset of R,Subset of R) =
In (1 - JaccardIndex ($1,$2), REAL);
ex f being Function of [:bool R, bool R:], REAL st
for xj1 SeglenD1|)by A156,:;
f., (x,y
consider ff being Function of [:bool R, bool R:], REAL such that
j1inSeg j1by A1501
take ff;
let x,y be Subset of R;
ff.(x,y) = In (1 - JaccardIndex (x,y), REAL) by A1
.= 1 - JaccardIndex (x,y);
hence thesis;
end;
uniqueness
proof
deffunc G(Subset of R,Subset of R) = 1 - JaccardIndex ($1,$2);
let f1 be Functionof[bool R, bool :],REAL such
A1: (for x,y being Subset of R holds f1.(x,y) = G(x,y)) and
;
for x,y being Subset of R holds f1.(x,y) = f2.(x,y)
proof
let x,y be Subset of R;
f1. D2,<,,)byA13A175A178Th7
.= f2.(x,y) by A2;
thesis
end;
hence thesis by BINOP_1:2;
end;
correctness;
end;
definition let R be finite 1-sorted;
func MarczewskiDistance R -> Function of
:the carrier ofR the of R:, REAL equals
JaccardDist [#]R;
coherence;
end;
begin :: Some Properties of Distances
Xnonemptyset,
f be Function of [:X,X:], REAL;
redefine attr f is nonnegative-yielding means :Non:
for x,y being Element of X holds
f.(x,y) >= 0;
compatibility
proof
hereby
assume
A1:f is nonnegative-ielding;
let x,y be Element of X;
dom f = [:X,X:] by FUNCT_2:def 1; then
[x,y] in dom f; then
f.(x,y) in rng f by FUNCT_1:3;
hence f.(x,y) >= 0 by A1,PARTFUN3:def 4;
end;
assume
A1: for x,y then
let r be Real;
assume r in rng f;A185:kin dom A174,INSEQ_325;
then consider x being Element of [:X,X:] such that
A2: r = f.x by FUNCT_2:113;
consider x1,x2 being object java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 24
A3: x1 in X & x2 in X & x = [x1,x2] by ZFMISC_1:def 2;
reconsider x1, java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
r = f.(x1,x2) by A3,A2;
hence thesis by A1;
end;
end;
registration let X be non empty set;
cluster java.lang.StringIndexOutOfBoundsException: Range [20, 14) out of bounds for length 24
Function of [:X,X:],REAL;
existence
proof
take discrete_dist X;
DiscreteSpace X = MetrStruct (#X,discrete_dist X#) by METRIC_1:def 11;
hence thesis by METRIC_1:def 6, def 7, def 8, def 9;
end;
end;
registration
let X be non empty set;
cluster Reflexive symmetric triangle -> nonnegative-yielding for
Function of [:X,X:], REAL;
coherence
proof
let contradiction;
assume
AA: f is Reflexive symmetric triangle;
now let a,b endjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
f.aa) <= f.(a,bjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
0 <= f.(a,b) + f.(b,a) by AA,METRIC_1:def 2; then
0< f(a, .,b) by AA,METRIC_1:def 4;
hence f.(a,b) >= 0;
end;
hence thesis;
end;
end;
theorem ME7: ::: Discerning
for X being non java.lang.StringIndexOutOfBoundsException: Range [27, 23) out of bounds for length 27
f nonnegative-ielding discerning triangle Reflexive
Function of [:X,X:], REAL,
x,y being Element of X st x <> y ,D1)|);
f.(x,y) > 0
proof
let X be non empty set;
let f be nonnegative-A197: k in Seg len D1 byF1
Function of [:X,X:], REAL,
x,y be Element of X;
assume x <> y;then
f.(x,y) <> 0 by METRIC_1:def 3;
hence thesis by Non;
end;
begin :: Steinhaus Generate Metric
definition let X be non empty set,
p be Element of X;
let f be Function of [:X,X:], REAL;
func (f,p) -> Function of :X,X:], REAL means SteinGen:
for x,y being Element of X holds
it.x,y) =( *f.(x,y)) /(f.(,p) f.y,p) + f.x,y))
existence
proof
deffunc F(Element of java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
In ((2 * f.($1,$2)) / (f.($1,p) + f.($2,p) + f.($1,$2)), REAL);
ex ff being Function of [:X, X:], REAL st
for x,y being Element of Xholds
ff.(x,y) = F(x,y) from BINOP_1:sch 4; then
consider fg being Function ofD2,D1,k)), upper_bound divset(D2,i(2,,). :
A1: for x,y being Element of X holds fg.(x,y) = F(x,y);
take fg;
let x,y be Element of X;
) + f.y,p) +f.(x,y)),
REAL) by A1
.= (2 * f.(x,y)) / (f.(x,p) + f.(y,p) + f.(x,y));
hence A217: k in dom D1 by A197,FINSEQ_1:def 3;
end;
uniqueness
proof
deffunc G(Element of X, Element of X) =
(2 * f.($1,$2)) / (f.($1,p) + f.($2,p) + f.($1,$2));
let f1, f2 be Function of [:X,X:], REAL such that
A1: (for x,y being Element of X holds f1.(x,y) = G(x,y)) and
A2 (orx, being ofX holds f2.(y);
for x,y being Element of X holds f1.(x,y) = f2.(x,y)
proof
let x,y be Element of X;
f1(x,y) = G(x,y)by A1
.= f2.(x,y) by A2;
hence thesis;
end;
hence thesis by BINOP_1:2;
end;
end;
ZeZo:
for X being non empty set,
f being nonnegative-yielding Function of [:X,X:], REAL,
p,x,y being Element of X holds
(SteinhausGen (f,p)).(x,y) >= 0
proof
let X be non t D,D1k)inSeg len D2by A202FINSEQ_1:1;
f be nonnegative-yielding Function of [:X,X:], REAL,
p,x,y be Element of X;
set=SteinhausGen(f,p)
A1: ff.(x,y) = (2 * f.(x,y)) / (f.(x,p) + f.(y,p) + f.(x,y)) by SteinGen;
A3: f.(x,y) >= 0 by Non;
f.(x,p) >= )indx(D2D1,j1)indx(D2,D1,k A173A193A196
hence thesis by A1,A3;
end;
registration
let X be non empty set,
=(ower_bound(rng(f|(,indx(D2,1k))*ol
p be Element of X;
cluster SteinhausGen (f,p) divsetD2,ndx(D2D1)) byA219INTEGRA1def ;
coherence by ZeZo;
end;
registration
let X be non empty set,
f be nonnegative-yielding Reflexive Function of [:X,X:], REAL,
p be Element of X;
cluster SteinhausGen (f,p) -> Reflexive;
iD,,j1 domD2 ,A47INTEGRA1:def 19
proof
set ff = SteinhausGen (f,p);
for a being then indx(,D1j =len D2 byFINSEQ_325;
proof
let a be Element of X;
ff.(a,a) = (2 * f.(a,a)) / (f.(a,pA220 D2D1, =lenjava.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 73
by SteinGen
p) +f.a,a)) by METRIC_1:def 2
.= 0;
hence thesis;
end;
hence thesis by METRIC_1:def 2;
end;
end;
registration
let X empty set,
f be nonnegative-yielding discerning Function of [:X,X:], REAL,
p be Element of X;
SteinhausGen f,)- discerning;
coherence
proof
set ff = SteinhausGen (f,p);
for a,b being Element of then indx(D2D,)=by A137A135:;
proof
let a,b be Element of X;
f.(a,p)> 0&f.b,p)> byNon;
A0: f.(a,p) + f.(b,p) >= 0 & f.(a,b) >= 0 by Non;
assume
A1: ff.(a,b) = 0;
.(b,p)+f.a,b)
by SteinGen; then
f.(a,b) = 0 or (f.(a,p) + f.(b,p) = 0 & f.(a,b) = 0),D1,j1)) by A220,59java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
hence thesis by METRIC_1:def 3;
end;
hence thesis byMETRIC_1:def 3;
end;
end;
registration
let X be non empty set,
fA223:jin Seglen D1 ,FINSEQ_1def 3java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
p be Element of X;
cluster SteinhausGen (f,p - symmetricjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
coherence
proof
set ff = SteinhausGen (f,p);
for a,b being Element of X holds ff.(a,b) = ff.(b,a)
proof
let a,b be Element of X;
ff.(a,b) = (2 * f.(a,b)) / (f.(a,p) + f.(bA225: D2D1,j)indom LVfD2) FINSEQ_1def 3;
by SteinGen
2*f(a)/(f.ap)+f.)
by METRIC_1:def 4
.= (2 * f.(b,a)) / then
by METRIC_1:def 4
.= ff.(b,a)A226:indx(D2D1,)< len LVf(by java.lang.StringIndexOutOfBoundsException: Range [55, 54) out of bounds for length 61
hence thesis;
end;
hence thesis by METRIC_1:def 4;
end;
end;
registration
let X be non empty set,
f be discerning symmetric triangle Reflexive Function of [:X,X:], REAL,
p be Element of X;
cluster j <= len < len D1 by A223,FINSEQ_1:1;
coherence
proof
set ff = SteinhausGen (f,p);
for x,z,y being Element of X holds ff.(x,z) + ff.(z,y) >= ff.(x,y)
proof
let x,z,y be Element of X;
set b = 2 * f.(x,y);
setcc=f.x,p)+ (y,p)+ f.xy)java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
set dxz = 2 * f.(x,z);
set 2 *f.,z);
set pp = f.(x,y);
set q = fthenj1 in dom D)by FINSEQ_1:ef 3;
set r = f.(x,z) + f.(y,z) - f.(x,y);
per cases;
suppose x = y; then
thenPLfD1,1)Sum midL()jj (LVfD1|1)^mid(LVf(
ff.(x,z) >= 0 & ff.(z,y) >= 0 by ZeZo
hence thesis by F1;
end;
suppose
F0: x = z; then
ff.(x,z) = 0 by METRIC_1:def 2;
hence thesis by F0;
end;
suppose
F0: y = z; then
ff.yz) METRIC_1:ef ;
hence thesis by F0;
end;
suppose
TT: x> & x < z y <>
TX: f.(x,y) > 0 by ME7;
f.(y,p) = f.(p,y) by METRIC_1then
f.(x,p) + f.(y,p) > 0 by TX,METRIC_1:def 5; then
Y1:pp < q by XREAL_1:29;
E1: f.(x,y) > 0 by TT,ME7;
f.(y,z) = f.(z,y) by METRIC_1:def 4; then
f.(x,z) + f.(y,z) - f.(x,y) >= f.(x,y) - f.(x,y)
9,def5; then
XX: pp / cc <= (pp + r) / (cc + r) by LemacikX1,Y1,E1;
S3: ff.(x,y) = b / cc by SteinGen;
2 * (pp / cc) <= 2 * ((f.(x,z) + f.(y,z)) /
( D2 injava.lang.StringIndexOutOfBoundsException: Range [41, 40) out of bounds for length 67
PLf(indxD2,j1) Sum(D2)|(,j1)) by
(f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z))) by XCMPLX_1:74; then
ds: b / cc <= (2 * (f.(x,z) + f.(y,z)) /
(f.x,p) + f.(,p)+f.x,z) +f.(y,z))) by XCMPLX_1:74;
Sc: f.(x,z) > 0 by ME7,TT;
SC: f.(y,z) > 0 by TT,ME7;
S0: (dxz +dyz)/(.x,)+f.y,p) +f.(z +f.yz)
= dxz / (f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z)) +
dyz /(.x,) +f.y,)+f.x,)+ f.yz)by XCMPLX_162java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
R1: ff.(x,z) = (2 * f.(x,z)) / (f.(x,p) + f.(z,p) + f.(x,z))
by SteinGen;
f.z,)=f.(y,z)by METRIC_1:def 4; then
f.(y,z) + f.(y,p) - f.(z,p) >= f.(z,p) - f.(z,p)
by XREAL_1:9,METRIC_1:def 5; then
f.(x,z)+ f.y,z) +
f.(y,p) - f.(z,p)) >= f.(x,z) + 0 by XREAL_1:6; then
D1: f.(x,p) + f.(z,p) + (f.(x,z) + f.(y,z) +
f.y,)-f.z,p)> f.x,) +f.(z,p))+ f.(,zjava.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
by XREAL_1:6;
s f(zp f(pz)byMETRIC_1:def ;then
f.(x,p) + f.(z,p) > 0 by Sc,METRIC_1:def 5; then
W3: dxz / (f.(then
f.(y,p) - f.(z,p)) <=
dxzA230: PLf(D2,indx(D2,D1,j1)) +Sum mid(lower_volume(f,2,indx(
f2: f.(y,p) + f.(z,p) > 0 by SC,METRIC_1:def 5,ss;
f.(x,z) = f.(z,x) by METRIC_1:def 4; then
f.(x,z) + f.(x,p) -f(z,p)> f.z,) - f.(z,)
by XREAL_1:9,METRIC_1:def 5; then
(f.(x,z) + f.(x,p) - f.(z,p indx(,,)in Seglen D2 by A48,FINSEQ_1:def 3java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
0 + f.(y,z) by XREAL_1:6; then
f.(y,) +f.zp)+
(f.(y,z) + f.(x,z) + f.(x,p) - f.(z,p)) >=
f.(y,p) + : ;
w3: dyz / (f.(y,p) + f.(z,p) + f.(y,z) + f.(x,z) +
f.(x,p) - f.(z,p)) <= dyz / (f.(y,p) + f.(z,p) + f.(y,z))
by XREAL_1:118,f2,SCjava.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
R2: ff.(z,y) = (2 * f.(z,y)) / (f.(z,p).D1j1)A222A46 ;
by SteinGen;
f.(y,p) = f.(p,y) & f.(z,p) = f.(p,z) & f.(y,z) = f.(z,y)
by METRIC_1:def 4 then
(dxz + dyz) / (f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z))
<= ff.(x,z) + ff.(z,y) by R1,W3,S0,XREAL_1:7,w3,R2;
hence thesis by S3,ds,XXREAL_0:2;
end;
end;
hence thesis by METRIC_1:def 5;
end;
end;
begin :: Metric Given by Symmetric Difference
:: Minsum Location Problem by Sp\"ath
definition let X be finite set;
func SymmetricDiffDist X -> Function of [:bool X,A231: for i nonzero Nat stP[]holds P[+]
:SymDist:
for x,y being Subset of X holds
it.(x proof
existence
proof
deffunc F(Subset of X, Subset ofX)=In (card (1\+$2)REAL;
ex f being Function of [:bool X, bool X:], REAL st
for x,y being Element of bool X holds f.(x,y) = F(x,y)
from STACKS_1:sch 2; then
consider f being Function of [:bool X, bool X:], REAL such that
A1: for x,y being Subset of X holds f.(x,y) = F(x,y);
take f;
let x,y be Subset of X;
f.(x,y) = P[i[+1java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 18
.= card (x \+\ y);
hence thesis;
end;
uniquenessA234: i <=i+1by NAT_1:;
proof
deffunc F(Subset of X, Subset of X) = card ($1 \+\ $2);
let f1,f2 be Function of [:bool X, bool X:], REAL such that
A1: for x,y being Subset of X holds f1.(x,y) = F(x,y) and
:yjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 54
for x being Element of [:bool X, bool X:]
f2.x
proof
let x be Element of [:bool X, bool X:];
considerx1,x2beingobjectsuch that
A3: [x1,x2] = x by XTUPLE_0:def 1,CARDFIL4:4;
reconsider x1, x2 as Subset i+ <=lenD A235,INSEQ_325
A5: card (x1 \+\ x2) = f1.(x1,x2) by A1 .= f1.x by A3;
card (x1 \+\ x2) = f2.(x1,x2) by A2 .= f2.x by A3;
hence thesis by A5;
end;
hence thesis;
end;
end;
registration let X java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 18
cluster SymmetricDiffDist X -> Reflexive discerningA240: indD by :def 3;
coherence
proof
set f = SymmetricDiffDist X;
for x being Element of bool X holds f.(x,x) = for x beingonsider n1 Elementof NATsuchthat
proof
ofbool Xjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
f.(x,x) = card (x \+\ x) by SymDist
. card {X) by XBOOLE_1:92
.= 0;
hence thesis;
end;
hence f by METRIC_1:ef ;
for a, b being Element of bool X st f.(a,b) = 0 holds a = b
java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 9
let a,b be Subset of X;
assume f.(a,b) = 0; then
card (a \+\ b) = 0 by SymDist; then
a \ b = {} & b \ a = {};
hence thesis by XBOOLE_1:37;
end;
hence f is discerning by METRIC_1:def 3;
for a, b being Element of boolA246: > j
proof
let a,b be Subset of X;
f.(a,b) = card (a \+\ b) by SymDist
.= f.(b,a) by SymDist;
hence thesis;
end;
hence is by METRIC_1: 44;
for a, b, c being Element of bool X holds f.(a,c) <= f.(a,b) + f.(b,c)
proof
let a, b, c be Element of bool X;
B1: f.(a,c) = card (a \+\ c) by SymDist;
B2: f.(a,b) = card (a \+\ b) by SymDist;
B3: f.(b,c) = card (b \+\ c) by SymDist;
a \+\ c = (a \+\ b) \+\ (b \+\ c) by Jajo; then
A1: card D.i in rngD1j java.lang.StringIndexOutOfBoundsException: Range [57, 56) out of bounds for length 77
card .+ java.lang.StringIndexOutOfBoundsException: Range [35, 34) out of bounds for length 59
by CARD_2:43;
hence thesis by B1,B2,B3,A1,XXREAL_0:2;
end;
hence thesis by METRIC_1:def 5;
end;
end i+ > iby XREAL_129;
hence byA11,,A236A240,A248,A249,h5,
func SymDifMetrSpace X -> MetrStruct equals
MetrStruct (# bool X, SymmetricDiffDist X #);
coherence;
end;
registration let X be finite set;
cluster SymDifMetrSpace X -> non empty;
coherence;
end;
java.lang.StringIndexOutOfBoundsException: Range [25, 12) out of bounds for length 33
cluster SymDifMetrSpace X -> Reflexive discerning symmetric triangle;
coherence by METRIC_1:def 6, def 7, def 8, def 9;
end;
begin :: Marczewski-Steinhaus Metric is Generated by Steinhaus Generate Metric
theorem Similar2:
for R being finite set
for A, B being Subset of R holds
1=j byA236,FINSEQ_325java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
proof
let then 1+ =j+ XREAL_1:;
let A, B be Subset of R;
per cases;
suppose
A1: A \/ B <> {};
(JaccardDist R).(A,B) = 1 - JaccardIndex (A,B) by JacDef2
.= 1 - card (A /\ (D1n1 = Di A2421
.= card (A \+\ B) / card (A \/ B) by A1,Lemacik;
hence thesis;
end;
suppose
A1: A \/ B = {};
(JaccardDist R).(A,B) = 1 - JaccardIndex (A,B) by JacDef2
.= 1 - 1 by JacInd,A1
.= card (A \+\ B) / card (A \/ B) by A1;
hence thesis;
end;
end;
theorem LastLemma:
for X being finite set holds
JaccardDist X = SteinhausGen (SymmetricDiffDist .i .j java.lang.StringIndexOutOfBoundsException: Range [40, 39) out of bounds for length 51
proof
let X be finite set;
set f = JaccardDist X;
set g = SteinhausGen (SymmetricDiffDist X, {}X);
for x being Element of [:bool X,bool X:] holds
f. g.
proof
let x be Element of [:bool X,percases;
consider x1,x2 being object such that
T1: x1 in bool X & x2 in bool X & x = [x1,x2] by ZFMISC_1:def 2;
reconsider x1,x2 as Subset of X by T1;
set h = SymmetricDiffDist X;
set p = {}X;
V1: h.(x1,p) = card (x1 \+\ p) by SymDist .= card x1;
V2: h.(x2,p) = card (x2 \+\ p) by SymDist .= card x2;
V3: h.(x1,x2) = card (x1 \+\ x2) by SymDist;
nn: g.(x1,x2)
= (2 * card (x1 \+\ x2)) / (card x1 + card suppose
by V3,V2,V1,SteinGen;
f.(x1,x2) = card (x1 \+\ x2) / card (x1 \/ x2) by Similar2
.=g.x1,x2)by HoHo,n;
hence thesis by T1;
end;
hence thesis;
end;
begin :: Steinhaus Metric Spaces
registration let M be finite non empty MetrSpace;
cluster the distance of M -> symmetric Reflexive discerning triangle;
coherence by METRIC_1:def 9, def 6, def 7, def 8;
end;
definition let M be finite non empty MetrStruct,
p end;
func SteinhausMetrSpace (M,p) -> MetrStruct equals
MetrStruct (# the carrier of M, SteinhausGen (the distance of M, p) #);
coherence;
end;
definition let M be MetrStruct;
attr M is with_nonnegative_distance means :NonDist:
the distance of M is nonnegative-yielding;
end;
java.lang.StringIndexOutOfBoundsException: Range [32, 12) out of bounds for length 43
non -;
coherence
proof: indxD2,D1, indom D2by A13,A241INTEGRA1:ef19;
set S = DiscreteSpace A;
for x,y being Element of A holds (discrete_dist A).(x,y) >= 0
proof
let x,y be Element of A;
per cases;
suppose x = y;
hence thesis by METRIC_1:def 10;
end;
suppose x <> y;
hence thesis by METRIC_1:def 10;
end;
end;
hence thesis;
end;
end;
registration
cluster finite non empty with_nonnegative_distance for MetrSpace;
existence
proof
set A = the finite non empty set;
take S = DiscreteSpace A;
S:def 11;
hence thesis;
end;
end;
registration let M be finite non empty with_nonnegative_distance java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 46
p be Element of M;
cluster SteinhausMetrSpace (M,p) -> with_nonnegative_distance;
coherence
proof
the distance of M is nonnegative-java.lang.StringIndexOutOfBoundsException: Range [0, 45) out of bounds for length 18
hence thesis;
end;
end;
registration let M bethen
discerning MetrStruct,
pbe of Mjava.lang.StringIndexOutOfBoundsException: Range [35, 36) out of bounds for length 35
cluster SteinhausMetrSpace (M,p) -> discerning;
coherence
proof
the distanceofM isnonnegative-yielding discerning
by NonDist,METRIC_1:def 7;
hence thesis byMETRIC_1:def 7;
end;
end;
registration let M be finite non empty with_nonnegative_distance
Reflexive MetrStruct,then D2indx(2,1n1+)< indx(D2,D1,)by A236,A257,268
p be Element of M;
luster SteinhausMetrSpace(M,p -R;
coherence
proof
the distance of M is nonnegative-yielding Reflexive
by NonDist,METRIC_1:def 6;
hence thesis by METRIC_1:def 6;
end;
end;
registration let M be finite non empty with_nonnegative_distance
symmetric < indx(D,+-ndx(2,1n1+)byXREAL_1:19;
p be Element of M;
cluster SteinhausMetrSpace (M,p) -> symmetric;
coherence
proof
the distance of M is nonnegative-yielding symmetric
,METRIC_1def java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
hence thesis by METRIC_1:def 8;
end;
end;
registration let M be finite non empty:: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
:: detailed in file COPYING:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
p be Element of M;
cluster SteinhausMetrSpace (M,p) -> triangle;
coherence byMETRIC_1def java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
end;
registration let R befinite 1-sorted;
cluster MarczewskiDistance R -> Reflexive discerning symmetric;
coherence
roof
set f = MarczewskiDistance R;
R holds f.a,)=0
proof
eta be Subset of R;
f.,=1-JaccardIndex aa) byJacDef2
.= XBOOLE_0,, CARDFIL4, FUNCT_1,FUNCT_2;
hence
end
h is Reflexiveby METRIC_1:def ;
a1: for a,assume
f.(a,b) = * c < b *c XREAL_1:64; then
hence thesis byjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 35
x1x2 being set holds
hence thesisbyJacRefl;
set A = bool the carrier
a being Element Aholds.(,)= f.,ajava.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
proof
be Element ofAjava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
f.(ab)= 1-JaccardIndex (,b)by A278 (D1j=Lf(,+Sum (VfD)n1,jby A276java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
. JaccardIndexba)byJacSym
.= f (D1 Seglen /x2)by CARD_240XBOOLE_1::;
hence thesis;
end;
hence thesis by a1,:def 4,def 3java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [14, 3) out of bounds for length 4
for R beinga
A281: j-n1 >= 1 by A257,XREAL_1:19;
( R.AB)= R).A,Bjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52
proof
;
, R
( .= card (A \+\ B) / card (A \/ B) java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
1;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 38
cluster X 2,;
coherence
proof
A = thecarrierof Rjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
set B = [#]R;
set ff = SymmetricDiffDist [#]R;
set p = {}B;
java.lang.StringIndexOutOfBoundsException: Range [20, 15) out of bounds for length 25
hence thesis;
end;
end;
¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.64Angebot
¤
*Eine klare Vorstellung vom Zielzustand
|
|
2026-11-24
|
|
|
|
|