let n be Ordinal; InvLexOrder n is admissible
set ILO = InvLexOrder n;
now for x, y being object st x in Bags n & y in Bags n & not [x,y] in InvLexOrder n holds
[y,x] in InvLexOrder nlet x,
y be
object ;
( x in Bags n & y in Bags n & not [x,y] in InvLexOrder n implies [y,x] in InvLexOrder n )assume that A1:
x in Bags n
and A2:
y in Bags n
;
( [x,y] in InvLexOrder n or [y,x] in InvLexOrder n )reconsider p =
x,
q =
y as
bag of
n by A1, A2;
now ( not [p,q] in InvLexOrder n implies [q,p] in InvLexOrder n )assume A3:
not
[p,q] in InvLexOrder n
;
[q,p] in InvLexOrder nthen A4:
p <> q
by Def6;
set s =
SgmX (
(RelIncl n),
((support p) \/ (support q)));
A5:
dom p = n
by PARTFUN1:def 2;
A6:
dom q = n
by PARTFUN1:def 2;
A7:
field (RelIncl n) = n
by WELLORD2:def 1;
RelIncl n is
being_linear-order
by ORDERS_1:19;
then A8:
RelIncl n linearly_orders (support p) \/ (support q)
by A7, ORDERS_1:37, ORDERS_1:38;
then A9:
rng (SgmX ((RelIncl n),((support p) \/ (support q)))) = (support p) \/ (support q)
by PRE_POLY:def 2;
defpred S1[
Nat]
means ( $1
in dom (SgmX ((RelIncl n),((support p) \/ (support q)))) &
q . ((SgmX ((RelIncl n),((support p) \/ (support q)))) . $1) <> p . ((SgmX ((RelIncl n),((support p) \/ (support q)))) . $1) );
A10:
for
k being
Nat st
S1[
k] holds
k <= len (SgmX ((RelIncl n),((support p) \/ (support q))))
by FINSEQ_3:25;
A11:
ex
k being
Nat st
S1[
k]
proof
assume A12:
for
k being
Nat holds not
S1[
k]
;
contradiction
hence
contradiction
by A4, A5, A6, FUNCT_1:2;
verum
end; consider j being
Nat such that A13:
S1[
j]
and A14:
for
k being
Nat st
S1[
k] holds
k <= j
from NAT_1:sch 6(A10, A11);
A15:
(SgmX ((RelIncl n),((support p) \/ (support q)))) . j in rng (SgmX ((RelIncl n),((support p) \/ (support q))))
by A13, FUNCT_1:3;
then reconsider J =
(SgmX ((RelIncl n),((support p) \/ (support q)))) . j as
Ordinal by A9;
now ex J being Ordinal st
( J in n & q . J < p . J & ( for k being Ordinal st J in k & k in n holds
q . k = p . k ) )take J =
J;
( J in n & q . J < p . J & ( for k being Ordinal st J in k & k in n holds
q . k = p . k ) )thus
J in n
by A9, A15;
( q . J < p . J & ( for k being Ordinal st J in k & k in n holds
q . k = p . k ) )A16:
now for k being Ordinal st J in k & k in n holds
not q . k <> p . klet k be
Ordinal;
( J in k & k in n implies not q . k <> p . k )assume that A17:
J in k
and A18:
k in n
and A19:
q . k <> p . k
;
contradictionthen
k in (support p) \/ (support q)
by XBOOLE_0:def 3;
then consider m being
Nat such that A22:
m in dom (SgmX ((RelIncl n),((support p) \/ (support q))))
and A23:
(SgmX ((RelIncl n),((support p) \/ (support q)))) . m = k
by A9, FINSEQ_2:10;
A24:
m <= j
by A14, A19, A22, A23;
m <> j
by A17, A23;
then
m < j
by A24, XXREAL_0:1;
then
[((SgmX ((RelIncl n),((support p) \/ (support q)))) /. m),((SgmX ((RelIncl n),((support p) \/ (support q)))) /. j)] in RelIncl n
by A8, A13, A22, PRE_POLY:def 2;
then
[((SgmX ((RelIncl n),((support p) \/ (support q)))) . m),((SgmX ((RelIncl n),((support p) \/ (support q)))) /. j)] in RelIncl n
by A22, PARTFUN1:def 6;
then
[((SgmX ((RelIncl n),((support p) \/ (support q)))) . m),((SgmX ((RelIncl n),((support p) \/ (support q)))) . j)] in RelIncl n
by A13, PARTFUN1:def 6;
then
(SgmX ((RelIncl n),((support p) \/ (support q)))) . m c= (SgmX ((RelIncl n),((support p) \/ (support q)))) . j
by A9, A15, A18, A23, WELLORD2:def 1;
hence
contradiction
by A17, A23, ORDINAL1:5;
verum end; then
q . J <= p . J
by A3, A9, A15, Def6;
hence
q . J < p . J
by A13, XXREAL_0:1;
for k being Ordinal st J in k & k in n holds
q . k = p . kthus
for
k being
Ordinal st
J in k &
k in n holds
q . k = p . k
by A16;
verum end; hence
[q,p] in InvLexOrder n
by Def6;
verum end; hence
(
[x,y] in InvLexOrder n or
[y,x] in InvLexOrder n )
;
verum end;
hence
InvLexOrder n is_strongly_connected_in Bags n
; BAGORDER:def 5 ( ( for a being bag of n holds [(EmptyBag n),a] in InvLexOrder n ) & ( for a, b, c being bag of n st [a,b] in InvLexOrder n holds
[(a + c),(b + c)] in InvLexOrder n ) )
now for a being bag of n holds [(EmptyBag n),a] in InvLexOrder nlet a be
bag of
n;
[(EmptyBag n),b1] in InvLexOrder nper cases
( EmptyBag n = a or EmptyBag n <> a )
;
suppose A25:
EmptyBag n <> a
;
[(EmptyBag n),b1] in InvLexOrder nset s =
SgmX (
(RelIncl n),
(support a));
A26:
field (RelIncl n) = n
by WELLORD2:def 1;
RelIncl n is
being_linear-order
by ORDERS_1:19;
then A27:
RelIncl n linearly_orders support a
by A26, ORDERS_1:37, ORDERS_1:38;
then A28:
rng (SgmX ((RelIncl n),(support a))) = support a
by PRE_POLY:def 2;
then
rng (SgmX ((RelIncl n),(support a))) <> {}
by A25, PRE_POLY:81;
then A29:
len (SgmX ((RelIncl n),(support a))) in dom (SgmX ((RelIncl n),(support a)))
by FINSEQ_5:6, RELAT_1:38;
then A30:
(SgmX ((RelIncl n),(support a))) . (len (SgmX ((RelIncl n),(support a)))) in rng (SgmX ((RelIncl n),(support a)))
by FUNCT_1:3;
then reconsider j =
(SgmX ((RelIncl n),(support a))) . (len (SgmX ((RelIncl n),(support a)))) as
Ordinal by A28;
now ex j being Ordinal st
( j in n & (EmptyBag n) . j < a . j & ( for k being Ordinal st j in k & k in n holds
(EmptyBag n) . k = a . k ) )take j =
j;
( j in n & (EmptyBag n) . j < a . j & ( for k being Ordinal st j in k & k in n holds
(EmptyBag n) . k = a . k ) )thus
j in n
by A28, A30;
( (EmptyBag n) . j < a . j & ( for k being Ordinal st j in k & k in n holds
(EmptyBag n) . k = a . k ) )A31:
a . j <> 0
by A28, A30, PRE_POLY:def 7;
(EmptyBag n) . j = 0
by PBOOLE:5;
hence
(EmptyBag n) . j < a . j
by A31;
for k being Ordinal st j in k & k in n holds
(EmptyBag n) . k = a . klet k be
Ordinal;
( j in k & k in n implies (EmptyBag n) . k = a . k )assume that A32:
j in k
and A33:
k in n
;
(EmptyBag n) . k = a . kA34:
j c= k
by A32, ORDINAL1:def 2;
now not (EmptyBag n) . k <> a . kassume
(EmptyBag n) . k <> a . k
;
contradictionthen
a . k <> 0
by PBOOLE:5;
then
k in support a
by PRE_POLY:def 7;
then consider i being
Nat such that A35:
i in dom (SgmX ((RelIncl n),(support a)))
and A36:
(SgmX ((RelIncl n),(support a))) . i = k
by A28, FINSEQ_2:10;
A37:
i <= len (SgmX ((RelIncl n),(support a)))
by A35, FINSEQ_3:25;
per cases
( i = len (SgmX ((RelIncl n),(support a))) or i < len (SgmX ((RelIncl n),(support a))) )
by A37, XXREAL_0:1;
suppose
i < len (SgmX ((RelIncl n),(support a)))
;
contradictionthen
[((SgmX ((RelIncl n),(support a))) /. i),((SgmX ((RelIncl n),(support a))) /. (len (SgmX ((RelIncl n),(support a)))))] in RelIncl n
by A27, A29, A35, PRE_POLY:def 2;
then
[((SgmX ((RelIncl n),(support a))) . i),((SgmX ((RelIncl n),(support a))) /. (len (SgmX ((RelIncl n),(support a)))))] in RelIncl n
by A35, PARTFUN1:def 6;
then
[((SgmX ((RelIncl n),(support a))) . i),((SgmX ((RelIncl n),(support a))) . (len (SgmX ((RelIncl n),(support a)))))] in RelIncl n
by A29, PARTFUN1:def 6;
then
k c= j
by A28, A30, A33, A36, WELLORD2:def 1;
then
j = k
by A34, XBOOLE_0:def 10;
hence
contradiction
by A32;
verum end; end; end; hence
(EmptyBag n) . k = a . k
;
verum end; hence
[(EmptyBag n),a] in InvLexOrder n
by Def6;
verum end; end; end;
hence
for a being bag of n holds [(EmptyBag n),a] in InvLexOrder n
; for a, b, c being bag of n st [a,b] in InvLexOrder n holds
[(a + c),(b + c)] in InvLexOrder n
hence
for a, b, c being bag of n st [a,b] in InvLexOrder n holds
[(a + c),(b + c)] in InvLexOrder n
; verum