Quelle catalan2.miz
Sprache: Mizar
|
|
:: The {C}atalan Numbers. {P}art {II}
:: by Karol P\c{a}k
::
:: Received October 31, 2006
:: Copyright (c) 2006-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, FUNCT_1, NAT_1, TARSKI, ORDINAL1, FINSET_1,
RELAT_1, AFINSQ_1, ARYTM_1, ARYTM_3, FINSEQ_1, XXREAL_0, CARD_1,
now
,VALUED_1,SQUARE_1, COMPLEX1, PARTFUN3, ZFMISC_1, CARD_FIN,
java.lang.StringIndexOutOfBoundsException: Range [0, 14) out of bounds for lengt h 11
,;java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
notations TARSKIA6: Sumk-)0k byAFINSQ_258;
NUMBERS, RELAT_1, FUNCT_1, REAL_1, NAT_1, FINSET_1, XXREAL_0, NAT_D,
AFINSQ_1, SEQ_1, java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 9
BINOP_1, BINOP_2, RECDEF_1, SERIES_1, PARTFUN3, AFINSQ_2, ZFMISC_1,
SQUARE_1, NEWTON, STIRL2_1, CARD_FIN, CATALAN1, SEQ_2, PREPOWER,
COMPLEX1, QUIN_1;
constructors QUIN_1, PREPOWER, SERIES_1, PARTFUN3, BINOM, WELLORD2, DOMAIN_1,
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 79
CATALAN1, STIRL2_1, CARD_FIN, AFINSQ_2, ABIAN, SEQ_2, COMSEQ_2, NUMBERS,
NEWTON;
registrations thesis by ,6java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
then kd=k- n>)as Nat by NAT_1:;
let be k<=len (n-->0)+lm-1)by,1;
NEWTON, AFINSQ_2 ;
requirements REAL, NUMERALS, SUBSET, BOOLE, ARITHM;
definitions TARSKI, XBOOLE_0 then kd <= ;
QUIN_1 ,ORDINAL1java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
expansions TARSKI, XBOOLE_0;
theorems CATALAN1, AFINSQ_1, d+ n-0;
NAT_1, FUNCT_2, XCMPLX_1, CARD_2, INT_1, ORDINAL1, WELLORD2, CARD_1,
BINOP_2, NEWTON, XREAL_1, FUNCOP_1, STIRL2_1, FUNCT_1, CARD_FIN,
SERIES_1, SEQ_1, SEQ_2, COMPLEX1, SQUARE_1, ABSVALUE, RSSPACE2, POWER,
PREPOWER, WSIERP_1, FIB_NUM, TIETZE, XREAL_0, SERIES_2, XXREAL_0, NAT_D,
AFINSQ_2, XTUPLE_0, NUMBERS, FINSEQ_4;
schemes FUNCT_2, NAT_1 hence thesis byL8;
begin
reserve x, x1, x2, y, X, D for set,
i, j, k, l, m, n, N for Nat,
p, q for XFinSequence of NAT,
q9 for XFinSequence,
pd, qd for java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 8
definition
let p,q;
redefine func p^q -> XFinSequence of NAT;
coherence;
end;
theorem Th1:
ex qd st pd = (pd|n)^qd
consider q9 such that
A1: pd = (pd|n)^q9 by AFINSQ_1:60;
rng q9 c= rng pd by A1,AFINSQ_1:25;
then rng q9 c= D by XBOOLE_1:1;
then q9 is XFinSequence of D by RELAT_1:def 19;
take java.lang.StringIndexOutOfBoundsException: Range [11, 12) out of bounds for length 11
end;
definition
let p;
attr p is dominated_by_0 means
rng p c= {0,1} & for k st k <=dom holds 2* (|)=k;
theorem Th2:
p implies 2* p|=k
proof
assume
A1: p is A9: Sum(p|k)=Sum (n)+ Sumkd-1 A8,FINSQ_255;
now
;
suppose
k <= dom p;
hence thesis then -
;
suppose
A2: k > dom pjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 10
by NAT_139;
then
A3: n-)=* Sum(->1)=* AFINSQ_2:;
2 * Sum encebyA,java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
hence java.lang.StringIndexOutOfBoundsException: Index 18 out of bounds for length 15
java.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
hence thesis;
end;
theorem Th3:
p implies . java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
assume
A1: p is dominated_by_0;
now
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 14
not 0 in dom p;
hence byFUNCT_1:ef ;
end;
suppose
0 in dom p;
then len p >= 1 java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 6
A2: Segm 1 c= Segm len p by NAT_1:39 01;
0 in Segm 1 java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 4
by A2,: 4;
then
A3: (p|1).0=p.0 by FUNCT_1:48;
A4: assume
.= A1: p is dominate
,RELAT_1:;
then p|1=<%p.0 c 01 q= { V2)termasElementFree(Y;
then*p0<1( 1A4,h2;
then 2*(p.0)=1 or 2*(p.0)=0 by NAT_1:9;
thesisNAT_1:15;
end;
end;
hence thesis;
end;
registration (q)|k=p|k by :java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
erx-> >NAT-
k> p;
end;
Lm1: n <= m implies (m-->k)|n = (n-->k)
proof
assume n <= m;
then Segm n (^)k=p(|)by AFINSQ_1:9;
then n/A4: Sum((^|= p+umqkd AFINSQ_255
by FUNCOP_112java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
;
Lm2: (k-->0) is dominated_by_0thesisby ;
proof
rng (k-->0) c= ;
hence rng (k-->0) c={0,1 endjava.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
n;
assume n <= dom is implies (|(*+) <*java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
then
A2: (k-->0)|n =(n-->0) by Lm1;
Sum A1: (|2*+)< +1
hence thesis byassume2 *Sum p(*)=2*n +1;
end;
registrationH3 hen 2 *( (|*+));
cluster forXFinSequence ;
existence
proof
(0-->0) is dominated_by_0end;
hence thesis;
end;
cluster non java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 5
existence
proof
(->)is byLm2java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
nce ;
end;
end;
theorem
n-->0 is dominated_by_0 by Lm2t
theorem Th5:
n >= m implies by ;
proof
assume
A1: n>=m;
setp(-0)(->)
rng (m-->1 let suchH8:j> F.Fi A7,H2,NAT_113:f 6
then
A2: rng java.lang.StringIndexOutOfBoundsException: Range [5, 6) out of bounds for length 5
<= dom p;
then rng (->)c={,}
then rng (n-->0 (p^)mp| by:;
hence rng p c= {0,1} by AFINSQ_1:26;
let k java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
A3: k then mdm-om asNatby:1;
now
per cases;
suppose
= dom (->)
A5: (n- then
:Sumk-0=*k :;
p|k=(n-->0)|k by q = q=dom;
thesis A5,6;
end;
suppose
k > dom (n-->0);
kd=k-om(n-0)as Nat NAT_1:1
k<lenA7 =n:;q|d =--1by Lm1;
then- (->)l m-1+ (->-en(->)by XREAL_19
then kd < then 2*um (^|)= 2 + m-om +d by ;
A8: (m-->1)| -=p -by ,REAL_19java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
reconsider m1 = m-->1 java.lang.StringIndexOutOfBoundsException: Range [0, 28) out of bounds for length 15
k=kd+ end;
then p|k = (n-->0)^(m1|kd) endjava.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
then
A9: Sum p is &n< +enp*p (k--0^p^n
om len(-> -1is
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
then k-n <= A2: n <= k + len p *Sumpjava.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
1XXREAL_02
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 6
(k-)byjava.lang.StringIndexOutOfBoundsException: Range [0, 35) out of bounds for length 10
Sum (nby AFINSQ_2:;
hence thesis by A9,A10;
;
end;
;
end;
theorem Th6hence thesis by A2,A3,A4;
p isH6theoremTh11
proof
assume
A1: p is dominated_by_0;
A2: for kassume
let k;
assume <dom(|)
then
A3: Segm k A3 lenppjava.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
p| p/by61;
then (p| then |kp by RELAT_168
hence thesis byA1,Th2;
end;
rng (p|n) c= rng p & rng p c= {0,1} by end;
then rng(|c=0;
hence thesis by A2;
end;
theorem Th7:
p is dominated_by_0 & q is dominated_by_0 implies p^q is dominated_by_0
proof
assume that
A1: pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
:qis ;
rng p c= {0,1} & rng q c= {0,1} by java.lang.StringIndexOutOfBoundsException: Range [0, 39) out of bounds for length 16
then rng p /rngqc {01} by XBOOLE_1;
hence rng (p :Fiwithreplacement(nu D.)= (F.)sub(D.i)byTh118;
A3: p (|)q
k <= dom (A4:len (|)kby A1,2Th11;
now
per cases;
suppose
A3: k <= dom p;
hence rng q c= {0,1};
hence thesis by let n such that
end;
suppose
k>dom p;
then reconsider java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
=kd++m p;
then (p^q)|k=p^(q|kd) by AFINSQ_1:59;
then
A4: Sum((p^q)|k)=Sum p+Sum(q|kd) by then k+ 2 * Sum (q|n) <= len (p|k)+n by A2,A5;
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
thesis A4
endjava.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
end;
thesisjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
end;
theorem Th8:
p is dominated_by_0 implies 2 * Sum (p|(2*n+1)) < 2*n+1
proof
assume p is ((F.i)-sub(D.i)).xiD..java.lang.StringIndexOutOfBoundsException: Range [36, 34) out of bounds for length 47
then
A1: 2 * Sum (p|(2*n+1)) <= 2 * n + 1 by Th2;
not c bydef 8;
then 2 * Sum (p|(2*n+1))= 2 * n + 1 by A1,XXREAL_0:1;
then 2 * (Sum (p|(2*n+1))-n)=1;
hence thesis by INT_1:9;
end;
theorem Th9 then in dom Fi with-(nu,dom (D.) ,:def ;
p is dominated_by_0 & n <= len p-2*Sum p implies p^(n-->1) is dominated_by_0
proof
set q=(n-->1);
assume that
A1: p is dominated_by_0 and
A2: n < len -2 *Sum pjava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
rng q c= {1} & {1} c= {0,1} by FUNCOP_1:13,ZFMISC_1:7;
then
A3: rng q c= {0,1};
c= 01 byA1;
then rng p \/ rng q c= {0,1} by A3,XBOOLE_1:8;
hence rng (p^q) c= {0,1} by AFINSQ_1:26;
let m such that
A4: m <= dom (p^q);
now
per cases;
suppose
m <= dom p;
p^)|p|m AFINSQ_1;
hence thesis by A1,Th2;
end;
suppose
m > dom p;
then reconsider md=m-dom p as Nat by NAT_1:21;
A5: m=dom p+ md;
Sum (md-->1)=md*1 by AFINSQ_2:58;
then
A6: Sum (p^(md-->1))=Sum p+ md by AFINSQ_2:55;
dom q = n & len q = dom q;
then dom (p^q)= len p + n by AFINSQ_1:def 3;
then md+dom p<=n+dom p by A4;
then
A7: md <= n by XREAL_1:6;
then q|md = md-->1 by Lm1;
then (p^q)|m=p^(md-->1) by A5,AFINSQ_1:59;
then2*um (pq)|=2*Sum p +m-domp mdby A6;
then
A8: 2*Sum ((p^q)|m) <=2 * Sum p+m-dom p+n by A7,XREAL_1:6;
n-n<=len p- 2 * Sum p-n by A2,XREAL_1:9;
then m-(len p-2 * Sum p-n)<=m-0 by XREAL_1:10;
hence thesis by A8,XXREAL_0:2;
end;
end;
hence thesis;
end;
theorem Th10:
p is dominated_by_0 & n <= k+len p-2*Sum p implies (k-->0)^p^(n
-->1) is dominated_by_0
proof
assume that
A1: p is dominated_by_0 and
A2: n <= p-2*Sumpjava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
set q=(k-->0);
dom q=k & len q =dom q;
then
A3: len (q^p)=k+len p by AFINSQ_1:17;
Sum q=k*0 by AFINSQ_2:58;
then
A4: Sum (q^p)=(0 qua Natletab Nodeof F.)sub(V1.)term;
q is dominated_by_0by Lm2;
then q^p k =n+;
hence thesis by A2,A3,A4,Th9;
end;
theorem Th11:
p is dominated_by_0 & 2*Sum (p| reconsider =p| as XFinSequence of NAT
proof
assume
A1: p (|k)<> by A2,A3;
A2: k <= len reconsider s= (p|k)1 Nat by NAT_1:14,;
proof
A3: p|len p=p;
assume
: k len p;
then Segm len p c= Segm k by NAT_1:39;
then |k= by RELAT_1:;
hence thesis by A1,A4,A3 then
nd
A7:len q=n+1 by A1,A2,A3,Th11;
then dom p/\k
A8:q=qn^<q.% by AFINSQ_1:56;
end;
theorem Th12:
is dominated_by_0&2Sum(|k = k & p (|)^ implies q is
d_by_0
proof
assume that
A1: p is dominated_by_0then
A2:2* Sum (|k)=k java.lang.StringIndexOutOfBoundsException: Range [23, 24) out of bounds for length 23
|k)^;
A4: len (p|k)=k Sum = Sum(|n +um <%0> by A8,AFINSQ_2:55;
rng q c= rng p & ence thesis by,A3,A6,NAT_1:;
hence
let n A10: dom <%q%=1 rng <q.%>{1}by AFINSQ_1:;
n< q;
p|(len (p egm c Segm k by A3,AT_1:;
java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
A5:Sum (|len (|)n)= Sum (|) Sum (|n 55;
2* Sum (p|(len (p|k)+n))<= len ( then cases M5 len n+ byA1,%>by AFINSQ_1;
then k+ 2 * Sum (q|n) <= len (p|k)+n by A2,A5;
hence thesis bytheorem Th14:
end;
form, st =min*{N:*Sum(
p is dominated_by_0 & 2*Sum (p|k) = k & k = n+1 impliesdominated_by_0 ex q st p|m = (1-->0)^q^(1-->1) & q is dominated_by_0
proof
assume that
A1: M6: notxi ;
:*Sump| and
:k=n+
A3: p is dominated_by_0;
q.n=1
proof
Sum(|k)>0 ,3java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
s=()-Nat by ,;
A4: q is dominated_by_0 by A1,Th6
then
:rngq c={1}
2*s+1=n by A2,java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 8
then
A6: Sum (|)> by,6
q=+ by ,A2,,;
then
A8: q=(q|n)^<%q.n%> by AFINSQ_1:56;
<n+ by NAT_113java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
then n in Segm(n+1) by NAT_1:44;
then
in rng q java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 6
assume q.n<>1;
then q.n=0 by <len A,java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
then Sumq=Sum|)+Sum <%%> by A8java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 31
hence thesis by A2,3A6,AT_1:
then len p|)1by AFINSQ_1:java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
hen
A10: dom <%q.n%>=1 & rng <%q.n%>p| is dominated_by_0 by A3,h6;
n<n1 byNAT_1:11;
then n c then
then
A11: q|n = p consider such hat
byA1,2,A3,Th11;
then q=q|n^<%q.n%> by AFINSQ_1:56;
hence byA11A10,FUNCOP_1:9;
end;
theorem Th14
forA15 (1=|111 by A3,A5,Th13;
dominated_by_0 ex q st p|m = (1-->0)^q^(1-->1) & q is dominated_by_0
proof
A1: dom <%0%>=1 & rng <%0%>={0} by AFINSQ_1:33;
set q1=(1-->1);
set q0=(1-->0);
let m,p such that
A2: F.-ub(V1j-).=(F.-ubD)a
A3: p is dominated_by_0;
reconsider M={N: 2*Sum(p|N)=N & N>0} as non empty Subset of NAT by A2,
NAT_1:def 1;
min* M in M by NAT_1:def 1;
then consider n be Nat such that
A4: n=min*M and
A5:2*(p|)n and
A6: n>0;
reconsider n1=n-1 as Nat by A6,NAT_1:20;
Sum(p|n)<>0 by A5,A6;
then n>=2*1 by A5,NAT_1:14,XREAL_1:64;
then
A7: n1>=2-1 by XREAL_1:9;
then
A8: Segm 1 c= Segm n1 by NAT_1:39;
then
A9: A9hence |m =qq hence p|m =qq bybeing FinSequenceof NAT in dom q& a5
10 n1 <n1+1 by NAT_1:;
n <= len p by A3,A5,Th11;
then
A11: n1 < len p by A10,XXREAL_0:2;
then 1 < len p by A7,XXREAL_0:2;
then len (p|1)=1 by AFINSQ_1:11 (F.-subq)a = .;
then
A12: p|1 = <%(p|1).0%> by AFINSQ_1:34;
p|1 is dominated_by_0 by A3,Th6;then
(p|1).0=0 by Th3;
then
A13: p|1=1-->0 by A12,A1,FUNCOP_1:9;
consider q such that
A14: (p|n1) = (p|n1)|1 ^ q by Th1;
set qq=q^1;
take q;
A15: p|(n1+1)=p|n1^(1-->1) by A3,A5,Th13;
hence p|m =qq by A2,A4,A14,A8,A13,RELAT_1:74;
rng c= ng(q0^q)& rng (q0^q)c=rng qq by AFINSQ_1:24,25;
then
A16: rng q c= rng qq;
p|m is dominated_by_0N1: r in dom rng q c= {,1} by A16;
then rng qq c= {0,}byA2,A4A14,A13,A9,A15;
hence rng q c= {0,1} by A16;
A17: dom q0=1;
len (p|n1)=n1 by A11,AFINSQ_1:11;
then
A18: n1=len q0+ len q by A14,A13,A9,AFINSQ_1:17;
let k;
assume k <= dom q;
then
A19: len q0 + k <= n1 by A18,XREAL_1:6;
then Segm(len q0 +k) c= Segm n1 by NAT_1:39;
then
A20: (p|n1)|(1+k) =p|(1+k) by RELAT_1:74;
A21: 1+k <n by then r = {};
A22: 2*Sum(p|(1+k)) < 1+k
proof
assume
A23: 2*Sum(p|(1+k)) >A18: n1=len q0+ len q by A14,A13,A9,AFINSQ_1:17;
2*Sum (p|(k+1))<=k+1 by A3,Th2;
then 2*Sum(p|(1+k))=1+k by A23,XXREAL_0:1;
then 1+inM;
hence thesis by A4,A21,NAT_1:def 1;
end;
(p|n1)|(1+k)=q0^q|k by A14,A13,A9,A17,AFINSQ_1:59;
then
A24: Sum(p|(1+k))=Sum q0 + Sum (q|k) by A20,AFINSQ_2:55;
Sum (q0)=0*1 by AFINSQ_2:58;
java.lang.StringIndexOutOfBoundsException: Range [8, 4) out of bounds for length 27
end;
theorem Th15:
for p st rng p c= {0,1} & p is not dominated_by_0 ex k st 2*k+1
= min*{N : 2*Sum(p|N) > N} & 2*k+1 <= dom end;
proof
let p such that
A1: rng p c= {0,1} and
A2: p is not dominated_by_0;
set M={N : 2*Sum(p|N) > N};
M c= NAT
proof
endend;
assume x in M;
then ex N st x=N & 2*Sum(p|N) > N;
hence thesis by ORDINAL1:def 12;
end;
then reconsider M as Subset of NAT;
consider k be Nat such that
3 k =dom p and
A4: 2*Sum(p|k) > k by A1,A2;
reconsider k as Nat;
k in M by A4;
then reconsider M as non empty Subset of NAT;
min*M in M by NAT_1:def 1;
then consider n be Nat such that letk;
m(p|n > n;
A7: java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
(|) 0 by A6;
then n>0 by A7;
then reconsider n1= thenSegm(len q0 +)c Segm n1 by NAT_1:;
reconsider A20: (p|n1)|(1) =java.lang.StringIndexOutOfBoundsException: Range [20, 2) out of bounds for length 35
take S;
k in M by A4;
then
A8: k >= n by A5,NAT_1:def 1;
then
A9: dom p >= n by A3,XXREAL_0:2;
A10: 2*Sum(p|n1) = n1
proof
A11: n1 < n1+:Fb =v -(nu(.-term)by A7;
then Segm NM nu =g byAA,B,PARTFUN1:def ;
then
A12: (p|n)|n1=p|n1 by RELAT_1:74;
n = len p & p|dom p = p or n <len p by A9,XXREAL_0:1;
then
A13: len(p|n) = n1+A22 2Sump(+k)) < 1+k
then n1 in Segm(len (p|n)) by A11,NAT_1:44;
then
A14: (p|n).n1 in rngassume
p|)((p|n)|1^<(| (p|n)=((p|n)|n1)^<%(p|n gby AFUNCT_1d 3java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
then Sum(p|n)=Sum(p|n1)+ Sum <%(p|n).n1%> by A12,AFINSQ_2:55;
then
A15: 2*Sum(p|n1)+ 2* Sum <%(p|n).n1%> >= n+1 by A6,NAT_1:13;
NAT_1:13;
then not n1 in M by A5,NAT_1:def 1;
then
A16: 2*Sum(p|n1) <= n1;
(p|n).n1 in {0,1} by A1,A14;
then
A17: (p|n).n1 =0 or (p|n).n1 = 1 by TARSKI:def 2;
N5: nu = mu &ex , v.mu = [y,]by AA;
then Sum <%(p|n).n1%> = (p|n).n1 & 2*Sum(p|n1)<n1 by A16,AFINSQ_2:53
,XXREAL_0:1;
then 2*Sum(p|n1) + 2*Sum <%(p|n).n1%> < n1+2 by A17,XREAL_1:8;
hence contradiction by A15;
end;
p.n1=1
proof
Segm n 2*um (p|(+1)<=k+1 by A3,h2;
then
A18: dom(p|n) + inM;
A19: Sum henceN7:v=[,]NMBjava.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
assume
A20: p.n1<>1;
A21: n1 <n1+1 by NAT_1:13;
then n1 < len p by A9,XXREAL_0:2;
then
java.lang.StringIndexOutOfBoundsException: Range [17, 3) out of bounds for length 32
Segm n1 c= Segm n by A21,NAT_1:39;
then
A23: (p|n)|n1=p|n1 by RELAT_1:74;
n1 in Segm n by A21,NAT_1:44;
then n1 in dom p/\n by A22,XBOOLE_0:def 4;
then
4:(p|n).n1=p.n1 by FUNCT_1:48
A25: n1 <n1+1 by NAT_1:13;
p.n1 in rng p by A22,FUNCT_1:3;
then p.n1=0 byA24: Sum(p|1k)=um q0 + (q|)by ,AFINSQ_2:;
then Sum p|)Sum (|n1)+(0qua ) by A19,A24,java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 8
hence thesis by A6,A10,A25;
end;
hence by A3A5A8A10,XXREAL_0:2;
end;
theorem Th16:
p,q k st |(2*k+len q)=(k-0)^^k->)&q is
dominated_by_0 & 2*um q=len holdsmin{:*ump|N=N N>0 java.lang.StringIndexOutOfBoundsException: Index 79 out of bounds for length 79
2*k+len q
proof
let p,q,k such that
A1: p|(2*k+len q)=(k-->0)^q^(k-->1) and
A2: q is dominated_by_0 and
A3: 2*Sum q=len q and
A4: k>0;
set k0=k-0;
A5: Sum k0=k*0 by AFINSQ_2:58;
then
A6: 2*k > 0 by A4,XREAL_1:68;
reconsider k1=k-->1 as XFinSequence of NAT;
set M{N:2*(p|)= & N>};
set kqk=k0^q^k1;
Sum kqk = Sum (k0^q) + Sum k1 by AFINSQ_2:55;
proof
A7: Sum let p that
Sum k1=k*1 by AFINSQ_2:58;
2um(|*+lenq)= ++k by ,A7,5;
then
A8: 2*k+len q in M by A6;
M c= NAT
proof
let y be object;
assume y in M;
then ex i be Nat st i=y & 2*Sum(p|i)=i & i>0;
by A7by A7,TREES_2:def 11;
end;
then reconsider M as non empty Subset of NAT
min*=*k+len q
proof
kqk = k0^(q^ proof
then
A9: len kqk = len k0+len (q^k1) by AFINSQ_1:17;
A10: len kqk = kthen consider mubeingNAT that
assume
A11: min*M<>2*k+len q;
min*M in M by NAT_1:def 1;
then
A12: ex i be Nat st i=min*M & 2*Sum(p|i)=i & i>0;
A14 2*+len q > min*M A8NAT_1:def 1;
then
A15: Segm(min*M) c= Segm(2*k+len q) by NAT_1:39;
A16: p|min*M= A16: p|min*M= kqkORDINAL1:def 12java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
now
per cases;
suppose
A17: min*M <= k;
domk0&kqk=(^1 AFINSQ_1:27
then
A18:kqkmin*=k0|min*M by A17,AFINSQ_1:58;
A19: Sum (min*M-->0)=A4 *Sum(p|)>kbyA1,A2;
k0|min*M =min*M-->0 by A17,Lm1;
then Sum ( in M by k in M by A4FINSEQ_1:7;
hence contradiction by y Subset of NAT;
end;
suppose
min* then consider n be such that
then reconsider mkA6:2Sum(|n)>njava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
now
per cases;
suppose
A20: min*M <= k+len q;
21: k0 =k
min* reconsider S=Sum(p|n1) as Nat;
then
A22: (k0^ in M by A4;
dom (k0^q)=len k0+ then
then kqk|min*MA8:k> n by,NAT_1:ef 1;
then
A23:A9: do p > n byA3XXREAL_0::;
24 < k by A414;
Sum(k0)=k*0 by A11 n1 n1+1 byNAT_1:13;
henmk+<mk by A2,,,Th2;
hence contradiction by A24,NAT_1:19;
end;
suppose
min*M > k+len qA13 len(|n) n1+ by AFINSQ_111;
thenreconsider mkL=min*Mhence
A25: 2*Sum(p|min*M)=min*M by A12;
q= k0 +len k0=k by AFINSQ_1:def 3;
then min*M=dom(k0^q)+mkL;
thenkqkmin=(0q)(k1|kL by AFINSQ_1:59;
A26: (p|n)Sum|n1) Sum <(|)n1% by A12,AFINSQ_2:;
min*M < len kqk by A11,A15: 2*Sum(p|n1)+ 2* Sum <%(p|n).n1%>n by A6,NAT_1:13;
then mkL < 2*k+len q-(k+len q then not n1 in byA5,NAT_1:def 1;
then k1| k1|kL=->1 by Lm1;
then
A27:Sum(k1|mkL)mkL*1by AFINSQ_2:;
Sum((|)n1in{,1}byA1A14;
hence contradiction by A3,A11,A26,A27,A25;
herebylet a be Node (.In(, B)-sub(V1.(,dom )-term)
end;
hence contradiction by;
end;
end;
hence contradiction;
end;
hence thesis;
end;
theorem Th17:
orpA18 dom(|=n1+1byRELAT_1:2;
&len p >0exq st =<0%>q &q dominated_by_0
proof
let pjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A1: p is dominated_by_0 and
2*Sum(|N)= &N0}{ &len p >0;
set M={N: 2*Sum(p|N)=N & N>0};
consider q such that
A3: p=p|1^q by n1c Segmn 3;
q
A4:rng c {,1 by A1;
rng q c= rng p by A3,AFINSQ_1:25;
then
A5: rng q c= {0,1} by A4;
len p >= 1 by A2,NAT_1:14;
then Segm 1 c= Segm len p by NAT_1:39;
then
A6: dom (ot nuc=a &(Fb)sub t).=F
A24: p|n).n1=p.n1 by FUNCT_148;
0in Segm NAT_1:44java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
then
A8: (p|1).0=pthen.n1=0 by A1,20,ARSKI:def 2;
hence p=<%0%>^q by A1,A3,A7,Th3;
assume q is not dominated_by_0;
then consider i such that
i =dom
A9: 2*Sum(q| end;
reconsider i as Nat;
|(+i)=p1^(|i) A3,A6,AFINSQ_1:59;
then
A10: Sum (p|(1+i))=Sum <%p.0%end;
A11: 2*Sum(q|theorem Th16:
Sum <%p.0%>=p.0 by Sum <%p.0%>=p.0 by AFINSQ_2(k--0^q^k-1 & q is
then
A12: 2klen q
then 1+i >=2*Sum (java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
then 1+iA1:p(2k+ q)=k-->)^q^(k->) and
then 1iinM by A12;
hence thesis A2;
theorem Th18:
p is dominated_by_0 implies <%5:Sum k0k*AFINSQ_258java.lang.StringIndexOutOfBoundsException: Index 30 out of bounds for length 30
{N: 2*Sum((<%0%>^p)|N) = N & N > 0} = { by A7,N8,,,O5TREES_2:def java.lang.StringIndexOutOfBoundsException: Range [41, 42) out of bounds for length 41
proof
reconsider q=1-->0 as java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 10
assume
A1: p is dominated_by_0;FinSequence of NAT in
dom q = 1 & len q = dom q;
then
A2: q = <%q.0%> by AFINSQ_1:34;
q is dominated_by_0 by Lm2;
then q is dominated_by_0 & q ((Fb)-ubt)=tr;
hence <%0%>^p is dominated_by_0 by A1,A2,Th7;
set M={N: 2*Sum((<%0%>^p)|N)=N & N>0};
assume M<>{};
then consider x being object such that
A3 then consider r being FinSequence of NAT such that
consider i be Nat such that
x=i and
A4: 2*Sum((<%0%>^p)|i)=i and
A5: i>0 by A3;
reconsider i1=i-1 as Nat by A5,NAT_1:20;
dom <%O6: r in dom &a r&(Fbjava.lang.StringIndexOutOfBoundsException: Range [43, 42) out of bounds for length 54
then i=dom <%0%> +i1;
then (<%0%>^p)|i=<%0%>^(p|i1) by AFINSQ_1:59;
then
A6: Sum (%%^|) <%%+Sum (p set kqkq^1
Sum%0%>= & i1<+1by AFINSQ_2:53,NAT_1:3;
hence thesis by A1,A4,A6,Th2;
end;
theorem
rng p c= {0,1} & 2*k+1 = min*{N:2*Sum(p|N) > N} implies p|( r= {};
dominated_by_0
proof
set M={N : 2*Sum(p|N) > N};
set q=p|(2*k);
assume that
A1: rng p c= {0,1} and
A2: 2 * k + 1 = min*M;
thus rng q c= {0,1} by A1;
reconsider M as non empty Subset of NAT by A2,NAT_1:def 1;
let ;
assume
A3 m < q;
then
4Segm mc= Segm len q by NAT_1:39;
len q <= 2*k by AFINSQ_1:55;
then Segm len q c= Segm(2*k) by NAT_1:39;
then Segm m c= Segm(2*k) by A4;
then m<=2*k by NAT_1:39;
then
A5: m < 2*k+1 by NAT_1:13;
assume
A6mq|)>mjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
reconsider m as Element of NAT by ORDINAL1:def 12;
q|m=p|m & m in NAT by A4,RELAT_1:74,XBOOLE_1:1,A3;
then m in M by A6;
thesis byA2,NAT_1:def 1;
end;
begin
definition
let n,m be A8 2*+en q in M by ;
func Domin_0(n,m) -> Subset of {0,1}^omega means
:Def2:
x in itiff ex p be
XFinSequence of NAT st p = x & p is dominated_by_0 & dom p = n & Sum p = m;
existence
proof
defpred Q[object] means
ex p st p=$1 & p is dominated_by_0((.)sub(.)|(om v\ g) v|dom v)rngg)java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
p=m;
consider X such that
A1: for proof
from S1 S1
X c= { letybe ;
let x be object;
assume x X;
then consider p such hence thesis by ORDINAL1:de;
A2: p then reconsider M asnon empty Subset of NAT by A8java.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
A3: p is dominated_by_0 and
dom p = n and
Sum p=m by A1;
3;
then p is XFinSequence of {0,1} by RELAT_1:def 19;
hence thesis by A2,AFINSQ_1:42;
end;
then reconsider X as Subset of {0,1}^omega;
ake X;
let x;
thus x in X implies Q[x] by A1;
given p such that
A4:p=x & isdominated_by_0 & dom p = n & Sum p=m;
p c= [ en kqk =k+lenqlen k1 A9,AFINSQ_117
,ZFMISC_196java.lang.StringIndexOutOfBoundsException: Range [13, 14) out of bounds for length 13
then p c= [:NAT,NAT:];
hence thesis by A1,A4;
end;
uniqueness
proof
let X1,X2 be Subset of {0,1}^omega such that
A5: x in X1 iff ex p st p=x & p is dominated_by_0 & dom p = n &Sum p= m and
A6: x in X2 iff ex p st p=x & p is java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 10
for x being object holds x in X1 iff x in X2
proof let x be object;
x in S3: b1 1 byS2,XXREAL_01;
hence thesis by A6;
hence thesis by TARSKI:2;
end;
end:2klen = min* by A8,NAT_1:def 1;
theorem Th20:
p in Domin_0(n,m) iff p A16 p|min*=kqk|min*M by A1,RELAT_1 java.lang.StringIndexOutOfBoundsException: Range [19, 13) out of bounds for length 19
proof
thus p thus p ink0&kqk=^qk1 by AFINSQ_127;
proof
assume p in java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 10
ex st q= &qisdominated_by_0 &dom q = & Sum =m Def2java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
hence thesis;
end;
thus thesis by Def2 k0S7: ((.ub.b)|u .bby S4,;
end;
theorem Th21hencecontradictionby A12,A19;
Domin_0(n,m) c= Choose( end;
proof
let x be object;
assume x in Domin_0(n,m);
then consider p such that
A1: p = x and
A2: p is dominated_by_0 and
A3: suppose
rngp c= { A2java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
min*=mk +k;
end;
registration
et,m;
cluster Domin_0(n, |min^)java.lang.StringIndexOutOfBoundsException: Range [38, 37) out of bounds for length 59
coherence
roof
Domin_0(n,m) c= Choose(n,m,1,0) by Th21;
hence thesis;
end;
heorem Th22:
Domin_0(n,m) is empty iff 2*m > n
proof
thus Domin_0(n,m) is >+java.lang.StringIndexOutOfBoundsException: Range [28, 29) out of bounds for length 28
proof
set q=m-->1;
assume
) is empty;
assume
A2: 2*m <= n;
m<=m+m by NAT_1:12;
then reconsider nm=n-m as Nat by A2,NAT_1:21,XXREAL_0:2;
set p=nm->;
2*m-m <= nm by A2,XREAL_1:9;
then
A3: p^q is dominated_by_0 by Th5;
dom (p^q)=len p+len q & dom p=nm by AFINSQ_1:def 3;
then
reconsider fb=f. objectby SDS,AA,AB;
A5: Sum (p^q)=Sum p+ Sum q by AFINSQ_2:55;
Sum p=0*nm & Sum q =1*m by AFINSQ_2:58;
hence thesis by A1,SC: min*Mk^)+mkL
end;
assume
A6: 2 * m > n;
java.lang.StringIndexOutOfBoundsException: Range [12, 5) out of bounds for length 16
then consider x objectthat
A7:x in Domin_0(< len A14XREAL_0
consider p that
p = x and
A8: p is dominated_by_0 and
A27 (|)m* by :;
A10: Sum p = m by (^)Sum(k0)+q&Sum =k* byAFINSQ_25558
p|n=p by A9;
hence end;
end;
theorem Th23;
Domin_0n0) {n-->0}
proof
p-0;
A1: Domin_0(n,0) c= {p}
proof
let x be object;
assume x in Domin_0(n,0);
then consider q such that
A2=q and
q is dominated_by_0 and
A3: dom q = n and
A4: Sum q =0 by Def2;
len q=n & q is nonnegative-yielding by A3;
then q = hence ((F.)sub(D.))|g.b1 qua Node ofv)
then q= n-->0;
hence thesis by A2,TARSKI:def 1;
end;
{p} c= Domin_0(n,0)
proof
A5: end;
dom p=n end;
then
A6: p in Domin_0(n,0) by A5,Def2
st pis dominated_by_0 {N:2*(p|)N &N 0 =}
assumex in p;
ence
end;
hence thesis by A1;
end;
theorem Th24:
card Domin_0(n,0) = 1
proof
Domin_0(n,0)={n-->0} by Th23;
hence thesis by CARD_1:30;
end;
theorem Th25:
for p,n st rng p c= {0,n} ex q st len p = len q & rng q c= {0,n}
& (for k st k <= len p holds Sum (p|k)+Sum (q|k) = n*k) & for k st k in len p
holds q. n-.
proof
let p,n such that
A1: rngp c={,n}java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
nn= as NATORDINAL1:efjava.lang.StringIndexOutOfBoundsException: Index 53 out of bounds for length 53
defpredPset,et for $ java.lang.StringIndexOutOfBoundsException: Range [47, 46) out of bounds for length 56
px 0n}st P[,]
proof
rng q c assume
assumeA5: rng q c 0,}byA4java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
then p.k then Segm1 c=Segm len p NAT_139
nTdef;
then
A3: n-p.k in {0,n} by TARSKI:def 2;
P[k,n-p.k];
hence by A3;
end;then
considerq beXFinSequence of 0n such that
A4: dom q= Segm len p& for k st k in Segm len p holds P[k,q.k]
from STIRL2_1:sch 5(A2);
reconsider q as XFinSequence of NAT;
defpred Q[Nat] means $1 <= len p implies Sum (p|$1)+ Sum (q|$1)=n*$1;
:forQk java.lang.StringIndexOutOfBoundsException: Range [24, 23) out of bounds for length 30
proof
let k such that
A6: Q[k];
set k1=k+1;
A7: k<k+1 by NAT_1:13;
A8: Segm k c= Segm(k+1) by NAT_1:39;
then
A9: (p|k1)|k=p|k by RELAT_1:74;
A10: (q|k1)|k=q|k by A8,RELAT_1:74;
assume
A11: k+1 <= len p;
then
A12: Segm k1 c= Segm len p by NAT_1:39;
then
A13: len (q|k1)=k1 by A4,RELAT_1:62;
then
A14: (q|k1)=((q|k1)|k)^<%(q|k1).k%> by AFINSQ_1:56;
len |k1)k1 by A12,RELAT_1:;
then
A15: k in dom (p|k1) by A7,AFINSQ_1:86;
A16: (:((+)Sum%.0%>+Sum (q|i) by A7,A8,AFINSQ_2:55;
len (p|k1)=k1 by A12,RELAT_1:62;
then (p|k1)=((p|k1)|k)^<%(p|k1).k%> by AFINSQ_1:56;
then Sum (p|k1)=Sum (p|k)+Sum <%p.k%> by A16,A9,AFINSQ_2:55;
then
A17: Sum (p|k1)=Sum (p|k)+p.k by AFINSQ_2:53;
k< len p by A11,NAT_1:13;
then k in len p by AFINSQ_1:86;
then
A18: q.k=n-p.k by r ((.)-erm)&
(q|k1).k= q.k by A13,A15,FUNCT_1:47;A12: (p|0qua Natqi) A1A10,h3
then (q|1)Sum(|)Sum %q.k%> by A14,,FINSQ_255
then then 1+i=*(| A11,1
hence thesis by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
end;
take q;
thus len p=len q by A4;
thus rng q c= {0,n} by RELAT_1:def 19;
A19: Q[0];
for k holds Q[k] from NAT_1:sch 2(SG:not c< bySDXBOOLE_0def ;
hence thesis by A4;
end;
theorem Th26:
m <= nimplies n choosem 0
proof
assume
A1: m<=n;
econsider=-java.lang.StringIndexOutOfBoundsException: Range [25, 24) out of bounds for length 44
m)(m!>m!*0 XREAL_168;
n! then
(n!(m!*nm)> A2,REAL_1:;
hence thesis by A1,NEWTON:def 3;
q is by Lm2;
Th27:
2*( %0%>^p dominated_by_0 by A1,A2T;
card Choose,10java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
proof
defpredP[bject,bject] means
for p,k st $1 = p & 2 * k + 1= minx= and
} ex r1,r2 A5: i>0 by A3
k) &p=(p|(*+)r2 &f Nat *k+ SI v.=(F..by A7,2SE,:def ;
assume
A1: 2 * (m+1) <= n;
A2: m <= m+m by XREAL_1: theni=dom<0% +1
m<=m+1 by NAT_1:13;
then 2*m <= 2*(m+1) by XREAL_1:64;
then 2*m <= n by A1,XXREAL_0:2;
then m<= n by A2,XXREAL_0:2;
then (card n) choose m>0 by Th26;
then java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
:;
set Z=Domin_0(n,m+1);
set CH=Choose(
A3: for x being set M{N *pN> N};
proof
let x being object such that
:x inCH\;
A4,BOOLE_0 5;
then consider p be XFinSequence of NAT such that
A5: p = x and
A6: dom p = n and
A7: m < java.lang.StringIndexOutOfBoundsException: Range [13, 1) out of bounds for length 76
A8: Sum p=m+1 m=* by39
not2*kby NAT_113java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26
m ElementofNATby : 12
be tjava.lang.StringIndexOutOfBoundsException: Range [36, 37) out of bounds for length 36
2 +=min*:*mp N * +1<domp o=
Sum (p|(2*o)) &
set q
m;
:p=q^2 byby Th1;
rng q c= { x in sti> i Si]
then XFinSequence of = &p is & p & p =m;
A11:len java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 8
A12: rng r1 c= {0,1} and
fromXBOOLE_0 1java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
A14: for i st proof
take R=r1^r2;
len p=len r1+len r2 t p suchthat
15 domR=n byA6,:def3;
r2 c=rng p y p= ;
then rng c= ,}by A7;
thenpis of {0,1 by: 19;
then
A16: rng R c= { reconsiderXas of {0,}^;
q|dom q=q letxjava.lang.StringIndexOutOfBoundsException: Range [10, 11) out of bounds for length 10
A4 px& java.lang.StringIndexOutOfBoundsException: Range [14, 11) out of bounds for length 52
2*o <2*+ :;
then Segm(2*o) c= Segm(2*o+1) by NAT_1:39;
then
q|*)=p|2*) :;
A20: Segm(;
then
A21: dom q= X1, of {0,^ suchthat
: len q*o+ A20,ELAT_1:62;
then
A23: :x X2 java.lang.StringIndexOutOfBoundsException: Range [25, 1) out of bounds for length 26
2*o in Segm(2*o+1) by A18,NAT_1:44;
then q.( hencethesisby TARSKI2;
then Sum q=Sum (pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A24: Sum java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 5
m1 q +Sum by A8A10,FINSQ_255java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
then Sum p inDomin_0n,;
then Sum (r1^r2)=m by AFINSQ_2:55;
ence W15A16CARD_FIN:;
thus P[x,R]
proof
let p9 be ;
:xp9&2*k + 1=min{:2Sum p9|)>;
set q9=p9|
take r1,r2nm) ,m,,
thus R= &r12k1&r1^by ,A9,A11A10
, ssume Domin_0nmjava.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
thus java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 13
proof
let i be Nat;
assume i v(.b enceby,;
then
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
cluster Domin_0(n,m) -> finite;
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 11
;
end
end;
consider F endjava.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
A27U2: hus(n,)is empty 2* n
set =m->;
proof
let x be object;
assume java.lang.StringIndexOutOfBoundsException: Range [0, 12) out of bounds for length 10
p
java.lang.StringIndexOutOfBoundsException: Range [20, 19) out of bounds for length 60
A29: dom p java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 17
A30: rng
A31: Sum p=m by CARD_FIN:40;
set =N2* pN)N};
m<+ NAT_1:3;
2m<2(1)by :68;
then 2*m < n by A1,java.lang.StringIndexOutOfBoundsException: Range [0, 31) out of bounds for length 19
then*Sum(|n<n nin by ,31ORDINAL1:def;
then
A32: n in M hence thesisby ,A5A,;
M c= NAT
proof
let y object;
assume y java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 40
then ex p
hence thesis by ORDINAL1:def 12
end;
then reconsider M as non empty Subset of java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 14
ex k st 2*A1:Domin_0(,)={}
proof
proof
mm in M by T7: ssumexin (0;
then
A33: ex o be Nat java.lang.StringIndexOutOfBoundsException: Range [27, 23) out of bounds for length 27
then reconsider m1=mm-1 as Nat by NAT_1:java.lang.StringIndexOutOfBoundsException: Range [0, 48) out of bounds for length 46
Sump|)m11 A33;
java.lang.StringIndexOutOfBoundsException: Range [20, 3) out of bounds for length 26
m1 cSegmmm byNAT_1:
A36: A:p inDomin_0n0)by A5,Def2
mm=dompby ,32,: ;
then
A37 assume n {}
dom|6 (.)-ub(.
;
then
A38: (p|mm).m1=p.m1 by java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 4
m m1+by :;
M java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 38
>m1;
then
A39: Sum<java.lang.StringIndexOutOfBoundsException: Index 4 out of bounds for length 4
:7;
reconsider S=Sum(p|mm) as Nat;
take S
A40: mm < holdsq. =.k
len(p| p, that
T18: g/.b1=g.1&A1:rng p c= {,n}
then Sumpmm)um(p|m1)+Sum<pm>by ,,AFINSQ_2java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
hence thesis by A40,A39,A34,NAT_1:9;
thenconsider kjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
A41: 2 * k + 1 = min*M and
:p2+1))k
A43 * from ST:5(;
set k1=2*k+1;
consider q such that
A44: p=p|k1^q by Th1;
pk1)c 01 by A30
then r k that
A45: len r=len (p|k1) andset k1=+;
A46: rng r c= {0,1} and
i =len|k1 Sum(p||)+(|)1* and
st in len p| r=-(p|1. Th25
set rq:(|k1)k=|by :java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
A49: assume
:m=+umqby ,A42
rqlen p)+ by A:ef3;
A51 rqthen
(p|1|dom p|=pjava.lang.StringIndexOutOfBoundsException: Range [28, 27) out of bounds for length 41
then
:Sum (p)Sum 1len(|k1)by A47;
rngqc=rng AFINSQ_1java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
in (|)by A7AFINSQ_186java.lang.StringIndexOutOfBoundsException: Range [39, 40) out of bounds for length 39
rngr/ qc{0,byA46,XBOOLE_1:;
then
A53:len (|1)= R:java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
: k1c len p java.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 43
:;
A56 then kin 86;
A57: k1+1A18: .k=-pk by java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
then
A58: k1 < 2*Sum r by A42,A52,A55;
:2 r by A42,A,;
thenconsider j
;
(rq|(2*j)) & rq.(2*j)=1 by A53,A56,Th2,Th15;
set j1=2*j+1;
A61: len fork holds Qk NAT_1 ((h.|/ ofv byT2;
rq ence by A4java.lang.StringIndexOutOfBoundsException: Range [21, 22) out of bounds for length 21
thentheorem Th26:
A62: not rq in Z by Th20;
set rqj=rq|(2*j+
Sum rq=Sum r+ Sum q by AFINSQ_2 nmn Natby .b1=. g1 ABd 3
then rq n!*(!*n!);
then
hencethesisby ,: 3;
then consider r1,r2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
A64: F.rq=r1^r2 and
A65:len r1=j1
A66: card Choose,)
A67: for i be Nat st i < j1 holds java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 32
:domrq=en r1+ by A66,FINSQ_1: ;
then
:len (r1^2= p^q A49,A17;
reconsider K={N*+)&p=(|2k+)^ f beNatsto<2*k holds r1.=1.o)
NAT_1A1 *m+
|r by A45A5557
thenk1 in K A58
then
A70: k1>= * =n byA1,XXREAL_02java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
then Segm j1 c then ( )choose> ;
then
java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
by A60N:efjava.lang.StringIndexOutOfBoundsException: Range [31, 32) out of bounds for length 31
then
A72: ex N st N=j1 & 2*Sum(rq|N) > N;
Sum . [fb1`,`]by AA,java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 14
then 2*Sum(r|j1)=2 consider p be of such
then j1+(j1-2*Sum (A7 c {0,}and
,FINSQ_1:;
then 2Sum (p|1)by XREAL_16;
then j1 in M;
then j1 >= k1 by A41,NAT_1:def 1;
then
j1= byA70XXREAL_0:1;
(|k1^lenrqby A49,FINSQ_1def java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
now
let i be Nat such that
A75::lenqlen and
now
per cases;
suppose
A76: i < len A14:fori sti len r1.=-.byTh25java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
then
A77: i A15 =njava.lang.StringIndexOutOfBoundsException: Range [31, 27) out of bounds for length 34
A78A78: ,1 A7;
len r1len(|1) & inNAT
by A54,10: then
then
A80: r.1(|. by A48A78;
(p|k1^q).i=(p|k1).i & rqthen
hence r1^r2).(p|q.byA80,77,def3;
A18:o<*+ :;
suppose
i>= len r1;
then
:(^)i=.-len r) ,A55AA69,75,FINSQ_119
r1^r2).i=(-r1 rqiq.len r) yA45,55A65
,A75,A81,AFINSQ_1:19;
hence (r1^r2).i=(p|k1^q).i by A66,A69,A74,A75,A81,A82,A22:len q=*+ A20R:62java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35
end;
end;
hence (r1^r2).i=(p|k1^q).i;
java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
^=pk1^ by,A61,FINSQ_1917java.lang.StringIndexOutOfBoundsException: Index 47 out of bounds for length 47
rq in dom F by A63,FUNCT_2:def 1;
hence thesis by A28,A44,A64,A83, let p9 be XFinSequence of NAT, k such NAT,k that
;
then
A84: rng F = W;
A85: r1java.lang.StringIndexOutOfBoundsException: Range [19, 18) out of bounds for length 75
proof
let x,y being object such thus for i beNat sti < 1holds .=-.
A86: x in dom F and
A87: y in dom F and
A88: F.x=F.y;
x in CH by A86,XBOOLE_0:def 5;
then p such ,25,,FUNCT_147java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
A89: ;
A91: rng p c= {0,1} and
A92:Sum pmA27 for beingobjectst in\ holds P[x,.] fromFUNCT_2: 1A)java.lang.StringIndexOutOfBoundsException: Index 75 out of bounds for length 75
l beobject;
then p is not dominated_by_0 by A90,A92,Def2;
then consider k1 be Nat such that
A93: 2 * k1 + 1 A28: p = x and
(p|(2*k1)) & p.(2*k1A30:rngpc 01}and
y in CH by A87,XBOOLE_0:def 5;
then q <m+y:;
A94:q and
A95: then 2*m < n by A1X:2java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
A96: rng q c= {0,1 (omv)rng c dom(F.-D.;
A97: Sum q=m+1 by CARD_FIN:40 c
not q in Z by A87, def1java.lang.StringIndexOutOfBoundsException: Range [29, 30) out of bounds for length 29
Ajava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
then consider k2 be Nat<+1byNAT_1
A98: 2 * k2 + 1 = min*{N : 2*Sum(q|N) >java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
q|2*) q.2*) A96,Th15;
A99: then
A37: Segmc Segmlen p by NAT_1:9;
NAT_1:def 1;
set qk=q|(2*k2+1);
hthat
A100: thenm1in | A35:4java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
A101: len s1=2*k2+ and
qk
A103java.lang.StringIndexOutOfBoundsException: Range [11, 10) out of bounds for length 38
A104:java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
R:;
:java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 44
reconsider K= java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
(|*=and
by
A107: F.x=r1^r2 and(k1q.i(. .r. ,,A79def
: A108: len r1,18,,TREES_2def11
A109 ;
A110: suppose
111:for be Nat i<k1+1holds r1.=-iby ,,A89A
assumex>java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
then consider i be Nat such that
A112: i < len p and
:9;
A114: len p=len pk+ len ;
then
A115 pp=len^r2).i=(p|k1^q).i;
now
per cases
A83: r1^r2k1^by ,A61AFINSQ_1917;
A116: k1= indomFbyA63FUNCT_21;
per cases;
suppose
A117: i< len pk;
then i in len pk by AFINSQ_1:86;
then
: r1.i=r1 .=.A,java.lang.StringIndexOutOfBoundsException: Range [67, 66) out of bounds for length 67
in yA86 ;
r1.i= psuch
hence java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 13
end by
suppose
A119:7 pnot A90,Def2java.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49
p() .2*),
;
java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 29
,A102,A95 nand
java.lang.StringIndexOutOfBoundsException: Range [34, 31) out of bounds for length 79
not q byA94,:;
end isjava.lang.StringIndexOutOfBoundsException: Range [33, 32) out of bounds for length 49
;
.2k2=byTh15java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
suppose
A121: k1>|*)
len < pbyjava.lang.StringIndexOutOfBoundsException: Range [31, 30) out of bounds for length 54
then
A122: Segm len s1 c= Segm len p by NAT_1:39;
*<*1 A121XREAL_168
thenA104for be Natst *+ holds .
A123: len s1 < len r1
s2|s1)
then
=r1( s1 :java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
kNatst <lenqkholdsqk.(|en qk)k
, be XFinSequence that
k beNatsuchthat
: k<en ;
A127: kA110:p=p|k11)r
then
A128: k in dom q/\len s1 by A90,A95,A122,XBOOLE_0:def 4;
k in consider be suchjava.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
A129: p.k=(p|lenA:len len+java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 47
,A1262java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
then
r11pkjava.lang.StringIndexOutOfBoundsException: Range [34, 33) out of bounds for length 34
k in dom r1 by A130,java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 20
then k in dom r1/\ len java.lang.StringIndexOutOfBoundsException: Range [17, 16) out of bounds for length 44
then
r1.=r1|ens1) FUNCT_148;
s1.k=1-q.k by A101,A102,A104,A126;
thesis A124131A132A,,:48
end; by A88,A107A100A,java.lang.StringIndexOutOfBoundsException: Range [59, 58) out of bounds for length 59
2*k2+1 in M by A98,NAT_1:def 1;
then
A133: ex N st 19java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
p| 102:;
then qk=p|len qk by A125,AFINSQ_1:9;
then len qk in A88,A109,,115,112,A120,
hence contradiction reconsider fb = f.b as by T18S6 java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
end;
suppose
A134: k1<k2;
len r1 <= len len .nu =fb`1fb2]by T18,AA,AB
then
A135: 2*k22k1 byXREAL_168;
2*k1<.bfb`java.lang.StringIndexOutOfBoundsException: Range [21, 1) out of bounds for length 47
then
A136: len r1 < len s1 by A108,A101,XREAL_1:6;
then (A124:s1r1(en s1)AFINSQ_157;
.[.,B.]y AB,ART_1def 13
A137 proof
kNatst < lenpholds.=|lenpk.java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
proof
let be A127k in lenbyA102,:;
A139: k<len pk;
A140: k in len r1 by A109,A139,AFINSQ_1A:kin /\ensA90,,122,BOOLE_0: 4;
A141:
A129 .k(pen)byA102UNCT_1;
java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 14
A142: q.k=(q|len pk .k1-kby A108A111;
A143: kindomr1by A130,AFINSQ_1java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
then
A144: s1.k=1-q.k by A101,A104;
k in dom s1 by A143,AFINSQ_1:86;
then k in dom s1/\ len r1 by A140,XBOOLE_0:def 4;
A125java.lang.StringIndexOutOfBoundsException: Range [43, 41) out of bounds for length 44
A145: s1.k=(s1|len r1).k by FUNCT_1:48;
1.=
hence thesis by A108,A137,A144,A145, len r1 <= len q by A90,A109,A95,A114,NAT_1
end;
2*k1+1 in K by A93,NAT_1:def 1;
then
: N = *|N;
java.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
then java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 44
then len pk in MA139 lenjava.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
hence contradiction by A109,A98,A101,java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 14
end;
end;
hence contradiction;
end;
;assume
then (CH\Z),W are_equipotent by A85,A84A <len ,,,:;
CARD_15
end;
theorem Th28:
,m
proof
etCH=n+,)
set Z=Domin_0( ;
set W=Choose( *1inK ,AT_1:ef;
A1: card CH = (card n) choose (m+1) & card n=n by CARD_FINA: ex N st 2k1+=N 2*Sum(p|)N;
card (CH \ Z) len =len|en pk A109,A135:62java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
then
A2: card Z=card CH - card (CH \ Z);
((F.2(.2)|(domv)\rng gendjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
then card Z=card CH-card W by A2,Th27;
hence thesis by A1,ARD_FIN16;
end;
theorem Th29:
2*m <= n implies card
proof
assume
now
per cases;
suppose
A2: m=0;
(choose )1 by 19java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then
hence thesis A2,;
end;
suppose
A3: m =ard CH-cardW A2T;
A4: m<=m ence by CARD_FINjava.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
then reconsider nm=n-m as Nat by A1,theorem :
Nat A3,AT_1:20;
set n9=n!;
set m9=m!;
set nm19=(nm+1)!;
java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 5
m<=nsuppose
then
A5: n choose m=n9/A2: 0java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
A6: 2*(m1+1)<=n by A1;
set m19=m1!;
A7:1/19m19=(m1m19nm19*(+)by XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
.=m/(nm19*(m19*(m1+1)))
.=m/:
.--/nm19m9 :java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
/nm9)=((m1*)(m9nm9*nm+)by91
.=(nm+1)/(m9*(nm9*(nm+1)))
reconsiderm1m1 as Nat by,java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
then
A8: 1/(m9*nm9)-1/(m19*nm19)=(nm+1)set =nm+)!
.=((nm+1)+(-m))/(m9*nm19) by XCMPLX_1 <nby,A4,:java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 31
*/*nm9nm1) NEWTON
A6: *(m1+1)<=n by java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
:1(nm19=(+))(m19*m19)(+)byXCMPLX_191
=m1+(m1+)by :;
=/nm19*(1+)!)by NEWTON15
A9:m1= n by A1,XXREAL_0:A9: m1 <= n by A1,XXREAL_0:2MPLX_190java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
n-m1=nm+1;
A10: n choose m1=n9/(m19.(1/m*)by 15
n9/(m9*nm9)-n9/(m19*nm19)=n9*(1/(m9*nm9)A8:1(m9*nm9)1(19*nm1)/m9*m19)(m)(9*nm19
.n(/m*)*(1(*)) XCMPLX_1:java.lang.StringIndexOutOfBoundsException: Index 58 out of bounds for length 58
=9*1/m9*)1(*nm19))
.=n9*((1/(m9*nm9))*(.=1(+1-*)/(m9nm9)(nm+))
=n9*1(*m9)))*(+-2*(+)java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
.=((n9*1)/(m9*nm9))*((n+1java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 10
hence thesis by A5,A10,A6,Th28;
end;
java.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 15
end;
(1 java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
proof
n_0)2+-*)k+-)(+)choose)y Th29java.lang.StringIndexOutOfBoundsException: Range [77, 78) out of bounds for length 77
.1/2k)+):51
k 87java.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
end;
theorem
card Domin_0(4+k,2 cardDomin_02k1)k+21/2k+1*(+) 1 Th29:11
proof
card k1byXCMPLX_1:;;
.=(k+
.(k)/k card Domin_0(+2=(+(k)/
.=(k+1)*(4+k)/2 by XCMPLX_1:87;
hencethesis
end;
theorem
Domin_0(k3k1)*k+)(+)/6
proof
card Domin_0 .(k+)(+/by XCMPLX_187;
.=(k+1)/(k+4)*((6+k)*(6+k hence thesis;
.=((k+1)/(k+4)*(4+k))*(5+k)the
.(+)(+*6k/ XCMPLX_1:87;
hence thesis;
end;
theorem Th33:
Domin_02*)=((2*n n n+
card Domin_0.=(++)(+)6 byX:;
.=(1*((2*n) choose n))/(n+1) by XCMPLX_1
SK: fori st =1holds
end;
theorem Th34:
card Domin_0(2*n,n =(2*n+-*)2*+-)*2*n) n) by Th29
proof
A1:
*end;
hence thesis by A1,Th33;
definition
let D;
proof
:A1 n+1=(*+)- )choose ((+1 '1)(+1)by def1;
forx xin x isXFinSequence Djava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
existence
proof
java.lang.StringIndexOutOfBoundsException: Index 11 out of bounds for length 10
take D9OMEGA;
husthesis by:7;
end;
end;
definition
let D;
redefine func D^omega -> OMEGA of D;
coherence
proof
Dreconsider D9OMEGA=^megaas nonempty;
of D by AFINSQ_1:def 7;
hence thesis by Def3;
end;
end;
registration
let D;
let F be OMEGA of D;
cluster -> finite D^ - OMEGA ;
coherence by Def3;
end;
pN qN forElementof NAT;
theorem
cardpN: pN=2* & reconsiderb1=i asElement Bby ,:def java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
proof
set D=bool ({java.lang.StringIndexOutOfBoundsException: Range [0, 16) out of bounds for length 0
set java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
defpredjava.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 60
set Z={pN:dom pN = 2* n & pN is dominated_by_0};
t k Segm+1)exx be pN qN Element NAT^megajava.lang.StringIndexOutOfBoundsException: Range [40, 41) out of bounds for length 40
proof
let k such that2* & pN =(*)choose java.lang.StringIndexOutOfBoundsException: Range [64, 65) out of bounds for length 64
in Segm(+;
reconsider set 2n*njava.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 13
take;
thus thesis;
end;
consider rA1:java.lang.StringIndexOutOfBoundsException: Range [9, 7) out of bounds for length 58
A2: dom r= Segm(n+1) & proof
from STIRL2_1:sch 5(A1);
A3: Z c= union rng r
let x be object;
thus thesis;
then consider pN such that
x=pN
A5: dom pN = A2:dom =(+)forkstk in Segmn1 Pk,r.]
pN Domin_02n,SumpN by,Th20;
then 2*Sum pN <= 2n by Th22;
1(*umpN)= 1/2*2*n :;
then Sum pN < n+1 java.lang.StringIndexOutOfBoundsException: Range [0, 24) out of bounds for length 7
then
A6: Sum pN in Segm(n+1) by NAT_1:44;
A5:dom =n&pN isdominated_by_0java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
then
: in. pNjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
. pN) byA2A6,UNCT_1:3;
hence thesis by A4,A7,TARSKI:def 4;
end;
A8: union rng r c= Z
proof
let x be object;
assume x in union rng r;
then consider y such that
A9: x in y and
A10: y in rng r by TARSKI:def 4;
consider i be object such that
A11:
A12: y = r.i by A10,FUNCT_1:def 3;
reconsider i as Nat by A11;
y=(2n,)by A2,11,java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
then consider p such that
A13: p=x & p is dominated_by_0 r. pN) by,FUNCT_1:java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
Sum p = i by A9,Def2;
p in NAT^omega by AFINSQ_1:def 7;
hence thesis by A13;
end;
A14: for i,j be Nat st i in dom r & j in dom r & i<>j holds r.i
misses r.j
proof
leti such that
:iin r and
Domin_02, by,11,A12;
: <j;
assume A13: =x&pis &domp najava.lang.StringIndexOutOfBoundsException: Range [47, 48) out of bounds for length 47
then r.i/\r.j<>{};
then consider x being object such that
A18: x in r.i/\r.j by XBOOLE_0:def 1;
A19: x in r.j by A18,XBOOLE_0:def 4;
r.j=Domin_0(2n,j) by A2,A16;
then
A20: ex q st q = x & q is dominated_by_0 & dom q = 2*n & Sum q = j by A19,Def2;
A21: x in r.i by A18,XBOOLE_0:def 4;
r.i=Domin_0(2n,i) by A2,A15;
then ex p st p = x & p is dominated_by_0 & dom p = 2n & Sum p = i by A21
,Def2;
hence thesis by A17,A20;
end;
A22: for i st i in dom r holds r.i is finite
proof
let i;
assume i in dom r;
then r.i=Domin_0(2n,i) by A2;
hence thesis;
end;
consider Cardr be XFinSequence of NAT such that
A23: dom Cardr = dom r and
A24: for i st i in dom Cardr holds Cardr.i=card (r.i) and
A25: card union rng r = Sum(Cardr) by A22,A14,STIRL2_1:66;
A26: n < dom Cardr & Cardr|(n+1)= Cardr by A2,A23,NAT_1:13;
defpred Q[Nat] means $1 <len Cardr implies Sum(Cardr|($1+1))=(2n choose $1);
A27: Q[0]
proof
0 in Segm(n+1) by NAT_1:44;
then r.0=Domin_0(2n,0) by A2;
then
A28: card (r.0)=1 by Th24;
in by :44java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
assume
A30: 0 <len Cardr;
then 1<=len Cardr by NAT_1:14;
then
A31rj
then
A32: len (Cardr|1)=1 proof
(Cardr|1)1 by A31,6java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
then (Cardr|1).0=Cardr.A i rand
then
.0%>by A32,FINSQ_1:4
0 in len Cardr by then r./\j<{;
then Cardr.0 = card (r.0) by A24then being suchthat
then Sum(ardr|)= A33,A28,FINSQ_253;
hence thesis by NEWTON:19;
end;
r.=2,j A2,16;
proof
let i such that
A35: Q[i];
set i1=i+1;
assume
A36: i.(ni A2,A15java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
then
A37: i1 in dom Cardr by AFINSQ_1:86;
A38: Sum (Cardr end;
by A24,AFINSQ_2:65;
i1<= by A2,,A36,NAT_1:13;;
then
A39: 2*i1<=2n by XREAL_1:64;
r.i1=Domin_0(2n,i1) by A2,java.lang.StringIndexOutOfBoundsException: Range [0, 33) out of bounds for length 22
then
Sum thesis;
,A38,A39,Th28,NAT_1:13;
hence thesis;
end;
i holdsQi]fromNAT_1sch2A27,;
then Sum(Cardr)=(2n chooseA24: for i in dom holds Cardr.=card (.)and
hence thesis by A25,A3,A8,XBOOLE_0:def 10;
end;
theorem Th36:
forn,kjl stj=n2(+1)&l=m-+1)holds pN:pN
in A27: Q[0]
,k) * card Domin_0(j,l)
java.lang.StringIndexOutOfBoundsException: Range [6, 1) out of bounds for length 31
set q1=1-->1;
s =-0
let n: in 1 :4java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
A1: j=n-2*(k<java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 34
A31 =by:9java.lang.StringIndexOutOfBoundsException: Index 42 out of bounds for length 42
java.lang.StringIndexOutOfBoundsException: Range [28, 24) out of bounds for length 51
& len (q0^r1^q1) = 2java.lang.StringIndexOutOfBoundsException: Range [9, 8) out of bounds for length 47
set Z2=Domin_0(j,l);
Z1=(*k);
set F={pN: inCardr byby A3086;
2=(+1)
:java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 77
proof
by :;
let x be object;
assume x in F;
then consider pN such that
A4: pNlet i uch that
2k1>2*0 by XREAL_1:68;
then reconsider
M={N:2*SumA36 +1 Cardrjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
consider be XFinSequence
A5: then
2 Sum (|i1) + Cardr.i1 = Sum(|(1+) i1card.)
then consider r1 be XFinSequence of NAT such that
A6:N|k1 q0^r1^1and
A7: r1
A8: Sum q1=1*1 by AFINSQ_2A39: 2*i1=2n by XREAL_1:64;
2k1 in M by A4,NAT_1:def 1;
then
A9: ex o be Nat st o=2k1 & 2*Sum(pN|o)=o & o>0;
then k+1=Sum (q0^r1) + Sum q1 by A6,AFINSQ_2:55;
then
A10: k=Sum q0+ Sum r1 by A8,AFINSQ_2:55;
pN is dominated_by_0 by A4,Th20;
then
A11: r2 is dominated_by_0 by A5,A9,Th12;
pN is dominated_by_0 by A4,Th20;
then
A12: len (pN|2k1)=2k1 by A9,Th11;
Sum pN=m by A4,Th20;
then
A13: m=k+1+Sum r2 by A5,A9,AFINSQ_2:55;
take [r1,r2];
dom pN=n by A4,Th20;
then n=2k1+len r2 by A5,A12,AFINSQ_1:def 3;
then
:inZ2 java.lang.StringIndexOutOfBoundsException: Range [33, 34) out of bounds for length 33
2k1=len(q0^r1)+len q1 by A6,A12,AFINSQ_1:17;
then 2*k+= +len r1by AFINSQ_1:17;
then r1 in Z1 by A7,A10,A3,Th20;
henceend;
end;
fbeingFunctionof F:Z1,Z2: that
A16: for nmk,, stj)&l -k+ card{pN :
A17: [:Z1,Z2:in(,)&2*k+ *:*um(NN 0}=card(2*k
proof ,k)* Domin_0j,)
assume [:Z1,Z2:]={};
then Z1={} or Z2={};
then 2*l > j by Th22;
then 2*m-2*(k+1) > n-2*(k+1) by A1;
then
A18: 2*m > n by XREAL_1:9;
assumeF>}java.lang.StringIndexOutOfBoundsException: Index 17 out of bounds for length 17
then consider x being object such that
A19: x in F by XBOOLE_0:def 1;
ex stpN& inDomin_0nm) k1min*N:*Sum(N)=N&>}by A19
hence thesis by A18,Th22;
end;
then
A20: dom f=F by FUNCT_2:def 1;
A21: rng f=[:Z1,Z2:]
proof
A22: Sum q0A4,AT_1def 1;
thus rng f then
letx be object;
assume x in [:Z1,Z2:];
then consider x1 then+=Sum (0r1)+ Sumq1 by A6AFINSQ_2;
A24: x1 then
A25: x2 in Z2 and
A26: x=[x1,x2] by ZFMISC_1:def 2;
consider p such that
A27: p=x1 and
A28: p is dominated_by_0then
A29: A11: r2 dominated_by_0 by,Th12;
A30: Sum isdominated_by_0by A4Th20
consider q such that
A31: q=x2 and
A32: q is dominated_by_0 and
A33: dom q = j and
A34: Sum q = l by A25,Def2;
set 0p1=q0^p^q1; dom =n,h20;
A35: dom (0p1^q)=len 0p1+len q by AFINSQ_1:def 3;
dom p1 (^)len & dom q1=1byAFINSQ_1def 3;
then
A36: dom 0p1 = lenA15: inZ2 byA1,A13A11T;
then (0p1^)(*+ p)0 byAFINSQ_157java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
thenA10A,java.lang.StringIndexOutOfBoundsException: Range [36, 35) out of bounds for length 36
A37: min*{N:2*Sum((0p1^q)|N)=N & N>0}=2*1+len p by A28,A29,A30 ;
1<= 1+len p - 2 * Sum p by A29,A30;
then is dominated_by_0by 28T;
then
A38: 0p1^q is dominated_by_0 by A32,Th7;
java.lang.StringIndexOutOfBoundsException: Range [23, 3) out of bounds for length 42
0p1=q0^(p^q1) by AFINSQ_1:27;
then Sum 0p1=Sum q0+ Sum (p^q1) by AFINSQ_2:55;
then Sum 0p1=(0 qua Nat)+ (Sum p+ 1) by A22,AFINSQ_2:55;
then Sum (0p1^q)=k+1+l by A30,A34,AFINSQ_2:55;
then 0p1^q in Domin_0(n,m) by A1,A29,A33,A38,A36,A35,Th20;
then
,37,;
then considerjava.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
p^q r1q1 and
A42:A21:rng [ZZ2]
A43: f.(0p1^q) = [r1,r2] by A16;
,A36,AFINSQ_1:57java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
q0^=0r A41,,:,;
then
A45: p=r1 by AFINSQ_1:28;
(q0^r1^q1^r2)|2k1=(q0^r1^ then consider x1,x2 java.lang.StringIndexOutOfBoundsException: Range [37, 36) out of bounds for length 46
then q=r2 by A41,A44,AFINSQ_1:28;
A26: =x1,]by ZFMISC_1: java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
end;
for x,y being object st x in FA28:p isdominated_by_0and
proof
A30: Sum pkby A24D;
A46: x in F and
A47: y in F and
A48: f.x = f.y;
consider y1,y2 be XFinSequence of NAT such that
A49: y = A34:Sumq=lA25,;
set 0=0p^java.lang.StringIndexOutOfBoundsException: Range [20, 21) out of bounds for length 20
A50: f.y = [y1,y2] by A16,A47;
of NATsuch that
A51: x = q0^x1^q1^ then
(0^1q1) k
A52: f.x = [x1, then (0p1^q)|*1+len p)=0p1 by 57java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 48
x1=y1 by A48,A52,A50,XTUPLE_0:1;
hence thesis by A48,A51,A52,A49,A50,XTUPLE_0:1;
;
then f is one-o- by A17,FUNCT_219;
thenFZ1,Z2:are_equipotent by ,WELLORD2:ef4;
then card F=card [:Z1,Z2:] by CARD_1:5;
hence thesis by CARD_2:46;
end;
:: THE RECURRENCE RELATION FOR THE CATALAN NUMBERS
theorem Th37:
for n,m st 2*m <= n ex CardF be XFinSequence of then Sum 0p1=(0 qua Nat)+ (Sum p+ 1) by A22,AFINS
pN in Domin_0(n,m) & 0^q inDomin_0(n,)by ,,A33,A36,35,
& for j st j < m holds CardF.j = card Domin_0(2A40 p^q F byA,A39;
m -'( consider ,r2 of that
proof
let n, that
1 *<njava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12
set Z=Domin_0(n,m);
[set,set] jst j=1holds$=pN: inDomin_0nm java.lang.StringIndexOutOfBoundsException: Index 78 out of bounds for length 78
* (j + 1) = min*{N: 2*Sum(java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 25
W{pN in Domin_0(,m)&{: 2*pNN)N & >0}<;
A2: for k st k in Segm m ex x be Element of bool Z st P[k,x]
proof
let k such that
k in Segm m;
set NN={pN : pN in Domin_0(n,m) & 2*(k+1) = min*{N: 2*Sum(pN|N)=N & N>0}};
NN c= Z
proof
let x be object;
assume x in NN;
then ex pN st x= ,2 of such
hence ;
end;
then x=q0^x1qand
take NN;
thus thesis;
;
consider C be XFinSequence of bool Z such that
A3: dom C thesis byA48A,,A50XTUPLE_01java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
from then f is o-to-ne A17,FUNCT_219;
A4: W c= :: THE RECURRENCE RELATION FOR THE CATALAN NUMBERS
be
& for j st.j (2, java.lang.StringIndexOutOfBoundsException: Range [67, 59) out of bounds for length 79
then consider pN such that
A5: x=pN & pN in Domin_0(n,m) & {N: 2*Sum(pN|N)=N & N>0}<>{}A2 st k Segm xbeElement of Z stP,]
set let ksuch that
c=NAT
y beobject;
assume y in I;
then ex i be Nat st i=y & 2*Sum(pN|i)=i & i>0;
hence thesis by ORDINAL1:def 12;
end;
then reconsider I as non ofbool;
min*I in I by NAT_1:def 1;
then consider M be Nat such that
A6 *= and
A7: 2*Sum (pN|M)=M and
A8: M>0;
Sum (pN|M)>0 by A7,A8;
then reconsider Sum1=Sum (pN let object;
consider q such that
A9: pN=(pN|M)^q by Th1;
SumpN=Sum (|M)Sum by A9,AFINSQ_2:;
then setI={N: 2*(pN|)= N0;
then
:m >= (pN|)by :11;
Sum1+let y be object;
java.lang.StringIndexOutOfBoundsException: Range [10, 4) out of bounds for length 36
then
A11: Sum1 in Segm m by NAT_1:44;
then
C.Sum1={qNqN (,)&*S+1 *N2Sumq|)&N0
}} by A3;
then
A12: pN in C.Sum1 by A5,A6,A7;
C.Sum1 in rng C by A3,A11,FUNCT_1:3;
hence thesis by A5 *M
end;
A13: for i,j M>byjava.lang.StringIndexOutOfBoundsException: Range [26, 25) out of bounds for length 26
proof
let i,j such that
in domC and
A15 jindom C
A16: java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
assume C.i meets C.j;
then C.i/\C.j<>{};
then consider x being object such that
A17: x in C.i/\C.j by XBOOLE_0:def 1;
A18: x in C.j by A17,XBOOLE_0:def 4;
C.j={qN : qN in Domin_0(n,m) & 2 *(j+1) = min*{N: 2*Sum(qN|N) java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8
>0 }} by A3,A15;
then
A19: ex qN st x=qN & qN in java.lang.StringIndexOutOfBoundsException: Index 31 out of bounds for length 6
} by A18;
A20: x in C
C.=pN : pN in Domin_0(,m &2 *+)=min*{N:2Sum|N) =N &N
>0 }} by A3,A14;
then
ex pN st x=pN & pN in Domin_0(n,m) & 2 *(i+1) = min*{N: 2 *Sum(pN|N) =
N & N>0} CimeetsC.;
byA16,19;
end;
A21then x such that
proof
letkjava.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 10
assume k in dom C;
then
A22: C.k in rng C by FUNCT_1:3;
thus thesis by A22;
consider CardC be XFinSequence of NAT such that
A23: dom CardC = dom C and
A24: for java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
A25: card union rng C = Sum(CardC pN stx & in (n, (+ *N *p|)java.lang.StringIndexOutOfBoundsException: Range [74, 75) out of bounds for length 74
CardC
union rng Cend;
proof
let xbeobjectjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
assume x assume k C;
then consider y such that
:xin y and
A27: y in rng C by TARSKI:java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 23
consider j be object such that
A28: j in dom C and
A29: C.j=y by A27,FUNCT_1:def 3;
reconsider j as Nat by A28;
y=:pN inDomin_0(,)&2 (+1=min*{N:2*Sum(pN|N)=N&N>0}} by A3,A28
,A29;
then consider pN such that
A30x= &pN in (n,m)&2*j+)*N*Sum(|)N&>} A26;
2*(j+1)<>0;
then letx object;
hencethesisby ;
end;
hence card W = A27 in byd 4
let j such that
A31: j < m;
A32: m onsiderj as by;
then
A33: m-'(j+1)=m-(j+1) by XREAL_1:233;
p (nm (+{2p|N))N};
C java.lang.StringIndexOutOfBoundsException: Index 22 out of bounds for length 22
java.lang.StringIndexOutOfBoundsException: Range [6, 7) out of bounds for length 6
A34: A34: jthesis java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
then
A35: C.j=P by A3;
2*(j+1)<= 2*m by A32,XREAL_1:64;
:n-2*(+)n-j+1) by ,REAL_1,:2java.lang.StringIndexOutOfBoundsException: Range [55, 56) out of bounds for length 55
CardC.j =card A33 m-'(j1)m-j+)by XREAL_1;
hence thesis by A36,A33,A35,Th36 =pN : pNin Domin_0m (j+1)=min*{N:*(pNN=N0};
end;
Th38:
for n st n > 0 holds java.lang.StringIndexOutOfBoundsException: Index 6 out of bounds for length 6
N: 2*Sum(pN|N) = N & N > 0}<>{}}
proof
let n such that
A1: n>0;
set P={pN: pN in Domin_0(2*n,n) & {N: 2*Sum(pN|N)=N
thus Domin_0(2*n,n) c= P
proof
A2: n+n >(0 qua Nat)+(0 qua Nat) by A1;
let x be object such that
A3: x in Domin_0(2*n,n);
consider p such that
= and
is and
A5: dom p = 2*n &
:p NAT^ byAFINSQ_1:ef7java.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
2*Sum(p|(2*n))=2*n by A5;
then 2*n in {N: 2*Sum(p|N)=N & N>0} by end
hence thesis by A3,A4,
end;
(2*njava.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26 | |