let k, n be Nat; for f being Function of (Segm n),(Segm k)
for g being Function of (Segm (n + 1)),(Segm (k + 1)) st f is onto & f is "increasing & f = g | (Segm n) & g . n = k holds
( g is onto & g is "increasing & g " {(g . n)} = {n} )
let f be Function of (Segm n),(Segm k); for g being Function of (Segm (n + 1)),(Segm (k + 1)) st f is onto & f is "increasing & f = g | (Segm n) & g . n = k holds
( g is onto & g is "increasing & g " {(g . n)} = {n} )
let g be Function of (Segm (n + 1)),(Segm (k + 1)); ( f is onto & f is "increasing & f = g | (Segm n) & g . n = k implies ( g is onto & g is "increasing & g " {(g . n)} = {n} ) )
assume that
A1:
( f is onto & f is "increasing )
and
A2:
f = g | (Segm n)
and
A3:
g . n = k
; ( g is onto & g is "increasing & g " {(g . n)} = {n} )
Segm (k + 1) c= rng g
proof
let x9 be
object ;
TARSKI:def 3 ( not x9 in Segm (k + 1) or x9 in rng g )
assume A4:
x9 in Segm (k + 1)
;
x9 in rng g
reconsider x =
x9 as
Element of
NAT by A4;
x < k + 1
by A4, NAT_1:44;
then A5:
x <= k
by NAT_1:13;
now x9 in rng gper cases
( x < k or x = k )
by A5, XXREAL_0:1;
suppose A6:
x < k
;
x9 in rng gA7:
rng f = k
by A1, FUNCT_2:def 3;
x in Segm k
by A6, NAT_1:44;
then consider y being
object such that A8:
y in dom f
and A9:
f . y = x
by A7, FUNCT_1:def 3;
A10:
dom g = n + 1
by FUNCT_2:def 1;
(
n = 0 iff
k = 0 )
by A1;
then A11:
dom f = n
by FUNCT_2:def 1;
n <= n + 1
by NAT_1:11;
then A12:
Segm n c= Segm (n + 1)
by NAT_1:39;
f . y = g . y
by A2, A8, FUNCT_1:47;
hence
x9 in rng g
by A8, A9, A11, A12, A10, FUNCT_1:def 3;
verum end; end; end;
hence
x9 in rng g
;
verum
end;
then
k + 1 = rng g
;
hence
g is onto
by FUNCT_2:def 3; ( g is "increasing & g " {(g . n)} = {n} )
for i, j being Nat st i in rng g & j in rng g & i < j holds
min* (g " {i}) < min* (g " {j})
by A1, A2, Th39;
hence
g is "increasing
; g " {(g . n)} = {n}
thus
g " {(g . n)} = {n}
verum