Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  roughif2.miz  Sprache: unbekannt

 
:: 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

 vocabulariespbeElement java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
      ROUGHS_1 injava.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 59
      XXREAL_0, XXREAL_1, ARYTM_1, FUNCT_7, MCART_1, METRIC_1, RELAT_2,
      PARTFUN3;
;
                    
      METRIC_1, RCOMP_1,
 constructors REALSET2  1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
clusterjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 65
      CARD_1, ORDINAL1, METRIC_1, NUMBERS,   java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
,pjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
 requirements BOOLE, SUBSET, NUMERALS, java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 33
 definitions TARSKI,     for a being Subset of .,  0
 equalities XBOOLE_0, SUBSET_1,java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
 expansions TARSKI, XBOOLE_0l be java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
 theorems      f.(a,aa)  (, 
      XCMPLX_1, CARD_2, BINOP_1, FUZNORM1, PARTFUN3, XXREAL_0, ROUGHIF1,
MCART_1, ,METRIC_1 CARDFIL4, FUNCT_1,;
 schemesthen injava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 55

begin :: Preliminaries

theorem LemacikX1:
  for a,b,c being    ;
     holds athen (n1=(LVf    java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 43
  proof
    let a,b,c be Real;
    
A1: a <= b & b > 0 & c >= 0; then
a*c=b  by:
    a * b + a * c <= a    proof
    a * (b + c) <= b * (a + c);
 XREAL_1102,;
  end;

theorem
  for x1,x2 being finite set holds
    card (x1 \+\ x2) = card (x1 \ x2) + card (x2 \ x1)
              midL(D1),n1+1,j) java.lang.StringIndexOutOfBoundsException: Range [38, 6) out of bounds for length 30

theorem HoHo:
  for x1, finite 
    (2 *            mid((D1,, A245A275        ;
       = card (x1 \+\ x2) / card (x1 \
  proof
    let x1,x2 be finite set;
java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
     q=       ,b  of  f(b  f.,)
    set r = card (x1 \+\ x2);
    x1 \/ x2 = x1 \/ (x2 \ x1)     
HH: p = card x1 + card              Elementof
    x1 = (x1 \ x2) \/ (x1 /\ x2) by XBOOLE_1:51;  f.(,    ab A278:         PLf(D1,j)=PLf(D1,n1)+Sum mid(LVf,)Lf(n1)midVf1,+)A276java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
g1: card         = 1-  (,)  
    x2 = (x2 \ x1) \/ (x1 /\ x2) by XBOOLE_1:51; then
1/x2 byCARD_2,89;
    q = (card (x1 \ x2) + card (x1 /\ x2)) +
       (card (x2 \ x1)java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
         (card    endjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 8
    byMETRIC_1 ,;
    hence thesis by XCMPLX_1:91;
  end;

theorem Jajo:
  for A,B,C being set holds
    A \+\ C = (A  end;
  proof
    let A,B,C be set;
    (A \+\ B) \+\A279:A279:         
      .= A \+\ {} by XBOOLE_1:92
      .= A;
    hence thesis by XBOOLE_1:91;
  end;

theorem Lemacik:
  for Atheorem
    1 -A280         n1>=1by A241,:5;
  proof
    let A,B be finite set;
    ssume
A1: A \/ B <> {};
B1: A /\ B c= A by XBOOLE_1:17;
    A c  java.lang.StringIndexOutOfBoundsException: Range [5, 4) out of bounds for length 43
B2: A /\ B c= A \/ B by B1;
    A \+\ B =    MarczewskiDistance)(,)= ((delta_1.,B)
B3:card ( + B)  card(A /B)-card A / )by java.lang.StringIndexOutOfBoundsException: Range [0, 60) out of bounds for length 7
    1 - card (A /\ B) /     letR be finite Approximation_Space;
      card (A \/ B) / card (A \/     let A BbeSubset ofR;
        y A1,:60
java.lang.StringIndexOutOfBoundsException: Range [14, 7) out of bounds for length 60
       hence thesis;
  end;

theorem LemmaCard:
  for R being finite set
  for X,Y being Subset of java.lang.StringIndexOutOfBoundsException: Range [14, 1) out of bounds for length 19
  card (X \/ Y) = card (  card (X \/ Y) = card (Xjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
  proof
    let R be finite set;
    let                 now
    hereby
      assume card (X \/ Y) = card (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A2:   X /\ Y =registration let R be finite 1-sorted;
      X = X \/ (X \/ Y) by XBOOLE_1:22; then
      X = X \/ Y by XBOOLE_1:6;
           hence X =Y by XBOOLE_1:1A2java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
    end;
    assume X = Y;
    hence thesis;
  end;

registration
                        then 1 <= indx(D2,D1,n1)+2 by A260,XXREAL_0:2java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
  existence
  proof
    set A = {1};
    take S = DiscreteSpace A;
A291:                 indx(,,n1)+indom byA288,FINSEQ_3:;
    hence thesis;
  end;
end;

begin :: Complementary RIFs

 reserve R for finite Approximation_Space;
 reserve X,Y,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:
    for x,y being Subset of R holds
      it.x,)=1-f.x,)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  existence
  proof
    deffunc             k1 <indxn1 .)+  
    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 ofthen n1< k1by A274A294,A295SEQ_4:137
      [.0,1.] such that
A1: for x,y being Element of bool the carrier of R holds
      ff.(x,y) = F(x,y)                         contradiction by A282,A296,AT_113;
    take ff;
    let x,y be Subset of R;
    ff.(x,y) = In (1 - f.(x,y),[.0,1.]) by A1
        .= 1 - f.(x,y) by FUZNORM1:7,SUBSET_1:def 8;
    hence thesis;
  end;
  uniqueness
  proof
    deffunc G(Subset of R,Subset of R) = 1 - f.($                      end;
    let f1, f2 be preRIF of R such that
A1: (for x,y being Subset of R holds f1.(x,y) D2.indx: 3
A2: (for x,y being Subset of R holds f2.(x,y) = G(x,y));
    for x,y being Subset of Rjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
    proof
      let x,y be Subset of A297                 .indxD2,,+  rngD  A293XBOOLE_0: java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
      f1.(x,y) = G(x,y) by A1
              .= f2.(x,;
      hence thesis;
    end;
    hence thesis by BINOP_1:2;
  end;
end;

java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
  for f being preRIF of R holds
    CMap CMap f = f
  proof
    let f be preRIF of R;
    set g = CMap f;
    for x being Element of [:bool the carrier of R, bool the carrier of R:]
      holds
        (CMap gA:upper_bounddivset(D1,) =D1.by A245,A280,
    proof
      let x be Element of [:bool the carrier of R, bool the carrier of R:];
      reconsiderINTEGRA1:ef ;
      (CMap g).x = (CMap g).(x1,x2) by MCART_1:21
                .= 1 - g.(x1,x2) by CDef
                .=                       D2.indxD,,n1+>= indx,,java.lang.StringIndexOutOfBoundsException: Range [64, 63) out of bounds for length 77
               fxby21;
      hence thesis;
    end;
    hence java.lang.StringIndexOutOfBoundsException: Range [22, 12) out of bounds for length 26
  end;

theorem PropEx3k:
  X <> {} implies (CMap kappaA300 D2.D,D1n1)+  rngD \divsetD,j byA297,
  proof
    assume
A1: X <> {};
    X \ Y = X \ (X /\ Y) by XBOOLE_1:47; then
T1: card (X \ Y)XBOOLE_0:def 4;
    (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
      .= A301:                 D2,1n1+  (D,) byA287,289,XXREAL_02
      .= card (X \ Y) / card X by T1,XCMPLX_1:120;
    D2D1n1)+ < lenD2 by A263XXREAL_0:java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
  end;

theorem PropEx3k0:
  X = {} implies (CMap kappa R).(X,Y) = 0
  proof
    
A1: X = {};
G1: kappa (X,Y) = 1 by ROUGHIF1:6,A1,XBOOLE_1:2;
    (CMap kappa R).(X,Y) = 1 - (kappa R).(X,Y) by CDef
      .= 1 - kappaA302                 (D1,n1)+indom D2  A286FINSEQ_3:;
      .= 0 by G1;
    hence thesis;
  end;

theorem
  X <> {} implies (CMap kappa R).(X,Y) then
  proof
    assume
A0: X <> {};
    (CMap kappa R).(X,Y) = 1 - (kappa R).(X,Y) by CDef
       .=A303:D2.ndx(2,D1,j) = D2.indx(,,n1+) ,A301
    hence thesis by A0,ROUGHIF1:35;
  end;

theorem PropEx3:
  X \/ Y <> {} implies
    (CMap kappa_1 R).(X,Y) SEQ_4:137;
  proof
    assume
A0: X \/ Y <> {};
A1: (CMap kappa_1 R).(X,Y) = 1 - (kappa_1 R).(X,Y) by CDef
       . :indx(2,,1)<indxD2D1n1)1by :;
    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:7;
    1 - card Y / card (X \/ Y) = (card (X \/ Y) / card (X \/ Y)) -
            card Y / card (X \/ Y) by A0,XCMPLX_1:60
       .= card (X \ Y) / card (X \/ Y) by X1,XCMPLX_1:120;
    hence thesis by A1,A0,ROUGHIF1:def 3;
  end;

theorem PropEx30:
  X \/ Y = {} implies (CMap kappa_1 R).(X,Y) = 0
  proof
    assume
AA: X \/ Y = {};
A1: (kappa_1 R).(X,Y) = kappa_1 (X,Y) by ROUGHIF1:def 5 .= 1
      by AA,ROUGHIF1:def 3;
    (CMap kappa_1 R).(X,Y) = 1 - (kappa_1 R).(X,Y) by CDef
        .= 0   D2indx(D2D1,n1+1)  D2.D2D1,j)by,A301A301
    hence thesis;
  end;

theorem PropEx31:
  (CMap kappa_2 R).(X,,
  proof
    (X` \/ Y)` = (X \ Y)`` by SUBSET_1:14; then
A3: card [#]R - card (X` \/ Y) = card java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
    (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  [#]R X /Y)  #R
       by XCMPLX_1:60
      .= card (X \ Y) / card ([#]R) by A3,XCMPLX_1:120;
    hence thesis;
   end;

Lemma1:
  X <> {} implies kappa (X,Y) = ((CMap kappa_1 R).(X,Y`)) / (kappa_1 (Y`,X))
  proof
    assume
A0: X <                     then java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
c1: X \ Y` = X /\ Y`` by SUBSET_1:13;
((MapR)XY)  card(X\Y`  card (X\ Y)by A0PropEx3;
    kappa_1 (Y`,X) = card X / card (Y` \/ X) by A0,java.lang.StringIndexOutOfBoundsException: Range [79, 59) out of bounds for length 79
    ((CMap kappa_1 R).(X,Y`)) / kappa_1                      hencecontradictionA289,,,EQM_3def1;
        card (X \ Y`) / card X by A0,XCMPLX_1:55,A2
. (Xby ,ROUGHIF1:def 1,c1
    hence thesis;
  end;

Lemma2:
  X <> {} implies kappa (X,Y) = ((CMap kappa_2                      (2,D1,n1+2 >=indx(D2,byA283,XREAL_1:20java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75

    assume
a1: X <> {};
VV: X /\ Y`` = X \ Y` by SUBSET_1:13;
    ((CMap kappa_2 R).(X,Y`)) / kappa_2 ([#]R,X) =
( X\Y)/card []  card (#]R)`\ X)/#R)
       by PropEx31
.card(X  )/cardjava.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
      =kappa (X, by ROUGHIF1def a1VV
    hence thesis;
  end;

theorem :: Proposition 5
  X <> {} implies
    kappa (X,Y) = ((CMap kappa_1                    
                = ((CMap kappa_2 R).(X,Y`)) / (kappa_2 ([#]R,X))
  proof
    assume
A0: X <> {A316:               LVf(D2)indx(,n1+ java.lang.StringIndexOutOfBoundsException: Range [58, 58) out of bounds for length 52
    kappa (X,Y) = ((CMap kappa_1A318               java.lang.StringIndexOutOfBoundsException: Range [31, 23) out of bounds for length 71
    hence thesis by A0,Lemma2;
  end;

begin :: co-RIFs

definition
  let R;
  let f be preRIF,,+- by A261A319,,:def;
  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;
end;

definition let R;
  mode co-RIF of R is co-RIF-like preRIF of R;
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) = 0; then
      1 - kap.(X,Y) = 0 by CDef;
      hence thesis  by ROUGHIF1:def 7;
    end;
    assume X c= Y; then
A1: kap.(X,Y) = 1 by ROUGHIF1A323:                   divsetD2indx(D1n1)+=divsetD1,n1+)by A245
    (CMap kap).(X,Y) = 1 - 1 by A1,CDef;
     thesis;
  end;

theorem :: Proposition 6 a), specified for kappa, unnecessary
  (CMap kappa R).(X,Y) = 0 iff X c= Y
  proof
    thus (CMap kappa R).(X,Y)A324:                  (divsetD2,ndx(,D1n1+)=09java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
    proof
      assume (CMap kappa R).(X,Y) = 0; then
      1 - (kappa R).(X,Y) = 0 by CDef; then
      kappa (X,Y) = 1 by ROUGHIF1:def 2;
      hence thesis by ROUGHIF1:6;
    end;
    assume X c= Y; then
A1: kappa (X,Y) = 1 by ROUGHIF1:6;
    (CMap kappa R).(X,Y) = 1 - (kappa R).(X,Y) by CDef
        .    by A1ROUGHIF1:def2
    hence thesis;
  end;

theorem :: Proposition 6 b)
  Y c= Z implies (CMap kap).(X,Z) <= (CMap kap).(X,Y)
  
    assume Y c= Z; then
    1 - kap.(X,Y) >= 1 - kap.(X,Z) by XREAL_1:10,ROUGHIF1:LVf().1(ndxD2D1n1)+-) A312A,FINSEQ_6:java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
    (CMap                          =java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 55
    hence thesis by CDef;
  end;

theorem :: Proposition 6 b) probably will be removed as a consequence
  Y c Z  (CMap  R)(XZ =CMap  )(Y
  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) by ROUGHIF1:def 2; then
    1 - (kappa R).(            <*V*  ,319,FINSEQ_1:40;
    (CMap kappa R).(X,Y) >= 1 - (kappa R).(X,Z) by CDef;
    hence thesis by CDefjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
  end;

Lemma6c1:
  (CMap divset(D2,indxD1+)*(java.lang.StringIndexOutOfBoundsException: Range [42, 41) out of bounds for length 77
  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
    (kappa_1 R).(X,Y) <= (kappa_2 R).(X,Y) by ROUGHIF1:def 6; then
    1 - (kappa_1                   D).D2D1java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 77
    (CMap kappa_1 R).*,n11))byA1,,A323,A324Th18,REAL_164;
    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
    (kappa R).(X,Y) <= kappa_1 (X,Y) by ROUGHIF1:def 2; then
    (kappa R).(X,Y) <= (kappa_1 R).(X,Y) by ROUGHIF1:def 5; then
    1 - (kappa R).java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
    (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)
    java.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 25

theorem LemacikX:
  for a,b,c being Real st a <= b & b > 0                        java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
     holds a /A327:                   (D1,n1+2 <1;
  proof
    let a,b,c be Real;
    assume
A1: a <= b & b >  then
    b - 0 > c; then
SS: b - c > 0 by XREAL_1:12;
    a * c <= b * c by A1,XREAL_1:64; then
    a A328                    divsetD2,indxD2,,)+= D2.ndx
    a * (b - c) >= b * (a - c);
    hence thesis by XREAL_1:102,A1,SS;
  end;

Jaga1:                        (D2,j  ,A326INTEGRA1:def4;
  X <> {} & Y <> {} & Z <> {} implies
   (CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,Z) >= (CMap kappa_1 R).(X,Z)
  proof
    assume
ZZ: X <> {} & Y <> {} & Z <> {};
      set m = card (X \/ Y \/ Z);
      set m0 = card (X \ (Y \/ Z));
      set m1 = card (Y \ (X \/ Z));
      set m2 = card ((X /\ Y) \ Z);
      set m3 =card (X/ ) \;
      set m4 = card (Z \ (X \/ Y));
D1:   X \ (Y
 XBOOLE_1:
     (X /\ Z) \ Y misses X \ Z by XBOOLE_1:80; then
D3b:  m0 + m3 = card ((X \ (Y \/ Z)) \/ ((X /\ Z) \ Y)A329:vol(divset(D2,indx(D2D1,n1)+)) D1.-2.indx(
       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
       .= ((Y \/ Z) \ Z) \/ ((Y \/ Z) /\ Y) by XBOOLE_1:21
       .= (Y \/ Z) \ (Z \ Y) by XBOOLE_1                        ,D1,1)+1 by A238,A328,INTEGRA1:def5java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
u1:   (X \ (YA330                   upper_bound divset(1,n11=.+)  ,A268
      X \ (Y \/ Z) misses X /\ Y by D1,XBOOLE_1:74,89; then
D2:   X \ (Y \/ Z) misses (X /\,282INTEGRA1:def4;
D3:   m0 + m2 = card ((X \ (Y \/ Z)) \/ ((X /\ Y) \ Z)) by D2,CARD_2:40;
      Z = (Z \ Y) \/ Z by XBOOLE_1:12,36
       .= ((Y \/ Z) \ Y) \/ Z by XBOOLE_1:40
       .= ((Y \/ Z) \ Y) \/ ((Y \/ Z) /\ Z) by XBOOLE_1:21
       .= (Y \/ Z) \ (Y \ Z) by XBOOLE_1:52; then
      (X \ (Y \/ Z)),,A282,INTEGRA1:def4;
Z2:   card (X \ Z) = m0 + m2 by D3,XBOOLE_1:49;
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
 X /Y)\Z XBOOLE_16336java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
D3a:  m1 + m2 = card ((Y \ (X \/ Z)) \/ ((X /\ Y) \ Z)) by D2,CARD_2:40;
      Z = (Z \ X) \/ Z by XBOOLE_1:12,36
        .= ((X \/ Z) \ X) \/ Z by XBOOLE_1:40
        . ( \/ )\X)\ (X/Z)/ Z)by XBOOLE_1:java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
        .= (X \/ Z) \ (X \ Z) by XBOOLE_1:52; then
aa:   (Y \ (X \/ :indxD,D1,j) <= len LVf(D2) by A263,INTEGRA1:def ;
Z3:   card (Y \ Z) = m1 + m2 by D3a,XBOOLE_1:49;
      (Z \ (X \/ Y)) \/ (X \/ Y) = X \/ Y:vol(D2,indxD2,,n1)+) =   INTEGRA19;
x4:   card (Z \ (X \/ Y)) + card (X \/ Y) = m by XBOOLE_1:79,CARD_2:40;
      (Y \ (X \/ Z)) \/ (X \/ Z) = Y \/ (X \/ Z) by XBOOLE_1:39
          .= X \/ Y \/ Z by XBOOLE_1:4; then
java.lang.StringIndexOutOfBoundsException: Range [32, 2) out of bounds for length 76
      card (X \/ Z) = m - m1; then
U3:   m > 0 + m1 by XREAL_1:20,ZZ;
      (X \ (Y \/ Z)) \/ (Y \/ Z) = X \/ (Y \/ Z) by XBOOLE_1:39
          \/ /Zby;then
Z6:   card (X \ (Y \/ Z)) + card (Y \/ Z) = m by XBOOLE_1:79,CARD_2:40;
T1:(CMap kappa_1R).X,Y   X\Y /(\ )ZZ,ropEx3
            .= (m0 + m3) / (m - m4) by u1,x4,XBOOLE_1:49,D3b;
T2:   (CMap kappa_1 R).(Y,Z) = card (Y \ Z) / card (Y \/ Z;
            .= (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;
      0 <= m4; then
      m - m <= m4; then
      m - m4 <= m by XREAL_1:12; then
V1:   (m0 + m3) / (m - m4) >= (m0 + m3) / m by XREAL_1:118,x4,ZZ;
      0 <= m0; then
      m - m <= m0; then
      m - m0 <= mdivset(,(D2D1,1+))*(ivset(,D2,+)) 
V2:   (m1 + m2) / (m - m0) >= (m1 + m2) / m by XREAL_1:118,Z6,ZZ;
      m0 + m3 >= m0 + 0 by XREAL_1:6; then
V3:   m0 + m3 + (m1 + m2) >= m0                        
B2:   (m0 + m3) / (m - m4) + (m1 + m2) / (m - m0) >=
         (m0 + m3) / m + (m1 + m2) / m by V1,V2,XREAL_1:A338                   (2)((D2,D1,1)1)< upper_boundrngf
      (m0 + m3) / m + (m1 + m2) / m = (m0 + m3 + (m1 + m2)) / m
         by XCMPLX_1:62; then
3   m0 +m3)/ +m1+ ) /m> m0+m1 +)  m
        by V3,XREAL_1:72;
      set a = m0 + m1 + m2;
   ;
F2:   a = card (X \ (Y \/ Z)) + card (Y \ Z) by Z3;
      X \ Y misses Y by XBOOLE_1:79; then
      X \ Y misses Y \ Z by XBOOLE_1:63,36; then
      (X \ Y) /\ (X \ Z) misses Y \ Z by XBOOLE_1:74; then
F5:   \(Y\/ Z misses Y)1) ,A333java.lang.StringIndexOutOfBoundsException: Range [60, 59) out of bounds for length 63
      X                          D2.D2,D1n1++)
F4:   (X \ (Y \/ Z)) \/ (Y \ Z) c= X \/ Y by XBOOLE_1:13;
      /Yc=X / Y \/Z byXBOOLE_1:7tjava.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
f6:   (X \ (Y \/ Z)) \/ (Y \                          midLVf(2,(D2D1, 1,D2,1j). 
      card ((X \ (Y \/ Z)) \/ (Y \ Z)) = a by LVf()(+indx(D1,)1-) by ,335,A336,333FINSEQ_6122
      a / b >= (a - m1) / (b - m1) by f6,U3                          java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 55
  java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 59
        by B3,XXREAL_0:2;
      hence thesis by T1,T2,.,,n11,LVf.D2,n12*A316A326
  end;

Lack: for X,Y being set holds
  X \+\  then
  proof
    let X,Y be set;
    X \+\ Y = (X \/ Y) \ (X /\ Y) by A340:                   Sum mid(LVf(D2),indx(+java.lang.StringIndexOutOfBoundsException: Range [62, 61) out of bounds for length 71
    
  end;

Lemma6f1:
  (X = {} & Y <> {}) or (X <> {} & Y = {}) implies
   CMapjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 55
  proof
    assume (X = {} & Y <> {}) or (X <> {} & Y = {}); then
    per cases;
    suppose
A0:   X = {} & Y <> {}; then
     (CMap kappa_1 R).:                  divset(2indxD2,D1,)1)D2.indx
        card (X \ Y) / card (X \/ Y) + (CMap kappa_1 R).(Y,X) by PropEx3
        .= card (X \ Y) / card (X \/ Y) +                        lower_boundD2indxD1n11  .
          by PropEx3,A0
        .=                        (,1,)-)byA341 ;
      hence thesis by A0,XCMPLX_1:60;
                            java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
    suppose
A0:    voldivsetD2,indxD,D1n1)1)=D2.indxD2,1
     (CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,X) =
        card (X \ Y) / card (X \/ Y) + (CMap kappa_1 R).(Y,X) by PropEx3
        .= card (X \ Y) / card (X \/ Y) + card (Y \ X) / card (X \/ Y)
          by PropEx3                        )1-D1.n1 byA274,A342,INTEGRA1def ;
        .= card X / card X by A0;
      hence thesis by A0,XCMPLX_1:60;
    end;
  end;

theorem Ble1:
  X <> {} & Y = {} implies (CMap kappa_1 R).(X,Y) = 1
  proof
    assume
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
    assume
A1then LVf.D2)+ <=(pper_bound java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
    (CMap kappa_1 R).(X,Y) = card (X \ Y) / card (X \/ Y) by PropEx3
     =0 ;
    hence thesis;
  end;

theorem Prop6d1: :: Proposition 6 d1)  mid,D2D1,n1indxD2,)
  (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
F2:   (Map kappa_1 R).,Y    ;
      (CMap kappa_1 R).(X,Z) = 0 by Prop6a,F1,XBOOLE_1:2;
      hence thesis by F2,XXREAL_1:1;
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 8
    suppose
F1:   X <> {} & Y = {} & Z <> {}; then
      Y c= Z; then                      ;
F2:   (CMap kappa_1 R).(Y,Z) = 0 by Prop6a;
      (CMap kappa_1 R).(X,Y) = 1 by F1,Ble1;
           java.lang.StringIndexOutOfBoundsException: Range [12, 11) out of bounds for length 36
    end;
    suppose
F1:   X <> {} & Y <> {} & Z = {}; then
F3:   (CMap kappa_1 R).(X,Z) = 1 by Ble1;
      ( kappa_1 R).,Y)> 0by java.lang.StringIndexOutOfBoundsException: Range [46, 45) out of bounds for length 53
      (CMap kappa_1 R).(X,Y) + 1 >= 0 + 1 by XREAL_1:6;
      hence thesis by                     then
    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                       = 1;
      1 + (CMap kappa_1 R).(Y,Z) >= 1 + 0 by XREAL_1:6;
      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)
  .(X,)+(CMap kappa_1 R)(Y,)=1
  proof
    per cases;
    suppose X \/ Y = {}; then
      (CMap kappa_1 R).(X,Y) = 0 & (CMap kappa_1                    (n1++ =j+ byA257,XREAL_16
      hence thesis;
    end;
    suppose
B1:    X \/ Y <> {}; then
A1:   (CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,X) =
(X \ Y +CMapkappa_1 .Y, 
        .= card (X \ Y) / card (X \/ Y) + card (Y \ X) / card (X \/ Y)
          by PropEx3,,,122
        .= (card (X \ Y) + card (Y \ X)) / card (X \/ Y) by XCMPLX_1:62
. (\\Y   X /Y CARD_2:08;
      card (X \+\ Y) <= card (X \/ Y) by Lack,NAT_1:43;
      hence thesis by A1,XREAL_1:183;
    end;
  end;

theorem Prop6e2: :: Proposition 6 e2)
  0 <= (CMap kappa_2 R).(X,Y) + (CMap kappa_2 R).(Y,X) <= 1
  proof
    (Map kappa_2 R)(,Y)+(CMap kappa_2R.Y,)=
      card (X \ Y) / card [#]R + (CMap kappa_2 R).(Y,X) by PropEx31
      .= card (X \ Y) / card [#]R + card (Y \ X) / card [#]R by PropEx31
      .= (card (X \ Y) + card (Y \ X)) / card [#]R by XCMPLX_1:62
      .                    
    hence thesis by NAT_1:43,XREAL_1:183;
  ;

Lemma6f:
  (X = {} & Y <> {}) or (X <> {} & Y = {}) implies
    CMapkappa R).X,)+(CMap kappaR)(Y,)=1
  proof
    assume (X = {} & Y <> {}) or (X <> {} & Y = {}); then
    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               (fdivsetD,1) = 
        .= card Y / card Y by A0;
thesis 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).(Y,X) by n11 Seglen A268java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 62
        .= card (X \ Y) / card (X \/ Y) + 0 by PropEx3k0,A0
        .= card X / card X by A0;
      hence thesis by A0,XCMPLX_1:60;
    end;
  end;

theorem :: Proposition 6 f)
  (X = {} & Y <> {}) or (X <> {} & Y = {}) implies
    (CMap kappa R).(X,Y) + (CMap kappa R).(Y,X) =
      (CMap kappa_1 R).(X                    then
  proof
    assume
A1: (X = {} & Y <> {}) or (X <> {} & Y = {}); then
    (CMap kappa R).(X,YA348               +1in  upper_volume(hi(A,A),D1)by FINSEQ_1def 3java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
    hence thesis by A1,Lemma6f1;
  end;

definition let R;
  func delta_L R -> preRIF of R means :DeltaL:
  for x                     by A268,:;
    it.(x,y) = ((CMap kappa R).(x,y) + (CMap kappa R).(y,x)) / 2;
  existence
  proof
    (ubset ofR, of R) java.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
      In(((CMap kappa R).($1,$2) + (CMap kappa R).($2,$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                    java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
    consider ff being
    Function of [:A349:               vol(divset(D1,n1+1))<=delta(D1) by XXREAL_2:def 8;
      [.0,1.] such that
A1: for x,y being Element of bool the carrier of R holds
.,)=Fx;
    take ff;
    let x,y be Subset of R;
b1: 0 <= (CMap kappa R).(x,y) & 0 <= (CMap kappa RXREAL_1:48;
    (CMap kappa R).(x,y) <= 1 & (CMap kappa R).(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
     ;
    ff.(x,y) = In(((CMap kappa R).(x,y) + (CMap kappa R).(y,x)) / 2,
      [.0,1.]) by                     (1n1+A346A347,XREAL_1:64;
        .= ((CMap kappa R).(x,y) + (CMap kappa R).(y,x)) / 2
      by bb,SUBSET_1:def 8,b1,XXREAL_1:1;
    hence thesis                     Sum midmid((D2,D2,1,n1+indx(,D1j)-
  end;
  uniqueness
  proof
    mid(LVf(D1),n1+1 ,j) <=(upper_bound rng f)*vol(divset(D1,n1+1))-(lower_bound
      ((CMap kappa R).($1,$2) + (CMap kappa R).($2,$1)) / 2;
    let f1, f2 be preRIF of R such thatD1,n1+1)) by A318,XREAL_1:13;
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;
_12;
  end;
  func delta_1 R -> preRIF of R means :Delta1:
  for x,y being Subset of R holds
    .y)  CMap kappa_1R.x,)+(  R.yx)
  existence
  proof
    deffunc F(Subset of R,Subset A352:                 n1+ NAT_1;
      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
      .x)= F(x,y)from BINOP_1sch 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 Bbeing non empty closed_interval Subset of REAL,MD1,MD2
    let x,y be Subset of R;
B1: 0 <= (CMap                     be Division of B such that
    ff.(x,y) = In ((CMap kappa_1 R).(x,y) + A354:               .=lower_boundB 
      [.0,1.]) by A1
        .= (CMap kappa_1 R).(x,y) + (CMap kappa_1 R                    upper_bound B=MD2.len MD2)and
        by B1,XXREAL_1:1,SUBSET_1:def 8;
    hence thesis;
  end;
  uniqueness
  proof
    deffunc G(Subset of R,Subset of R)A356 MD1 <MD2 and
      (CMap kappa_1 R).($1,$2) + (CMap kappa_1 R).($2,$1);
    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));:               MD2midD2,indx(2D1n1+
    for x,y being Subset of R holds f1.(x,y) = f2.(x,y)
    proof
     let x, 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_2 R -> preRIF of R means :Delta2:
  g Subset   holds
    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(((CMap kappa_2 R).($1,$2) + (CMap kappa_2 R).($2,$1)), [.0,1.]);
    ex f being preRIF of R
    for x,y being Element of bool the carrier of R holds
      f.(x,y) = F(x,y) from BINOP_1:A361:               len MD1+(n1+1)-1 = j+)1(1+- by A257,XREAL_1:233
    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 ;
    let x,y be Subset of R;
B1: 0 <= (CMap kappa_2 R).(x,y) + (CMap kappa_2 R).(y,x) <= 1 java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 24
    ff.(x,y) = In ((CMap kappa_2 R)A362:               -(n1++=j-1;
      [.0,1.]) by A1
        .= (CMap kappa_2 R).(x,y) + (CMap kappa_2 R).(y,x)
        by B1,XXREAL_1:1,SUBSET_1:def 8;
    hence thesis;
  end;
  uniqueness
  proof
    deffunc G(ubset of ,ubset  RR) java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
      (CMap kappa_2 R).($1,$2) + (CMap kappa_2 R).($2,$1);
   let f1,f2 be preRIF of R suchthat
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) A364:               B c= A
    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;
end;

theorem :: Proposition 7 aL)
  (delta_L R).(X,Y) = 0 iff X = Y
  proof
B1: (CMap kappa R).(X,YA365                  D1 c=Aby INTEGRA1:ef 
    hereby assume (delta_L R).(X,Y) = 0; then
      ((CMap kappa R).(X,Y in rngD1byFUNCT_1def
      (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     (                 lower_bound A <= D1.n1 by A365,INTEGRA2:1;
      by DeltaL
       .= (0 + 0) / 2 by Prop6a,A1;
    hence thesis;
  end;

theorem :: Proposition 7 bL)
  (delta_L R).(X,Y) = (delta_L R).(Y,X)
  proof
    (delta_L R).(X,Y) = ((CMap kappa R).(X,Y) + (CMap kappa R).(Y,X)) / 2
      by DeltaL;
    hence thesis by DeltaL;
  endnd;

theorem :: Formula (19)
  (X <> {} & Y = {}) or (X = {} &                       reconsider as Real
    (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
    (delta_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) / card X by PropEx3k;
    (CMap kappa R).(Y,X) A369                 . =upper_boundAby A365INTEGRA21
    hence thesis by DeltaL,A2;
  end;

theorem For191: :: (19)
  )
  proof
    per cases;
    suppose
A0:   X \/ Y <> {}; then
A2:   (CMap kappa_1 R).(Y,X) = card (Y \ X) / card (X \                      
      (delta_1 R).(X,Y) = (CMap kappa_1 R).(X,Y) + (CMap kappa_1 R).(Y,X)
        by Delta1
      .  ( \Y)/card (\/)+card Y  X/card(\ 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:                      .lenMD1=D1(--++)  A257A281,A266,
       hence thesis;
    end;
    suppose
A0:   X \/ Y = {}; then
      X = {} & Y = {}; then
      (CMap kappa_1 R).(X,Y) = 0 & (CMap kappa_1 R                        .java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
      (delta_1 R).(X,Y) = 0 + 0                      x1 =upper_boundAbyA368A369,XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
      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).(Y,X)
      Delta2
      .= (card (X \ Y) + card (Y \ X)) / card [#]R by XCMPLX_1:62,A1,A2
      .= card (X \+\ Y) / card [#]R by XBOOLE_1:82,CARD_2:40;
     hence thesis;
  end;

theorem :: Proposition 7 c1)
  (delta_1 R).(X,Y) + (delta_1 R).(Y,Z) >= (delta_1 R)                      =-(n11)1by ,A266A244A,
  proof
    set m1 = (CMap kappa_1 R).(X,Y), m2 = (CMap kappa_1 R).(Y,Z);
    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_1 R).(X,Y) + (m2 + m4) >= m3 + m6 by Delta1; then
    (delta_1 R).(X,Y) + (delta_1 R).(Y,Z) >= m3 + m6 by Delta1;
    hence thesis by Delta1;
  end;

theorem  :: Proposition 7 a1)
  (delta_1 R).(X,Y) = 0 iff X = Y
  proof
B1: (CMap kappa_1 R).(X,Y) >= 0 & (CMap A374:               lower_bound divset(MD1,lenlower_bound
    hereby assume (delta_1 R).(X,Y) = 0; then
      (CMap kappa_1 R).(XD1,)& upper_bound divset(MD1,=java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 64
      (CMap kappa_1 R).(X,Y) = 0 & (CMap kappa_1 R)                    proof
      hence X = Y by Prop6a;
    end;
             per java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
A1: X = Y;
    (delta_1 R).(X,Y) = (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 by Prop6a;
    hence thesis;
  end;

theorem :: Proposition 7 bL)
  (delta_1 R).(X,Y) = (delta_1 R).(Y,X)
  proof
    R)(,   R.X,Y+(CMapkappa_1R).X
      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 R).(Y,X) >= 0 by XXREAL_1:1;
    hereby assume (delta_2 R).(X,Y) = 0; then
      (CMap kappa_2 R).(X,Y) + (CMap kappa_2 R).(Y,X) = INTEGRA1def 4;
      (CMap kappa_2 R).(X,Y) = 0 & (CMap kappa_2 R).(Y,X) = 0 by B1;
      hence X = Y by Prop6a;
    end;
    assume
A1: X = Y;
    (delta_2 R).(X,Y) = (CMap kappa_2 R).(X,Y) + (CMap kappa_2 R).(Y,X)
      by Delta2
       .= (CMap kappa_2 R).(X,X) + 0 by Prop6a,A1
       .= 0 + 0 by Prop6a;
    hence thesis;
  end;

    thesis by A265,A266,A354,357A361,A372,375,A376,A377,
  (delta_2 R).(X,Y) = (delta_2 R).(Y,X)
  proof
    (delta_2R).XY)=CMap kappa_2R)(,Y +Ckappa_2 R.YX
      by Delta2;
    hence thesis by Delta2;
  end;

theorem Prop6d2: :: Proposition 6 d2)
  (CMap kappa_2 R).(X,Y) + (CMap kappa_2 R).(Y,Z) >= (CMap kappa_2 R).(X,Z)
  proof
B1: (CMap kappa_2 R).(X,Y) = card (X \ Y) / card [#]R by PropEx31;
B2: (CMap kappa_2 R).(Y,Z) = card (Y \ Z                        len MD1-   MD1by INTEGRA1:7;
B3: (CMap kappa_2 R).(X,Z) = card (X \ Z) / card [#]R by PropEx31;
A1: Y \ Z c= Y by XBOOLE_1:36;
    X \ Y misses Y by XBOOLE_1:79; then
A2: card ((X \ Y) \/ (Y \ Z)) = card (X \ Y) + card (Y \ Z)
by,:;
    X \ Z c= (X \ Y) \/ (Y \ Z)
    proof
      let x be object;
       x \Z;then
A3:   x in X & not x in Z by XBOOLE_0:def 5;
      per cases;
               then
        x in Y \ Z by A3,XBOOLE_0:def 5;
        hence thesis by XBOOLE_0:def 3;
      end;
      suppose not xinY;then
        x in X \ Y by A3,XBOOLE_0:def 5;
        hence thesis by XBOOLE_0:def 3;
     ;
    end; then
    (card (X \ Y) + card (Y \ Z)) / card [#]R >= card (X \ Z) / card [#]R
       by A2,XREAL_1:72,NAT_1:43;
    hence thesis by B1,B2,B3,XCMPLX_1:62;
  end;

theorem :: Proposition 7 c2)
  (delta_2 R).(X,Y) + (delta_2 R).(Y,Z)A381:                   upper_bound divs,len ) D1. A257A244
  proof
    set m1 = (CMap kappa_2 R,A357,A361,java.lang.StringIndexOutOfBoundsException: Range [21, 20) out of bounds for length 34
    set m3 = (CMap kappa_2 R).(X,Z), m4 = (CMap kappa_2 R).(Z,Y),
        m5 = (CMap  divsetMD1 =MD1(MD11
A1: m1 + m2 >= m3 by Prop6d2;
    m4 + m5 >= m6 by Prop6d2; then
L_1:7; 
    m1 + m5 + (m2 + m4) >= m3 + m6; then
    (delta_2 R).(X,Y) + (m2 + m4) >= m3 + m6 by Delta2;                         then lower_bound divset(MD1,len MD1)=D1.(j-1) by A257
    (delta_2 R).(X,Y) + (delta_2 R,A244A,A382FINSEQ_6122;
    hence thesis by Delta2;
  end;

 java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51

definition let R be finite set;
           let A, be Subsetof R;
  func JaccardIndex (A,B) -> Element of [.0,1.] equals :JacInd:
    card (A /\                    ;
    otherwise 1;
  coherence
  proof
    card (A /\ B) / card (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
      \B/( /)<   185,:;
      hence thesis by XXREAL_1:1;
    end;
    hence thesis by XXREAL_1:1;
  end;
  correctness;
end

theorem JacRefl:
  for R  D1.1 < D1.(+ A241,A,:1
  for A,B being Subset of R holds
    JaccardIndex (A,B) = 1 iff A                     indx(D2D1n1  D2,,java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
  proof
     finite java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
    let A,B be Subset of R;
    hereby
      assume
T1:   JaccardIndex (A,B) = 1;
      per cases;
      suppose A \/ Bjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
        A = {} & B = {};
        hence A = B;
      end;
      suppose A \/ B <> {}; then
        JaccardIndex (A,B) = card (A /\ B) / card (A \/ B) by JacInd; then
        card(/ )=card A \/)byXCMPLX_158,1;
        hence A = B by LemmaCard;
      end;
    endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
    assume
A0: A = B;
    per cases;
    suppose AB<>0A236java.lang.StringIndexOutOfBoundsException: Range [48, 47) out of bounds for length 61
      A \/ B = {} by A0;
      hence thesis by JacInd;
    end;
    suppose
B1:   A <> {}; then
      JaccardIndex(B)  A/ )/( /  A0
       .= card A / card A;
      hence thesis by B1,A390               (D2D1+1=D1n1+
    end;
                      

theorem JacSym:
  forR being
  for A,B being Subset of R holds
    JaccardIndex (A,B) = JaccardIndex (B,A)
  proof
    let R be finite set;
let A, be Subset of R;
    per cases;
    suppose
A1:   A \/ B = {};
      hence JaccardIndex (A,B) = 1 by JacInd
        .= JaccardIndex (B,A) by A1,JacInd;
    end;
    suppose
A1:   A \/ B <> {};
      hence JaccardIndex (A,B) = card (A /\ B) / card (A \/ B) by JacInd
       .(B,) JacInd
    end;
  end;

begin :: Marczewski-Steinhaus metric

definition let R be finite set;
  func JaccardDist R                          cases byA14A393,XBOOLE_0def 3;
  for A, B being Subset of R holds
    it.(A,B) = 1 - JaccardIndex                        uppose
  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 x,y being Element of bool R holds
f.x,) =F(x,y)from BINOP_1:sch4 then
    consider ff being Function of [:bool R, bool R:], REAL such that
A1: for x,y being Element of bool R holdsd
      ff.(x,y) = F(x,y);
    take ff;
    let x,y be Subset of R;
       ff.x,y) = In (1- JaccardIndex (x,y) REAL) byA1
        .= 1 - JaccardIndex (x,y);
    hence thesis;
  end;
  uniqueness
  proof
    deffunc G(Subset of R,Subset of R) = 1 - JaccardIndex ($1,$2);
    let f1, f2 be Function of [:bool R, bool R:], REAL 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;
  ;
  correctness;
end;

          hence  by A268A396137;
  func MarczewskiDistance R -> Function of
    [:bool thejava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
    JaccardDist [#]R;
  coherence;


begin :: Some Properties of Distances

definition let X be non empty f
               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-yielding;
      let x, beElement of 
      dom f = [:X,X:] by FUNCT_2:def 1; then
      [x,y]                            
      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 being Element of X holds f.(x,y) >= 0;
    let r be Real;
    assume r                endjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    then consider x being Element of [:X,X:] such that
A2: r = f.x by FUNCT_2:113java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
    consider x1,x2 being object such that
A3  ininX &x2 X & x=[,2 Z:ef ;
    reconsider x1,x2 as Element of X by A3;
    r = f.(x1,x2) by A3,A2;
    hence thesis by A1;
  end;
end;

registration let X be non empty set;
  cluster discerningsymmetricReflexive trianglefor
    Function of [:X,X:],REAL;
  existence
  proof
    take discrete_dist X;
    DiscreteSpace X = MetrStruct (#X,discrete_dist X#) by METRIC_1:def 11;
    hence                           D D.byA398:;
  end;
end;

registration
  let X be non empty set;
  cluster Reflexive symmetric triangle -> nonnegative-yielding for
    Function of [:X,X:], REAL;
  coherence
  proof
    let f be Function of [:X,X:], REAL;
    assume
AA: f is Reflexive symmetric triangle;
 ofX;
      f.(a,a) <= f.(a,b) + f.(b,a) by AA,METRIC_1:def 5; then
      0 <= f.(a,b) + f.(b,a) by AA,METRIC_1:def 2; then
      0 <= f.(a,b) + f.(a,b) by AA,METRIC_1:def 4;
      hence .ab)> 0java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    end;
   thesis
  end;
end;

theorem ME7: ::: Discerning
  for X being non empty set
  forf  java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 64
          Function of [:X,X:], REAL,
      x,y being Element of X st x <> y holds
java.lang.StringIndexOutOfBoundsException: Range [62, 4) out of bounds for length 15
  proof
    let X be non empty set;
    let f be                           (D1j  .j- by A245
            Function of [:X,X:], REAL,
        x,y be Element of X;
    assume x <> y; then
    f.(x,y) <> 0 by METRIC_1:def 3;A406D1(+ =D+ A4052;
    hence thesis by Non;
  end

begin :: Steinhaus Generate Metric

definition SEQM_3def 1java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [30, 15) out of bounds for length 33
           let f be Function of [:X,X:], REAL;
  fp   of[X,:,REAL :teinGen
  for x,y being Element of X holds
    it.(x,y) = (2 * f.(x,y)) / (f.(x,p) + f.(y,p) + f.(x                        ;
  existence
  proof
    deffunc F(Element of X, Element of X) =
      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 X holds
      ff.(x,y) = F(x,y) from BINOP_1:sch 4; then
    consider A407               j < enLVf() by A266,INTEGRA1:def7;
A1: for x,y being Element of X holds fg.(x,y) = F(x,y);
    take fg;
    let x,y be Element of X;
    fg.(x,y) = In ((2 * f.(x,y)) / (f.(x,p) + f.(y,p) + f.(x,y)),
         REAL) by A1
        .= (2 * f.(x,y)) / (f.(x,p) + f.(y,p) + f.(x,y));
    hence thesis;
  end;
  uniqueness
  proof
    deffunc G(Element of X, Element of X) =
      (2 * f.($                       that
    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: (for x,y being Element of X holds f2.(x,yA410: lower_volumeg,java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
    for x,y being Element of X holds f1.                 in Seg len lower_volume(g,MD1) by A409,A410,FINSEQ_1:1;
    proof
      let x,y be Element of X;
      f1.(x,y) = G(x,y) by A1
              .= f2.(x,y) A411:                 k in S def;
      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,y  Elementof X
   (SteinhausGen (f,p)).(x,y) >= 0
  proof
    let X be non empty set,
        f be nonnegative-yielding Function of [:X,X:], REAL,
        p,x,y be Element of X;
    set ff = SteinhausGen (f,p);
: ff.(x,y =2  f.x) /(.xp  f.yp +f.x,y) by SteinGen
A3: f.(x,y) >= 0 by Non;
    f.(x,p) >= 0 & f.(y,p) >= 0 by Non;
    hence thesis by A1,A3;
  end;

registration
  let X be non empty set,
      f be nonnegative-yielding Function of [:X,X:], java.lang.StringIndexOutOfBoundsException: Range [0, 57) out of bounds for length 32
      p be Element of X;
  cluster SteinhausGen(,)- nonnegativeyielding;
  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                       k+n1+1-)=j XREAL_119java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
  cluster SteinhausGen (f,p) ->                       then k+k2 <= len+ =len byA266,,2java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
           then
  proof
    set ff = SteinhausGen (f,p);
    for a being Element of X A416:                 k+k2 in Seg A415FINSEQ_1:;
    proof
      let a be Element of X;
      ff.(a,a) = (2 * f.(a,a)) / (f.(a,p) + f.(a,p) + f.(a,a))
                  by SteinGen
             .= (2 * 0) / (f.(a,p) + f.(a,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 be non empty A418                   kk2byNAT_1:;
      f be nonnegative-yielding discerning Function of [:X,X:], REAL,
      be  of ;
  cluster SteinhausGen (f,p) -> discerning;
  coherence
A420                  divset(,k+) java.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 70
    set ff = SteinhausGen (f,p);
    MD1,k)& upper_bound divset(1k+) upper_bound (MD1,java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
    proof
      let a,b be Element of X;
      f.(a,p) >= 0 & f.(b,p) >= 0 by Non; then
A0:   f.(a,p) + f.(b,p) >= 0 &  
      assume
A1:   ff.(a,b) = 0;
      ff.(a,b) = (2 * f.(a,b)) / (f.(a,p) + f.(b,p) + f.(java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 31
         by SteinGen; then
      f.ab)=0or f.,p f.b,)    f.ab)  ) A0A1;
      hence thesis by METRIC_1:def 3;
    end;
    hence  by :def3java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
  end;
end;

registration
  let X be                          
      f be nonnegative-yielding symmetric Function of [:X,X:], REAL,
      p be Element of X;
  cluster SteinhausGen (f,p) -> symmetric;
 
  proof
    set ff = SteinhausGen (f,p);
    for abbeing Elementof  holds ff(ab)=ff.ba
    proof
      let a,b be Element of X;
                          
                  by SteinGen
             .= (A424                      divset,kD1.+1-)A257
                 by METRIC_1:def 4
             .= (2 * f.(b,a)) / (f.(b,p) + f.(a,p) + f.(b,a))
                 METRIC_1
             .= ff.(b,a) by SteinGen;
      hence thesis;
    end;
,:
  end;
end;

registration
    beempty,
      f be discerning symmetric triangle Reflexive Function of [:X,X:], REAL,
      p be Element of X;
  cluster SteinhausGen (f,p) -> triangle;
  coherenceA427                     - in dom MD1 by A412,A423,;
  proof
    set ff = SteinhausGen (f,p);
for z  Element ofXff.(,)+ff.z,y)> ff.(,y)
    proof
      let x,z,y be Element of X;
      set b = 2 * f                            (,k D1(-1(11)-)
      set cc = f.(x,p) + f.(y,p) + f66,244A357,A427,425A426,:;
      set dxz = 2 * f.(x,z);
      dyz*f(z
      set pp = f.(x,y);
      set q = f.(x,y) + (f.(x,p) + f.(y,p));
      end
      per cases;
      suppose x = y; then
F1:     ff.(x,y) = 0 by METRIC_1:def 2;
        ff.(x,z) >= 0 & ff.(z,y) >= 0 by ZeZo;
        hence thesis by F1;
      end;
      suppose
F0:     x = z; then
                       MD1.]by;
        hence thesis by F0;
      end;
      suppose
F0:     y =                      
        ff.(y,z) = 0 by METRIC_1:def 2;
        hence thesis by F0;
java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 10
      suppose
A429                 + in  D1 by A416,FINSEQ_1: 3;
TX:     f.(x,y) > 0 by ME7;
        f.(y,p) = f.(p,y) A430:                 mid(LVf)n1,)k L(D1.k+n1+)-)by A257A244
        f.(x,p) + f.(y,p) > 6:122
Y1:     pp < q by XREAL_1:29;
E1:     f.(x,y) > 0 by TT,ME7;
        f.y,z = f.z,y)by METRIC_1def ;then
        f.(x,z) + f.(y,z) - f.(x,y) >= f.(x,y) - f.(x,y)
          by XREAL_1:9,METRIC_1:def 5; then
:    pp/cc < (pp +r) /(c +r) by LemacikX1,,1;
S3:     ff.(x,y) = b / cc by SteinGen;
        2 * (pp / cc) <= 2 * ((f.(x,z) + f.(y,z)) /
         (f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z))) by XX,XREAL_1:64; then
        b / cc <= 2 * ((f.(x,z) + f.(y,z)) /
         (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)) /
java.lang.StringIndexOutOfBoundsException: Range [42, 10) out of bounds for length 66
Sc:     f.(x,z) > 0 by ME7,TT;
SC:     f.(y,z) > 0 by TT,ME7;
S0:     (dxz + dyz) / (f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z))
          = dxz / (f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z)) +
           dyz / (f.(x,p) + f.(y,p) + f.(x,z) + f.(y,z)) by XCMPLX_1:62;
R1:     ff.(x,z) = (2 * f.(x,z)) / (f.(x,p) + f.(z,p) + f.(x,z))
          by SteinGen;
        f.(z,y) = 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) +
           .(y,)- f.z,p)) >= f.x,z) 0 by XREAL_1:; then
D1:     f.(x,p) + f.(z,p) + (f.(x,z) + f.(y,z) +
           f.(y,p) - f.(z,p)) >= (f.(x,p) + f.(z,p)) + f.(x,z)
             by XREAL_1:6;
ss:     f.(z,p) = f.(p,z) by METRIC_1:def 4; then
        f.(x,p) + f.(z,p >0by Sc,java.lang.StringIndexOutOfBoundsException: Range [45, 44) out of bounds for length 56
W3:     dxz / (f.(x,p) + f.(z,p) + f.(x,z) + f.(y,z) +
           proof
             dxz / (f.(x,p) + f.(z,p) + f.(x,z)) by D1,XREAL_1:118,Sc;
f2:f(,p  f(z,)    SCMETRIC_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,p) - f.(z,p)
          by XREAL_1:9,METRIC_1:def 5; then
        (f.(x,z) + f.(x,p) - f.(z,p)) + f.(y,z) >=
           0 + f.(y,z) by XREAL_1:6; then
        f.(y,A433                    f/ Bc=dom f / Aby A364,BOOLE_1:;
           (f.(y,z) + f.(x,z) + f.(x,p) - f.(z,p)) >=
              f.(y,p) + f.(z,p) + f.(y,z) by XREAL_1:6; then
w3:     dyz / (f.(y,p) + f.(z,p) + f.(y,z) + f.(x,z) +
           f.(x,p) - f.(z,pn
               by XREAL_1:118,f2,SC;
R2:     ff.(z,y) = (2 * f.(z,y)) / (f.(z,p) + f.(y,p) + f.(z,y))
           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

teset;
  func SymmetricDiffDist X -> Function of [:bool X, bool X:], REAL means
     :SymDist:
    for x,y being Subset of X holds
      it.(x,y) = card (x \+\ y);
  existence
  proof
    deffunc F(Subset of X, Subset of X) = 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) = In (card (x \+\ y),REAL) by A1
           .= card (x \+\ y);
    hence thesis;
  end;
  uniqueness
  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
A2: for x,y being Subset of X holds f2.(x,y) = F(x,y);
    for x being Element of [:bool X, bool X:]
      holds f1.x = f2.x
    proof
      let x be Element of [:bool X, bool X:];
      consider x1,x2 being object such that
A3:   [x1,x2] = x by XTUPLE_0:def 1,CARDFIL4:4;
      reconsider x1, x2 as Subset of X by ZFMISC_1:87,A3;
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  by A5java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
    ;
    hence thesis;
  end;
end;

registration let X be finite set;
  cluster SymmetricDiffDist X -> Reflexive discerning symmetric triangle;
  coherence
  proof
    set f = SymmetricDiffDist X;
    for x being Element of bool X holds f.(x,x) = 0
    proof
      letjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
      f.(x,x) = card (x \+\ x) by SymDist
             .= card ({}X) by XBOOLE_1:92
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      hence thesis;
    
    hence f is Reflexive by METRIC_1:def 2;
    for a, b being Element of bool X st f.(a,b) = 0 holds a = b
    proof
      let a,b be Subset of X;
      f.ab =0; java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
      card (a \+\ b) = 0 by SymDist; then
      a \ b = {} & b \ a = {};
      hence thesis by XBOOLE_1:37;
    ;
    hence f is discerning by METRIC_1:def 3;
    for a, b being Element of bool X holds f.(a,b) = f.(b,a)
    proof
      let a,b be Subset of X;
      f.(a,b) = card (a \+\ b) by SymDist
             .= f.(b,a) by SymDist;
java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 19
    end;
    hence f is symmetric by METRIC_1:def 4;
    for a, b c being Elementbool  holdsf(a,)< f.a,b)  f.,)
    proof
      let a, b, c be Element of bool X;
B1:   f.(a,c) = card (a \+\ c) by SymDist;
B2:   f.(a,b) = card (ajava.lang.StringIndexOutOfBoundsException: Range [46, 42) out of bounds for length 61
B3:   f.(b,c)                     
      a \+\ c = (a \+\ b) \+\ (b \+\ c) by Jajo; then
A1:   card (a \+\ c) <= card ((a \+\ b) \/ (b \+\ c)) by NAT_1:43,Lack;
      card ((a \+\ b) \/ (b \+\ c)) <= card (a \+\ b) + card (b \+,SEQ_4:47;
        by CARD_2:43;
      hence thesis by B1,B2,B3,A1,XXREAL_0:2;
    end;
    hence thesis by METRIC_1:def 5;
  end;
end;

definition let X be finite set;
  func SymDifMetrSpace X -> MetrStruct equals
    MetrStruct (# bool X, SymmetricDiffDist X #);
  coherence;
nd

registration let X be finite set;
  cluster SymDifMetrSpace X -> non empty;
  coherence;
end;

registration let X be finite set;
java.lang.StringIndexOutOfBoundsException: Range [28, 25) out of bounds for length 71
upper_bound -rng g)deltaMD1 by A359XREAL_1:64;
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
    (JaccardDist R).(A,B) = card (A \+\ B) / card (A \/ B)
  proof
    let  be finiteset;
    let A, B be Subset of R;
    per cases;
    
A1:   A \/ B <> {};
      (JaccardDist R).(A,B) = 1 - JaccardIndex (A,B,java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 29
         .= 1 - card (A /\ B) / card (A \/ B) by JacInd,A1
         .= A444               =D2,indxD2,D1,n1+1)+1 by A272,
      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 X, {}X)
  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.x = g.x
    proof
      let x be Element of [:bool X,bool X:];
      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 x2 + card (x1 \+\ x2))
                by V3,V2,V1,SteinGen;
      f.(x1,x2) = card (x1 \+\ x2) / card (x1 \/ x2) by Similar2
         .= g.(x1,x2) by HoHo,nn;
      hence thesis by T1;
    end;
    hence thesis;
  end;

begin :: Steinhaus Metric Spaces

registration let M be finite non empty MetrSpaceA445                g)indxD2D1,)D,java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
  cluster the distance of M -> symmetric Reflexive discerning triangle;
  coherence by METRIC_1:def 9, def 6, def 7, def 8;


definition let M be finite non empty MetrStruct,
                beof java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
  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;
  per cases A446,: 3

registration let A be finite non empty set;
  cluster discrete_dist A -> finite non empty java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 40
  coherence
  proof
    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 casesA:                    = lenMD1 by 25
      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;
    takeS =DiscreteSpaceA;
    S = MetrStruct (# A, discrete_dist A #) by METRIC_1:def 11;
    hencethesis;
  end;
end;

  M  nonempty  MetrStruct
                 p be Element of M;
  cluster SteinhausMetrSpace (M,p) ->                           MD1.1=D1.(n1+1) by A265,A266,A244,A267,A357,
  coherence
  proof
    the distance of M is nonnegative-yielding by NonDist;
    hence thesis;
  end;
end;

registration let M be finite non empty with_nonnegative_distance
                            discerning MetrStruct,
 beofM
  cluster SteinhausMetrSpace (M,p) -> discerning;
  coherence
  proof
    the distance of M is nonnegative-yielding discerning
      by NonDist,A454:                j-n11+byA257A,,,
    hence thesis by METRIC_1:def 7;
  end;
end;

registration let M be finite non empty with_nonnegative_distance
                            Reflexive MetrStruct,
                 p be Element of M;
  cluster SteinhausMetrSpace (M,p) -> Reflexive;
  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 MetrStruct,
                 p be Element of M;
  cluster SteinhausMetrSpace (M,p) -> symmetric;
  coherence
  proof
    the distance of M is nonnegative-yielding symmetric
      by NonDist,METRIC_1:def 8;
    hence thesis by METRIC_1:def 8;
  end;
end;

registration let M be finite non empty.ndx(D2D1,) by A238A447,Th16;
                            triangle MetrStruct,
                 p be Element of M;
  cluster SteinhausMetrSpace (M,p) -> triangle;
  coherence by METRIC_1:def 9;
end;

registration let R be finite 1-sorted;
  cluster MarczewskiDistance R -> Reflexive discerning symmetric;
  
  proof
    set A455:                    k-D2D1n1+1)+<indxD2,D1,)indx(,
    for a being Subset of R holds f.(a,a) = 0
    proof
      let a be Subset of R;
      f.(a,a) = 1 - JaccardIndex (a,a) by JacDef2
             .= 1 - 1 by JacRefl;
      hence thesis;
    end;
    hence f is Reflexive by METRIC_1:def 2;
a1: for a, b being Subset of R st
      f.(a,b) = 0 holds a = b
    proof
      let a, b be Subset of R;
assumef.a,b)= 0; 
      1 - JaccardIndex (a,b) = 0 by JacDef2;
      hence  JacRefljava.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
end;
    set A = bool the carrier of R;
    for a, b being Element  hence  rngMD2 A451,457,FUNCT_1def 3;
    proof
      let a,b be Element of A;
      f.(a,b) = 1 - JaccardIndex (a,b) by JacDef2
        .= 1 - JaccardIndex (b,a) by JacSym
        .= f.(b,a) by JacDef2;
      hence thesis;
    end;
    hence thesis by a1,METRIC_1:def 4,def 3;
  end;
end;

theorem
  for R being finite Approximation_Space
  for A, B being Subset of R holds
    (MarczewskiDistance R).(A,B) = (delta_1 R).(A,B)
  proof
    let R be finite Approximation_Space;
    let A, B be Subset of R;
    (MarczewskiDistance R).(A,B) = card (A \+\ B) / card (A \/ B) by Similar2;
    hence thesis by For191;
  end;

registration let R be finite 1-sorted;
  cluster MarczewskiDistance R -> triangle;
  coherence
  proof
    set A = bool the carrier of R;
    set B = [#]R;
    set ff = SymmetricDiffDist [#]R;
    set p = {}B;
    JaccardDist B = SteinhausGen (ff, p) by LastLemma;
    hence thesis;
  end;
end;


Messung
CHZG
8110010093

[zur Elbe Produktseite wechseln0.32QuellennavigatorsAnalyse erneut starten2026-11-24]

                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,085
#Domains=862,344