let n, k be Nat; :: thesis: 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 A1: k = 0 ; :: thesis: k * (n block k) = card { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) }
set F = { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) } ;
set F1 = { f where f is Function of (n + 1),k : ( f is onto & f is "increasing ) } ;
A2: { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) } c= { f where f is Function of (n + 1),k : ( f is onto & f is "increasing ) }
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) } or x in { f where f is Function of (n + 1),k : ( f is onto & f is "increasing ) } )
assume A3: x in { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . n)} <> {n} ) } ; :: thesis: x in { f where f is Function of (n + 1),k : ( f is onto & f is "increasing ) }
ex f being Function of (n + 1),k st
( x = f & f is onto & f is "increasing & f " {(f . n)} <> {n} ) by A3;
hence x in { f where f is Function of (n + 1),k : ( f is onto & f is "increasing ) } ; :: thesis: verum
end;
card { f where f is Function of (n + 1),k : ( f is onto & f is "increasing ) } = (n + 1) block k ;
then { f where f is Function of (n + 1),k : ( f is onto & f is "increasing ) } is empty by A1, Th31;
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 A1, A2; :: thesis: verum
end;
suppose A4: k > 0 ; :: thesis: k * (n block k) = card { f where f is Function of (n + 1),k : ( f is onto & f is "increasing & f " {(f . 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} );
( card k,k are_equipotent & card k = k ) by CARD_1:def 5;
then consider f being Function such that
A5: ( f is one-to-one & dom f = card k & rng f = k ) by WELLORD2:def 4;
reconsider f = f as Function of (card k),k by A5, FUNCT_2:3;
A6: ( f is onto & f is one-to-one ) by A5, FUNCT_2:def 3;
A7: not k is empty by A4;
n < n + 1 by NAT_1:13;
then A8: n in n + 1 by NAT_1:45;
consider F being XFinSequence of such that
A9: dom F = card k and
A10: card { g where g is Function of (n + 1),k : S1[g] } = Sum F and
A11: for i being Element of 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 8(A6, A7, A8);
A12: ( n in NAT & k in NAT ) by ORDINAL1:def 13;
for i being Element of NAT st i in dom F holds
F . i = n block k
proof
let i be Element of NAT ; :: thesis: ( i in dom F implies F . i = n block k )
assume A13: i in dom F ; :: thesis: F . i = n block k
A14: ( f . i in rng f & rng f = k & k is Subset of NAT ) by A5, A9, A12, A13, Th8, FUNCT_1:def 5;
then reconsider fi = f . i as Element of NAT ;
set F = { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } ;
set F1 = { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } ;
set F2 = { g where g is Function of n,k : ( g is onto & g is "increasing ) } ;
A15: { 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 ) }
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } or x in { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } )
assume A16: x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } ; :: thesis: x in { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) }
ex g being Function of (n + 1),k st
( x = g & g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) by A16;
hence x in { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } ; :: thesis: verum
end;
{ 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 ) }
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } or x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } )
assume A17: x in { g where g is Function of (n + 1),k : ( S1[g] & g . n = fi ) } ; :: thesis: x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) }
ex g being Function of (n + 1),k st
( x = g & S1[g] & g . n = fi ) by A17;
hence x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} & g . n = fi ) } ; :: thesis: verum
end;
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 ) } & fi < k ) by A14, A15, NAT_1:45, 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 ) } & card { g where g is Function of n,k : ( g is onto & g is "increasing ) } = n block k ) by A12, Th43;
hence F . i = n block k by A11, A13; :: thesis: verum
end;
then ( ( for i being Element of NAT st i in dom F holds
F . i <= n block k ) & ( for i being Element of NAT st i in dom F holds
F . i >= n block k ) ) ;
then ( Sum F <= (len F) * (n block k) & Sum F >= (len F) * (n block k) & len F = card k & card k = k ) by A9, Th50, Th51, CARD_1:def 5;
then A18: Sum F = k * (n block k) by XXREAL_0:1;
set G = { g where g is Function of (n + 1),k : S1[g] } ;
set G1 = { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) } ;
A19: { 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] }
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) } or x in { g where g is Function of (n + 1),k : S1[g] } )
assume A20: x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) } ; :: thesis: x in { g where g is Function of (n + 1),k : S1[g] }
ex g being Function of (n + 1),k st
( x = g & g is onto & g is "increasing & g " {(g . n)} <> {n} ) by A20;
hence x in { g where g is Function of (n + 1),k : S1[g] } ; :: thesis: verum
end;
{ 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} ) }
proof
let x be set ; :: according to TARSKI:def 3 :: thesis: ( not x in { g where g is Function of (n + 1),k : S1[g] } or x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) } )
assume A21: x in { g where g is Function of (n + 1),k : S1[g] } ; :: thesis: x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) }
ex g being Function of (n + 1),k st
( x = g & S1[g] ) by A21;
hence x in { g where g is Function of (n + 1),k : ( g is onto & g is "increasing & g " {(g . n)} <> {n} ) } ; :: thesis: verum
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} ) } by A10, A18, A19, XBOOLE_0:def 10; :: thesis: 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} ) } ; :: thesis: verum