let f be real-valued FinSequence; for n being Nat st card f = (n ^2 ) + 1 & f is one-to-one holds
ex g being real-valued FinSubsequence st
( g c= f & card g >= n + 1 & ( g is increasing or g is decreasing ) )
let n be Nat; ( card f = (n ^2 ) + 1 & f is one-to-one implies ex g being real-valued FinSubsequence st
( g c= f & card g >= n + 1 & ( g is increasing or g is decreasing ) ) )
assume that
A:
card f = (n ^2 ) + 1
and
AA:
f is one-to-one
; ex g being real-valued FinSubsequence st
( g c= f & card g >= n + 1 & ( g is increasing or g is decreasing ) )
set cP = f;
defpred S1[ set , set ] means ex i, j being Nat ex r, s being real number st
( $1 = [i,r] & $2 = [j,s] & i < j & r < s );
consider iP being Relation of f,f such that
B:
for x, y being set holds
( [x,y] in iP iff ( x in f & y in f & S1[x,y] ) )
from RELSET_1:sch 1();
set P = RelStr(# f,iP #);
G3c:
dom f = Seg (len f)
by FINSEQ_1:def 3;
Pa:
RelStr(# f,iP #) is antisymmetric
proof
let x,
y be
set ;
RELAT_2:def 4,
ORDERS_2:def 6 ( not x in the carrier of RelStr(# f,iP #) or not y in the carrier of RelStr(# f,iP #) or not [x,y] in the InternalRel of RelStr(# f,iP #) or not [y,x] in the InternalRel of RelStr(# f,iP #) or x = y )
assume that
x in the
carrier of
RelStr(#
f,
iP #)
and
y in the
carrier of
RelStr(#
f,
iP #)
and C1:
[x,y] in the
InternalRel of
RelStr(#
f,
iP #)
and D1:
[y,x] in the
InternalRel of
RelStr(#
f,
iP #)
;
x = y
consider i,
j being
Nat,
r,
s being
real number such that E1:
x = [i,r]
and F1:
y = [j,s]
and G1:
(
i < j &
r < s )
by C1, B;
consider j1,
i1 being
Nat,
s1,
r1 being
real number such that H1:
y = [j1,s1]
and I1:
x = [i1,r1]
and J1:
(
j1 < i1 &
s1 < r1 )
by D1, B;
(
i = i1 &
j = j1 )
by E1, F1, H1, I1, ZFMISC_1:33;
hence
x = y
by G1, J1;
verum
end;
Pt:
RelStr(# f,iP #) is transitive
proof
let x,
y,
z be
set ;
RELAT_2:def 8,
ORDERS_2:def 5 ( not x in the carrier of RelStr(# f,iP #) or not y in the carrier of RelStr(# f,iP #) or not z in the carrier of RelStr(# f,iP #) or not [x,y] in the InternalRel of RelStr(# f,iP #) or not [y,z] in the InternalRel of RelStr(# f,iP #) or [x,z] in the InternalRel of RelStr(# f,iP #) )
assume that A1:
x in the
carrier of
RelStr(#
f,
iP #)
and
y in the
carrier of
RelStr(#
f,
iP #)
and C1:
z in the
carrier of
RelStr(#
f,
iP #)
and D1:
[x,y] in the
InternalRel of
RelStr(#
f,
iP #)
and E1:
[y,z] in the
InternalRel of
RelStr(#
f,
iP #)
;
[x,z] in the InternalRel of RelStr(# f,iP #)
consider ix,
jy being
Nat,
rx,
sy being
real number such that F1:
x = [ix,rx]
and G1:
y = [jy,sy]
and H1:
(
ix < jy &
rx < sy )
by D1, B;
consider iy,
jz being
Nat,
ry,
sz being
real number such that I1:
y = [iy,ry]
and J1:
z = [jz,sz]
and K1:
(
iy < jz &
ry < sz )
by E1, B;
L1:
(
jy = iy &
sy = ry )
by G1, I1, ZFMISC_1:33;
(
ix < jz &
rx < sz )
by L1, H1, K1, XXREAL_0:2;
hence
[x,z] in the
InternalRel of
RelStr(#
f,
iP #)
by F1, J1, A1, C1, B;
verum
end;
reconsider P = RelStr(# f,iP #) as finite transitive antisymmetric RelStr by Pa, Pt;
C:
card P = card f
;
per cases
( ex C being Clique of P st card C >= n + 1 or ex A being StableSet of P st card A >= n + 1 )
by C, A, CSR;
suppose
ex
C being
Clique of
P st
card C >= n + 1
;
ex g being real-valued FinSubsequence st
( g c= f & card g >= n + 1 & ( g is increasing or g is decreasing ) )then consider C being
Clique of
P such that A1:
card C >= n + 1
;
set g =
C;
reconsider g =
C as
Subset of
f ;
reconsider g =
g as
Function ;
dom g c= Seg (len f)
then reconsider g =
g as
FinSubsequence by FINSEQ_1:def 12;
reconsider g =
g as
real-valued FinSubsequence ;
take
g
;
( g c= f & card g >= n + 1 & ( g is increasing or g is decreasing ) )thus
g c= f
;
( card g >= n + 1 & ( g is increasing or g is decreasing ) )thus
card g >= n + 1
by A1;
( g is increasing or g is decreasing )
g is
increasing
proof
let e1,
e2 be
ext-real number ;
VALUED_0:def 13 ( not e1 in proj1 g or not e2 in proj1 g or e2 <= e1 or not g . e2 <= g . e1 )
assume that A3:
e1 in dom g
and B3:
e2 in dom g
and C3:
e1 < e2
;
not g . e2 <= g . e1
D3:
[e1,(g . e1)] in g
by A3, FUNCT_1:8;
E3:
[e2,(g . e2)] in g
by B3, FUNCT_1:8;
reconsider p1 =
[e1,(g . e1)],
p2 =
[e2,(g . e2)] as
Element of
P by D3, E3;
F3:
p1 <> p2
by C3, ZFMISC_1:33;
per cases
( p1 <= p2 or p2 <= p1 )
by D3, E3, F3, DClique;
suppose
p1 <= p2
;
not g . e2 <= g . e1then
[p1,p2] in iP
by ORDERS_2:def 9;
then consider i,
j being
Nat,
r,
s being
real number such that A4:
p1 = [i,r]
and B4:
p2 = [j,s]
and C4:
(
i < j &
r < s )
by B;
E4:
(
j = e2 &
s = g . e2 )
by B4, ZFMISC_1:33;
thus
g . e1 < g . e2
by C4, E4, A4, ZFMISC_1:33;
verum end; end;
end; hence
(
g is
increasing or
g is
decreasing )
;
verum end; suppose
ex
A being
StableSet of
P st
card A >= n + 1
;
ex g being real-valued FinSubsequence st
( g c= f & card g >= n + 1 & ( g is increasing or g is decreasing ) )then consider A being
StableSet of
P such that A1:
card A >= n + 1
;
set g =
A;
reconsider g =
A as
Subset of
f ;
reconsider g =
g as
Function ;
B1:
dom g c= Seg (len f)
then reconsider g =
g as
FinSubsequence by FINSEQ_1:def 12;
reconsider g =
g as
real-valued FinSubsequence ;
take
g
;
( g c= f & card g >= n + 1 & ( g is increasing or g is decreasing ) )thus
g c= f
;
( card g >= n + 1 & ( g is increasing or g is decreasing ) )thus
card g >= n + 1
by A1;
( g is increasing or g is decreasing )
g is
decreasing
proof
let e1,
e2 be
ext-real number ;
VALUED_0:def 14 ( not e1 in proj1 g or not e2 in proj1 g or e2 <= e1 or not g . e1 <= g . e2 )
assume that A3:
e1 in dom g
and B3:
e2 in dom g
and C3:
e1 < e2
;
not g . e1 <= g . e2
D3:
[e1,(g . e1)] in g
by A3, FUNCT_1:8;
E3:
[e2,(g . e2)] in g
by B3, FUNCT_1:8;
reconsider p1 =
[e1,(g . e1)],
p2 =
[e2,(g . e2)] as
Element of
P by D3, E3;
F3:
p1 <> p2
by C3, ZFMISC_1:33;
G3b:
(
g . e1 = f . e1 &
g . e2 = f . e2 )
by A3, B3, GRFUNC_1:8;
G3:
g . e1 <> g . e2
by G3c, B1, A3, B3, G3b, C3, AA, FUNCT_1:def 8;
reconsider i =
e1,
j =
e2 as
Nat by B1, A3, B3;
reconsider r =
g . e1,
s =
g . e2 as
real number ;
H3:
(
p1 = [i,r] &
p2 = [j,s] )
;
end; hence
(
g is
increasing or
g is
decreasing )
;
verum end; end;