Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Mizar/mml/     Datei vom 6.10.2026 mit Größe 65 kB image not shown  

Quelle  partit1.miz   Sprache: Mizar

 

:: A theory of partitions, { I }
::  by Shunichi Kobayashi and Kui Jia
::
:: Received October 5, 1998
:: Copyright (c) 1998-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

 vocabularies NUMBERS=      then (Cs1i1Dion;
      RELAT_1, ZFMISC_1A27:by,A11A31java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 0
,,|pbyA303
 notations TARSKI, XBOOLE_0, ZFMISC_1, java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 0
,java.lang.StringIndexOutOfBoundsException: Range [50, 48) out of bounds for length 78
      XXREAL_0;
 constructors java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
       RELSET_1 DOMAIN_1,NUMBERS;
 registrationsXBOOLE_0     end;et x object suchthat
      XXREAL_0;
A107 x in dom A67:    x in dom (Cs1i1|dom DPp);
 definitions TARSKI, RELAT_1;
 equalities dom DPp c=Data-Locations t reconsider d = x as Data-Location by A16,AMI_2:def 16java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 48
ons ,        .= Cs2i1.d=d byA,,,    Cs1i1=11+1java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
 java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 0
      FINSEQ_1, FINSEQ_2, FUNCT_2sataPartdom = carrierSCMby PARTFUN1d ;
      XREAL_1, XXREAL_0;
 schemes  then

begin

::Chap. 1  Preliminaries

reserve Y,Z for non empty set;
reserverve PAA:  end;
reserve A,B for Subset 
reserve     
reserveA30:dom Cs1i1| DPp)=dom Cs1i1 /  DPp by RELAT_1:

theorem Th1java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  X in PA & V in         end;
     Natdabeing Location
  assume that
A1: X in PA and
:       java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 15
A3: X c= V;
A4 Xa
  set x  I= h A32  C(s1+  IC 2+1;
  X<>{} by A1,EQREL_1:defendjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  then x in  java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 44
  hence thesis by A3,A4          P2i+1|DataPart p by ,A34  java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 52
end;

notation
nowendjava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 12
'SFY java.lang.StringIndexOutOfBoundsException: Range [29, 29) out of bounds for length 12
        . >0ajava.lang.StringIndexOutOfBoundsException: Range [14, 15) out of bounds for length 14
end;

theorem
  union A69:    in          hence
proof
A1: union (then CurInstr,Cs1i1  l        then          IC Comput(P1,1i)k ICCs2i bA5A108AMI_3;
  proof
    let        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
          =d;
    then ex         =()loc;
             Cs2i1.hence
  endIncAddrC(C:A111: ,A;
  union SFX c= unionjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 0
  java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
    let y be object;
    assume y in union SFX;
    then Cs2iendjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A2:  hence IC 
A3:in SFX by TARSKIjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 not  thend =Cs3i.  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then  X in SFX \     I  3;

  end;
  hence thesis by          A36: Cs2i1 =P2,)by EXTPRO_13
end;

theorem Th3:
for PAPBbeinga_partition Y'PB &'' PA holds PB c= PA
proof
  let PA,PB be  SCMbyPARTFUN1d 2;
  assume that
A1: PA '>' PB and
A2: PB '>' PA;
  letx object
   reconsider xx        end
  assume
A3: x in PB
  then consider V such       ;
: V  A
A5: xx c= V      java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 0
  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A6:Win        end
A7: V c= W by A2,A4,SETFAM_1:def       end
 x=W by A3,A5,A6,A7,Th1      =dom  by         end:Cs3i=java.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
 hence     suppose
end;

theorem Th4:
java.lang.StringIndexOutOfBoundsException: Range [11, 2) out of bounds for length 73
proof
  let PA,PB be a_partition java.lang.StringIndexOutOfBoundsException: Range [0, 29) out of bounds for length 15
'ataPartdomCs2i1/  DPpbyjava.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
then  PB c= 
  hence thesis by XBOOLE_0java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
;

       IC P1,,i+1)+kA42:A42:  ExecI,Cs1i)C  =IC +A70;
  for PA,PB being
proof
  i+1)  hence
  assume
A1: PA '>' PB;
   :d=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  proof
    A44:  Cs1i1  Cs1i1.=Cs2i1.d;
    assume
  in;
then A3: x<>{} by EQREL_1:def 4;
java.lang.StringIndexOutOfBoundsException: Range [18, 6) out of bounds for length 53
u  xby 
    union PB = Y by EQREL_1:def 4;
 ybeingjava.lang.StringIndexOutOfBoundsException: Range [4, 4) out of bounds for length 0
A5: u in y and
BAjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    A45: dom (Cs2i   i1  A10,,111
A7: z in PA and
A8:         c
    x=z or x misses       =dom DPp  A37,A29,BOOLE_1:28;
    hence e;
  java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  hencethesis :ef3;
end;

letx  be75:    x in dom (Cs1i1|dom D
  let Y;
  let PA be a_partition of
  pred b is_a_dependent_set_of PAA48 d indom DPp Instr(1omputbyRELAT_158java.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

  exBbeingset  c= PA  <{   = ;
end;

definition
   ;(java.lang.StringIndexOutOfBoundsException: Range [8, 1) out of bounds for length 72
  
  pred b is_min_depend PA,PB means

  b java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 11
  b is_a_dependent_set_of PB & for d being 
 DPp.=(Cs2i1domthenreconsider     by:def ,27;
Cs1i1d

theorem Th6:
 forPA
  st PA         hence Cs1i1domDPp).  (domA51: ( Cs1i+ +1=jkjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
b java.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 28

  let PA,      hences1i1dom     thencases
  assume
A1: PAend;
 PB    
A3: PA is_coarser_than PB by A1 InsCode  = 
     
  
    let b be setthen (Cs1i1let I= SCMby 7java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
     ComputP1A115:   x in dom DataPart ;
A4: b in PA;
    set        reconsiderjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
    consider xb be set such that
      java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
6 in;
   for z being object holds z in B0 implies
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      assume z in B0;
eingSubset  stx8  =ComputP2,i))by A31;
      hence thesis;
    end;
then A7: B0 cA53: Cs2i1=Cs2iataPart Cs3i1;
  for z being object e;
    proof let z be object;
      java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0
       thenDataPart         suppose
      then consider x1 such that
A9:  z in x1 and
A10          da  d;
onsider   that
A11:  y1 in java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A12java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      b  y1  b misses y1 by ,,java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 25
      then
      ence            (Cs3i1.=ataPartCs2i1)    end;
    end; then
    A13: b c= union B0      InsCode I=1
   for z being object holds        java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 12
        
      assume z in :  I = da := db by >java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
      then consider  suchthat
A14:  z in y and
A15:  y       such
A:Exec(,Cs1i.java.lang.StringIndexOutOfBoundsException: Range [20, 0) out of bounds for length 0
      hence thesisA116 A116: I
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A117: no
    thenIC ,s1i         java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 18
    hence thesisend
  end;
  hence thesis;
end;

heorem  da         CurInstrP2P2,s2,1
  for PA being a_partition of Y holds Y         A10A11java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
proof
  let PA  a_partition of Y;
MISC_1A:  =MultBy   :java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
A2: union {Y} = Y by ZFMISC_1:25;
   for
 st  java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  proof
    let A80:  Exec(I, Cs1i).IC SCM =         end;
    assume
      end;
    then :AYby TARSKI:def 1;
A118 CurInstr(2 Cs2i)=da        let x object;
    let B;
    assume B in {Y};
    hence thesis by A4,TARSKI:def        java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
  end;
then A5:{Y}isjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 0
 for a being set st a in PA ex b being set st java.lang.StringIndexOutOfBoundsException: Range [0, 47) out of bounds for length 39
  proof
    let a be set;
         xin Data-Locations
java.lang.StringIndexOutOfBoundsException: Range [8, 2) out of bounds for length 17
b:java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 27
        er java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    xsuppose
    then consider b being setjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    x b 
:   Y  A2,:2;
 b =
          hence (s1i1|om DPp).x = (s2i1|dom DPp        java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
  end;
 A958A60,,AMI_5:17;
 Y in {Y} by TARSKI:def 1;
  hencethesis  end;
end;

theorem Th8:
  for F  Subset-        dom DPp c= Data-Loc
  for X st X in per cases;
  oldsIntersectF is_a_dependent_set_of PAsuppose
proof
  let F be           then Cs1i1.          <> IC Cs1i +1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
  per cases;
           hence (Cs1i1|dom DPp).x = (Cs2i1|dom DPp).x         cases;
    then Intersect(F)=Y by SETFAM_1supposeend hence
          then (Cs1i1|dom ICComput(P1,1,+1 
  end;     hence Comput(P1,s1,i+1)
  suppose
A1:>}java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
 reconsider  = i+)|pyAA41G3
    assume that
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 0
A3: for X st
    defpred  P[bjectobject] 
      ex A end;
stin holds exl=Cs1i ,:
     proof let x be object;
       reconsider X = x as set by TARSKI:1;
      perjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
       x in F;
        java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 17
       then ex17,119;
       then ex BAMI_3:;
      hence thesis;
     ;
    consider f being Function such that
java.lang.StringIndexOutOfBoundsException: Range [9, 2) out of bounds for length 15
  for X being object st X in F holds P[Xs2,         a > ;
 rngfc 
    proof
      let y  then       then (Cs1i1
      reconsider yy=y = CurInstr(P2,ComputP2,2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      assumeh         s3i1d =java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 20
       x
A6:   x in dom f and
A7:          hence DataPart Cs3i1java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
      P[x,      ow
      thenendjava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 by A7endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      hence thesis;
    end;
    then        dom      hence DataPart Cs3i1 = DataPart(2,i1)
                 A16        then x in Data-A85 in   DataPart java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
    defpred P[set] means    
    deffunc S(Element of F9) = f
    reconsiderT{SCs1i1 =Cs1i.d&s2i1 = Cs2i. A50A6: I  AddToda, db  AMI_5:9;
      as Subset-Family of bool Y from DOMAIN_1:sch java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 15
    reconsider T as Subset-Family of bool Y;
   java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 0
    thus B c= PA
    proof      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      let x be object;
      sume
 ICComput(P1,s1,+) +k=ICComput(P2,2i+)
consider X beingobject such that
1;
      f.X in T by java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [14, 3) out of bounds for length 33
      java.lang.StringIndexOutOfBoundsException: Range [11, 7) out of bounds for length 24
      then f.X c= PA;
      hence thesis by A10;
                    x be object;
    thus B<>{}
    proof
      consider X being object such that
A11:X   byA1d 1
A12:  f.      now
      consider A being object  DPpAMI_35
java.lang.StringIndexOutOfBoundsException: Range [0, 3) out of bounds for length 0
      reconsider A           hence (Data Cs3i1).x        dxbyA22,A123
      set AA = EqClass(A,PA);
:Ain  Fby A1,A13,         java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
    st in  for X st X in  Cs3i1 =DataPart Comput(P2,s2,i+1) by A16,A17,GRFUNC_1:2;
      proof
        let X;
        java.lang.StringIndexOutOfBoundsException: Range [19, 14) out of bounds for length 22
        then consider z beinghence        casesjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
A15:    X=f.z and z in F;
      InsCodeI= 5java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
        then
,A50,A36,62A        dadbData-suchthat
    z = union (f.z) java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then     ex          hejava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
  ,A87:  IncAddr(I, k) = Divide(daby,OMPOS_0:
      end;
then   EqClass(A,in T  p  1A3,:2
      hence thesis by SETFAM_1:def 9;
    end;
A18:         endjava.lang.StringIndexOutOfBoundsException: Range [12, 13) out of bounds for length 12
    proof
      let x be object;

A19:x in Intersect.= + 1           ,36A,A63,AMI_3:java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
then A20:  x in meet Fhence
      reconsider x ashence
      econsider PA as a_partition of ;ComputP2,s2,
      ,,      endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      considerthusIncAddrP1Comput:    s1 A3G;
A21:  X in           C(t     (;
 A10A31,,A90AMI_3;
  for X st X in let xbeobjectjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
   proof
        let X;
        assume ;
        then consider z java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 18
=f z F;
A24:    P[          dda =d;
:    .z=PA
y A24;
java.lang.StringIndexOutOfBoundsException: Range [24, 4) out of bounds for length 48
     exA0 being   x in2
        hence thesis java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
      end;A131: (2)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
 n meet T  A22S: ;
      then x in A & A in Intersectsuppose
e thesis  : ;
    end;
    union      =P2.IC
    proof
      let x be objectjava.lang.StringIndexOutOfBoundsException: Range [22, 23) out of bounds for length 22
ssume
  xin  B;
      consider X being object such that
:Xin               =(IC   )
   end;
      consider y being set such that
A29:  x in y       nd
A30:  y in B A132:dom java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 0
A31:  y in meet T by A28,A30,SETFAM_1:def 9;
      for X st X in F holds x in X
      proof
        let X;
        assume
A32:    X in F;
then     f.X in T;
hence =DataPart (,,  A7,3java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
       P[X,        CrInstr(ComputP,,
       then X = union (f.X);
         by     uppose
      end;InsCode  =3;
then   consider ,A133: dom DataPart s2 = Data-Loc MEMSTR_0:;
      hence thesis by A1,SETFAM_1:def 9;

    hence Intersect(F) = union B(Ik  A71:  IncAddr(I, k) = SubFromby 51
  end;
end;

theorem java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
  for A136: DataPart
dent_set_of   X0 X1
  holds X0/ X1by A10,A11,A50,A36,A51,MI_3:4java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
proof
  let ,X1Subsetof               .db by A11,A50,A36 . DataPartp A134,GRFUNC_1
  assume that
PAand
A2: X1 is_a_dependent_set_of PA and
meets java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
A   thus DataPart Comput,,  java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 32
A4: A c= 
A5y A1;
  r B              henCs1i1d=.       P20java.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
A6:         DPp c
A7: X1 = union B by A2;
A8: X0 /\ X1 c= union (A /\ B)
  A137:0;
    letxbe object;
    assume
A9: nd;
10  X0 :def4java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
 in             Cjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
  consider java.lang.StringIndexOutOfBoundsException: Range [24, 20) out of bounds for length 34
A12for  being java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 50
A13:y  by ,,        ;
    consider z being set such that
 (heInstructionsFof SCM)valued -defined Function,
A15: z in B by A7,A11,TARSKI:def 4;
A16 by,A13;
A17:zjava.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 23
 meets  A:;
    then y = z by A16,A17,EQREL_1:def 4;
defjava.lang.StringIndexOutOfBoundsException: Range [44, 25) out of bounds for length 25
    for P1,P2:injava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 15

  union (A /\ B) c= X0 /\ X1
  proof
    let java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       assume   union(A \B;
    then consider y being set java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 0
A18: java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
A19then .d Cs1i.& Cs2i1.  =.  ,A
A20: y   Lm1
A21: yend;
A22: x in X0 by A5,A18,A20           (java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 
        ;
  end;
(A      end
A24: A \/ B  Cs1i1| DPp) c (Cs2i1|dom DPpjava.lang.StringIndexOutOfBoundsException: Range [44, 14) out of bounds for length 53
 A / Bc A&Ajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then  A /\ B c= A \/ B;
then A25: A /\ B java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0
 java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
    assume
A26:            suppose
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
       p c java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
  end;  s2A77:xin dom DataPartCs3i1;
  hencethesisthenreconsider-Sequence  java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
;

theoremsuppose
   X          a djava.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
  implieshence( Cs3i1 thens2i1.  (2)by 
proof
  let X be Subset of Y;
  assumehence( )=(ataPart)xbyA18A,;
A1: X java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 12
A2: X<>t            
  consider B
A3 B c= PA and B<>{} and
  hence (ataPartCs3i1.  DataPart. byA22,A77;
  take PA \ B;
A5:union        end;
then A6: X` = union PA \ union B by A4,      then DataPart Cs3i1 c= DataPart Comput(P2,s2,i1) by AMI_3:6;
  reconsider B as Subset of PA by A3;
 now
      DataPartCs3i1=java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 0
then  PA c= B by XBOOLE_1end;
    hence contradictionsuppose
  end;
  hence I= 4;
end;

Th11:
  for y being Element of Y
 Xbeing   Y y  &X is_min_dependPAjava.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
proof
Y
A1: union PA Cs1i.SCM Cs1i+1
A2:           DataPart       
  =orA   def;
A3: Y is_a_dependent_set_of PA & Y is_a_dependent_set_of PB by Th7;
   defpredP[set]means
  java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  reconsider XX={X where X is Subset of Y:P[X]}
  as Subset-Family of Y       da=db
   Y;
 Y= Y;
then A4: Y in XX by A3;
 for   stX1           ence
  proof
    let X1 be set;
    assume X1 in           IC (s,i+1) +k         
  ex X Subset of Y st X=X1 & y in X & X
    is_a_dependent_set_of PA & X is_a_dependent_set_of PB;
    hence thesis;
  :   indom(1 java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
 yin XX byA4,: ;
then A6: Intersect(XX)<>{} by SETFAM_1:def 9
)
 for X1 be set st X1         then reconsider  DataLocation: 16AMI_327java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
casesjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    X1be ;
    X1 XX
               x as          ence
is_a_dependent_set_of; java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
thesis;
  end;thenCs2i1.d  da mod db  Cs3i1.d=Cs3i.damodCs3i
 :X)   java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
 for X1 be set st X1 in XX holds X1 is_a_dependent_set_of PB
  proof
    let X1 be               hence (DataPart Cs3i1,A103
    assume X1 in XX;
ex  be  of  st X &yin &java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    X is_a_dependent_set_of PB;
;
  end;
ct(XX is_a_dependent_set_of A6Th8
 for d being set st d c= IntersectA93:da=d;
  d is_a_dependent_set_of PB holds d=java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 18
  proof
    let d be java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
t
A9:A92A91Ac ComputP2+java.lang.StringIndexOutOfBoundsException: Range [58, 57) out of bounds for length 77
A10: d is_a_dependent_set_of PA            =ComputP,s2i1 byA17
A11: d is_a_dependent_set_of  java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 11
            end
A12: Ad c=PA and
A13:     end
A14: d = union Ad by A10;
A15: d c= Y by A1,A12java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 16
    per cases;       considerlocbeing
 suppose

then A16:  d in XXjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
 Intersect(X c d
  proof
        let X1              dbby A11,,A36,,,AMI_3:;
        assume .= IC Computs2,+)byA105,AMI_3java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
then     X1 in meet XX       IncAddr(P1Comput,i) )
        ,A92A91A95,,MI_5:2;
      end;
hence thesis by ,BOOLE_0def10java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
suppose
A17:  not y   -   A30,;
      reconsider java.lang.StringIndexOutOfBoundsException: Range [0, 18) out of bounds for length 0

then A18:  y in d` by A17,XBOOLE_0:def 5;
  d java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
thenA19:   { XBOOLE_0def7;
              P2i)   A30,41GRFUNC_1:3;
      then         Cs1i1| .  (Cs2i1dom java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
` is_a_dependent_set_of PA & d` is_a_dependent_set_of PB by A10,A11,Th10;
then A20:  d A96:        x in domDPp)=(dom )30,2;
                  Data
      proof
        let X1byA16AMI_2def;
        assume X1 in Intersect(XX);
             java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
              da  d;
      end;
then A21:  d /\ Intersect(XX) = {} by A19,XBOOLE_1:3,26;
  d /              then Cs2i1d = Cs2i.da div Cs2i.db &  letx be object;
onAd ={  ,A21
      consider ad being object such that
OLE_0:def 1;
A24:  ad<>{} by A2,A12,A23;
      reconsider ad as set by then reconsider d = x as DataLocation by A16,AMI_2:java.lang.StringIndexOutOfBoundsException: Range [0, 63) out of bounds for length 0
  ad c= {} by A22,A23,ZFMISC_1
      hence thesis by A24;
    end;
  end;
  hence thesis               .db A36A40,,,AMI_3:6java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
end

java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
        java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
ex  YyA&  P
proof
  let P be a_partition of Y;
  let y be Element
  consider R being Equivalence_Relation of Y such that
A1: P=Class R byEQREL_1:34;
      suppose
 thus y in Class,y)by EQREL_1:20;
  thus thesis by A1,EQREL_1:def 3;
end;

definition
  let Y be set;
      then consider
  :Def3:
  for x being set holds x           ;
  existence
  proof
    defpred P[set] means $1 is a_partition  then
    consider X being set such       such DataPart = P2,1) ,17G2java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
A1: for x being set holds x in X iff x in bool bool Y & P[x] from
    XFAMILY:sch 1;
    take        end;
    let x be set;
    thus x in X implies x A98 ExecI         perjava.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
    assume          IC(si1     P,s2java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
    hence thesis by A1;
  end;
  uniqueness
  proof
    let A1,A2 be set such that
A2: for x          Comput(1s1
A3: for                     case
 now
      
   y in A1           now
      hence y in             x object  
    end;
              ICComputA: indom (|omDPp)
  enddom  c= Data-Locations by 58
end;

registration
  let Y be set;
  cluster PARTITIONS(Y) -> non      thenjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 76
  coherence
  proof
    per A100:        =;
    A110: CurInstr(P2java.lang.StringIndexOutOfBoundsException: Range [18, 19) out of bounds for length 0
   Y={}java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
hence thesis byDef3EQREL_1:45;
    end;
    suppose
   
      then reconsider Y as non empty set;,,A101,102java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
                  end;
   for A             suppose
            for cases;
      proof
         Y;
        assume
A2:     A :6;
A3:     A=Y by loc <> IC Cs1i +1java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
        thus A<>{} by A2,TARSKI:def 1;
        let B be Subset of Y;
        assume B  Y;
        hence thesis by A3,TARSKI:i+1) by ,A8A,,,,A5AMI_5:23;
endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      then {Y} is java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 15
      hence thesis by Def3
    end;
  end;
end;

begin::java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60


  let Y;
  let PAPB be a_partition of Y
            assume
  INTERSECTION(PA,PB) \ {{}};
  correctness
  proof
    {} c= Y;
            then reconsider d =x
    set a = INTERSECTION(PA,PB);
 in  zbool Y
    proof
      let z be object;
      reconsider zz=z            
      assumez ina;
then    exM, beingset stM in
henzz =Y  :;
      hence thesis;
    ;
    then
java.lang.StringIndexOutOfBoundsException: Range [20, 10) out of bounds for length 73
    reconsider ia = a \ e as Subset-java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
: union iajava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
      .= union PA /\ unionPB SETFAM_1:8
      .= Y by A1;
    for A being Subset of Y st A java.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 16
    for B being Subset of Y st B in ia holds A = B orCs1i1d=Cs1i. &Cs2i1.=Cs2i ,,A108       =Computs2,+  A36A105,MI_37java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
    proof
      letAbeSubsetof Y;
      assume
A3:   A in ia;
thenA4   java.lang.StringIndexOutOfBoundsException: Range [15, 1) out of bounds for length 33
:(,PB A3,XBOOLE_0:def 5;
       (Cs1i1|   (|DPp         =Data-Locations byRELAT_1:
      proof
       A6:    for
 m,n,o,p being set holds (m /\         then reconsider d =x  - by : A:java.lang.StringIndexOutOfBoundsException: Range [72, 73) out of bounds for length 72
proof
          let m,n,o,p be set;
      (m /\ n) /\ (o /\ p) = m /\ ( n /\ (o /\ p DPp. =(Cs2i1
      now
          hence thesis;
        end;
        let B be Subset of Y;
        assume B inia
then     B in INTERSECTION(PA,PB) by XBOOLE_0:def 5;
         consider,   
A7:       ComputP2,s2,+)domDataPart  by A30 then -,27
A8:    B = M /\ java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
         
A9:S  assume
A10:   x dom DataPart Cs3i1;
    M /\ N = S /\ T or (not M = S or not N = T );
M/\ N =S/\ T or (M misses S or N misses T)
        by A7,       DataPart Cs3i1 cdby A36,A40,A104,A105,AMI_3:7;
then A11:    M /\ N      henceDataPart Cs3i1       hence DataPart Cs3i1 = 
;
    (M /\ S) /\ (N /\ T) = M /\ ( S /\ N /\ T ) by A6
          .=( M /    suppose
        hence        =java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
endjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
      hencejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    end;
    suppose
  end;
  ;
end;

theorem
  PAa_partitionof        case
proof
  let PA           IC(,s1,+ Cs1i.a >java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
 for u being set st u in INTERSECTION(PA,PA) \ {{}} ex v being set
  st v in          . >
  proof
    let u be set;
    assume u in INTERSECTIONjava.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 0
           (,,i+1)+k=( Cs2i +1byA10A50,A51,AMI_38;
A1v in PA and u2 in
A2: u = v /\ u2 by SETFAM_1:def 5;
    take v;
    thus thesis        end
  end end;
 :INTERSECTIONA111:now
for u beingsetstuinPA
  ex v being set A119:now

    ube 
    assume
A4: u in PA;
then           .da =0;
   \;
A6: not v in         java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
 v in  da<java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  vinINTERSECTIONPA
     java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 17
  end;
then  PA '<' java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 10
  java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
end;

theorem
  for PA,PB,PCbeing  of  
  (PA '/\' PB) '/113:now
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  let PA,PB,PC be a_partition of Y;
  consider PD,PE        suppose
:PD =PA /' andloc=ICCs1i+1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
          java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
 for u being set st u in PD '/i+)loc   Cs1i 1;
  ex end
f
    let u set;
    i+1) by A10,A109,A111;
A3: u in PD '/\' PC;
nsider,u2being java.lang.StringIndexOutOfBoundsException: Range [0, 34) out of bounds for length 0
A4: u1 in  CurInst(,(P2i      
 by,;
A6: u = u1 /\java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
     ,u4  set hat
A7: u3 in PA and
A8A122:        P2(s,+)java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
A9: u1 = u3 /\ u4 by A1,A4,java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 0
    consider v, v1,v2         let x  object suchthat
:=/  
A11: v2 =   c -Locations R58
u4 
A13: v = v2 /\ v1 by A10,A11,A12,XBOOLE_1:16;
A14:  in INTERSECTION(PB,PC) by A5,A8,A10,SETFAM_1:def 5;
A15: not u in {
E_116java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then  v1 <> {} by A15,TARSKI:def 1;
then  not v1        .d =Cs1id &Cs2i1d=Cs2i. by A50,36,,A110AMI_3:8java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
then  v1 in INTERSECTION        ence(Cs1i1|dom ).x= (Cs2i1|dom )xby A30,A46,A114;
then A16: v in INTERSECTION(       =Comput(P2,s2,+)domDataPart pbyA30,A41,      ;
    v
    thus thesis by A6,A9,A12,A15,A16,XBOOLE_0:def 5;
  end;
then A17: PD '/\' PC '<' PA      hence Comput(P1,i1|(         let  xbe object;
 forusetstjava.lang.StringIndexOutOfBoundsException: Range [1, 0) out of bounds for length 0
 v'     
  proof
     
    assume
A18: u in PA '/\' PE;
then u1,beingset such that
A19u1 in PA and
A20: u2 in PE and
A21: u = u1 /\ u2 by SETFAM_1:def 5;
c u3,  that
A22: u3 in PB and
A23: u4         (ataPart.  DataPartCs2i1.by    java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
A24: u2 = u3 /A:end;
A25: u = u1 /\ u3 /\ u4 by A21,A24,XBOOLE_1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 41
A26: v1 = u1 /\ u3 and v2 = u4 and
A27: v = u1 /\ henceDataPartCs3i1 =DataPart (P2s2i+  ,,:java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
A28: v1 in INTERSECTION(PA,PB) by A19,A22,A26,SETFAM_1:def 5;      .= +byA3,:2

thenv1 < {} by  locbeing Nat,dabeing -java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
v1in {{}} by A116: I = da>0_goto loc by:15java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
then  v1 in        per ;
java.lang.StringIndexOutOfBoundsException: Range [33, 4) out of bounds for length 68
    take v;
    thus thesis by A25             p  s1 A,2
  ndjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
thenPA'\' PE ''           IC ComputP1s1i)+k =loc+kk ,A116A:java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
  hence thesis by A1,A127: loc in dom q by A7,: 4java.lang.StringIndexOutOfBoundsException: Range [43, 44) out of bounds for length 43
end;

theorem java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
for, being     >  /'PB
proof
end
 for u being set st u in      end;
  proofA118 CurInstrP2 )=da0goto l+ ,116,h3
    let be setjava.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 17
    assume u in PA '/\' PB;
    then consider. .ICs2
A1:   PA and( pk  A2A129,RFUNC_1:2
SETFAM_1d5;
    take u1;
        end;
  end;
'>PA
end Cs2ida<java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23

definition
  letjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  let PA,PB be       ;
 PA'/ PB  >java.lang.StringIndexOutOfBoundsException: Range [57, 23) out of bounds for length 57
  :Def5:
  dholds          hence
  existence
  proof
A1: union PA = Y by     DataPart p c= IncIC(p,kby A135,MEMSTR_0:12;
A2    
    holds A=A136: DataPart p c= s2 by A2,XBOOLE_1        end;
    defpred P[set] means           =IC   Comput,
    consider X being  suchthat
A3: for d being set holds d in X iff d java.lang.StringIndexOutOfBoundsException: Range [0, 41) out of bounds for length 12
  iff java.lang.StringIndexOutOfBoundsException: Range [50, 44) out of bounds for length 63

      letdjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
   fordbeing  holds d is_min_dependPA implies d in bool java.lang.StringIndexOutOfBoundsException: Range [66, 67) out of bounds for length 66
      proof
        etdsetjava.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
 d          x - A122
 is_a_dependent_set_ofPA
then      ex A being set st A c=  
        unionPA  ZFMISC_1:77
        hence
      end;
then
in_depend PA,PB is_min_depend PA, &d in bool Y;
      hence thesis by java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 14
    end;
    take Xtheorem
A5: Y c= union X
    proof
      let y be         Cs3i1.d = Cs3i  .=Cs2i   for qs2s3being State  SCM IC       omput(P2i1   A16A17GRFUNC_1:2;
      assume y in Y;
       consider  beingofYjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
    end;
A7:  a is_min_depend PA,PB by Th11;
   forP1,P2A124:DataPartpc=pby RELAT_1:;
      hence thesis by A6,TARSKI:def 4;
    end;
  for i  now
        thus  ComputP, ComputP1,3i) = DataPart P2s2i by ;
      let y be object;
      assume y in union X;
      then java.lang.StringIndexOutOfBoundsException: Range [0, 19) out of bounds for length 17
A8:  y in a and
 a X by TARSKI:ef4java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
 a is_min_depend PAPB byA4,;
then   a is_a_dependent_set_of    reconsider loc = IC  p as Element f;
thenexAbeing set stAc PA&A<{ &a= union A;
then   a c= Y by A1,ZFMISC_1:77;
      hence thesis by ;
    end;
then A10: union X = Y by A5,XBOOLE_0:def 10;
A11:A127 loc in dom q by ,A4,AMISTD_5:def 4;
for being Subsetof st in X holds = or A  B
    proof
      let beSubset of Y;
      assume A in X;
then A12:  A is_min_dependA130:()IC    .C   ,A127,A5,GRFUNC_1:2;
then A13:    dom P2 = NAT by PARTFUN1:def 2;
A14:  A is_a_dependent_set_of PB by A12;
      consider Aa being set such that
A15:  Aa c= PA and
A16:  Aa<>{} and
A17:  A = union Aa by A13;
      consider aabeing objectsuch that
A18=P2 Comput(2,,0)by PARTFUN1def6
A19:  aa<>{} by A2,A15,A18;
           .= P2IC s2
a c  Aa  A18,ZFMISC_1:74;
      hence A<>{} by A17 :java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38

      assume B in X;
then A20:  B is_min_depend PA,PB by A4 (,,)
      
A21:  B is_a_dependent_set_of PA &.P1.IC by A132P: ;
  now
        assume A meets B;
         A22:   A
 /\ B is_a_dependent_set_of PA & A      CurInstrP2ComputP2,s20)by AA131,:;
,Th9;
A/Bc= by :;
then A23:    A /\ B = A by A12,A22;
:    c B
        by A23,XBOOLE_0:DataPartIncIC(,)=DataPartp MEMSTR_0:;
    A /\ B c= B by XBOOLE_1:17;
then A25:    A /\ B = B by A20,A22;
    B c= A
        y ,BOOLE_0def 4;
        hence A=B by A24,XBOOLE_0:def 10;
      end;
      hence thesis;
    end;
 X   Y
    
      let x be thusjava.lang.StringIndexOutOfBoundsException: Range [18, 17) out of bounds for length 63
   reconsider xx=x as set by TARSKI:1;
      assume x in X;
then   xx is_min_depend PA,PB by A4;
then   xx java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 11
{    union java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
then   xx end;
      hence thesis;
    end;
then   Subset-  ;
 X is a_partition of Y by A10,A11,EQREL_1:def 4;
    thesisby ;
  end;
      (he InstructionsF ofSCM)-alued NAT- Function,
  proof
    let A1,A2 be a_partition of Y such that
A26: for x being set holds x in A1 iff x is_min_depend PA,PB and
A27: for x being set holds x in A2 iff x is_min_depend PA,PB;
    for y being object holds y in A1 iff y in A2 by    for y S SCM
    hence thesis by TARSKI:   Elementof holdsICComput(,s1,)+k=IC
endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
  ity
  proof
    let IT,PA,PB be a_partition of Y;
A28: for a be set st a is_min_depend PAjava.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 9
A29: for
 (for d
    for d being set holds d in a iff d is_min_depend PB,java.lang.StringIndexOutOfBoundsException: Range [0, 58) out of bounds for length 28
    by A28,A29;
   ;
  end;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4

theorem Th16:
   =&IncICpk =
proof
 thus PA '<  '\'PB
  proof
 for   for P2-  SCM
    proof
        be set;
      assume
A1:   a in PA;
then A2:   a<>{} by   Comput(P1,3i)  (2,2i) by java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
      set x = the Element of a;
A3:   x in Y by A1,A2,TARSKI:def 3;
   union (PA '\/' PB) = Y by EQREL_1:def 4;
      then consider b being set such that
A4:   x in b and
A5:   b in PA '\/' PB by A3,TARSKI:def 4;
   b is_min_depend PA,PB by A5,Def5;
then    b is_a_dependent_set_of PA;
      then consider B being set such that
A6:  B c= PA and B<>{} and
A7:  b = union B;
  a in B
      proof
        consider u being set such that
A8:    x in u and
A9:    u in B by A4,A7,TARSKI:def 4;
    a /\ u <> {} by A2,A8,XBOOLE_0:def 4;
then A10:    not a misses u by XBOOLE_0:def 7;
    u in PA by A6,A9;
        hence thesis by A1,A9,A10,EQREL_1:def 4;
      end;
      hence thesis by A5,A7,ZFMISC_1:74;
    end;
    hence thesis by SETFAM_1:def 2;
  end;
end;

theorem
  for PA being a_partition of Y holds PA '\/' PA = PA
proof
  let PA be a_partition of Y;
A1: PA '<' PA '\/' PA by Th16;
 for a being set st a in PA '\/' PA ex b being set st b in PA & a c= b
  proof
    let a be set;
    assume
A2: a in PA '\/' PA; then
A3: a is_min_depend PA,PA by Def5;
    then a is_a_dependent_set_of PA;
    then consider B being set such that
A4: B c= PA and B<>{} and
A5: a = union B;
A6: a <> {} by A2,EQREL_1:def 4;
    set x = the Element of a;
 x in a by A6;
    then x in Y by A2;
    then x in union PA by EQREL_1:def 4;
    then consider b being set such that
A7: x in b and
A8: b in PA by TARSKI:def 4;
    b in B
    proof
      consider u being set such that
A9:  x in u and
A10:  u in B by A5,A6,TARSKI:def 4;
  b /\ u <> {} by A7,A9,XBOOLE_0:def 4;
then A11:  not b misses u by XBOOLE_0:def 7;
  u in PA by A4,A10;
      hence thesis by A8,A10,A11,EQREL_1:def 4;
    end;
then A12: b c= a by A5,ZFMISC_1:74;
 b is_a_dependent_set_of PA by A8,Th6;
then  a = b by A3,A12;
    hence thesis by A8;
  end;
then  PA '\/' PA '<' PA by SETFAM_1:def 2;
  hence thesis by A1,Th4;
end;

theorem Th18:
  for PA,PC being a_partition of Y st
  PA '<' PC & x in PC & z0 in PA & t in x & t in z0 holds z0 c= x
proof
  let PA,PC be a_partition of Y;
  assume that
A1: PA '<' PC and
A2: x in PC and
A3: z0 in PA and
A4: t in x & t in z0;
  consider b such that
A5: b in PC and
A6: z0 c= b by A1,A3,SETFAM_1:def 2;
 x = b or x misses b by A2,A5,EQREL_1:def 4;
  hence thesis by A4,A6,XBOOLE_0:3;
end;

theorem
  for PA,PB being a_partition of Y st
  x in (PA '\/' PB) & z0 in PA & t in x & t in z0 holds z0 c= x by Th16,Th18;

begin :: Chap. 3  Partitions and Equivalence Relations

definition
  let Y be set;
  let PA be a_partition of Y;
  func ERl PA -> Equivalence_Relation of Y means  :Def6:
  for x1,x2 being object holds
  [x1,x2] in it iff ex A being Subset of Y st A in PA & x1 in A & x2 in A;
  existence
proof
A1: union PA = Y by EQREL_1:def 4;
    defpred P[object,object] means ex A being Subset of Y st
    A in PA & $1 in A & $2 in A;
 ex RA being Equivalence_Relation of Y st
  for x,y being object holds [x,y] in RA iff
    ex A being Subset of Y st A in PA & x in A & y in A
  proof
A2: for x being object st x in Y holds P[x,x]
    proof
      let x be object;
      assume x in Y;
      then ex Z being set st x in Z & Z in PA by A1,TARSKI:def 4;
      then consider Z such that
A3:   x in Z and
A4:   Z in PA;
      reconsider A = Z as Subset of Y by A4;
      take A;
      thus thesis by A3,A4;
    end;
A5: for x,y being object st P[x,y] holds P[y,x];
A6: for x,y,z being object st P[x,y] & P[y,z] holds P[x,z]
    proof
      let x,y,z be object;
      given A being Subset of Y such that
A7:   A in PA and
A8:   x in A & y in A;
      given B being Subset of Y such that
A9:   B in PA and
A10:  y in B & z in B;
      A = B or A misses B by A7,A9,EQREL_1:def 4;
      hence thesis by A7,A8,A10,XBOOLE_0:3;
    end;
    consider RA being Equivalence_Relation of Y such that
A11:for x,y being object holds [x,y] in RA iff
    x in Y & y in Y & P[x,y] from EQREL_1:sch 1(A2,A5,A6);
    take RA;
    thus thesis by A11;
  end;
  hence thesis;
end;
  uniqueness
  proof
    let f1,f2 be Equivalence_Relation of Y such that
A12: for x1,x2 being object holds [x1,x2] in f1 iff
    ex A being Subset of Y st A in PA & x1 in A & x2 in A and
A13: for x1,x2 being object holds [x1,x2] in f2 iff
    ex A being Subset of Y st A in PA & x1 in A & x2 in A;
    let x1,x2 be object;
    [x1,x2] in f1 iff ex A being Subset of Y st
    A in PA & x1 in A & x2 in A by A12;
    hence thesis by A13;
  end;
end;

definition
  let Y;
  defpred P[object,object] means ex PA st PA = $1 & $2 = ERl PA;
A1: for x being object st x in PARTITIONS(Y) ex z being object st P[x,z]
  proof
    let x be object;
    assume x in PARTITIONS(Y);
    then reconsider x as a_partition of Y by Def3;
    take ERl x;
    thus thesis;
  end;
  func Rel(Y) -> Function means
  dom it = PARTITIONS(Y) &
  for x being object st x in PARTITIONS(Y) ex PA st PA = x & it.x = ERl PA;
  existence
  proof
    thus ex f being Function st dom f = PARTITIONS(Y)
    & for x being object st x in PARTITIONS(Y) holds P[x,f.x]
     from CLASSES1:sch 1(A1);
  end;
  uniqueness
  proof
    let f1,f2 be Function such that
A2: dom f1 = PARTITIONS(Y) and
A3: for x being object st x in PARTITIONS(Y) ex PA st PA = x & f1.x = ERl PA
         and
A4: dom f2 = PARTITIONS(Y) and
A5: for x being object st x in PARTITIONS(Y) ex PA st PA = x & f2.x = ERl PA;
 for z being object st z in PARTITIONS(Y) holds f1.z = f2.z
    proof
      let x be object;
      assume x in PARTITIONS(Y);
      then    (
 ex PA st PA = x & f1.x = ERl PA)& ex PA st PA = x & f2.x = ERl PA by A3,A5;
      hence thesis;
    end;
    hence thesis by A2,A4,FUNCT_1:2;
  end;
end;

theorem Th20:
  for PA,PB being a_partition of Y holds PA '<' PB iff ERl(PA) c= ERl(PB)
proof
  let PA,PB be a_partition of Y;
  set RA = ERl PA, RB = ERl PB;
  hereby
    assume
A1: PA '<' PB;
 for x1,x2 being object holds [x1,x2] in RA implies [x1,x2] in RB
    proof
      let x1,x2 be object;
      assume [x1,x2] in RA;
      then consider A being Subset of Y such that
A2:   A in PA and
A3:   x1 in A & x2 in A by Def6;
   ex y st y in PB & A c= y by A1,A2,SETFAM_1:def 2;
      hence thesis by A3,Def6;
    end;
    hence ERl(PA) c= ERl(PB);
  end;
  assume
A4: ERl(PA) c= ERl(PB);
 for x st x in PA ex y st y in PB & x c= y
  proof
    let x;
    assume
A5: x in PA;
then A6: x<>{} by EQREL_1:def 4;
    set x0 = the Element of x;
    set y={z where z is Element of Y:[x0,z] in ERl(PB)};
A7: x c= y
    proof
      let x1 be object;
      assume
A8:  x1 in x;
then   [x0,x1] in RA by A5,Def6;
      hence thesis by A4,A5,A8;
    end;
    set x1 = the Element of x;
 [x0,x1] in RA by A5,A6,Def6;
    then consider B being Subset of Y such that
A9: B in PB and
A10: x0 in B and x1 in B by A4,Def6;
A11: y c= B
    proof
      let x2 be object;
      assume x2 in y;
then   ex z being Element of Y st z=x2 & [x0,z] in ERl(PB);
      then consider B2 being Subset of Y such that
A12:  B2 in PB and
A13:  x0 in B2 and
A14:  x2 in B2 by Def6;
  B2 meets B by A10,A13,XBOOLE_0:3;
      hence thesis by A9,A12,A14,EQREL_1:def 4;
    end;
 B c= y
    proof
      let x2 be object;
      assume
A15:  x2 in B;
then   [x0,x2] in RB by A9,A10,Def6;
      hence thesis by A15;
    end;
then  y=B by A11,XBOOLE_0:def 10;
    hence thesis by A7,A9;
  end;
  hence thesis by SETFAM_1:def 2;
end;

theorem Th21:
  for PA,PB being a_partition of Y,p0,x,y being set,
  f being FinSequence of Y st p0 c= Y &
  x in p0 & f.1=x & f.len f=y & 1 <= len f & (for i st 1<=i & i<len f
  ex p2,p3,u being set st p2 in PA & p3 in PB &
  f.i in p2 & u in p2 & u in p3 & f.(i+1) in p3) &
  p0 is_a_dependent_set_of PA & p0 is_a_dependent_set_of PB holds y in p0
proof
  let PA,PB be a_partition of Y, p0,x,y be set, f be FinSequence of Y;
  assume that
A1: p0 c= Y and
A2: x in p0 & f.1=x and
A3: f.len f=y & 1 <= len f and
A4: for i st 1<=i & i<len f ex p2,p3,u being set st p2 in PA & p3 in PB
  & f.i in p2 & u in p2 & u in p3 & f.(i+1) in p3 and
A5: p0 is_a_dependent_set_of PA and
A6: p0 is_a_dependent_set_of PB;
  consider A1 being set such that
A7: A1 c= PA and A1<>{} and
A8: p0 = union A1 by A5;
  consider B1 being set such that
A9: B1 c= PB and B1<>{} and
A10: p0 = union B1 by A6;
A11: union PA = Y by EQREL_1:def 4;
A12: for A being set st A in PA holds A<>{} & for B being set st B in PA
  holds A=B or A misses B by EQREL_1:def 4;
A13: for A being set st A in PB holds A<>{} & for B being set st B in PB
  holds A=B or A misses B by EQREL_1:def 4;
 for k st 1 <= k & k <= len f holds f.k in p0
  proof
    defpred P[Nat] means 1 <= $1 & $1 <= len f implies f.$1 in p0;
A14: P[0];
A15: for k st P[k] holds P[k+1]
    proof
      let k;
      assume
A16:  P[k];
      assume that
A17:  1<=k+1 and
A18:  k+1<=len f;
A19:  k < len f by A18,NAT_1:13;
A20:  1 <= k or 1 = k + 1 by A17,NAT_1:8;
  now per cases by A20;
        suppose
A21:      1 <= k;
          then consider p2,p3,u being set such that
A22:      p2 in PA and
A23:      p3 in PB and
A24:      f.k in p2 and
A25:      u in p2 and
A26:      u in p3 and
A27:      f.(k+1) in p3 by A4,A19;
          consider A being set such that
A28:      f.k in A and
A29:      A in PA by A1,A11,A16,A18,A21,NAT_1:13,TARSKI:def 4;
A30:      p2=A or p2 misses A by A22,A29,EQREL_1:def 4;
          consider a being set such that
A31:      f.k in a and
A32:      a in A1 by A8,A16,A18,A21,NAT_1:13,TARSKI:def 4;
      a=p2 or a misses p2 by A7,A12,A22,A32;
then A33:      A c= p0 by A8,A24,A28,A30,A31,A32,XBOOLE_0:3,ZFMISC_1:74;
          consider B being set such that
A34:      u in B and
A35:      B in PB by A23,A26;
A36:      p3=B or p3 misses B by A23,A35,EQREL_1:def 4;
          consider b being set such that
A37:      u in b and
A38:      b in B1 by A10,A24,A25,A28,A30,A33,TARSKI:def 4,XBOOLE_0:3;
      p3=b or p3 misses b by A9,A13,A23,A38;
then       B c= p0 by A10,A26,A34,A36,A37,A38,XBOOLE_0:3,ZFMISC_1:74;
          hence thesis by A26,A27,A34,A36,XBOOLE_0:3;
        end;
        suppose
      0 = k;
          hence thesis by A2;
        end;
      end;
      hence thesis;
    end;
    thus P[k] from NAT_1:sch 2(A14,A15);
  end;
  hence thesis by A3;
end;

theorem Th22:
  for R1,R2 being Equivalence_Relation of Y,f being FinSequence of Y,
  x,y being set st x in Y &
  f.1=x & f.len f=y & 1 <= len f &
  (for i st 1<=i & i<len f
  ex u being set st u in Y & [f.i,u] in (R1 \/ R2) & [u,f.(i+1)] in (R1 \/
  R2)) holds [x,y] in (R1 "\/" R2)
proof
  let R1,R2 be Equivalence_Relation of Y,f be FinSequence of Y, x,y be set;
  assume that
A1: x in Y and
A2: f.1=x and
A3: f.len f=y & 1 <= len f and
A4: for i st 1<=i & i<len f ex u being set st u in Y & [f.i,u] in R1 \/
  R2 & [u,f.(i+1)] in R1 \/ R2;
 for i st 1 <= i & i <= len f holds [f.1,f.i] in (R1 "\/" R2)
  proof
    defpred P[Nat] means
    1<=$1 & $1<=len f implies [f.1,f.$1] in R1 "\/" R2;
A5: P[0];
A6: for i st P[i] holds P[i+1]
    proof
      let i;
      assume
A7:   P[i];
      assume that
A8:   1 <= i + 1 and
A9:  i + 1 <= len f;
A10:  i < len f by A9,NAT_1:13;
A11:  1 <= i or 1 = i + 1 by A8,NAT_1:8;
A12:  R1 \/ R2 c= R1 "\/" R2 by EQREL_1:def 2;
  now per cases by A11;
        suppose
A13:      1 <= i;
          then consider u being set such that
A14:      u in Y and
A15:      [f.i,u] in R1 \/ R2 & [u,f.(i+1)] in R1 \/ R2 by A4,A10;
          reconsider u as Element of Y by A14;
A16:      dom f = Seg len f by FINSEQ_1:def 3;
then       i in dom f by A10,A13,FINSEQ_1:1;
          then reconsider f1=f.i as Element of Y by FINSEQ_2:11;
      (i+1) in dom f by A8,A9,A16,FINSEQ_1:1;
          then reconsider f2=f.(i+1) as Element of Y by FINSEQ_2:11;
          reconsider p = <*f1,u,f2*> as FinSequence of Y;
A17:      len p = 3 by FINSEQ_1:45;
A18:      p.1 = f.i & p.3 = f.(i+1) by FINSEQ_1:45;
      for j st 1 <= j & j < len p holds [p.j,p.(j+1)] in (R1 \/ R2)
          proof
            let j;
            assume that
A19:        1 <= j and
A20:        j < len p;
        j < 2+1 by A20,FINSEQ_1:45;
then         j <= 2 by NAT_1:13;
then         j = 0 or ... or j = 2 by NAT_1:60;
            hence thesis by A15,A18,A19,FINSEQ_1:45;
          end;
then       [f.i,f.(i+1)] in R1 "\/" R2 by A17,A18,EQREL_1:28;
          hence thesis by A7,A9,A13,EQREL_1:7,NAT_1:13;
        end;
        suppose
A21:      0 = i;
          [f.1,f.1] in R1 by A1,A2,EQREL_1:5;
then      [f.1,f.1] in R1 \/ R2 by XBOOLE_0:def 3;
          hence thesis by A12,A21;
        end;
      end;
      hence thesis;
    end;
    thus P[i] from NAT_1:sch 2(A5,A6);
  end;
  hence thesis by A2,A3;
end;

theorem Th23:
  for PA,PB being a_partition of Y holds ERl(PA '\/' PB) = ERl(PA) "\/" ERl(PB)
proof
  let PA,PB be a_partition of Y;
A1: PA is_finer_than (PA '\/' PB) by Th16;
A2: PB is_finer_than (PA '\/' PB) by Th16;
A3: union PA = Y by EQREL_1:def 4;
A4: union PB = Y by EQREL_1:def 4;
A5: ERl(PA '\/' PB) c= (ERl(PA) "\/" ERl(PB))
  proof
    let x,y be object;
    assume [x,y] in ERl(PA '\/' PB);
    then consider p0 being Subset of Y such that
A6: p0 in (PA '\/' PB) and
A7: x in p0 and
A8: y in p0 by Def6;
A9: p0 is_min_depend PA,PB by A6,Def5;
then A10: p0 is_a_dependent_set_of PA;
A11: p0 is_a_dependent_set_of PB by A9;
    consider A1 being set such that
A12: A1 c= PA and A1<>{} and
A13: p0 = union A1 by A10;
    consider a being set such that
A14: x in a and
A15: a in A1 by A7,A13,TARSKI:def 4;
    reconsider Ca={ p where p is Element of PA: ex f being FinSequence of Y st
    1<=len f & f.1=x & f.len f in p & for i st 1<=i & i<len f holds
    (ex p1,p2,x0 being set st p1 in PA & p2 in PB
    & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2) } as set;
    reconsider pb=union Ca as set;
    reconsider Cb={ p where p is Element of PB:
    ex q being set st q in Ca & p /\ q <> {} } as set;
    reconsider x9 = x as Element of Y by A7;
    reconsider fx=<*x9*> as FinSequence of Y;
A16: fx.1=x by FINSEQ_1:def 8;
then A17: fx.len fx in a by A14,FINSEQ_1:40;
     1
<=len fx & for i st 1<=i & i<len fx holds ex p1,p2,x0 being set st p1 in PA
    & p2 in PB & fx.i in p1 & x0 in (p1 /\ p2) & fx.(i+1) in p2 by FINSEQ_1:40;
then A18: a in Ca by A12,A15,A16,A17;
    then consider y5 being set such that
A19: x in y5 and
A20: y5 in Ca by A14;
    consider z5 being set such that
A21: x9 in z5 and
A22: z5 in PB by A4,TARSKI:def 4;
 y5 /\ z5 <> {} by A19,A21,XBOOLE_0:def 4;
then A23: z5 in Cb by A20,A22;
 Ca c= PA
    proof
      let z be object;
      assume z in Ca;
then   ex p being Element of PA st z=p & ex f being FinSequence of Y st
      1<=len f & f.1=x & f.len f in p & for i st 1<=i & i<len f holds
      ex p1,p2,x0 being set st p1 in PA & p2 in PB
      & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2;
      hence thesis;
    end;
then A24: pb is_a_dependent_set_of PA by A18;
A25: pb c= union Cb
    proof
      let x1 be object;
      assume x1 in pb;
      then consider y being set such that
A26:  x1 in y and
A27:  y in Ca by TARSKI:def 4;
  ex p being Element of PA st y=p & ex f being FinSequence
of Y st 1<=len f & f.1=x & f.len f in p & for i st 1<=i & i<len f holds ex p1,
p2,x0 being set st p1 in PA & p2 in PB & f. i in p1 & x0 in (p1 /\ p2) & f.(i+1
      ) in p2 by A27;
      then consider z being set such that
A28:  x1 in z and
A29:  z in PB by A4,A26,TARSKI:def 4;
  y /\ z <> {} by A26,A28,XBOOLE_0:def 4;
then   z in Cb by A27,A29;
      hence thesis by A28,TARSKI:def 4;
    end;
 union Cb c= pb
    proof
      let x1 be object;
      assume x1 in union Cb;
      then consider y1 being set such that
A30:  x1 in y1 and
A31:  y1 in Cb by TARSKI:def 4;
A32:  ex p being Element of PB st y1=p & ex q being set st q
      in Ca & p /\ q <> {} by A31;
      then consider q being set such that
A33:  q in Ca and
A34:  y1 /\ q <> {};
      consider pd being set such that
A35:  x1 in pd and
A36:  pd in PA by A3,A30,A32,TARSKI:def 4;
A37:  ex pp being Element of PA st q=pp & ex f being
FinSequence of Y st 1<=len f & f.1=x & f.len f in pp & for i st 1<=i & i<len f
holds ex p1,p2,x0 being set st p1 in PA & p2 in PB & f. i in p1 & x0 in (p1 /\
      p2) & f.(i+1) in p2 by A33;
      then consider fd being FinSequence of Y such that
A38:  1<=len fd and
A39:  fd.1=x and
A40:  fd.len fd in q and
A41:  for i st 1<=i & i<len fd holds ex p1,p2,x0 being set st p1 in PA &
      p2 in PB & fd.i in p1 & x0 in (p1 /\ p2) & fd.(i+1) in p2;
      reconsider x1 as Element of Y by A30,A32;
      reconsider f=fd^<*x1*> as FinSequence of Y;
  len f = len fd + len <*x1*> by FINSEQ_1:22;
then A42:  len f = len fd + 1 by FINSEQ_1:40;
  1+1<=len fd + 1 by A38,XREAL_1:6;
then A43:  1<=len f by A42,XXREAL_0:2;
A44:  f.(len fd + 1) in y1 by A30,FINSEQ_1:42;
  y1 meets q by A34,XBOOLE_0:def 7;
      then consider z0 being object such that
A45:  z0 in y1 & z0 in q by XBOOLE_0:3;
A46:  z0 in (y1 /\ q) by A45,XBOOLE_0:def 4;
A47:  dom fd = Seg len fd by FINSEQ_1:def 3;
A48:  for k being Nat st 1 <= k & k <= len fd holds f.k=fd.k
      proof
        let k be Nat;
        assume 1 <= k & k <= len fd;
then     k in dom fd by A47,FINSEQ_1:1;
        hence thesis by FINSEQ_1:def 7;
      end;
      then
A49:  (fd^<*x1*>).(len fd + 1)=x1 & f.1=x by A38,A39,FINSEQ_1:42;
A50:  f.len fd in q by A38,A40,A48;
A51:  for i st 1<=i & i<len fd holds
      ex p1,p2,x0 being set st p1 in PA & p2 in PB
      & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2
      proof
        let i;
        assume
A52:    1<=i & i<len fd;
then A53:    f.i = fd.i by A48;
    1<=(i+1) & (i+1)<=len fd by A52,NAT_1:13;
then     f.(i+1) = fd.(i+1) by A48;
        hence thesis by A41,A52,A53;
      end;
  for i st 1<=i & i<len f holds
      ex p1,p2,x0 being set st p1 in PA & p2 in PB
      & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2
      proof
        let i;
        assume that
A54:    1<=i and
A55:    i<len f;
A56:    i<= len fd by A42,A55,NAT_1:13;
    now per cases by A54,A56,XXREAL_0:1;
          case
        1<=i & i<len fd;
            hence thesis by A51;
          end;
          case
        1<=i & i=len fd;
            hence thesis by A32,A37,A44,A46,A50;
          end;
        end;
        hence thesis;
      end;
then   pd in Ca by A35,A36,A42,A43,A49;
      hence thesis by A35,TARSKI:def 4;
    end;
then A57: pb = union Cb by A25,XBOOLE_0:def 10;
 Cb c= PB
    proof
      let z be object;
      assume z in Cb;
then   ex p being Element of PB st z=p &
      ex q being set st q in Ca & p /\ q <> {};
      hence thesis;
    end;
then A58: pb is_a_dependent_set_of PB by A23,A57;
 now
      assume not pb c= p0;
then   pb \ p0 <> {} by XBOOLE_1:37;
      then consider x1 being object such that
A59:  x1 in (pb \ p0) by XBOOLE_0:def 1;
A60:  not x1 in p0 by A59,XBOOLE_0:def 5;
      consider y1 being set such that
A61:  x1 in y1 and
A62:  y1 in Cb by A57,A59,TARSKI:def 4;
A63:  ex p being Element of PB st y1=p & ex q being set st q
      in Ca & p /\ q <> {} by A62;
      then consider q being set such that
A64:  q in Ca and
A65:  y1 /\ q <> {};
A66:  ex pp being Element of PA st q=pp & ex f being
FinSequence of Y st 1<=len f & f.1=x & f.len f in pp & for i st 1<=i & i<len f
holds ex p1,p2,x0 being set st p1 in PA & p2 in PB & f. i in p1 & x0 in (p1 /\
      p2) & f.(i+1) in p2 by A64;
      then consider fd being FinSequence of Y such that
A67:  1<=len fd and
A68:  fd.1=x and
A69:  fd.len fd in q and
A70: for i st 1<=i & i<len fd holds ex p1,p2,x0 being set st p1 in PA &
      p2 in PB & fd.i in p1 & x0 in (p1 /\ p2) & fd.(i+1) in p2;
      reconsider x1 as Element of Y by A61,A63;
      reconsider f=fd^<*x1*> as FinSequence of Y;
 len f = len fd + len <*x1*> by FINSEQ_1:22;
then A71: len f = len fd + 1 by FINSEQ_1:40;
 1+1<=len fd + 1 by A67,XREAL_1:6;
then A72: 1<=len f by A71,XXREAL_0:2;
A73: f.(len fd + 1) in y1 by A61,FINSEQ_1:42;
 y1 meets q by A65,XBOOLE_0:def 7;
      then consider z0 being object such that
A74: z0 in y1 & z0 in q by XBOOLE_0:3;
A75: z0 in (y1 /\ q) by A74,XBOOLE_0:def 4;
A76: dom fd = Seg len fd by FINSEQ_1:def 3;
A77: for k being Nat st 1 <= k & k <= len fd holds f.k=fd.k
      proof
        let k be Nat;
        assume 1 <= k & k <= len fd;
then    k in dom fd by A76,FINSEQ_1:1;
        hence thesis by FINSEQ_1:def 7;
      end;
      then
A78: (fd^<*x1*>).(len fd + 1)=x1 & f.1=x by A67,A68,FINSEQ_1:42;
A79: f.len fd in q by A67,A69,A77;
A80: for i st 1<=i & i<len fd holds
      ex p1,p2,x0 being set st p1 in PA & p2 in PB
      & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2
      proof
        let i;
        assume
A81:   1<=i & i<len fd;
then A82:   f.i = fd.i by A77;
   1<=(i+1) & (i+1)<=len fd by A81,NAT_1:13;
then    f.(i+1) = fd.(i+1) by A77;
        hence thesis by A70,A81,A82;
      end;
A83: for i st 1<=i & i<len f holds
      ex p1,p2,x0 being set st p1 in PA & p2 in PB
      & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2
      proof
        let i;
        assume that
A84:   1<=i and
A85:   i<len f;
A86:   i<= len fd by A71,A85,NAT_1:13;
   now per cases by A84,A86,XXREAL_0:1;
          case
       1<=i & i<len fd;
            hence thesis by A80;
          end;
          case
       1<=i & i=len fd;
            hence thesis by A63,A66,A73,A75,A79;
          end;
        end;
        hence thesis;
      end;
 for i st 1<=i & i<len f holds
      ex p1,p2,x0 being set st p1 in PA & p2 in PB
      & f.i in p1 & x0 in p1 & x0 in p2 & f.(i+1) in p2
      proof
        let i;
        assume 1<=i & i<len f;
        then consider p1,p2,x0 being set such that
A87:   p1 in PA & p2 in PB & f.i in p1 and
A88:   x0 in (p1 /\ p2) and
A89:   f.(i+1) in p2 by A83;
   x0 in p1 & x0 in p2 by A88,XBOOLE_0:def 4;
        hence thesis by A87,A89;
      end;
      hence contradiction by A7,A10,A11,A60,A71,A72,A78,Th21;
    end;
then  y in pb by A8,A9,A24,A58;
    then consider y1 being set such that
A90: y in y1 and
A91: y1 in Cb by A25,TARSKI:def 4;
A92: ex p being Element of PB st y1=p & ex q being set st q
    in Ca & p /\ q <> {} by A91;
    then consider q being set such that
A93: q in Ca and
A94: y1 /\ q <> {};
A95: ex pp being Element of PA st q=pp & ex f being
FinSequence of Y st 1<=len f & f.1=x & f.len f in pp & for i st 1<=i & i<len f
holds ex p1,p2,x0 being set st p1 in PA & p2 in PB & f. i in p1 & x0 in (p1 /\
    p2) & f.(i+1) in p2 by A93;
    then consider fd being FinSequence of Y such that
A96: 1<=len fd and
A97: fd.1=x and
A98: fd.len fd in q and
A99: for i st 1<=i & i<len fd holds ex p1,p2,x0 being set st p1 in PA &
    p2 in PB & fd.i in p1 & x0 in (p1 /\ p2) & fd.(i+1) in p2;
    reconsider y9 = y as Element of Y by A8;
    reconsider f=fd^<*y9*> as FinSequence of Y;
 len f = len fd + len <*y9*> by FINSEQ_1:22;
then A100: len f = len fd + 1 by FINSEQ_1:40;
then A101: 1+1<=len f by A96,XREAL_1:6;
A102: f.(len fd + 1) in y1 by A90,FINSEQ_1:42;
 y1 meets q by A94,XBOOLE_0:def 7;
    then consider z0 being object such that
A103: z0 in y1 & z0 in q by XBOOLE_0:3;
A104: z0 in (y1 /\ q) by A103,XBOOLE_0:def 4;
A105: dom fd = Seg len fd by FINSEQ_1:def 3;
A106: for k being Nat st 1 <= k & k <= len fd holds f.k=fd.k
    proof
      let k be Nat;
      assume 1 <= k & k <= len fd;
then  k in dom fd by A105,FINSEQ_1:1;
      hence thesis by FINSEQ_1:def 7;
    end;
then A107: f.len fd in q by A96,A98;
A108: for i st 1<=i & i<len fd holds
    ex p1,p2,x0 being set st p1 in PA & p2 in PB
    & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2
    proof
      let i;
      assume
A109: 1<=i & i<len fd;
then A110: f.i = fd.i by A106;
 1<=(i+1) & (i+1)<=len fd by A109,NAT_1:13;
then  f.(i+1) = fd.(i+1) by A106;
      hence thesis by A99,A109,A110;
    end;
A111: for i st 1<=i & i<len f holds
    ex p1,p2,x0 being set st p1 in PA & p2 in PB
    & f.i in p1 & x0 in (p1 /\ p2) & f.(i+1) in p2
    proof
      let i;
      assume that
A112: 1<=i and
A113: i<len f;
A114: i<= len fd by A100,A113,NAT_1:13;
 now per cases by A112,A114,XXREAL_0:1;
        case
     1<=i & i<len fd;
          hence thesis by A108;
        end;
        case
     1<=i & i=len fd;
          hence thesis by A92,A95,A102,A104,A107;
        end;
      end;
      hence thesis;
    end;
    A115: (fd^<*y9*>).(len fd + 1)=y & 1<=len f by A101,FINSEQ_1:42,XXREAL_0:2;
A116: f.1=x by A96,A97,A106;
 for i st 1<=i & i<len f holds
    ex u being set st u in Y & [f.i,u] in (ERl(PA) \/ ERl(PB))
    & [u,f.(i+1)] in (ERl(PA) \/ ERl(PB))
    proof
      let i;
      assume 1<=i & i<len f;
      then consider p1,p2,u being set such that
A117: p1 in PA and
A118: p2 in PB and
A119: f.i in p1 and
A120: u in (p1 /\ p2) and
A121: f.(i+1) in p2 by A111;
A122: u in p1 by A120,XBOOLE_0:def 4;
A123: u in p2 by A120,XBOOLE_0:def 4;
      reconsider x2=f.i as set;
      reconsider y2=f.(i+1) as set;
A124: [x2,u] in ERl(PA) by A117,A119,A122,Def6;
A125: [u,y2] in ERl(PB) by A118,A121,A123,Def6;
       ERl
(PA) c= ERl(PA) \/ ERl(PB) & ERl(PB) c= ERl(PA) \/ ERl(PB) by XBOOLE_1:7;
      hence thesis by A117,A122,A124,A125;
    end;
then  [x9,y9] in (ERl(PA) "\/" ERl(PB)) by A100,A115,A116,Th22;
    hence thesis;
  end;
 for x1,x2 being object st [x1,x2] in (ERl(PA) \/ ERl(PB)) holds
  [x1,x2] in ERl(PA '\/' PB)
  proof
    let x1,x2 be object;
    assume [x1,x2] in (ERl(PA) \/ ERl(PB));
then  [x1,x2] in ERl(PA) or [x1,x2] in ERl(PB) by XBOOLE_0:def 3;
then A126: (ex A being Subset of Y st A in PA & x1 in A & x2 in A) or
    ex B being Subset of Y st B in PB & x1 in B & x2 in B by Def6;
 now per cases by A126;
      case
   x1 in Y & x2 in Y & ex A being Subset of Y
        st A in PA & x1 in A & x2 in A;
        then consider A being Subset of Y such that
A127:   A in PA and
A128:   x1 in A & x2 in A;
   ex y st y in (PA '\/' PB) & A c= y by A1,A127,SETFAM_1:def 2;
        hence thesis by A128,Def6;
      end;
      case
   x1 in Y & x2 in Y & ex B being Subset of Y
        st B in PB & x1 in B & x2 in B;
        then consider B being Subset of Y such that
A129:   B in PB and
A130:   x1 in B & x2 in B;
   ex y st y in (PA '\/' PB) & B c= y by A2,A129,SETFAM_1:def 2;
        hence thesis by A130,Def6;
      end;
    end;
    hence thesis;
  end;
then  (ERl(PA) \/ ERl(PB)) c= ERl(PA '\/' PB);
then  (ERl(PA) "\/" ERl(PB)) c= ERl(PA '\/' PB) by EQREL_1:def 2;
  hence thesis by A5;
end;

theorem Th24:
  for PA,PB being a_partition of Y holds ERl(PA '/\' PB) = ERl(PA) /\ ERl(PB)
proof
  let PA,PB be a_partition of Y;
A1: PA '>' PA '/\' PB by Th15;
A2: PB '>' PA '/\' PB by Th15;
 for x1,x2 being object holds
  [x1,x2] in ERl(PA '/\' PB) iff [x1,x2] in (ERl(PA) /\ ERl(PB))
  proof
    let x1,x2 be object;
    hereby
      assume [x1,x2] in ERl(PA '/\' PB);
      then consider C being Subset of Y such that
A3:   C in (PA '/\' PB) and
A4:   x1 in C & x2 in C by Def6;
A5:   ex A being set st A in PA & C c= A by A1,A3,SETFAM_1:def 2;
A6:   ex B being set st B in PB & C c= B by A2,A3,SETFAM_1:def 2;
A7:   [x1,x2] in ERl(PA) by A4,A5,Def6;
  [x1,x2] in ERl(PB) by A4,A6,Def6;
      hence [x1,x2] in (ERl(PA) /\ ERl(PB)) by A7,XBOOLE_0:def 4;
    end;
    assume
A8: [x1,x2] in (ERl(PA) /\ ERl(PB));
then A9: [x1,x2] in ERl(PA) by XBOOLE_0:def 4;
A10: [x1,x2] in ERl(PB) by A8,XBOOLE_0:def 4;
    consider A being Subset of Y such that
A11: A in PA and
A12: x1 in A and
A13: x2 in A by A9,Def6;
    consider B being Subset of Y such that
A14: B in PB and
A15: x1 in B and
A16: x2 in B by A10,Def6;
A17: A /\ B <> {} by A12,A15,XBOOLE_0:def 4;
    consider C being Subset of Y such that
A18: C = A /\ B;
A19: C in INTERSECTION(PA,PB) by A11,A14,A18,SETFAM_1:def 5;
 not C in {{}} by A17,A18,TARSKI:def 1;
then A20: C in INTERSECTION(PA,PB) \ {{}} by A19,XBOOLE_0:def 5;
     x1 in C & x2 in C by A12,A13,A15,A16,A18,XBOOLE_0:def 4;
    hence thesis by A20,Def6;
  end;
  hence thesis;
end;

theorem Th25:
  for PA,PB being a_partition of Y st ERl(PA) = ERl(PB) holds PA = PB
proof
  let PA,PB be a_partition of Y;
  assume ERl(PA)=ERl(PB);
then  PA '<' PB & PB '<' PA by Th20;
  hence thesis by Th4;
end;

theorem
  for PA,PB,PC being a_partition of Y holds
  (PA '\/' PB) '\/' PC = PA '\/' (PB '\/' PC)
proof
  let PA,PB,PC be a_partition of Y;
 ERl((PA '\/' PB) '\/' PC) = ERl(PA '\/' PB) "\/" ERl(PC) by Th23
    .= (ERl(PA) "\/" ERl(PB)) "\/" ERl(PC) by Th23
    .= ERl(PA) "\/" (ERl(PB) "\/" ERl(PC)) by EQREL_1:13
    .= ERl(PA) "\/" ERl(PB '\/' PC) by Th23
    .= ERl(PA '\/' (PB '\/' PC)) by Th23;
  hence thesis by Th25;
end;

theorem
  for PA,PB being a_partition of Y holds PA '/\' (PA '\/' PB) = PA
proof
  let PA,PB be a_partition of Y;
  ERl (PA '/\' (PA '\/' PB)) = ERl(PA) /\ ERl(PA '\/' PB) &
  ERl(PA) /\ ERl(PA '\/' PB) = ERl(PA) /\ (ERl(PA) "\/" ERl(PB))
    by Th23,Th24;
  hence thesis by Th25,EQREL_1:16;
end;

theorem
  for PA,PB being a_partition of Y holds PA '\/' (PA '/\' PB) = PA
proof
  let PA,PB be a_partition of Y;
   ERl
(PA '\/' (PA '/\' PB)) = ERl(PA) "\/" ERl(PA '/\' PB) & ERl(PA) "\/" ERl(
  PA '/\' PB) = ERl(PA) "\/" (ERl(PA) /\ ERl(PB)) by Th23,Th24;
  hence thesis by Th25,EQREL_1:17;
end;

theorem Th29:
  for PA,PB,PC being a_partition of Y st
  PA '<' PC & PB '<' PC holds PA '\/' PB '<' PC
proof
  let PA,PB,PC be a_partition of Y;
  assume PA '<' PC & PB '<' PC; then
A1: ERl(PA) c= ERl(PC) & ERl(PB) c= ERl(PC) by Th20;
A2: ERl(PA '\/' PB) = ERl(PA) "\/" ERl(PB) by Th23;
  ERl(PA) \/ ERl(PB) c= ERl(PC) by A1,XBOOLE_1:8;
  then ERl(PA) "\/" ERl(PB) c= ERl(PC) by EQREL_1:def 2;
  hence thesis by A2,Th20;
end;

theorem
  for PA,PB,PC being a_partition of Y st
  PA '>' PC & PB '>' PC holds PA '/\' PB '>' PC
proof
  let PA,PB,PC be a_partition of Y;
  assume PA '>' PC & PB '>' PC;
then A1: ERl(PC) c= ERl(PA) & ERl(PC) c= ERl(PB) by Th20;
 ERl(PA '/\' PB) = ERl(PA) /\ ERl(PB) by Th24;
then  ERl(PC) c= ERl(PA '/\' PB) by A1,XBOOLE_1:19;
  hence thesis by Th20;
end;

notation
  let Y;
  synonym %I(Y) for SmallestPartition Y;
end;

definition let Y; ::: technical type update
  redefine func %I Y -> a_partition of Y;
  correctness;
end;

definition
  let Y;
  func %O(Y) -> a_partition of Y equals
  {Y};
  correctness
  proof
A1: {Y} is Subset-Family of Y & union {Y} = Y by ZFMISC_1:25,68;
 for A st A in {Y} holds A<>{} & for B st B in {Y} holds A = B or A misses B
    proof
      let A;
      assume
A2:   A in {Y}; then
A3:   A=Y by TARSKI:def 1;
      thus A<>{} by A2,TARSKI:def 1;
      let B;
      assume B in {Y};
      hence thesis by A3,TARSKI:def 1;
    end;
    hence thesis by A1,EQREL_1:def 4;
  end;
end;

theorem
  %I(Y)={B:ex x being set st B={x} & x in Y}
proof
  set B0={B:ex x being set st B={x} & x in Y};
A1: %I(Y) c= B0
  proof
    let a be object;
    assume a in %I(Y); then
    a in the set of all {x} where x is Element of Y by EQREL_1:37;
    then consider x be Element of Y such that
A2: a={x};
    reconsider y=x as Element of Y;
    reconsider B={y} as Subset of Y by ZFMISC_1:31;
    a=B by A2;
    hence thesis;
  end;
  B0 c= %I(Y)
  proof
    let x1 be object;
    assume x1 in B0;
    then ex B st x1=B & ex x being set st B={x} & x in Y;
    then x1 in the set of all {z} where z is Element of Y;
    hence thesis by EQREL_1:37;
  end;
  hence thesis by A1,XBOOLE_0:def 10;
end;

theorem Th32:
  for PA being a_partition of Y holds %O(Y) '>' PA & PA '>' %I(Y)
proof
  let PA be a_partition of Y;
A1: for a being set st a in PA ex b being set st b in %O(Y) & a c= b
  proof
    let a be set;
    assume
A2: a in PA; then
A3: a c= Y;
A4: a<>{} by A2,EQREL_1:def 4;
    set x = the Element of a;
A5: x in Y by A2,A4,TARSKI:def 3;
    union %O(Y) = Y by EQREL_1:def 4;
    then consider b being set such that
    x in b and
A6: b in %O(Y) by A5,TARSKI:def 4;
    a c= b by A3,A6,TARSKI:def 1;
    hence thesis by A6;
  end;
  for a being set st a in %I(Y) ex b being set st b in PA & a c= b
  proof
    let a be set;
    assume
A7: a in %I(Y);
then  a in the set of all {x} where x is Element of Y by EQREL_1:37;
    then consider x be Element of Y such that
A8: a={x};
A9: a<>{} by A7,EQREL_1:def 4;
    set u = the Element of a;
A10: u=x by A8,TARSKI:def 1;
A11: u in Y by A7,A9,TARSKI:def 3;
    union PA = Y by EQREL_1:def 4;
    then consider b being set such that
A12: u in b and
A13: b in PA by A11,TARSKI:def 4;
    a c= b by A8,A10,A12,TARSKI:def 1;
    hence thesis by A13;
  end;
  hence thesis by A1,SETFAM_1:def 2;
end;

theorem Th33:
  ERl(%O(Y)) = nabla Y
proof
  nabla Y c= ERl(%O(Y))
  proof
    let x1,x2 be object;
    assume
A1: [x1,x2] in nabla Y;
A2: Y in %O(Y) by TARSKI:def 1;
    x1 in Y & x2 in Y by A1,ZFMISC_1:87;
    hence thesis by A2,Def6;
  end;
  hence thesis;
end;

theorem Th34:
  ERl(%I(Y)) = id Y
proof
A1: union %I(Y)=Y by EQREL_1:def 4;
A2: ERl(%I(Y)) c= id Y
  proof
    let x1,x2 be object;
    assume [x1,x2] in ERl(%I(Y));
    then consider a being Subset of Y such that
A3: a in %I(Y) and
A4: x1 in a & x2 in a by Def6;
     %I(Y) = the set of all {x} where x is Element of Y by EQREL_1:37;
    then consider x be Element of Y such that
A5: a={x} by A3;
    x1=x & x2=x by A4,A5,TARSKI:def 1;
    hence thesis by RELAT_1:def 10;
  end;
  id Y c= ERl(%I(Y))
  proof
    let x1,x2 be object;
    assume
A6: [x1,x2] in id Y; then
A7: x1 in Y by RELAT_1:def 10;
A8: x1=x2 by A6,RELAT_1:def 10;
    ex y being set st x1 in y & y in %I(Y) by A1,A7,TARSKI:def 4;
    hence thesis by A8,Def6;
  end;
  hence thesis by A2;
end;

theorem
  %I(Y) '<' %O(Y)
proof
  ERl(%O(Y)) = nabla Y by Th33
    .= [:Y,Y:];
  then ERl(%I(Y)) c= ERl(%O(Y));
  hence thesis by Th20;
end;

theorem
  for PA being a_partition of Y holds
  %O(Y) '\/' PA = %O(Y) & %O(Y) '/\' PA = PA
proof
  let PA be a_partition of Y;
A1: ERl(%O(Y) '\/' PA) = ERl(%O(Y)) "\/" ERl(PA) by Th23;
 ERl(%O(Y)) = nabla Y by Th33;
then  ERl(%O(Y)) \/ ERl(PA) = ERl(%O(Y)) by EQREL_1:1;
then  ERl(%O(Y)) c= ERl(%O(Y)) "\/" ERl(PA) by EQREL_1:def 2;
then A2: %O(Y) '<' %O(Y) '\/' PA by A1,Th20;
 %O(Y) '>' PA '\/' %O(Y) by Th32;
  hence %O(Y) '\/' PA = %O(Y) by A2,Th4;
   ERl(%O(Y) '/\' PA) = ERl(%O(Y)) /\ ERl(PA) & ERl(%O(Y)) = nabla Y by Th24
,Th33;
  hence %O(Y) '/\' PA = PA by Th25,XBOOLE_1:28;
end;

theorem
  for PA being a_partition of Y holds
    %I(Y) '\/' PA = PA & %I(Y) '/\' PA = %I(Y)
proof
  let PA be a_partition of Y;
A1: ERl(%I(Y)) = id Y by Th34;
  A2: ERl
(%I(Y) '\/' PA) = ERl(%I(Y)) "\/" ERl(PA) & ERl(%I(Y)) \/ ERl(PA) c= ERl(
  %I(Y)) "\/" ERl(PA) by Th23,EQREL_1:def 2;
A3: ERl(%I(Y)) \/ ERl(PA) = id Y \/ ERl(PA) by Th34;
 %I(Y) '<' PA by Th32;
then A4: ERl(%I(Y)) c= ERl(PA) by Th20;
 for z being object st z in id Y \/ ERl(PA) holds z in ERl PA
  proof
    let z be object;
    assume
A5: z in id Y \/ ERl(PA);
    now per cases by A5,XBOOLE_0:def 3;
      case z in id Y;
        hence thesis by A1,A4;
      end;
      case z in ERl(PA);
        hence thesis;
      end;
    end;
    hence thesis;
  end; then
A6: id Y \/ ERl(PA) c= ERl(PA);
   ERl(PA) c= id Y \/ ERl(PA) by XBOOLE_1:7;
   then id Y \/ ERl(PA) = ERl(PA) by A6,XBOOLE_0:def 10; then
A7: PA '<' %I(Y) '\/' PA by A2,A3,Th20;
   %I(Y) '<' PA by Th32;
   then %I(Y) '\/' PA '<' PA by Th29;
   hence %I(Y) '\/' PA = PA by A7,Th4;
   ERl(%I(Y) '/\' PA) = ERl(%I(Y)) /\ ERl(PA) by Th24
    .= id Y /\ ERl(PA) by Th34
    .= id Y by EQREL_1:10
    .= ERl(%I(Y)) by Th34;
  hence %I(Y) '/\' PA = %I(Y) by Th25;
end;

theorem
  for X being set
  for P being a_partition of X holds P = Class ERl P
proof
  let X be set;
  let P be a_partition of X;
    set R = ERl P;
    now
      let A be Subset of X;
A13:  now
        set x = the Element of A;
        assume
A14:    A in P; then
A15:    A <> {} by EQREL_1:def 4;
        then
A16:    x in X by TARSKI:def 3;
        now
          let y be object;
A17:      now
            assume y in Class(R,x);
            then [y,x] in R by EQREL_1:19;
            then consider B being Subset of X such that
A18:        B in P & y in B and
A19:        x in B by Def6;
            A meets B by A15,A19,XBOOLE_0:3;
            hence y in A by A14,A18,EQREL_1:def 4;
          end;
          now
            assume y in A;
            then [y,x] in R by Def6,A14;
            hence y in Class(R,x) by EQREL_1:19;
          end;
          hence y in A iff y in Class(R,x) by A17;
        end;
        then A = Class(R,x) by TARSKI:2;
        hence A in Class R by A16,EQREL_1:def 3;
      end;
      now
        assume A in Class R;
        then consider x being object such that
A20:    x in X and
A21:    A = Class(R,x) by EQREL_1:def 3;
        x in Class(R,x) by A20,EQREL_1:20;
        then [x,x] in R by EQREL_1:19;
        then consider B being Subset of X such that
A22:    B in P and
A23:    x in B and
        x in B by Def6;
        now
          let y be object;
A24:      now
            assume y in A;
            then [y,x] in R by A21,EQREL_1:19;
            then consider C being Subset of X such that
A25:        C in P & y in C and
A26:        x in C by Def6;
            B meets C by A23,A26,XBOOLE_0:3;
            hence y in B by A22,A25,EQREL_1:def 4;
          end;
          now
            assume y in B;
            then [y,x] in R by Def6,A22,A23;
            hence y in A by A21,EQREL_1:19;
          end;
          hence y in A iff y in B by A24;
        end;
        hence A in P by A22,TARSKI:2;
      end;
      hence A in P iff A in Class R by A13;
    end;
    hence thesis by SETFAM_1:31;
end;


Messung
CHZG
8010010093

¤ Dauer der Verarbeitung: 0.29 Sekunden  (vorverarbeitet am  2026-11-24) ¤

*© Formatika GbR, Deutschland