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(
object )
-> object } :
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(
object )
-> object ,
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()
-> object ,
F4()
-> object ,
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()] )
Lm1:
for k, n being Nat st k < n holds
n \/ {k} = n
Lm2:
now for D being 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 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 Segm (len F) holds
ex
x being
Element of
NAT st
S1[
k,
x]
consider CardF being
XFinSequence of
NAT such that A4:
(
dom CardF = Segm (len F) & ( for
k being
Nat st
k in Segm (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 A4;
( ( for i being Nat st i in dom CardF holds
CardF . i = card (F . i) ) & card (union (rng F)) = Sum CardF )
thus A5:
for
i being
Nat st
i in dom CardF holds
CardF . i = card (F . i)
by A4;
card (union (rng F)) = Sum CardF
A6:
addnat "**" CardF = Sum CardF
by AFINSQ_2:51;
per cases
( len CardF = 0 or len CardF <> 0 )
;
suppose A8:
len CardF <> 0
;
card (union (rng F)) = Sum CardF
then consider f being
sequence of
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 8;
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
object 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 A4, A14, NAT_1:44;
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
object such that A22:
X in dom (F | (k + 1))
and A23:
(F | (k + 1)) . X = Y
by A21, FUNCT_1:def 3;
reconsider X =
X as
Element of
NAT by A22;
A24:
(F | (k + 1)) . X = F . X
by A22, FUNCT_1:47;
A25:
X in (dom F) /\ (k + 1)
by A22, RELAT_1:61;
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 A4, A14, NAT_1:44;
then reconsider Fk1 =
F . (k + 1) as
finite set by A1;
k + 1
in len F
by A4, A14, NAT_1:44;
then
card Fk1 = CardF . (k + 1)
by A4;
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:40, NAT_1:13;
hence
(
card (union (rng (F | ((k + 1) + 1)))) = f . (k + 1) &
union (rng (F | ((k + 1) + 1))) is
finite )
by A27, Th44;
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 A4;
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;
Lm3:
for n being Nat holds n |^ 3 = (n * n) * n
Th60:
for X, Y being finite set
for F being Function of X,Y st card X = card Y holds
( F is onto iff F is one-to-one )
by FINSEQ_4:63;
Lm5:
for n being Element of NAT
for N being finite Subset of NAT
for F being Function of N,(Segm (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 ) )