let k, n be Nat; k * (n block k) = card { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) }
now per cases
( k = 0 or k > 0 )
;
suppose
k > 0
;
k * (n block k) = card { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) } then A3:
not
k is
empty
;
set G1 =
{ g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) } ;
defpred S1[
set ]
means ex
f being
Function of
(n + 1),
k st
(
f = $1 &
f is
onto &
f is
"increasing &
f " {(f . n)} <> {n} );
n < n + 1
by NAT_1:13;
then A5:
n in n + 1
by NAT_1:45;
card k,
k are_equipotent
by CARD_1:def 5;
then consider f being
Function such that A6:
f is
one-to-one
and A7:
dom f = card k
and A8:
rng f = k
by WELLORD2:def 4;
reconsider f =
f as
Function of
(card k),
k by A7, A8, FUNCT_2:3;
A9:
(
f is
onto &
f is
one-to-one )
by A6, A8, FUNCT_2:def 3;
consider F being
XFinSequence of
NAT such that A10:
dom F = card k
and A11:
card { g where g is Function of (n + 1),k : S1[g] } = Sum F
and A12:
for
i being
Nat st
i in dom F holds
F . i = card { g where g is Function of (n + 1),k : ( S1[g] & g . n = f . i ) }
from STIRL2_1:sch 6(A9, A3, A5);
A14:
for
i being
Nat st
i in dom F holds
F . i = n block k
proof
set F2 =
{ g where g is Function of n,k : ( g is onto & g is "increasing ) } ;
let i be
Nat;
( i in dom F implies F . i = n block k )
assume A15:
i in dom F
;
F . i = n block k
A16:
f . i in rng f
by A7, A10, A15, FUNCT_1:def 5;
k is
Subset of
NAT
by Th8;
then reconsider fi =
f . i as
Element of
NAT by A8, A16;
A17:
fi < k
by A16, NAT_1:45;
set F1 =
{ g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } ;
set F =
{ g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } ;
A18:
{ g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } c= { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) }
{ g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } c= { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) }
then
{ g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } = { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) }
by A18, XBOOLE_0:def 10;
then
card { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } = card { g where g is Function of n,k : ( g is onto & g is "increasing ) }
by A17, Th43;
hence
F . i = n block k
by A12, A15;
verum
end; then
for
i being
Nat st
i in dom F holds
F . i <= n block k
;
then A19:
Sum F <= (len F) * (n block k)
by AFINSQ_2:71;
set G =
{ g where g is Function of (n + 1),k : S1[g] } ;
A20:
{ g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) } c= { g where g is Function of (n + 1),k : S1[g] }
A21:
{ g where g is Function of (n + 1),k : S1[g] } c= { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) }
for
i being
Nat st
i in dom F holds
F . i >= n block k
by A14;
then A22:
Sum F >= (len F) * (n block k)
by AFINSQ_2:72;
card k = k
by CARD_1:def 5;
then
Sum F = k * (n block k)
by A10, A19, A22, XXREAL_0:1;
hence
k * (n block k) = card { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) }
by A11, A20, A21, XBOOLE_0:def 10;
verum end; end; end;
hence
k * (n block k) = card { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) }
; verum