let k, n be Nat; not ( ( n = 0 implies k = 0 ) & ( k = 0 implies n = 0 ) & n >= k & ( for f being Function of (Segm n),(Segm k) holds
( not f is onto or not f is "increasing ) ) )
assume that
A1:
( n = 0 iff k = 0 )
and
A2:
n >= k
; ex f being Function of (Segm n),(Segm k) st
( f is onto & f is "increasing )
now ex f being Function of (Segm n),(Segm k) st
( f is onto & f is "increasing )per cases
( n = 0 or n > 0 )
;
suppose A5:
n > 0
;
ex f being Function of (Segm n),(Segm k) st
( f is onto & f is "increasing )then reconsider k1 =
k - 1 as
Element of
NAT by A1, NAT_1:20;
reconsider k =
k,
n =
n as non
zero Element of
NAT by A1, A5, ORDINAL1:def 12;
defpred S1[
Element of
Segm n,
Element of
Segm k]
means $2
= min ($1,
k1);
A6:
for
x being
Element of
Segm n ex
y being
Element of
Segm k st
S1[
x,
y]
consider f being
Function of
(Segm n),
(Segm k) such that A8:
for
m being
Element of
Segm n holds
S1[
m,
f . m]
from FUNCT_2:sch 3(A6);
then
k c= rng f
;
then
k = rng f
;
then A13:
f is
onto
by FUNCT_2:def 3;
A14:
for
m being
Nat st
m in rng f holds
min* (f " {m}) = m
then
f is
"increasing
;
hence
ex
f being
Function of
(Segm n),
(Segm k) st
(
f is
onto &
f is
"increasing )
by A13;
verum end; end; end;
hence
ex f being Function of (Segm n),(Segm k) st
( f is onto & f is "increasing )
; verum