begin
theorem Th1:
theorem Th2:
theorem
theorem
theorem Th5:
theorem Th6:
theorem
theorem Th8:
theorem
theorem Th10:
theorem
theorem Th12:
theorem
theorem Th14:
:: deftheorem Def1 defines "increasing STIRL2_1:def 1 :
for n, k being Nat
for f being Function of n,k holds
( f is "increasing iff ( ( n = 0 implies k = 0 ) & ( k = 0 implies n = 0 ) & ( for l, m being Nat st l in rng f & m in rng f & l < m holds
min* (f " {l}) < min* (f " {m}) ) ) );
theorem Th15:
theorem Th16:
theorem Th17:
theorem Th18:
theorem Th19:
theorem Th20:
theorem
theorem
theorem Th23:
theorem Th24:
theorem Th25:
:: deftheorem defines block STIRL2_1:def 2 :
for n, k being Nat holds n block k = card { f where f is Function of n,k : ( f is onto & f is "increasing ) } ;
theorem Th26:
theorem Th27:
theorem
theorem Th29:
theorem
theorem Th31:
theorem Th32:
theorem
for
k,
n being
Nat holds
( ( ( 1
<= k &
k <= n ) or
k = n ) iff
n block k > 0 )
scheme
Sch2{
F1()
-> set ,
F2()
-> set ,
F3()
-> set ,
F4()
-> set ,
F5()
-> Function of
F1(),
F2(),
F6(
set )
-> set } :
ex
h being
Function of
F3(),
F4() st
(
h | F1()
= F5() & ( for
x being
set st
x in F3()
\ F1() holds
h . x = F6(
x) ) )
provided
A1:
for
x being
set st
x in F3()
\ F1() holds
F6(
x)
in F4()
and A2:
(
F1()
c= F3() &
F2()
c= F4() )
and A3:
(
F2() is
empty implies
F1() is
empty )
scheme
Sch3{
F1()
-> set ,
F2()
-> set ,
F3()
-> set ,
F4()
-> set ,
F5(
set )
-> set ,
P1[
set ,
set ,
set ] } :
card { f where f is Function of F1(),F2() : P1[f,F1(),F2()] } = card { f where f is Function of F3(),F4() : ( P1[f,F3(),F4()] & rng (f | F1()) c= F2() & ( for x being set st x in F3() \ F1() holds
f . x = F5(x) ) ) }
provided
A1:
for
x being
set st
x in F3()
\ F1() holds
F5(
x)
in F4()
and A2:
(
F1()
c= F3() &
F2()
c= F4() )
and A3:
(
F2() is
empty implies
F1() is
empty )
and A4:
for
f being
Function of
F3(),
F4() st ( for
x being
set st
x in F3()
\ F1() holds
F5(
x)
= f . x ) holds
(
P1[
f,
F3(),
F4()] iff
P1[
f | F1(),
F1(),
F2()] )
scheme
Sch4{
F1()
-> set ,
F2()
-> set ,
F3()
-> set ,
F4()
-> set ,
P1[
set ,
set ,
set ] } :
provided
A1:
(
F2() is
empty implies
F1() is
empty )
and A2:
not
F3()
in F1()
and A3:
for
f being
Function of
(F1() \/ {F3()}),
(F2() \/ {F4()}) st
f . F3()
= F4() holds
(
P1[
f,
F1()
\/ {F3()},
F2()
\/ {F4()}] iff
P1[
f | F1(),
F1(),
F2()] )
theorem Th34:
theorem Th35:
theorem Th36:
theorem Th37:
theorem Th38:
theorem Th39:
theorem Th40:
theorem Th41:
Lm1:
for k, n being Nat st k < n holds
n \/ {k} = n
theorem Th42:
theorem Th43:
definition
canceled;
end;
:: deftheorem STIRL2_1:def 3 :
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
definition
canceled;
end;
:: deftheorem STIRL2_1:def 4 :
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem
canceled;
theorem Th54:
Lm2:
now
let D be non
empty set ;
for F being XFinSequence of D st ( for i being Nat st i in dom F holds
F . i is finite ) & ( for i, j being Nat st i in dom F & j in dom F & i <> j holds
F . i misses F . j ) holds
ex CardF being XFinSequence of NAT st
( dom CardF = dom F & ( for i being Nat st i in dom CardF holds
CardF . i = card (F . i) ) & card (union (rng F)) = Sum CardF )let F be
XFinSequence of
D;
( ( for i being Nat st i in dom F holds
F . i is finite ) & ( for i, j being Nat st i in dom F & j in dom F & i <> j holds
F . i misses F . j ) implies ex CardF being XFinSequence of NAT st
( dom CardF = dom F & ( for i being Nat st i in dom CardF holds
CardF . i = card (F . i) ) & card (union (rng F)) = Sum CardF ) )assume that A1:
for
i being
Nat st
i in dom F holds
F . i is
finite
and A2:
for
i,
j being
Nat st
i in dom F &
j in dom F &
i <> j holds
F . i misses F . j
;
ex CardF being XFinSequence of NAT st
( dom CardF = dom F & ( for i being Nat st i in dom CardF holds
CardF . i = card (F . i) ) & card (union (rng F)) = Sum CardF )thus
ex
CardF being
XFinSequence of
NAT st
(
dom CardF = dom F & ( for
i being
Nat st
i in dom CardF holds
CardF . i = card (F . i) ) &
card (union (rng F)) = Sum CardF )
verum
proof
defpred S1[
Nat,
set ]
means $2
= card (F . $1);
A3:
for
k being
Nat st
k in len F holds
ex
x being
Element of
NAT st
S1[
k,
x]
consider CardF being
XFinSequence of
NAT such that A5:
(
dom CardF = len F & ( for
k being
Nat st
k in len F holds
S1[
k,
CardF . k] ) )
from STIRL2_1:sch 5(A3);
take
CardF
;
( dom CardF = dom F & ( for i being Nat st i in dom CardF holds
CardF . i = card (F . i) ) & card (union (rng F)) = Sum CardF )
thus
dom CardF = dom F
by A5;
( ( for i being Nat st i in dom CardF holds
CardF . i = card (F . i) ) & card (union (rng F)) = Sum CardF )
thus
for
i being
Nat st
i in dom CardF holds
CardF . i = card (F . i)
by A5;
card (union (rng F)) = Sum CardF
A6:
addnat "**" CardF = Sum CardF
by AFINSQ_2:63;
per cases
( len CardF = 0 or len CardF <> 0 )
;
suppose A8:
len CardF <> 0
;
card (union (rng F)) = Sum CardF
then consider f being
Function of
NAT,
NAT such that A9:
f . 0 = CardF . 0
and A10:
for
n being
Nat st
n + 1
< len CardF holds
f . (n + 1) = addnat . (
(f . n),
(CardF . (n + 1)))
and A11:
addnat "**" CardF = f . ((len CardF) - 1)
by AFINSQ_2:def 9;
defpred S2[
Nat]
means ( $1
< len CardF implies (
card (union (rng (F | ($1 + 1)))) = f . $1 &
union (rng (F | ($1 + 1))) is
finite ) );
A12:
for
k being
Nat st
S2[
k] holds
S2[
k + 1]
proof
let k be
Nat;
( S2[k] implies S2[k + 1] )
assume A13:
S2[
k]
;
S2[k + 1]
set k1 =
k + 1;
set Fk1 =
F | (k + 1);
set rFk1 =
rng (F | (k + 1));
assume A14:
k + 1
< len CardF
;
( card (union (rng (F | ((k + 1) + 1)))) = f . (k + 1) & union (rng (F | ((k + 1) + 1))) is finite )
reconsider urFk1 =
union (rng (F | (k + 1))) as
finite set by A13, A14, NAT_1:13;
A15:
f . (k + 1) = addnat . (
(f . k),
(CardF . (k + 1)))
by A10, A14;
A16:
union (rng (F | (k + 1))) misses F . (k + 1)
proof
assume
union (rng (F | (k + 1))) meets F . (k + 1)
;
contradiction
then consider x being
set such that A17:
x in (union (rng (F | (k + 1)))) /\ (F . (k + 1))
by XBOOLE_0:4;
A18:
x in F . (k + 1)
by A17, XBOOLE_0:def 4;
A19:
k + 1
in dom F
by A5, A14, NAT_1:45;
x in union (rng (F | (k + 1)))
by A17, XBOOLE_0:def 4;
then consider Y being
set such that A20:
x in Y
and A21:
Y in rng (F | (k + 1))
by TARSKI:def 4;
consider X being
set such that A22:
X in dom (F | (k + 1))
and A23:
(F | (k + 1)) . X = Y
by A21, FUNCT_1:def 5;
reconsider X =
X as
Element of
NAT by A22;
A24:
(F | (k + 1)) . X = F . X
by A22, FUNCT_1:70;
A25:
X in (dom F) /\ (k + 1)
by A22, RELAT_1:90;
then
X in k + 1
by XBOOLE_0:def 4;
then A26:
X <> k + 1
;
X in dom F
by A25, XBOOLE_0:def 4;
then
Y misses F . (k + 1)
by A2, A23, A19, A26, A24;
hence
contradiction
by A20, A18, XBOOLE_0:3;
verum
end;
k + 1
in dom F
by A5, A14, NAT_1:45;
then reconsider Fk1 =
F . (k + 1) as
finite set by A1;
k + 1
in len F
by A5, A14, NAT_1:45;
then
card Fk1 = CardF . (k + 1)
by A5;
then A27:
f . (k + 1) = (f . k) + (card Fk1)
by A15, BINOP_2:def 23;
card (urFk1 \/ Fk1) = (f . k) + (card Fk1)
by A13, A14, A16, CARD_2:53, NAT_1:13;
hence
(
card (union (rng (F | ((k + 1) + 1)))) = f . (k + 1) &
union (rng (F | ((k + 1) + 1))) is
finite )
by A27, Th54;
verum
end;
reconsider C1 =
(len CardF) - 1 as
Element of
NAT by A8, NAT_1:20;
A28:
C1 < C1 + 1
by NAT_1:13;
A29:
F | (len CardF) = F
by A5, RELAT_1:97;
A30:
S2[
0 ]
for
k being
Nat holds
S2[
k]
from NAT_1:sch 2(A30, A12);
hence
card (union (rng F)) = Sum CardF
by A11, A28, A29, A6;
verum
end;
end;
end;
end;
theorem Th55:
theorem Th56:
theorem Th57:
theorem Th58:
Lm3:
for n being Nat holds n |^ 3 = (n * n) * n
theorem
theorem Th60:
theorem Th61:
theorem Th62:
theorem
theorem Th64:
theorem Th65:
theorem Th66:
theorem Th67:
theorem Th68:
theorem Th69:
Lm4:
for X being finite set
for x being set st x in X holds
card (X \ {x}) < card X
theorem Th70:
Lm5:
for n being Element of NAT
for N being finite Subset of NAT
for F being Function of N,(card N) st n in N & F is bijective & ( for n, k being Nat st n in dom F & k in dom F & n < k holds
F . n < F . k ) holds
ex P being Permutation of N st
for k being Nat st k in N holds
( ( k < n implies P . k = (F ") . ((F . k) + 1) ) & ( k = n implies P . k = (F ") . 0 ) & ( k > n implies P . k = k ) )
theorem Th71:
:: deftheorem Def5 defines "increasing STIRL2_1:def 5 :
for Ne, Ke being Subset of NAT
for f being Function of Ne,Ke holds
( f is "increasing iff for l, m being Nat st l in rng f & m in rng f & l < m holds
min* (f " {l}) < min* (f " {m}) );
theorem Th72:
theorem
theorem Th74:
theorem
theorem