Quelle rearran1.miz
Sprache: Mizar
|
|
:: Introduction to Theory of Rearrangment
:: by Yuji Sakai and Jaros{\l}aw Kotowicz
::
:: Received May 22, 1993
:: Copyright (c) 1993-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, SUBSET_1, REAL_1, XBOOLE_0, MEMBERED, PARTFUN1,
VALUED_1, FUNCT_1, RELAT_1, FINSEQ_1, NAT_1, XXREAL_0, FINSET_1, CARD_1,
ARYTM_1, TARSKI, ARYTM_3, ZFMISC_1, ORDINAL4, RFINSEQ, RFUNCT_3,
CLASSES1, CARD_3, PBOOLE, FINSEQ_2, FUNCT_3, VALUED_0, REARRAN1, FUNCT_7;
notations TARSKI, XBOOLE_0, ZFMISC_1, SUBSET_1, RELAT_1, MEMBERED, FUNCT_1,
RELSET_1, CARD_1, FINSET_1, ORDINAL1, NUMBERS, XXREAL_0, XCMPLX_0,
XREAL_0, NAT_1, PARTFUN1, FINSEQ_1, FINSEQ_2, VALUED_1, RFUNCT_1,
FINSEQOP, RVSUM_1, CLASSES1, RFINSEQ, RFUNCT_3;
constructors REAL_1, NAT_1, FINSEQOP, RVSUM_1, RFINSEQ, RFUNCT_3, CLASSES1,
RELSET_1, BINOP_2;
registrations SUBSET_1, RELSET_1, PARTFUN1, FINSET_1, NUMBERS, XXREAL_0,
XREAL_0, NAT_1, MEMBERED, FINSEQ_1, VALUED_0, CARD_1, FINSEQ_2, FUNCT_1,
INT_1, ORDINAL1;
requirements REAL, NUMERALS, BOOLE, SUBSET, ARITHM;
definitions TARSKI, XBOOLE_0;
equalities XBOOLE_0, FINSEQ_2, RELAT_1;
expansions TARSKI, XBOOLE_0;
theorems FINSEQ_1, NAT_1, FUNCT_1, FINSEQ_2, TARSKI, CARD_2, CARD_1, PARTFUN1,
FINSET_1, FINSEQ_3, RFUNCT_1, RVSUM_1, ZFMISC_1, RFINSEQ, RFUNCT_3,
RELAT_1, XBOOLE_0, XBOOLE_1, XREAL_1, XXREAL_0, FUNCOP_1, ORDINAL1,
VALUED_1, CLASSES1, INT_1, XREAL_0;
schemes NAT_1, FINSEQ_1;
begin
reserve n,m,k for Nat,
x,y for set,
r for Real;
definition
let D be non empty set, E be real-membered set,
F be PartFunc of D,E, r be Real;
redefine func r( #)F -> Element of PFuncs(D,REAL);
coherence
proof
reconsider F as PartFunc of D,E;
r( #)F is PartFunc of D,REAL;
hence thesis by PARTFUN1: 45;
end;
end;
Lm1: for f be Function,x be object st not x in rng f holds f"{x}={}
proof
let f be Function,x be object;
assume
A1: not x in rng f;
rng f misses {x}
proof
set y = the Element of rng f /\ {x};
assume rng f /\ {x} <> {};
then y in rng f & y in {x} by XBOOLE_0:def 4;
hence contradiction by A1,TARSKI:def 1;
end;
hence thesis by RELAT_1: 138;
end;
definition
let IT be FinSequence;
attr IT is terms've_same_card_as_number means
:Def1:
for n be Nat st 1<=n &
n<=len IT for B being finite set st B = IT.n holds card B = n;
attr IT is ascending means
:Def2:
for n be Nat st 1<=n & n<=len IT - 1 holds IT.n c= IT.(n+ 1);
end;
Lm2: for D be non empty finite set, A be FinSequence of bool D, k be Nat
st 1 <= k & k <= len A holds A.k is finite
proof
let D be non empty finite set, A be FinSequence of bool D, k be Nat;
assume 1 <= k & k <= len A;
then k in dom A by FINSEQ_3: 25;
then A.k in bool D by FINSEQ_2: 11;
hence thesis;
end;
Lm3: for D be non empty finite set, A be FinSequence of bool D st len A = card
D & A is terms've_same_card_as_number for B being finite set st B = A.(len A)
holds B = D
proof
let D be non empty finite set, A be FinSequence of bool D;
assume that
A1: len A = card D and
A2: A is terms've_same_card_as_number;
A3: 0+ 1<=len A by A1,NAT_1: 13;
then len A in dom A by FINSEQ_3: 25;
then
A4: A.(len A) in bool D by FINSEQ_2: 11;
let B be finite set such that
A5: B = A.(len A);
assume B <> D;
then
A6: B c< D by A5,A4;
card B = card D by A1,A2,A5,A3;
hence contradiction by A6,CARD_2: 48;
end;
Lm4: for D be non empty finite set holds ex B be FinSequence of bool(D) st len
B = card D & B is ascending & B is terms've_same_card_as_number
proof
let D be non empty finite set;
defpred P[Nat] means for D be non empty finite set st card D = $ 1
holds ex B be FinSequence of bool(D) st len B = card D & B is ascending & B is
terms've_same_card_as_number;
A1: for n st P[n] holds P[n+ 1]
proof
let n;
assume
A2: P[n];
let D be non empty finite set;
assume
A3: card D = n+ 1;
set x = the Element of D;
set Y = D\{x};
{x} c= D by ZFMISC_1: 31;
then
A4: card Y = card D - card {x} by CARD_2: 44
.= n+ 1- 1 by A3,CARD_1: 30
.= n;
now
per cases;
case
A5: n= 0;
set f = <*D*>;
A6: len f = 1 by FINSEQ_1: 39;
A7: rng f = {D} by FINSEQ_1: 39;
rng f c= bool D
proof
let z be object;
assume z in rng f;
then z=D by A7,TARSKI:def 1;
hence thesis by ZFMISC_1:def 1;
end;
then reconsider f as FinSequence of bool D by FINSEQ_1:def 4;
take f;
thus card D = len f by A3,A5,FINSEQ_1: 40;
thus f is ascending
by A6,XXREAL_0: 2;
thus f is terms've_same_card_as_number
proof
let m be Nat;
assume 1<=m & m<=len f;
then
A8: m = 1 by A6,XXREAL_0: 1;
let B be finite set;
assume B = f.m;
hence thesis by A3,A5,A8;
end;
end;
case
n<> 0;
then reconsider Y as non empty finite set by A4;
D in bool D by ZFMISC_1:def 1;
then
A9: {D} c= bool D by ZFMISC_1: 31;
consider f be FinSequence of bool Y such that
A10: len f = card Y and
A11: f is ascending and
A12: f is terms've_same_card_as_number by A2,A4;
set g = f ^ <*D*>;
A13: rng <*D*> = {D} & rng g = rng f \/ rng <*D*> by FINSEQ_1: 31, 39;
bool Y c= bool D by ZFMISC_1: 67;
then rng f c= bool D;
then rng g c= bool D \/ bool D by A9,A13,XBOOLE_1: 13;
then reconsider g as FinSequence of bool D by FINSEQ_1:def 4;
take g;
A14: len <*D*> = 1 by FINSEQ_1: 39;
then
A15: len g = len f + 1 by FINSEQ_1: 22;
thus len g = card D by A3,A4,A10,A14,FINSEQ_1: 22;
thus g is ascending
proof
let m be Nat;
assume that
A16: 1 <= m and
A17: m <= len g - 1;
m in dom f by A15,A16,A17,FINSEQ_3: 25;
then
A18: g.m = f.m by FINSEQ_1:def 7;
per cases;
suppose
A19: m=len f;
then reconsider gm = g.m as finite set by A16,A18,Lm2;
gm = Y & g.(m+ 1) = D by A10,A12,A18,A19,Lm3,FINSEQ_1: 42;
hence thesis;
end;
suppose
m<>len f;
then m<len f by A15,A17,XXREAL_0: 1;
then
A20: m+ 1<=len f by NAT_1: 13;
1<=m+ 1 by A16,NAT_1: 13;
then m+ 1 in dom f by A20,FINSEQ_3: 25;
then
A21: g.(m+ 1) = f.(m+ 1) by FINSEQ_1:def 7;
m<=len f - 1 by A20,XREAL_1: 19;
hence thesis by A11,A16,A18,A21;
end;
end;
thus g is terms've_same_card_as_number
proof
let m be Nat such that
A22: 1<=m and
A23: m<=len g;
let B be finite set such that
A24: B = g.m;
per cases;
suppose
m=len g;
hence thesis by A3,A4,A10,A15,A24,FINSEQ_1: 42;
end;
suppose
m<>len g;
then m<len g by A23,XXREAL_0: 1;
then
A25: m<=len f by A15,NAT_1: 13;
then m in dom f by A22,FINSEQ_3: 25;
then g.m= f.m by FINSEQ_1:def 7;
hence thesis by A12,A22,A24,A25;
end;
end;
end;
end;
hence thesis;
end;
A26: P[ 0 ];
for n holds P[n] from NAT_1:sch 2(A26,A1);
hence thesis;
end;
definition
let X be set;
let IT be FinSequence of X;
attr IT is length_equal_card_of_set means
ex B being finite set st B = union X & len IT = card B;
end;
registration
let D be non empty finite set;
cluster terms've_same_card_as_number ascending length_equal_card_of_set
for FinSequence of bool(D);
existence
proof
consider B be FinSequence of bool(D) such that
A1: len B = card D & B is ascending & B is terms've_same_card_as_number by Lm4;
take B;
union bool D = D by ZFMISC_1: 81;
hence thesis by A1;
end;
end;
definition
let D be non empty finite set;
mode RearrangmentGen of D is terms've_same_card_as_number ascending
length_equal_card_of_set FinSequence of bool(D);
end;
reserve C,D for non empty finite set,
a for FinSequence of bool D;
theorem Th1:
for a be FinSequence of bool D holds a is
length_equal_card_of_set iff len a = card D
proof
let A be FinSequence of bool D;
thus A is length_equal_card_of_set implies len A = card D
by ZFMISC_1: 81;
assume
A1: len A = card D;
take D;
thus thesis by A1,ZFMISC_1: 81;
end;
theorem Th2:
for a be FinSequence holds a is ascending iff for n,m st n<=m & n
in dom a & m in dom a holds a.n c= a.m
proof
let A be FinSequence;
thus A is ascending implies for n,m st n<=m & n in dom A & m in dom A holds
A.n c= A.m
proof
defpred P[Nat] means for n st n<=$ 1 & n in dom A & $ 1 in dom A
holds A.n c= A.$ 1;
assume
A1: A is ascending;
A2: for m st P[m] holds P[m+ 1]
proof
let m;
assume
A3: P[m];
let n;
assume that
A4: n<=m+ 1 and
A5: n in dom A and
A6: m+ 1 in dom A;
now
per cases;
case
n=m+ 1;
hence thesis;
end;
case
n<>m+ 1;
then n<m+ 1 by A4,XXREAL_0: 1;
then
A7: n<=m by NAT_1: 13;
1<=n by A5,FINSEQ_3: 25;
then
A8: 1<=m by A7,XXREAL_0: 2;
A9: m+ 1<=len A by A6,FINSEQ_3: 25;
m<=m+ 1 by NAT_1: 11;
then m<=len A by A9,XXREAL_0: 2;
then m in dom A by A8,FINSEQ_3: 25;
then
A10: A.n c= A.m by A3,A5,A7;
m<=len A - 1 by A9,XREAL_1: 19;
then A.m c= A.(m+ 1) by A1,A8;
hence thesis by A10;
end;
end;
hence thesis;
end;
let n,m;
assume
A11: n<=m & n in dom A & m in dom A;
A12: P[ 0 ];
for m holds P[m] from NAT_1:sch 2(A12,A2);
hence thesis by A11;
end;
assume
A13: for n,m st n<=m & n in dom A & m in dom A holds A.n c= A.m;
let n be Nat;
assume that
A14: 1<=n and
A15: n<=len A - 1;
A16: n+ 1<=len A by A15,XREAL_1: 19;
n<=n+ 1 by NAT_1: 11;
then n<=len A by A16,XXREAL_0: 2;
then
A17: n in dom A by A14,FINSEQ_3: 25;
1<=n+ 1 by NAT_1: 11;
then n+ 1 in dom A by A16,FINSEQ_3: 25;
hence thesis by A13,A17,NAT_1: 11;
end;
theorem Th3:
for a be terms've_same_card_as_number length_equal_card_of_set
FinSequence of bool D holds a.(len a) = D
proof
let A be terms've_same_card_as_number length_equal_card_of_set FinSequence
of bool D;
A1: len A = card D by Th1;
then 1 <= len A by NAT_1: 14;
then A.(len A) is finite set by Lm2;
hence thesis by A1,Lm3;
end;
theorem Th4:
for a be length_equal_card_of_set FinSequence of bool D holds len a <> 0
proof
let A be length_equal_card_of_set FinSequence of bool D;
assume len A = 0;
then card(D)= 0 by Th1;
hence contradiction;
end;
theorem Th5:
for a be ascending terms've_same_card_as_number FinSequence of
bool D holds for n,m holds n in dom a & m in dom a & n<>m implies a.n <> a.m
proof
let A be ascending terms've_same_card_as_number FinSequence of bool D;
let n,m;
assume that
A1: n in dom A and
A2: m in dom A and
A3: n <> m & A.n = A.m;
A4: 1 <= m & m <= len A by A2,FINSEQ_3: 25;
A5: 1 <= n & n <= len A by A1,FINSEQ_3: 25;
reconsider Am = A.m as finite set by A4,Lm2;
card(Am)=m by A4,Def1;
hence contradiction by A3,A5,Def1;
end;
theorem
for a be ascending terms've_same_card_as_number FinSequence of bool D
holds for n holds 1 <= n & n <= len a - 1 implies a.n <> a.(n+ 1)
proof
let A be ascending terms've_same_card_as_number FinSequence of bool D;
let n;
assume that
A1: 1<=n and
A2: n<=len A - 1;
A3: n+ 1<=len A by A2,XREAL_1: 19;
n<=n+ 1 by NAT_1: 11;
then n<=len A by A3,XXREAL_0: 2;
then
A4: n in dom A by A1,FINSEQ_3: 25;
1<=n+ 1 by NAT_1: 11;
then
A5: n+ 1 in dom A by A3,FINSEQ_3: 25;
n <> n+ 1;
hence thesis by A4,A5,Th5;
end;
Lm5: n in dom a implies a.n c= D
proof
assume n in dom a;
then a.n in bool D by FINSEQ_2: 11;
hence thesis;
end;
theorem Th7:
for a be terms've_same_card_as_number FinSequence of bool D st n
in dom a holds a.n <> {}
proof
let A be terms've_same_card_as_number FinSequence of bool D;
assume n in dom A;
then
A1: 1<=n & n<=len A by FINSEQ_3: 25;
assume A.n = {};
hence contradiction by A1,Def1,CARD_1: 27;
:: by Yuji:: :: Received May 22, 1993
theorem:: This code can be :: version 3. 0 or :: License version 3. 0 :: detailed in file COPYING.i nterpretation:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these
for abe terms've_same_card_as_number FinSequence of bool D st 1
<=n & n<=len a - 1 holds a.(n+1) \ a.n <> {}
proof
let A be terms've_same_card_as_number FinSequence of bool D;
assume that
A1: 1<=n and
A2: n<=len A - 1;
A3: n+1<=len A by A2,XREAL_1:19;
n<=n+1 by NAT_1:11;
then
A4: n<=len A by A3,XXREAL_0:2;
then reconsider An1=A.(n1, An = A.n finite set by A3,,NAT_1:11;
1<=n+1 by NAT_1:11;
then
A5: card (An1) = n+1 by A3,Def1;
ssume.(+1)\An }java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
XBOOLE_137;
= n A1,4,;
+ <= A5,,AT_143;
then 1<=n-n by XREAL_1:19;
then 1<=0;
hence contradiction;
end;
theorem Th9:
abe '
xpansions ,XBOOLE_0;
proof
be ' length_equal_card_of_setFinSequence
ofboolD
len A <> 0 by Th4;
=.1as set by Lm2;
card(A1)=1 by A1,Def1;
r x beingobject such that
A2:{}=A.1 by CARD_2:42;
n dom A byA1FINSEQ_3:;
byLm5;
then reconsiderxas of D by A2,ZFMISC_1:31
take x;
thus thesis by A2;
end;
theorem Th10:
for beterms've_same_card_as_numberascending FinSequence of
Dst1=n n<len a 1ex be of st .(n+)\a.
n+1)
proof
letAterms ofbool D
that
1:1njava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
:n<l -;
: n1=lenA A2,19
A.1 A2java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
<=1byNAT_1:;
then
A5 java.lang.StringIndexOutOfBoundsException: Range [13, 6) out of bounds for length 28
reconsider An1 A.n+1 . asfinite set byA1A3,NAT_1:11;
A6: card(An) end;
A7 1<n1byNAT_1:11;
thencard(An1)=n+1 byA3Def1;
(\An) n+1- byA4A6,CARD_2:java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
.=1;
then consider being object such that
A8: {x} = A.(n+1) \ A.n by CARD_2:42;
)\A.nby31;
:x .nby def;
:in(+1)by ,java.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 36
n+1 in java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
.(+1) c= D byLm5;
then reconsider x as Element of D by A10;
take x;
thus {x} = A A domA FINSEQ_3:25;
A4:A(len A in D by FINSEQ_2:11;
2;
hence A.(A5: B .len ;
.= (A assume B >Djava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
:57;
endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
definition
let D beB=card D& is &B terms'
Co_Gen A>RearrangmentGenof
formbe 1=m m <len holds . =D A( Am);
';
java.lang.StringIndexOutOfBoundsException: Range [22, 4) out of bounds for length 38
set c = card D;
D c= D;
then reconsider y = D as Subset of D;
0+1 <= c by NAT_1:13;
then max(0,c -1) = c - 1 by FINSEQ_2:4;
then reconsider c1=c - 1 as Element of NAT by FINSEQ_2:5;
consider f be FinSequence such that
A1: len f = c1 and
A2: for m be Nat st m in dom f holds f.m = F(m) from FINSEQ_1:sch 2;
A3: dom f = Seg c1 by A1,FINSEQ_1:def 3;
rng f c= bool D
proof
let x be object;
assume x in rng f;
then consider m being Nat such that
A4: m in dom f & f.m = x by FINSEQ_2:10;
D \ A.(len A -m) c= D;
then x is Subset of D by A2,A4;
hence thesis;
end;
then reconsider f as FinSequence of bool(D) by FINSEQ_1:def 4;
set C = f^<*y*>;
A5: len C = len f + len <*y*> by FINSEQ_1:22
.= len f + 1 by FINSEQ_1:39;
A6: card D = len A by Th1;
A7: C is terms've_same_card_as_number
proof
let m be Nat;
assume that
A8: 1 <= m and
A9: m <= len C;
max(0,len C -m) = len C -m by A9,FINSEQ_2:4;
then reconsider l = len C - m as Element of NAT by FINSEQ_2:5;
let B be finite set such A2: P[n];
A10: B = C.m
now
per cases;
case
m = len C;
hence thesis by A1,A5,A10,FINSEQ_1:42;
end;
case
m <> len C;
then m < lenCby ,XXREAL_0:1
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 8
A11: m+1= D}by 39
then
A12: 1 <= l by z by A7,TARSKI:def 1;
A13: l <= len end;
then
A14: l in dom A by A12,FINSEQ_3:25;
then reconsider Al = f;
m <= len C -thus is
then
A15:
then C.m = f. ;
A.by A6,1A,A;
hence B=card()-()by A10,14,,:
. A by,,Def1
,A1A;
end;
end;
assumeB .m
end
;
Yas non empty finite by;
that
A16:1<=m
A17: m<=len C - ;
:m A5A17,FINSEQ_3:5;
then f=card Y
A12: isistermsve_same_card_as_number by ,A4
.= \ .len A ),A18java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
cases
suppose
m = len C - 1;
thenC.(+1) =D by A5,FINSEQ_142java.lang.StringIndexOutOfBoundsException: Range [45, 46) out of bounds for length 45
hence A15: len g = len f by 22java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
end;
suppose
m< C -1java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
= java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
m <len 1 by A17,XXREAL_0:;
then
A21: m+1 < len A by A6,A1,A5,XREAL_1:20;
then max(0,len A -(m+1)) = len A -(m+1) by FINSEQ_2:4;
then reconsider l = len A -(m+1) as Element of NAT by FINSEQ_2:5;
A22: 1 <= m+1 by NAT_1:11;
m+1<= len C - 1 by A5,A20,NAT_1:13;
then
A23 +1 dom f byA5,A22,INSEQ_325;
then
A24: C.(m+1) = f.(m+1A18:m=f FINSEQ_1: ;
. per ;
A19: = ;
then
A25:1<=len -(+1) by XREAL_1:19;
l <= len A - 1 by A22,XREAL_1:13;
then A.l c= A.(l+1) by A25,Def2;
hence thesis by A19,A24,XBOOLE_1:34;
end;
end;
then reconsider C as RearrangmentGen of D by A1,A5,A7,Def2,Th1;
take C;
let m be Nat;
assume 1 <= m & m <= len C - 1;
then
A26: m in Seg c1 by A1,A5,FINSEQ_1:1;
then m in dom f by A1,FINSEQ_1:def 3;
hence C.m = f. byFINSEQ_1:def java.lang.StringIndexOutOfBoundsException: Range [37, 38) out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 39
A20:m<=len f by NAT_1:13;
uniqueness
proof
let f1A21:g(1) = .(+1) by FINSEQ_1:def7;
A27: for m be Nat st 1 <= m & m <= len f1 - 1 holds f1.m = D \ A.(len A -m) <=len f- by XREAL_1:;
java.lang.StringIndexOutOfBoundsException: Range [10, 1) out of bounds for length 14
A29: letmbe such that
A30:len A =D Th1;
A31: len f1 = card D by be finitesetsuch java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
A32:dom A byA30,FINSEQ_1:def 3;
now
m<en by A23:1;
ementofNAT java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 59
assume
A33: m in dom f1;
then
A34: 1<=m by A32,FINSEQ_1:1;
java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 17
per cases;
suppose
A36: m = definition
then f1.m = Dlet beFinSequence ofX
hence f1 B being setB=unionX&len =card
end;
java.lang.StringIndexOutOfBoundsException: Range [10, 8) out of bounds for length 15
m <>for FinSequenceof bool()
then m<len A by A35,XXREAL_0:1;
then be of bool()such that
A37: take java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
hencet A1;
hence f1.m = f2.m by A28,A29,A30,A34,A37;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 10
end;
hence thesis by A31,A29,FINSEQ_2:9;
end;
involutiveness
of that
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
let m be java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A39: 1 <= m & m <= len A - 1;
A40: len A =java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
A41: lenthus A islength_equal_card_of_set implies len =card java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
len A -1 < len by XREAL_1:44
then
A42: m < len A by A39,XXREAL_0:2;
then len A -end;
for beFinSequence holds a is ascending iff for n,m st n<=m & n
A43: len A - n = m
m+< len by A39,:;
then
A44:1< n A40,A41,XREAL_1:19java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
A45: n <= len B - 1 by A39,XREAL_1:10;
len A - n A.n= A$1;
then
: A(len A n)c D Lm5;
thus A. let m;
. D \A(len An by A46,:28
.= assme that
.= D \ B.(lenA5: n indomA and
end;
end;
::$CT
theorem Th11:
for F be PartFunc of D,REAL, A be RearrangmentGen of C st F is
total & card C = card D holds len MIM FinS(F,D) = len CHI(A,C)
proof
let java.lang.StringIndexOutOfBoundsException: Range [76, 77) out of bounds for length 76
assumeendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
isand
A2:proof
seta=FinS(,)java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
reconsiderthen card(D)=0 byTh1
A3: dom Fend;
theorem Th5:
reconsider da9 = dom a9, dF9 = dom F9 as finite set;
A4: F|D = F by A3,RELAT_1:68;
D = dom F /\ D by A3
.domF| RELAT_161java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
then F, FinS(F,D) are_fiberwise_equipotent,java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
then:m dom Aand
A5 dom len a &cardda9 =c by81FINSEQ_1: 3
thus CHIA,)=len A RFUNCT_3:ef6
.= card C by Th1
.= len a by A2,A5:1 &nA1F:25;
=lenMIM()by RFINSEQ:def 2
end
definition
let D,C be non emptyend
forabe ascending terms've_same_card_as_number FinSequence of D
func Rland (F,holdsfor n holds 1<=n&n < a - 1implies a <>a(+1)
Sum (MIM(FinS(F,)) (#) CHI(,
C));
correctness;
func assume that
Sum (MIM(FinS(F,D)) (A1 1<n
Co_Gen A));
correctness;
end;
theorem Th12:
for F be PartFunc ofDREAL A be of C st F
A4 nindomAby A1,:5
proof
A5:n+1 in dom AbyA3,FINSEQ_3:25;
A1: len CHI(A,Cn>n+1
assume F is total &card = card D;
then
A2:end;
Lm5:n indomimpliesanc=D
let x be object;
xin C
thenthenan in bool by FINSEQ_2:11;
len (MIM(FinS(Fend;
theorem Th7:
hence thesis by A2,A1,RFUNCT_3:28 forabe 've_same_card_as_numberFinSequence of D st n
end;
theorem Th13java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
for c be <&n<A 25
Gen of stF istotal&card =card cin . (
MIM((D(# CHI(A,C)#c =MIM((F)) & st 1<= &nlen A&c
in A.(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
(MIM(FinS( = holdsa(+ n< }
proof
let c be Element of C, F be PartFunc of D,REAL, A assume that
set fd= FinSFD,mf = MIMfd,h = CHI(A,) fh = (mf(#h)c
1 dom A=Seg len A by FINSEQ_1:ef;
A2:dommf#)h)=Seg len(f#)) by FINSEQ_1:def 3java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
A3: len h = len A by then reconsider An1 = A.(n),An=A. as finite set by ,3Lm2NAT_1:11;
A4: 1<=n+ by NAT_1:11;
A5: domA5 card (An1) = n1byA3,;
A6:minlen mf,len h) =lenmf(#)h) by RFUNCT_3:def 7;
assume F is total & card C = card D;
then
7: len mf= len h byTh11;
A8: len fh =len(mf()) by RFUNCT_3:def ;
9: dom h Seg len h by FINSEQ_1:ef3;
thus c inA1 implies (mf (#)h)c=mf
assume
A10: c in A.1;
A11: for n st n in dom A holds c in A.n
proof
let n;
assume
A12: n in dom A;
then
A13: 1<=n by FINSEQ_3:25;
n<=len A by A12,FINSEQ_3:25;
then 1<=len A by A13,XXREAL_0:2;
1 in dom byFINSEQ_3:25;
then . c= A.nby A12AT;
hence thesis by A10;
end;
A14: dom ((mf#))#c = Seg len mfbyA7A6A8FINSEQ_1:def 3;
now
let m be Nat;
reconsider m1 = m as java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 6
reconsider r1=fd.m as Real;
A1)1by A1,;
A15 ((#)h#;
then
: 1=m :25;
hen. Lm5;
A18: c in A.m x as Element ofDby,ZFMISC_1:31;
take x
then
A19: m<=len mf by FINSEQ_3:25;
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
per cases;
case
m=len mf;
then mf.roof
mf(#).m r1(#)chi.m,) by A2,A8A15A17,:ef 7;
then
A21:((())#c)m=((#chiAmC)).c ,FUNCT_3:def 8;
dom(A2 n<len A- 1;
.= C by RFUNCT_1:61;
hence((mf(#h#c)m=r1*(chi(A.,C)).c by A21,VALUED_1:def 5
.= r1*1 by A18A4:A.n c=A.(n+)byA1A2Def2
.= mf.m by A4,A20,RFINSEQ:def 2;
end;
case
:m>en ;
reconsiderA6:cardAn = njava.lang.StringIndexOutOfBoundsException: Range [19, 17) out of bounds for length 31
m then card(n1 = n1by A3,Def1;
m1=len mf by NAT_1:13;
then
: <len - 1 by XREAL_1:19;
A8:{x =A(n1 CARD_2:;
then mf()h)m=(1r2(#)chiAmC by ,A5A8,A15,,
RFUNCT_3: then
then
A10: x in A.(n+) by ,FMISC_1:31;
dom(r1)()(.m,))=dom chi(Am,C)byVALUED_1:def 5
.= C by RFUNCT_1:61;
then A.(n1) c= D by Lm5;
. r1-*1 byA18,:
.= mf.m1 by A16, take xjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
end;
end;
hence ((mf(#)h)#c).m = mf.m;
end;
hence thesis by A7,A6,A8,FINSEQ_2:9;
end;
let n;
assume that
A25: 1<=n and
A26: n<len A and
A27: c in A.(n+1) \ A.n;
A28: len(mf/^n) = len mf - n by A7,A3,A26,RFINSEQ:def 1;
A29: for k st k in .=A(n) by A4,:12;
let;
assume
A30: k injava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 10
A31: Co_Gen > D means
n in dom A java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then A.k c= A.n by A30,Th2;
hence contradiction by
end;
A32: c in A.(ard D;
A33: n+1<=len A by A26,NAT_1:13;
A34: 1<=n+1 by A25,NAT_1:13;
A35:forkst k dom A &+1<=k holdscin A.
proof
let k;
A36: k in dom A & n+1<=k;
n+1 in dom A by ,A34,FINSEQ_3:;
then A.(n+1) c= A. consider f beFinSequence such that
hence thesis byA32
end;
fdn =FinS,)/n, mfn = MIM(fdn),n0 n -> (0 qua Real);
A37: len mfn = len java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 9
A38: len n0 = n by CARD_1:def 7;
len fdn = len fd - n byA4 m indomf .m =xbyFINSEQ_2:;
then .java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 28
A39endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
len d2java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
A40: dom(n0 = len f + 1 by FINSEQ_1:39;
A41: dom n0 = Seg len n0 by FINSEQ_1:def 3;
now
let m be Nat;
reconsider m1 = m as Element of NAT by ORDINAL1:def 12;
reconsider r1=fd.m as Real;
assume
A42: m in dom (n0^mfn);
then
A43: 1<=m by FINSEQ_3:25;
m A6: cardD lenA Th1;
then
A44: m<=len mf by FINSEQ_3:25;
A45: h.m = chi(A.m,C) by A9,A7,A40,A42,RFUNCT_3:def 6;
now
per cases;
case
A46: m<=n;
reconsider r2=fd.(m+1) as Real;
m<n+1 by A46,NAT_1:13;
then m<len A by A33,XXREAL_0:2;
then m+1<=len A by NAT_1:13;
then m<=len mf - 1 by A7,A3,XREAL_1:19;
then mf.m1 = r1-r2 by A43,RFINSEQ:def 2;
then (mf(#)h).m = (r1-r2)(#)chi(A.m,C) by A2,A7,A6,A40,A42,A45,
RFUNCT_3:def 7;
then
A47: ((mf(#)h)#c).m =((r1-r2)(#)chi(A.m,C)).c by A5,A7,A6,A8,A40,A42,
RFUNCT_3:def 8;
not c in A.m by A1,A7,A3,A29,A40,A42,A46;
then
A48: chi(A.m,C).c = 0 by RFUNCT_1:64;
A49: m in Seg n by A43,A46,FINSEQ_1:1;
A50: n0.m = 0;
dom((r1-r2)(#)chi(A.m,C)) = dom chi(A.m,C) by VALUED_1:def 5
.= C by RFUNCT_1:61;
hence ((mf(#)h)#c).m = (r1-r2)*(chi(A.m,C)).c by A47,VALUED_1:def 5
.= (n0^mfn).m by A38,A41,A48,A49,A50,FINSEQ_1:def 7;
end;
case
A51: n<m;
then max(0,m-n) = m-n by FINSEQ_2:4;
then reconsider mn = m-n as Element of NAT by FINSEQ_2:5;
A52: n+1<=m by A51,NAT_1:13;
then c in A.m by A1,A7,A3,A35,A40,A42;
then
A53: chi(A.m,C).c = 1 by RFUNCT_1:63;
A54: 1<=mn by A52,XREAL_1:19;
now
per cases;
case
A55: m = len mf;
then mf.m = r1 by A4,RFINSEQ:def 2;
then (mf(#)h).m = r1(#)chi(A.m,C) by A2,A7,A6,A40,A42,A45,
RFUNCT_3:def 7;
then
A56: ((mf(#)h)#c).m =(r1(#)chi(A.m,C)).c by A5,A7,A6,A8,A40,A42,
RFUNCT_3:def 8;
A57: mn in dom(mf/^n) by A28,A54,A55,FINSEQ_3:25;
A58: (n0^mfn).m = mfn.(m-n) by A38,A39,A44,A51,FINSEQ_1:24
.=(mf/^n).mn by RFINSEQ:15
.= mf.(mn+n) by A7,A3,A26,A57,RFINSEQ:def 1
.= r1 by A4,A55,RFINSEQ:def 2;
dom(r1(#)chi(A.m,C)) = dom chi(A.m,C) by VALUED_1:def 5
.= C by RFUNCT_1:61;
hence ((mf(#)h)#c).m = r1*(chi(A.m,C)).c by A56,VALUED_1:def 5
.= (n0^mfn).m by A53,A58;
end;
case
A59: m<>len mf;
reconsider r2=fd.(m+1) as Real;
m<len mf by A44,A59,XXREAL_0:1;
then m+1<=len mf by NAT_1:13;
then
A60: m<=len mf - 1 by XREAL_1:19;
then mf.m1 = r1-r2 by A43,RFINSEQ:def 2;
then (mf(#)h).m = (r1-r2)(#)chi(A.m,C) by A2,A7,A6,A40,A42,A45,
RFUNCT_3:def 7;
then
A61: ((mf(#)h)#c).m =((r1-r2)(#)chi(A.m,C)).c by A5,A7,A6,A8,A40,A42,
RFUNCT_3:def 8;
mn<=len(mf/^n) by A28,A44,XREAL_1:9;
then
A62: mn in dom(mf/^n) A54,FINSEQ_3:25;
A63: n0^mfn).m=mfn.m-n)byA38,,A44,A51,FINSEQ_1:24
.=(mf/^n).mn by RFINSEQ:15
.= mf.(mn+n) by A7,A3,A26,A62,RFINSEQ:def 1
.= r1-r2 by A43
dom((r1-r2)(#)chi(A.m,C)) = dom chi(A.m,C
=C by RFUNCT_161;
hence ((mf(#)h)#c).m = (r1-r2)*(chi(A.m,C)).c by A61,VALUED_1:def 5
.= (n0^mfn).m by A53,A63;
end;
end;
hence ((mf(#)h)#c).m = (n0^mfn).m;
end;
end;
hence ((mf(#)h)#c).m = (n0^mfn).m;
end;
hence thesis by A7,A6,A8,A39,FINSEQ_2:9;
end;
theorem Th14:
for c be Element of C, F be PartFunc of D,REAL, A be
RearrangmentGen of C st F is total & card C = card D holds (c in A.1 implies (
Rland(F,A)).c = FinS max0l C m) = len C -m by A9,FINSEQ_2:4;
holds Rland(F,A).c = FinS(F,D).(n+1)
proof
let c be Element of C, F be PartFunc of D,REAL, B be RearrangmentGen of C;
set fd = FinS(F,D), mf = MIM(fd), h = CHI(B,C);
A1: Rland(F,B).c = Sum((mf()h)#c :3233
:def 2,FUNCT_3:;
assume
A3: F is total & card C = card D;
then
A4: len mf = len h by Th11;
thus c in B.1 implies Rland(F,B).c = FinS(F,D).1
proof
assume c in B.1;
hence Rland(F,B).c = Sum mf by A3,A1,Th13
.= FinS(F,D).1 by A4,A2,Th4,RFINSEQ:16;
end;
let n;
set mfn = MIM(FinS(F,D)/^n);
assume that
A5:1=nand
A6:A10: B = .;
per ;
(mf(# m=len ;
> In0R) +(um mfn)
by A1,end;
Sum by RVSUM_1:81
by ;
end;
theorem Th15:
for F be PartFunc of D,REAL, A be RearrangmentGen of C st F is
total & card C =
proof
let F be PartFunc of D,REAL, B be RearrangmentGen A13: =len by ,A,:3
assume that
A1: F is total and
A2: card C m< C- A11XREAL_1:19java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
set fd = FinS(F,D), p = Rland(F,B), mf = MIM(fd), h = CHI(B,C);
A3: len mf = len h by A1,A2,Th11;
A4: dom F = D by A1,PARTFUN1:def 2;
then reconsider fd9 = fd, F9 = F as finite Function by FINSET_1:10;
reconsider dfd = dom fd9, dF = dom F9 as finite set;
A5: len h = len B & len mf = len fd by RFINSEQ:def 2,RFUNCT_3:def 6;
A6: dom p = C by A1,A2,Th12;
A7: dom fd = Seg len fd by FINSEQ_1:def 3;
A8: dom B = Seg len B by FINSEQ_1:def 3;
F|D = F by A4,ELAT_1:68;
then fd, F are_fiberwise_equipotent by A4,RFUNCT_3:def 13;
then card dfd = card dF by CLASSES1:81;
then len fd <> 0 by A4,A7;
then
A9: 0+1<=len fd by NAT_1:13;
then
A10: 1 in dom fd by FINSEQ_3:25;
thus rng p c= rng fd
proof
let x be object;
assume xin rng pjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
then consider c be .= m by A6,A1;
c in ;
A11: p.c = x by PARTFUN1:3;
defpred P[set] means $1 in dom B & c in B.$1;
A12: ex n be Nat st P[n]
proof
take n = len B;
B.n = C by Th3;
hence thesis by A3,A5,A9,FINSEQ_3:25;
;
consider java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
[ for stP[ =fromNAT_1:sch ()
A14:1= A13FINSEQ_3:25;
then max java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
then hencethesis by A19;
A15: mi<=len m< lenC -java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
now
per cases;
case
mi = 1;
then p.c = fd.1 by A1,A2,A13,Th14;
hence thesis by A10,A11,FUNCT_1:def 3;
end;
case
mi <> 1;
then 1<mi by A14,XXREAL_0:1;
java.lang.StringIndexOutOfBoundsException: Range [32, 14) out of bounds for length 42
thenCRearrangmentGenD A1A5,D,;
< XREAL_1:;
A17: m1<mi by XREAL_1:44;
then m1<=len B by A15,XXREAL_0:2;
then m1 in dom B by A16,FINSEQ_3:25;
then not c in B.m1 by A13,XREAL_1:44;
then
c in B.(m1) m1 by ,def5;
<B A15,A17XXREAL_0:2java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
thenm1+ ,A2,A18,Th14java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
hencethesis A3A5,A7A8,A13,UNCT_1def ;
end;
end;
hence thesis;
end;
let x be object;
defpred PNat means $ in fd & fd1 = x
assume x in rng fd;
then
A19: ex n be Nat st P[n] by FINSEQ_2:10;
consider mi be Nat such that
A20: P[mi] & for n be Nat st P[n] holds mi<=n from NAT_1:sch 5(A19);
A21: 1<=mi by A20,FINSEQ_3:25;
then (0,mi-)mi- by FINSEQ_2:4;
then reconsider m1 = miA36 =;
A22: mi<=len fd by hence f1.m =mbyA30A36Th3;
java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
per cases;
case
A23: mi=1;
set y = the Element of B.1;
A24: B.1 <
B.1 c= C byA45 = B -1A3910
then ofC by A24;
p.y = fd.1 .lenA n) =D yLm5;
ence thesis A6,20,23,FUNCT_1:def ;
end;
case
A25: mi<>1 end;
set y = the Element of B.(m1+1) \ B.m1;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 0
then
A26: 1<=m1 by XREAL_1:19;
m1+1<=len A1: F is total and
then:card C D
then
A27: B.(m1+1) \ BA3 A1PARTFUN1def ;
then
y .m1)by :def5;
B.mi c= C by A3,A5,A7,A8,A20,Lm5;
.= domFD byRELAT_1:61;
1miby 44;
then m1<len fd by A22,XXREAL_0:2then
.=.(+ byA1,,A3AA26,Th14
by A6,A20,FUNCT_1:def 3;
end;
end;
hence thesis;
end;
theorem Th16:
forF be ofDREAL, A be RearrangmentGenof Cst F is
total & card C = card D holds Rland(F,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
proof
let F be PartFunc of D,REAL, B be RearrangmentGen of java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 37
fd(F) =(FB), mf = MIMfd, h = BC;
dom.C RFUNCT_1;
thenhence (())c)m =r1(chi(AmC). by A21,VALUED_1:ef
A1: =r1* by A18,FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
A2: dom A29: for k domA&k= not Ak
assume
A3
hen
A4: len mf = len h java.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 14
A5: dom
A6: rng p = rng fd by A3,Th15;
now
let x be object;
now
cases;
:(#)h#. ((r1-()chi(A.m,C)).cA5,7,6,8,A40,,
A7: not x in rng fd;
then fd"{x}={} by Lm1;
hence card fd{} card("x} byA6,;
end;
case
A8: A46FINSEQ_1:1;
defpred P[(-)#Am,) chiA,C)byjava.lang.StringIndexOutOfBoundsException: Range [63, 62) out of bounds for length 68
. mfn. byA38A41A48A49A50,java.lang.StringIndexOutOfBoundsException: Range [56, 55) out of bounds for length 62
A10: ex n be Nat st P[n] by then max0m-) - FINSEQ_2:;
consider ma be Nat then = -as ofNAT by :;
A11: P[ma] & for n being Nat st P[ cin m ,,,A35A40,A42;
A9,A10 );
A12: ex n be Nat st P[n] by A8,FINSEQ_2:10;
consider mi be Nat such that:chi(.m,). by 63
A13: P[java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
);
reconsider r=x as Real by A13 ((h) #.C A2A7,A40,A,
A14: 1<=mi by
then max(0,mi-1)=mi-1 by FINSEQ_2:4;
byFINSEQ_25;
A15: m1+1=mi;
<=lenfdbyA11,FINSEQ_3:;
A17: Seg ma \ Seg m1 = fd"{x}
thus Seg:java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 15
proof
let y be object;
assume
A18: y in Seg ma \ Seg m1;
then .=C by RFUNCT_1:61;
reconsider o=fd.l as Real;
A19: y in Seghence Rland(F).=Sum mf by A3,A1,Th13
then
A20: 1<=l by FINSEQ_1:1;
A21: l<=ma by A19,FINSEQ_1:1;
then l<=len fd by A16,XXREAL_0:2;
then
A22: l in dom fd by A20,FINSEQ_3:(F) =MIMf,h CHIB,)java.lang.StringIndexOutOfBoundsException: Range [65, 66) out of bounds for length 65
not y = ,dF =dom 9as set;
then m1< :1java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
then mi<l+1 by A19,FINSEQ_1:1,XREAL_1:19;
then
A23: mi<=l by NAT_1:13;
now
per cases;
case
l=ma;
then o in {x} by A11,TARSKI:def 1;
hence thesis by A22,FUNCT_1:def 7;
;
case
l<>ma;
then l<java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
java.lang.StringIndexOutOfBoundsException: Range [7, 8) out of bounds for length 7
A24: o>=r by A11,A22case
now
java.lang.StringIndexOutOfBoundsException: Range [36, 21) out of bounds for length 36
case
l=then m1 dom B A16,:25java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
,: ;
hence thesis by A22,java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 39
end;
case
l<>mi;
then mi<l by A23,XXREAL_0:1;
then r>=o by A13,A22,RFINSEQ:19;
then r=o by A24,XXREAL_0:1;
then o in {x} by java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 8
hence thesis by defpred [Nat]means$ dom fd& .1=x
end;
end;
hence thesis;
end;
end;
hence thesis;
end;
letthen max(0,mi1)mi-1by :4;
assume
A25: y in fd"{x};
then
A26: y in dom fd by FUNCT_1:def 7;
reconsider l=y as Element of NAT byA23: mi1java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
A27: 1<=l by A26,FINSEQ_3:25;
fd.y in {x y as Element CbyA24;
then
A28: byA6,A23,d3java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
then mi<=java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 12
t mi<+ :13;
then m1<l or l<1 by XREAL_1:19;
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 31
A29: not l inA26:1<m1 :19;
by A11,A28;
m1<=len fd1 XREAL_119;
hence thesis by A29,XBOOLE_0:def 5;
then
A30: 1<=ma A11,:25;
=ma by A13,A11;
then reconsider y Elementof
m1<mi by XREAL_1:44;
A32: m1<=ma by A31,XXREAL_0:2;
then Seg m1 c then m1< fd by A22,XXREAL_0:2;
then
: card(d{} (Seg-Seg m1)byA17,CARD_2:44
.= ma - card(Seg m1) by FINSEQ_1:57
.= ma - m1 by FINSEQ_1:57;
A34: mi<=len
then 1<=len fd by A14,XXREAL_0:2;
then
A35 bePartFuncofD, A ofC st
ow
per let F be PartFunc D,REAL, RearrangmentGen ;
case
A36: mi=1;
B.ma = p"{x}
proof
thus B.ma c= p"{x}
proof
defpred P[Nat] means $1 in dom B & $1<=ma implies
for c be Element of C st c in B.$1 holds c in p"{x};
let y be object;
assume
A37: y in B.ma;
B.ma c= C by A4,A1,A2,A11,Lm5;
then reconsider cy = y as Element of C by A37;
A38: for n st P[n] holds P[n+1]
proof
let n;
assume
A39: P[n];
assume that
A40: n+1 in dom B and
A41: n+1<=ma;
A42: n+1<=len B by A40,FINSEQ_3:25;
then
A43: n<=len B -1 by XREAL_1:19;
A44: nlen B by A42,NAT_1:13;
letcbe of ;
ssume
A45: c in B.(n+1)A4: len =len Th11
46 <=lenB ,AT_1:13
now
perletx object;
case
n=0;
then p.c: not fd;
then p.c in {x} by TARSKI:def hence card (fd"{x}) = card(p"{x}) by A6,A7,Lm1java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
hence thesis by A5,FUNCT_1:def 7;
endjava.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
case
A47: n<>0;
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
+<java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
A49: 0+1<=n by A47,NAT_1:13;
then B.n c= B.(n+1) bythenm1 - as ElementoNAT 5java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
then
A50: B.(n+1) = B.(n+1) \/ B.n by XBOOLE_1:12
= B(+1 \ B.n)\ B. by 39;
now
per by ,,XBOOLE_0def3
case
cinB(+ .;
then
reconsider o=;
now
per cases;
case
n+1=ma;
then p.c in {x} by A11,A51,TARSKI:def then
hence thesis by A5,FUNCT_1:def 7;
end;
case
1<m;
then n+1<ma by A41,XXREAL_0:1;
then
A52: p.c>=rby ,A1,A2,A40,,:19;
r>=p.c by A4,A1,A2,A13,A36,A40,java.lang.StringIndexOutOfBoundsException: Range [16, 1) out of bounds for length 21
;
then r=p.c by A52,XXREAL_0:1;case
then p.c in {x} by TARSKI:def 1;
hence thesis by A5,FUNCT_1:def 7;
end;
per ;
thesis;
end;
case
c in B.n;
hence thesis by A39,A41,A46,A49,FINSEQ_3:25,NAT_1:13;
end;
hence thesis;
end;
end;
hence thesis;
end;
A54: for n holds P[n] from NAT_1: end;
indomB A4A1,A11,FINSEQ_3:29;
end
hence thesis;
end;
let y be object;
assume
yin "x};
thency= y ofC;
pin{x 55d7
A56: p.cy = x by TARSKI then
defpred Q[Nat] means $1 in dom B & ma<$1 & cy in B.$1;
;
A58t l l1by java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
thesisby XBOOLE_0;
len B <> 0 by Th4;
+
hence n in dom B by FINSEQ_3:25;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 44
now
n<=ma;
= ma -m1 by FINSEQ_1:;
then cy in B.ma by A59;
hence contradiction by A57;
end;
hence thesis by A59;
end;
consider mm be Nat such that
A60: Q[mm] & for n be Nat st Q[n] holds mm<=n from NAT_1:
sch 5(A58);
1<=mm then1<len fdby A14,XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
then max(0,mm-1)=mm-1 java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 20
then reconsider 1mB=p"x
ma+1<=mm by A60,NAT_1:13;
then
A61dPNat] means $ dom B 1<m implies
then
A62: 1<=1m by A30,XXREAL_0:2;
A63: assume
mm= A60FINSEQ_325;
A65: <+by 13
then< by XREAL_1:19java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then
A66: 1m<java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
1m<=mm by A65,java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 29
then m<=en B by A64,XXREAL_0:2;
then
m dom byA62,:;
now
per cases;percases
case
ma=1m;
then cy in B.(1m+1) \ B.(1m) by A57,A60,thenp. x} def1java.lang.StringIndexOutOfBoundsException: Index 54 out of bounds for length 54
then p.cy = fd.mm by A3,A62,A66,Th14;
hence contradiction by A11A47: n<>;
end;
case
ma <> 1m;
then
A68: ,XXREAL_0:1;
now
assume cy in B.(1m);
then mm<1 by ,A67,A68;
then mm - 1m < .=(.(+1)\B.n)\ B.n by XBOOLE_1:39;
hence contradiction;
end;
then cy in B.(1m+1) \ B.(1m) by A60,XBOOLE_0:def 5;
then p.cy = fd.mm by A3,A62,A66,Th14;
hence contradictioncinB(1) \ B.;
end;
end;
hence contradiction;
end;
hence card(p"{x}) = card(fd"{x}) by A4,A1,A30,A16,A33,A36,Def1;
end;
case
A69: mi<>1;
1mi A14,XXREAL_0:1java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
then
A70: 1<=m1 by A15,NAT_1:13;
A71: m1<=len +1>;
A72: m1 in dom B by A4,A1,A70,FINSEQ_3:25;
then
A73: B.m1 c= B.ma by A4,A1,A2,A11,A32,Th2;
B.ma c= C by A4,A1,A2,A11,Lm5;
then reconsider Bmar=. A1,,,A36A40A48,A51,RFINSEQ:19
B.ma \ B.m1 = p"{x}
proof
thus B.ma \ B.m1 c= p"{x}
proof
defpred PNat] means $1 in dom B & mi<=$1 & $1<=ma
implies for c be Element of C st c in B.$1 \ B.m1 holds c in p"{x};
let y be object;
A74: B.ma c= C by A4,A1,A2,A11,Lm5;
A75: for n st P[n] holds P[n+ case
proof
let n;
assume
A76: P[n];
assume that
A77: n+1 in dom B and
A78: mi<=n+1 and
A79: n+1<=ma;
c be Elementof;
n1<len B by FINSEQ_3:25;
then
A80: lety
assume
A81: c :: (Stowarzyszenie Uzytkownikow Mizara, Bialystok, Poland).
now:: See COPYING.GPL and COPYING.CC-BY-SA for the full text of these.ttp/o/icenses/gpl.htmland
per cases notations TARSKI,STRUCT_0 defpredNatmeans 1in &ma<$1& cy in .;
case
A82: n+1=mi;
then pc=fd.(+)by57yin.java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
then p.c in {x} for v0,v1,v2 holds v0 "/\" (v1 "\/" v2 =(v2
isby A5,:
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
mi< A4A1A16;
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 18
then mi<=n by NAT_1:13;
then
A84: 1<=n byNat such that
<mabyA79,NAT_1:13java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
then
A85: n <mmby A60,INSEQ_3:java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then n<=n+1 & n in dom B by A84,FINSEQ_3:25,NAT_1 thenreconsider 1m=mm asElement NAT FINSEQ_25java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
then B.n c= B.(n+1) by A77,Th2;
then
A86: B.(n+1) \ B.m1 = (B.(n+1) \/ A62:1=m:2;
+1)\.)\ B.)\B. byXBOOLE_1:39
.= (B.(n+1) \ B.n)\ B.m1 \/ (B.n \ B.m1) by A60,INSEQ_3:25;
;
now
per by A81,,XBOOLE_0: 3;
case
c in (B.(n+1) \ B.n) \ B.m1;
then c in B.(n+1) \ B.n by XBOOLE_0:def 5;
then
A87: p.c = fd.(n+1) by A3,A80,A84,Th14;
now
per cases;
case
n+1=ma;
then p.c in {x} by A11,A87,TARSKI:def 1;
hence thesis by A5,FUNCT_1:def 7;
end;
case
n+1<>ma;
then n+1<ma by A79,XXREAL_0:1;
then
A88: p.c>=r by A4,A1,A2,A11,A77,A87,RFINSEQ:19;
r>=p.c by A4,A1,A2,A13,A77,A83,A87,RFINSEQ:19;
then m= by ,XREAL_119;
then p.c in {x} by TARSKI:def 1;
A67: m in dom B by A62,FINSEQ_3:25;
end;
end;
hence thesis;
1;
c in pcy=fd.mm A3,,A66Th14
hencethesis A76,79A83,,A85,INSEQ_3:java.lang.StringIndexOutOfBoundsException: Index 73 out of bounds for length 73
,NAT_1:13;
end;
end;
hence thesis;
end;
end;
hence thesis;
end;
A89: P[ 0 ];
A90: for n holds P[n] from NAT_1:sch 2(A89,A75);
assume
A91: y in B.ma \ B.m1;
then y in B.ma;
then reconsider cy = y as Element of C by A74;
ma in dom B by A4,A1,A11,FINSEQ_3:29;
then cy in p"{x} by A31,A91,A90;
hence thesis;
end;
let y be object;
assume
A92: y in p"{x};
then reconsider cy = y as Element of C;
p.cy in {x} by A92,FUNCT_1:def 7;
((v0")\"(/"v1)v1 java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
java.lang.StringIndexOutOfBoundsException: Range [18, 3) out of bounds for length 39
A94: not y in B.ma \ B.m1;
now
per byA94,:5
case
: not yin.majava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
defpred then cy B.1m("/"")v65"\v64 java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A96: best[njava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
takelB
enB< byTh4;
then1l NAT_1:;
hence n endletv0;
java.lang.StringIndexOutOfBoundsException: Range [4, 3) out of bounds for length 34
now
java.lang.StringIndexOutOfBoundsException: Range [30, 28) out of bounds for length 37
then ma=:13;
then cy in Bthen
hence contradiction by ;
end
,java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
;
consider
A98: Q [mm] & thesis A8;
sch()
1=by A98,FINSEQ_3:25 c C c inB.1 .holds i {x;
then(lb java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
then A75: for n st P[n] hol [1
mA13;
java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
99: =1m assume
then
A100 (": 1=ma
A101: mm in isjoin-&
A102:java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
mm<+1by NAT_1:;
then 1m<mm by XREAL_1:19;
then
A104: 1m< per cases
1m<=mm by A103,XREAL_1:19;
(v2/\"0"\(v2"/")("/" pin{ by,,ef;
A105 end
now by A53;
per casesLis -absorbing&
case
ma=1m;
then cy in B.(1m+1) \ B.(1m) by A95,A98,XBOOLE_0:def letjava.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 18
p.=(+
hence contradiction 11A86: B.(n+1) \ B.m1 = (B.(n+1) \/ B m1by12
java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
case
ma <1
then
< XXREAL_01java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
now
assumecythen
mm=b 105106;
thenmm-1 ow
(/")/ case
;
then.1\ mby Xjava.lang.StringIndexOutOfBoundsException: Range [72, 70) out of bounds for length 73
then p.cy = thesis y ,A3,Lemma1;thenn+< A79XREAL_0java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
contradictionbyA11A93A,
;
end
java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 38
end;
case
A107iB.1java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
defpred[Nat 1 in ;
e Natjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 50
consider mm be Nat such hence N:;
A109Q & st[]=
(v0"/\"v1)\/v1"\")v1by A7
<=A110: 1<=mm
thenmax0mm-java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 20
Tby:java.lang.StringIndexOutOfBoundsException: Index 74 out of bounds for length 74
<len A109Fjava.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 33
then inBma;
now
per cases;
case
mm1
thenp =fd.1by A109,Th14;
java.lang.StringIndexOutOfBoundsException: Range [0, 26) out of bounds for length 18
hence contradiction by A14(/""/(/assume
;
A34:for ,v65 holds (v64 .yin{} A92,: java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
then 1mm A:java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 39
then 1+1<=mm by NAT_1:13;
java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
A113: now
A114: mm<mm+1 by NAT_1:13;
then
A115: 1m<=mm by XREAL_1:19;
then 1m<=len B by A111,XXREAL_0:2;
A116: 1m in dom B by A113,FINSEQ_3:25;
proof
then
lenB by A111,XXREAL_0:2;
1m<=m1 by A109,A115,XXREAL_0:2;
then not cy in B.1m by A109,A117,A116;
cyinB(m+1)\B.1mbyA109,:ef 5;
then p.cy hence in dom B by FINSEQ_3:25;
then mi<=mm by A13,A93,A112;
then m1+1<=assume =ma;
then 1<=m1-m1 by XREAL_1:19;
then 1<=0;
hence contradiction;
end;
end;
hence contradiction;
end;
end;
hence contradiction;
end;
hence card("{}) cardBma -() by A73,CARD_2:44
.= ma - card(Bm1) by A4 1<mm by A98,FINSEQ_3:5
.= card reconsider 1m = mm - 1 as Element of NAT by FINSEQ_2:5;
end;
hence card (fd"{x}) = card(p"{x});
end;
end;
henceCoim(fd,)= Coim(p,);
end;
hence thesis by CLASSES1:defA103: mm by :
end;
theorem Th17:
for F be PartFunc of D,REAL, A be RearrangmentGen of C st F is
&card C card D FinS(Rland(F,A)C)=FinS(,)
proof
let F be PartFunc of D,REAL, B be RearrangmentGen of C;
assume
A1: F is total & card C = card D;
then
A2:Rland(,),FinS(,)are_fiberwise_equipotent by Th16;
A3: dom Rland(F,B) = C by A1,Th12;
then (Rland(F,B))|C = Rland(F,B) by RELAT_1:68;
hence thesis by A2,A3,RFUNCT_3:def 13;
end;
theorem Th18:
for F cy in B.1;
total card =card D Sum ((F),C)=Sum F,D)
proof
let F be PartFunc of D hence ;
assume F cy .(1m+)\B.1)by A98,:ef5;
then FinS(land(,,)=F,D Th17
hence Sum(Rland(F,B),C) = Sum FinS(F,D) by RFUNCT_3:java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 24
. (F,D RFUNCT_3d14;
theorem
for F be PartFunc of D,REAL, A be A109: Q [mm] & for n be Nat st Qholds <n
card C = card D holds v0"/\"v0)=v0 by A2,A3,Lemma1
C) = A57:for v1t java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 74
proof
let F be PartFunc of D,REAL, B be RearrangmentGenjava.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 21
assume that
is total nd
card ;
1:2java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
|
then
A4: FinS(F,D), F are_fiberwise_equipotent by A3,RFUNCT_3:def 13;
Rland(F,B),
,:java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
then
java.lang.StringIndexOutOfBoundsException: Range [50, 46) out of bounds for length 62
A6: dom (Rland
then (Rland(F,B) - r)|C = Rland(F,B) -A118 m<len B ,XXREAL_02;
then FinS(Rland(F,B) java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 20
13java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
then
CLASSES1:6java.lang.StringIndexOutOfBoundsException: Index 76 out of bounds for length 76
A8: dom(F-r) = dom F then<m1m1by;
then (F-
hence
Sum-, (,)by def java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
v65/\)(/"endjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 18
end;
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
;
total & card C = card D holds dom Rlor(F,A) = C
proof
l beofDREAL,B RearrangmentGencard fd)card (p;
set b = Co_Gen((v0"/\1)/=/("")\("/"))
hence thesis
FinS(,D)Th17:
Fis & F PartFuncofD, RearrangmentGenof C is
A2: java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
thusRlor(,
letx be;
assume x the
then oofv66vjava.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
c thesis by A132(java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 49
hence thesis by A1,A2,RFUNCT_3:28;
nd
theorem Th21:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
proof let v1,v66,;
implies (Rlor(F,A)).c =assume F is total &thesis A140;
A150: for v1,A150: for v1,v66,)C Sum(,Dby4
proof
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 22
);
A1: Rlor(,. RlandFA FinS(,D& java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 79
A2 C
F java.lang.StringIndexOutOfBoundsException: Range [23, 22) out of bounds for length 57
A3: F is total & card C =
then
A4: len mf = len h by Th11;
thus cjava.lang.StringIndexOutOfBoundsException: Range [7, 6) out of bounds for length 31
java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 20
hence Rlor(
v1/\"1=6 lF)-r java.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 57
end;
let n;
set mfn = MIM(FinS(F,D)/^n);
assumethat
A5: 1<=n and
A6: n<len band
A7: c inb.n1 \ b.;
(mf(#)h)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
hence Rlor(F,java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
by:for v66holdsv65=(v66/""/"v65"/\"v65)
.= 0 + Sum mfn by java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 0
hencethesis 2java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
end;
java.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 20
FbePartFunc D,REAL, A of stF java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
total & card Cjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 4
("\(\"v1)=by;
A25 for v0,,1holds((v2"/\"0)"/"v0/\"(v1"/"v2)))=(v2"/\"v0)
java.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 19
F totaland
cardD
,- )A7,def 13
len = hh A1A2;
dom Fproof v64,;
then reconsider PartFuncofD, beRearrangmentGenofCFis
: =Seg FINSEQ_1:f;
A5: dom p
A6: dom b = Seg len b by FINSEQ_1:def 3;
reconsider dfd = dom fd, dF = dom F9 as finite set;
A7: len h = len b &endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A8:domF=D by A1,def 2;
then F|D =
then fd, Ft
=ard dF byCLASSES1:;
then len fd<>0java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
then
A9assume Cjava.lang.StringIndexOutOfBoundsException: Range [16, 17) out of bounds for length 16
then
A10: proof let v64,v65;
p c=rng java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
let v0v1
;
/ 3
then consider c be Elementjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
and
A11thesisby A2,
A2: len hlenh= mf =f by :def2R:let ,v0java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
A12: ex n be Nat stA97: forA3:F total&card =card ;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
take n = len b;
b.p65java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
hence thesis by A3,
hence Rlor,. Sum byh13
considermbe Nat suchthat
A13end;
1=mi byA13,:25
then max(0,mi-)=mi-1 by FINSEQ_2:4;
then reconsider m1A6:n 64"\(")\(\v64)= java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
A15: mi<=len b by A13,FINSEQ_3:25;
now
per casesproof
case
1java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
then p.c = fdendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
byeoremTh22:
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
mi java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
1< A14XREAL_0:java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
then 1+1<=A134: for v65,v1,v64holds (64"A2=D
then
9;
A17: m1<mi by XREAL_1:44;
then =A4: dom fd = Seg len fdom =Seg len by FINSEQ_1def 3;
m1dom b ,;
then notreconsider =domF9 set;
\. bybyX:def5;
m1 by A15A,2
then =d()by ,A16Tjava.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
hencebyA3,,,A11,FUNCT_1def3java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
end;
end
hence thesis;\/v64"\(v64\"v65"/v66) A93
end;
let x be object;
(((0"\/"v1)"\"v65"\(v65"\/v0)"/(0"/v1)))
ssumexin rng ;
then
A19: ex n be Nat st P[n] by FINSEQ_2:10;
consider mibeat suchthat
A20 fd by A4;
A21: 1<=mi by A20,FINSEQ_3:25(v"/v66"/(v65\"64)(\"v64"tjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then max(0,mi-1)=mi-1 byendjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
then indom :java.lang.StringIndexOutOfBoundsException: Range [32, 33) out of bounds for length 32
A22: mi<=len fd by A20,FINSEQ_3:25;
now
per cases;
A23: mi=1;
set y the Element b.;
A24: b.1 <> {} by A3,A7,A4,A6,A10,java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 24
proof
yas of Cby java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
p.y = fd.1 by A1,A2,A24,Th21;
hence thesis by A5,A20,A23,FUNCT_1:def 3;
end;
case
A25: mi<>1;
set y = the Element of b.(m1+1) \ b.m1;
1<mi by A21,A25,XXREAL_0:1;
1+<m NAT_1:13;
then
A26: 1<=m1 by XREAL_1:19;
m1+1<=len fd by A20,FINSEQ_3:25;
then m1<=len fd -1 by XREAL_1:19;
then
A27: b.(m1+1) \ b.m1 <> {} by then p.c = fd.1 by A1,A2,A13;
then
A28
b.mi c= C by A3,A7,A4,A6,A20,Lm5;
then reconsider y as Element then +<mi by :13;
m1<mi by XREAL_1:44;
then m1<len fd by A22,XXREAL_0:2;
then p.y=fd.(m1+1) by A1,A2,A3,A7,A26,A27,Th21;
hence thesis by A5,A20,FUNCT_1:def 3;
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end;
hence thesis;
end;
theorem Th23:
for F be PartFunc of D,REAL, A be RearrangmentGen of C st F is
totalP[ 1infd fd.1= ;
proof
let F be PartFuncassume in ;
(F,D), =Rlor(F) mf MIM(, b=Co_Gen B,h=CHI(,;
A1A19 n beNatstPn] byFINSEQ_210
assume
: total card C =D
A3: rng p = rng fd by Th22;
A4: dom p = C by A2,Th20;
then reconsider p as finite PartFunc of C,REAL by FINSET_1:10;
A5: len mf = len h by A2,Th11;
A6: then reconsider m1 = mi -1 as Element of NAT by FINSEQ_2:5;
now
let x be object;
now
perjava.lang.StringIndexOutOfBoundsException: Range [0, 10) out of bounds for length 8
case
A7:not xin rngfd;
then then yasElement C A24
hence card (fd"{x}) = card(p"{x}) by A3,A7,Lm1;
end;
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A8: x in rng fd;
defpred P[Nat] means $1 in dom fd & fd.$1 = x;
ex n be thesis;
:: Seventh file
A10: P[mi] & for n be let y beobjectjava.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
then reconsider p as finite java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 0
len mf h ,Th11
len b by :def java.lang.StringIndexOutOfBoundsException: Index 62 out of bounds for length 62
now
java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
now
per java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
:;
then"{}{ by Lm1
card d{} =card"x) byA3,,java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
then lA22:for v65,v64,0 holds
case
A8: in rng fd;
defpred P[Nat] means $1 in dom fd & fd.$1 = x;
A21:java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
consider mi be Nat such that
A10: P[mi] & for n be Nat(v65"\"v65"\/"v1))=v65 by A2;
);
reconsider;
: 1<mi by A10F:25;
then max(0,mi-1)mi1 by FINSEQ_2:;
then reconsider m1 = mi-1 as Element of NAT by FINSEQ_2:5;
A12 m11by A2;
A13A22:mi<A39 for v65v64, olds (""v66"")(65"\v66"/(v64"/\"v65))
consider(/")\/(66"\v65)=(65/"v66"/v64) A3;
: [ma &for n Nat [n]holds n<=ajava.lang.StringIndexOutOfBoundsException: Range [53, 49) out of bounds for length 69
,9;
A15: ma<=
A16: Seg ma \hencethesisby A12;
proof
Seg ma \ Seg m1 c=fd"x}
proof oin ((1\\"(v2"/"65))"/(65"/v6)
lety be ;
thesisby ; hence thesis by A21end;
in Segma \ Seg m1;
reconsiderl=asElement of ;
(("\v1)"/v)/"(/\"v1)"\/v0))=((v2/\"1)"\/"v0) by A2,A3,Lemma1;
yinSeg ma A17XBOOLE_0:def 5;
then
A19: 1<lby :1;
A20: l<=ma by A18,FINSEQ_1:1;
l=fd byA152
then
)
notend;
then l<1 java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 20
then<l ,INSEQ_1:,REAL_1:;
then
<=l NAT_1:13;
now
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
l=ma;
then o in {x} java.lang.StringIndexOutOfBoundsException: Range [37, 1) out of bounds for length 47
hence thesis A21then
end;
ase
<;
lmabyA20,XXREAL_01java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
then
java.lang.StringIndexOutOfBoundsException: Range [39, 3) out of bounds for length 43
java.lang.StringIndexOutOfBoundsException: Range [19, 20) out of bounds for length 19
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
lmi;
then o in{} A10,TARSKI:def(v67/(/")"\/
hence thesis by A21,FUNCT_1 by A53;
case
lmi
then XXREAL_0:
hencethen
v64
then o in {x} by TARSKI:def
hence thesis by A21,FUNCT_1/v64"\"v64\"v65\"64)
end;
end;
hence thesis;
end
:
A30: mi<=ma by A10,A14;
end;
let y be object;
java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 12
A24: y in fd"{x};
then
then
reconsider l=y as Element of NAT by A24;
A26: 1<=l by A25,FINSEQ_3:25;
. x byA24,def;
then
A27: =-by:57
then java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 38
then mi<l+1 by NAT_1then
then m1<l or l<1 by XREAL_1:19;
then
java.lang.StringIndexOutOfBoundsException: Range [21, 3) out of bounds for length 40
<ma byA14,A27
thenl maby ,:;
hence thesis by A28,XBOOLE_0def 5;
end;
A29: 1<=ma by A14,FINSEQ_3:25;
A30: v ;
m1= byXREAL_1:43;
then
A31:m1maby A30,XXREAL_0:2;
then m1 c=Seg ma hence thesis;
then
rd(Seg ma) - cardSeg m1) by A16,,CARD_2:44
.= ma - card(Seg m1) by FINSEQ_1:57
=majava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
A33ljoin -java.lang.StringIndexOutOfBoundsException: Range [59, 56) out of bounds for length 59
then 1<=lenjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A34: 1 in domjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
per cases;
case
A35: mi=1;
.ma( / )/ "\ ) /"
MainMcKenzie
ma={x}}
defpred P[Nat] means $1 in domf then.c = byA2A10,,A44,;
for c Lissatisfying_McKenzie_1;
let y be object;
assume
A36y java.lang.StringIndexOutOfBoundsException: Range [22, 20) out of bounds for length 26
b.ma c= C by A5A1A6A14,Lm5;
A9: for v100,v101 holds"/(/"))=v100
A37: for n st P[n] (100"\(1"/(\"v2))=by A3
proof
let n;
(v100"/(v1"\"(100"/"v2)))=v100 by A2;
:P]
assume that
:n bjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
40: n+1=a
A41: n+1<=len b by A39,java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 4
hen
42 <= -XREAL_1;
A43: n<len by ,NAT_1:13;
letc C
A44: c in b.(n+1);
A45:A25:for v102,1v2,
now
java.lang.StringIndexOutOfBoundsException: Range [30, 31) out of bounds for length 30
case
0java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
then. = x by A2A10A35A,h21; Fjava.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
then. x TARSKI ;
;
end;
case
A46 n+end;
then
A47: 0+1<n+1 by XREAL_1:6;
A48 +1<=A48: 0+1<=n by A2;
then b.n c= b.(n+1) by A42,Def2;
then
A49: b.n+1 =b(n+1) \ b. by r=pby,A6,A10,A35,A39,A47,A50,:19
b.+1) \ .)\bnjava.lang.StringIndexOutOfBoundsException: Range [52, 50) out of bounds for length 65
java.lang.StringIndexOutOfBoundsException: Range [48, 25) out of bounds for length 25
per cases by A44,A49,XBOOLE_0:def 3;
cb.+ b.;
java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
=fd(+1 2A43A,java.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
per cases;
case
n+1=ma;
then p.c in {x} by A14,A50,TARSKI:def 1;
hence thesis by A4,FUNCT_1:def 7;
end;
case
n+1<>maA57 for v1,v2,v100 holds (v100"/("/(v100"/"v2)))=(v1"\/(v100"/"v2)java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
A17java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
then
A51: p.c>=r by A5,A1,A6,A14,A39,A50,RFINSEQ:19;
r>=p.c by A5,A1(100"\(\"100)=100byA13java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
;
=pc A51,1
then p.c in {x} indom by A5,,,FINSEQ_3:29;
hencethesis by A4FUNCT_1:
;
end
hence thesis;
end;(100"\"(100\"v1)v100 by A21;
case
in bn;
hence by ,40,45A48FINSEQ_3:5,AT_1:3;
end;
end;
hence thesis;
end;
end;
hence thesis;
A55: p.cy xby TARSKIdef1;
A52: 0 by FINSEQ_3:5java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
A53:
ma bbyA1A14Fjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
then cy in p"{x} ("/(v1"\"(100/")java.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 28
hence thesis;;
y;
assume
A54: y in p"{x};
then reconsider cy = y as Element of C;
. in {x A54d 7java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
then
A55: p.cy = x by TARSKI:def 1;
defpred Q[A88: for v0,v2,v1 holds ((v0"v1"\"v2))"\/"v1)=v1
assume
A56: not y in b.ma;
nbe st Q[]
proof
take n=hence thesis A85;
assumenend;
then 0+1<=len b by A91 v1 (/"1)"\/"v101)=()"\/"v101)=(v101 malenb A,1java.lang.StringIndexOutOfBoundsException: Range [56, 57) out of bounds for length 56
dom :java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
A58: b endjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
now
assume n <= : v1,v100 (v100"\((java.lang.StringIndexOutOfBoundsException: Range [0, 43) out of bounds for length 18
thenma=lenb by A5,A15XXREAL_0:1;
(((v100"\/"v102)"\/"v1/"")((v100"\/v102)"\/"v1) by A65;
hencecontradictionA56;
end;
end;
consider mm be Nat =mmbyA59,25;
A59: Q[mm] & for n be Nat st Q[n] holds mm<=n from NAT_1:
sch 5A57 );
1<=mm by A59,FINSEQ_3:25;
max0mm1)=mm- byFINSEQ_2:4;
then reconsider 1m = mm - 1 as Element of NAT by FINSEQ_2:5;
ma+1<=mm by A59,NAT_1:13;
then
A60: ma<=1m by XREAL_1:19;
then
A61: 1<=1m by A29,XXREAL_0:2;
A62: mm in dom fd by A5,A1,A59,FINSEQ_3:29;
A63: mm<=len b by A59,FINSEQ_3:25;
A64: mm<mm+1 by 1m=by ,XREAL_119java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then 1m<mm by XREAL_1:19;
hen
:1<lenb A63XXREAL_02
1m=mm byA64,XREAL_1:19;
then 1m=len b by A63,XREAL_0:2;
then
A66: 1m java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
per cases;
hence thesis by A4;
then cy in b.(1m+1) \ b.(1m) by A56,A59,XBOOLE_0:def 5;
then p.cy = fd.mm by A2,A61,A65,Th21;
hence contradiction by A14,A55,A59,A62;
end;
case
ma <> 1m;
then
A67: ma < 1m by A60,XXREAL_0:1;
now
assume cy in b.(1m);
then mm<=1m by A59,A66,A67;
then mm - 1m <=0 by XREAL_1:47;
hence contradiction;
end;
then cy in b.(1m+1) \ b.(1m) by A59,XBOOLE_0:def 5;
then p.cy = fd.mm by A2,A61,A65,Th21;
hence contradiction by A14,A55,A59,A62;
end;
end;
hence contradiction;
end;
hence card(p"{x}) =
end;
case
A68: mi<>1;
then 1<mi by A11,XXREAL_0:1;
then
A69: 1<=m1 by A12,NAT_1:13;
A70: m1<=len fd by A33,A12,NAT_1:13;
then
A71: m1 in dom b by A5,A1,A69,FINSEQ_3:25;
java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
bc ma A5A6,A14,A31,Th2;
b.ma c= C by A5,A1,A6,A14,Lm5;
then reconsider bma = b.ma, bm1 = b.m1 as finite set by A72;
b.ma \A68: <1java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
proof
thus b.ma \ b.m1 c= p"{x}
proof
defpred PA70 m1<len A33,A12,NAT_1:13;
implies for c be Element of C st c in b then
let y be objectA71:m1 domb by ,,,25
A73: b.ma c= C by A5,A1,A6,A14,Lm5;
A74: =b.byA5,6,A14A31Th2
proof
let n;
assume
A75: P[n];
assume that
A76: n+1 in dom b and
A77 =+and
A78: n+1<=ma;
let c be Element of C;
n+1<=len b by A76,FINSEQ_3:25;
then
A79: n<len b by NAT_1:13;
assume
A80A74 fornP[n] holdsP[+1]
now
per cases;
case
A81: n+1=mi;
then.c(+1) by ,A69,,A80T;
then p.c in {x} by A10,A81,TARSKI:def 1;
hence thesis by A4,FUNCT_1:def 7;
end;
case
mi <> n+1;
then
A82: mi<n+1 by A77,XXREAL_0:1;
then mi<=n by NAT_1:13;
then
A83: 1<=n by n+1<=len b by A76+<lb A76FINSEQ_3:;
n<=ma by A78,NAT_1:13;
then
A84: n<=len b by A5,A1,A15,XXREAL_0:2;
then n<=n+1 & n in dom b by A83,FINSEQ_3:25,NAT_1:11;
A80 .n+)\ b.java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
then
A85: b.(n+1) \ b.m1 = (b.(n+1) \/ b .n) \ b.m1n+1mi;
(((n1 bn / .)\ b.m1by XBOOLE_1:39
.= (b.(n+1) \ b.n)\ b.m1 \/ (b.n \ b.m1) by XBOOLE_1:42
;
now
cases by A80,A85,XBOOLE_0:def ;
case
c in (b.(n+1) \ b.n) \ b.m1;
then c b(1 .nby:5
then
:pc = fd(+1 byA2,,Th21
now
percases;
case
+=ma;
then p.c in {x} by A14,A86,TARSKI:def 1;
hence thesis by A4,java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
end;
<by A78,AT_1:3;
proof letv100v1v;
then n+1<ma by ;
then
A87: pjava.lang.StringIndexOutOfBoundsException: Range [6, 5) out of bounds for length 20
r>=p.by A5,,,,A76,A86,RFINSEQ:
=c A87;
(\""/"(v2\"v101)=java.lang.StringIndexOutOfBoundsException: Range [39, 36) out of bounds for length 54
forv2,holds
.=(.nooflet ,,java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
end;
hence thesis;
end;
case
c in b.n \ b.m1;
hence thesis by A75,A78,A82,A83,A84,FINSEQ_3:25
,NAT_1:13;
end;
end;
hence thesis;
end;
end;
hence thesis;
end;
A88: P[ 0 ];
A89: for n holds P[n] from NAT_1:sch 2(A88,A74);
assume
A90: y in b.ma \ b.m1;
then y in b.ma;
then reconsider cy = y as Element of C by A73;
ma in dom b by A5,A1,A14,FINSEQ_3:29;
then cy in p"{x by A90A89
hence thesis;
end;
let y case
assume
A91: y in p"{x};
then reconsider cy = y as Element of C;
p.cy in {x} by A91,FUNCT_1:def 7;
java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 18
ef 1
assume
A93: not y in b.ma \ b.m1;
now
per ,def ;
case
A94: not y in b.ma;
defpred Q] means $1 in dom b & ma<$1 & cy in b.$1;
A95: ex n be Nat st Q[n]
proof
take n=len b;
len b <> 0 by Th4;
then 0+1<=len b by NAT_1:13;
hence n in dom b by FINSEQ_3:25;
A96: b.n= C by Th3;
now
assume n <endjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
then ma=len b by A5,A1,A15,XXREAL_0:1;
then cy in b.ma java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 31
hence contradiction by A94;
end;
hence thesis by A96;
end;
consider mm be Nat such that
:Q mm hencejava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 20
T_1:5A95)java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
1<=mm by A97,FINSEQ_3:25;
then max(0,mm-1)=mm-1 by FINSEQ_2:4;
then reconsider 1m ((v0"/\"v1)"/\"(v1"/"v0)=v1/"v0) by ;
ma+1<=mm by A97,NAT_1:13;
then
A98: ma<=1m by XREAL_1:19;
v0,v1;
A99: 1<=1mbyA29,2java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
A100: mm in domA173 for v1,v0 holds (v0"/\"v1)=(v1"/ thenreconsider =y Element of C;
A101: mm(/""/(1"/\"v0)(0"\v1) by A167java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A102: mm<mm+1 by NAT_1:13;
then 1m<mm by XREAL_1:19;
then
A103: 1m<len b by A101,XXREAL_0:2;
1m<=mm by A102,XREAL_1:19;
then 1m<=len b by A101,XXREAL_0:2;
then
A104: 1mindom b by A99,INSEQ_3:25;
now
percases;
case
ma=1mcase
then cy in b.(1m+1) \ b.(1A94:noty bma\/" A151;
pcy= fdmmbyA2A99,A103,Th21;
hence contradiction by A14,A92,A97,A100;
;
case
ma <> 1m;
then
: 1 by,java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 4
now
assume cy\java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 63
then mm<=1m by A97,A104,A105;
then mm - 1m <=0 by XREAL_1:47;
hence contradiction;
then cy b.1+)\b.() by A97,BOOLE_0def 5;
proofv1,v;;
hence contradiction by A14,A92,A97,A100(v1"\(v0\/v2)\"v1) by A191;
end;
end;
hence
end
case
:y .m1;
defpred Q[Nat] means $1 in dom b & $1<=m1 &
A107: ex n be Nat st Q[n] by (\""/(0\/"v1\"v2/\"v0))=("/v"\v0)\/(v0"/v1
A100: in dom A5A1,FINSEQ_3:;
mm for stn holdsjava.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
NAT_1 ()java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A213 for v1,v0, holds
(,m-)=mm-1 by :4;
then reconsider 1(v0\"v1)"\/(0\/(v1"\"v2"\"0)byA203;
A110: mm<=len b by A108,FINSEQ_3hence thesisby A211;
A111end;
now
per cases;
case
mm=1;
thenp.cy =fd1 byA2A108,Th21
then mi<=1 by ,A34,A92;
hencecontradiction by A11,,XREAL_0:1;
end;
case
<1;
then 1<mm by A109,XXREAL_0:1;
then 1+1<=mm by NAT_1:13;
then
A112: 1<=1m by XREAL_1:19;
: m<+1 by NAT_1:13;
then
A114 hence contradiction by A14,A92A97,;
java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
then
A115: 1m in dom b by A112,FINSEQ_3:25;
A116: 1m<mm by A113,XREAL_1:19;
A117: 1m<len b by A110,XXREAL_0:2
=by,XXREAL_0
then not cy (v0"""\"\v0)(v0\/"1)A182
in then cy in )/"v0""1\"2))(v0\/"1)/"2
then p.cy = then mm - 1m=0by hjava.lang.StringIndexOutOfBoundsException: Range [13, 12) out of bounds for length 21
then miend;
then+<by A108,:java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
then((v0"\/"v1)"\/"(v0"\/"(v1"\"v2))(v1"/("/(v0"\"v1\"v2)) by A230;
then1=;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
;
hence contradiction;
end;
end;
hence contradiction;
end;
hence card(p"{x}) = card(bma) - card(bm1) by A72,CARD_2:44
.= ma - card(bm1) by A5,A1,A29,A15,Def1
.= card (fd"{x})A108 Q [mm]&for beNat Q[] holdsmm=
end;
end;
hence card (fd"{x}) = card(p"{x});
end;
end;
hence card Coim(fd,x) max(,mm-)=mm-1by FINSEQ_2:;
end;
hence thesis by CLASSES1:def 10;
end;
theorem Th24:end;
for F be PartFunc of D,REAL, AbeRearrangmentGen of st is
= =v1\"v0/2) A57
proof
let F now
assume
: F is total& card C = card D;
then
A2mm1
A3: dom Rlor(F,B) = C by A1,Th20;
then((,)| F):;
hence thesis by A2,A3, java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 28
end;
theorem Th25:
for F be PartFunc of D,REAL, A be java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 19
totalthen1<hencethesis A261
proof vjava.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
FbePartFunc ,REAL,Bbe RearrangmentGen of C
assume F is total & card C = card D;
FinS((,),
hence Sum(Rlor(Fproof let v1,v0,v2java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
=Sum(, :ef 14java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
end;
PartFuncofD,EAL,Abe RearrangmentGen stFis total java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
card C=card D holdsFinS((Rlor(,) -r) =FinS(F-r,D) & Sum (Rlor(F,A)-r,
C)hence thesisbyA113;
proof
let F be let F be PartFunc\v3"\(3"\(/\)=v3/"v1/")
assume that
A1: F is total and
A2: java.lang.StringIndexOutOfBoundsException: Range [15, 8) out of bounds for length 20
:dom F = by A1,PARTFUN1def;
then F|D = F by RELAT_1:68;
then
:FinS(,D by ,RFUNCT_3def 13;
Rlor(F,B), FinS(F,D) are_fiberwise_equipotent by A1,A2,Th23;
e_fiberwise_equipotent by A4,CLASSES1:76;
then
A5: Rlor(F,B)-r, F-r are_fiberwise_equipotent by RFUNCT_3:51;
A6: dom (Rlor(F,B) - r) = dom Rlor (F,B) by VALUED_1:3;
by RELAT_1:8;
then FinS(Rlor(F,B) - r, C), Rlor(F,B) -r are_fiberwise_equipotent
by A6,RFUNCT_3:def 13; then
A7: FinS(Rlor(F,B) - r, C),A277: foror v102,v2,v100 holds
A8: dom(F-r) = dom F by then 1<=0;
then (F-r)|D = F-r by RELAT_1:68;
hence FinS(Rlor(F,B) - r,C) = FinS(F-r,D) by A8,A7,RFUNCT_3:def 13;
hence Sum(Rlor(F,B)-r,C) = Sum FinS(F-r,D) by RFUNCT_3:defhence thesis by A113;
.= Sum (F-r,D) ;
;
theorem
for ofDR,A C F total&
hence contradictionjava.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
Rlor(A)C (Rland(,A,)&Sum (lor(F,A),C)=Sum((,)C
proof
let F = ma-cardbm1) by A5,A1,A29,A15,
assume
A1: F is total & card C = card D;
then ;
2 ((,)C=Sum(,)&Rlor(B,FinS(F,D)
are_fiberwise_equipotent by Th18,Th23;
Rland(F,B), FinS(F,D) are_fiberwise_equipotent & FinS(Rland (F,B),C) =
FinS( F,D) by A1,Th16,Th17;
hence thesis by A1,A2,Th24,Th25,CLASSES1:76;
hence (,x =cardCoimp,);
theorem
for F be PartFunc of D,REAL, A be RearrangmentGen of C st F is total &
card C = card D holds max+(Rland(F,A) - r), max+(F - r)
are_fiberwise_equipotent & FinS(max+(Rland(F,A) - r), C) = FinS(max+(F - r), D)
& Sum (max+(Rland(F,A) - r), C) = Sum (max+(F - r), D)
proof
let F be PartFunc of D,REAL, B be RearrangmentGen of C;
assume that
A1: F is total and
A2: card C = card D;
set =max+R(,)-),mf=max+(F-r);
A3: dom F = D by A1,PARTFUN1:def 2;
then F|D = F by RELAT_1:68;
then
A4: FinS(F,D), F are_fiberwise_equipotent by A3,RFUNCT_3:def 13;
Rland(F,B), FinS(F,D) are_fiberwise_equipotent by A1,A2,Th16;
then Rland(F,Bjava.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
thenRland(F,)-r,Fr byRFUNCT_3:51;
hence
A5A282
A6: dom mp = v0"/\"v1)"/\"/"v1/\("/"v2)))=(v0"\(1/"v0"\/")) by
then mp|C = java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 0
then), mp are_fiberwise_equipotent by java.lang.StringIndexOutOfBoundsException: Range [67, 53) out of bounds for length 70
then
A7: FinS(mpjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A8: dom("/"(v2"\/"v0))((v2"\/v"\v1 A173;
then mf|D = mf
hence FinS(mp,C("")"\(v1"\v2"\"v0)=("\v1"/"v1/") A287;
hence Sum(mp,C) = Sum FinS(A295 v1vv0v"\"\"v2"\v1)=v0"\v1
.= Sum (mf,D) by (v1"/\"(v0"\/"v2))=((v0"\/)"\v1 ;
theorem
forhence thesis by A290;
card C=card D max-Rland(,)- r)max(F;
& FinS(-java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
&Sum (-((,)-r) C) (maxFinSlorB,)=FinS(, by;
proof
FbePartFuncD,REAL of C
assume that
A1: F is total and
for F PartFunc 0"\)=v100/"v2)yA290java.lang.StringIndexOutOfBoundsException: Range [52, 53) out of bounds for length 52
set mp = max-(Rland(F,B)-r), mf = max-(F-r);
A3: dom proofv1,v2,0,3
then F|D = F by RELAT_1:68;
then
4:FinS(,) F by ,RFUNCT_3def ;
Rland(F,B), FinS(F,D) are_fiberwise_equipotent by A1proof letv1v,v0v;
then Rland(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
then Rland(B-, F-r by RFUNCT_351
hence
A5: mp, mf are_fiberwise_equipotent by A316: ,v2v1 java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 70
A6: dom mp = dom (((v0"/\"v1)"/\"(v1"/\ )=java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 18
then |C = mpbyRELAT_1:, ;
FinS(mp ) are_fiberwise_equipotent ,FUNCT_3def13java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
end;
7 FinS(mp,C) ,76java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63
dommf(F-r byRFUNCT_3:def 11;
thenmf by RELAT_1:68;
hence FinS(mp,C) = FinS(mf,D) by A8,A7,RFUNCT_3:def 13;
Smf,) RFUNCT_3:def 14
java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
end(0/"()/"2card card Djava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
java.lang.StringIndexOutOfBoundsException: Range [52, 51) out of bounds for length 64
forv1,,,0 java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
RlandFA,)
proof
let F be PartFunc of D,REAL, B be
FB;
assume F is total & card D = card C;
then
A1 = by Th12;
then
A2: p|C = p by RELAT_1:68;
hence len A339: for v1,v2v0 holds (/"v0"\v2)=v2"/(v1"/")
0+1<=card C by NAT_1v0/"v1"/\"v0/\))=(1"\(0/\) byA77
hence thesis for v0,v2,v1 holds (v0"/\"(v1"/\"v2))=((v0"/\"v1)"/\"v2)
end v2v1
java.lang.StringIndexOutOfBoundsException: Range [0, 7) out of bounds for length 0
for F joinjoin- meet-commutativemeetassociative &
card D =forv1v0 v0\/"v0"\v1)=v0
proof
.("\/(v0"/\"1"\"v2) A4
assume=(\"(v0"\("/\v2)
A1
n ;
set p = Rland(F,B);
A3: len FinS(p,C) = card C by A1,Th30;
defpred P[Nat] means. v0 byA6
= FinS(Rland(F,B),B.$1);
A4: len B = card C by java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 5 | |