let n be Ordinal; :: thesis: InvLexOrder n is admissible
set ILO = InvLexOrder n;
now let x,
y be
set ;
:: thesis: ( x in Bags n & y in Bags n & not [x,y] in InvLexOrder n implies [y,x] in InvLexOrder n )assume A1:
(
x in Bags n &
y in Bags n )
;
:: thesis: ( [x,y] in InvLexOrder n or [y,x] in InvLexOrder n )reconsider p =
x,
q =
y as
bag of
by A1, POLYNOM1:def 14;
now assume A2:
not
[p,q] in InvLexOrder n
;
:: thesis: [q,p] in InvLexOrder nthen A3:
(
p <> q & ( for
i being
Ordinal holds
( not
i in n or not
p . i < q . i or ex
k being
Ordinal st
(
i in k &
k in n & not
p . k = q . k ) ) ) )
by Def8;
set s =
SgmX (RelIncl n),
((support p) \/ (support q));
A4:
(
dom p = n &
dom q = n )
by PARTFUN1:def 4;
A5:
field (RelIncl n) = n
by WELLORD2:def 1;
RelIncl n is
well-ordering
by WELLORD2:7;
then
RelIncl n is
being_linear-order
by ORDERS_1:107;
then A6:
RelIncl n linearly_orders (support p) \/ (support q)
by A5, ORDERS_1:133, ORDERS_1:134;
then A7:
rng (SgmX (RelIncl n),((support p) \/ (support q))) = (support p) \/ (support q)
by TRIANG_1: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) );
A8:
for
k being
Nat st
S1[
k] holds
k <= len (SgmX (RelIncl n),((support p) \/ (support q)))
by FINSEQ_3:27;
A9:
ex
k being
Nat st
S1[
k]
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(A8, A9);
A15:
(SgmX (RelIncl n),((support p) \/ (support q))) . j in rng (SgmX (RelIncl n),((support p) \/ (support q)))
by A13, FUNCT_1:12;
then reconsider J =
(SgmX (RelIncl n),((support p) \/ (support q))) . j as
Ordinal by A7;
now take J =
J;
:: thesis: ( 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 A7, A15;
:: thesis: ( q . J < p . J & ( for k being Ordinal st J in k & k in n holds
q . k = p . k ) )A16:
now let k be
Ordinal;
:: thesis: ( 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
;
:: thesis: contradictionthen
k in (support p) \/ (support q)
by XBOOLE_0:def 3;
then consider m being
Nat such that A20:
(
m in dom (SgmX (RelIncl n),((support p) \/ (support q))) &
(SgmX (RelIncl n),((support p) \/ (support q))) . m = k )
by A7, FINSEQ_2:11;
A21:
m <= j
by A14, A19, A20;
m <> j
by A17, A20;
then
m < j
by A21, XXREAL_0:1;
then
[((SgmX (RelIncl n),((support p) \/ (support q))) /. m),((SgmX (RelIncl n),((support p) \/ (support q))) /. j)] in RelIncl n
by A6, A13, A20, TRIANG_1:def 2;
then
[((SgmX (RelIncl n),((support p) \/ (support q))) . m),((SgmX (RelIncl n),((support p) \/ (support q))) /. j)] in RelIncl n
by A20, PARTFUN1:def 8;
then
[((SgmX (RelIncl n),((support p) \/ (support q))) . m),((SgmX (RelIncl n),((support p) \/ (support q))) . j)] in RelIncl n
by A13, PARTFUN1:def 8;
then
(SgmX (RelIncl n),((support p) \/ (support q))) . m c= (SgmX (RelIncl n),((support p) \/ (support q))) . j
by A7, A15, A18, A20, WELLORD2:def 1;
hence
contradiction
by A17, A20, ORDINAL1:7;
:: thesis: verum end; then
q . J <= p . J
by A2, A7, A15, Def8;
hence
q . J < p . J
by A13, XXREAL_0:1;
:: thesis: 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;
:: thesis: verum end; hence
[q,p] in InvLexOrder n
by Def8;
:: thesis: verum end; hence
(
[x,y] in InvLexOrder n or
[y,x] in InvLexOrder n )
;
:: thesis: verum end;
hence
InvLexOrder n is_strongly_connected_in Bags n
by RELAT_2:def 7; :: according to BAGORDER:def 7 :: thesis: ( ( for a being bag of holds [(EmptyBag n),a] in InvLexOrder n ) & ( for a, b, c being bag of st [a,b] in InvLexOrder n holds
[(a + c),(b + c)] in InvLexOrder n ) )
now let a be
bag of ;
:: thesis: [(EmptyBag n),b1] in InvLexOrder nper cases
( EmptyBag n = a or EmptyBag n <> a )
;
suppose A22:
EmptyBag n <> a
;
:: thesis: [(EmptyBag n),b1] in InvLexOrder nset s =
SgmX (RelIncl n),
(support a);
A23:
field (RelIncl n) = n
by WELLORD2:def 1;
RelIncl n is
well-ordering
by WELLORD2:7;
then
RelIncl n is
being_linear-order
by ORDERS_1:107;
then A24:
RelIncl n linearly_orders support a
by A23, ORDERS_1:133, ORDERS_1:134;
then A25:
rng (SgmX (RelIncl n),(support a)) = support a
by TRIANG_1:def 2;
then
rng (SgmX (RelIncl n),(support a)) <> {}
by A22, Th20;
then A26:
len (SgmX (RelIncl n),(support a)) in dom (SgmX (RelIncl n),(support a))
by FINSEQ_5:6, RELAT_1:60;
then A27:
(SgmX (RelIncl n),(support a)) . (len (SgmX (RelIncl n),(support a))) in rng (SgmX (RelIncl n),(support a))
by FUNCT_1:12;
then reconsider j =
(SgmX (RelIncl n),(support a)) . (len (SgmX (RelIncl n),(support a))) as
Ordinal by A25;
now take j =
j;
:: thesis: ( 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 A25, A27;
:: thesis: ( (EmptyBag n) . j < a . j & ( for k being Ordinal st j in k & k in n holds
(EmptyBag n) . k = a . k ) )A28:
a . j <> 0
by A25, A27, POLYNOM1:def 7;
(EmptyBag n) . j = 0
by POLYNOM1:56;
hence
(EmptyBag n) . j < a . j
by A28;
:: thesis: for k being Ordinal st j in k & k in n holds
(EmptyBag n) . k = a . klet k be
Ordinal;
:: thesis: ( j in k & k in n implies (EmptyBag n) . k = a . k )assume A29:
(
j in k &
k in n )
;
:: thesis: (EmptyBag n) . k = a . kA30:
j c= k
by A29, ORDINAL1:def 2;
now assume
(EmptyBag n) . k <> a . k
;
:: thesis: contradictionthen
a . k <> 0
by POLYNOM1:56;
then
k in support a
by POLYNOM1:def 7;
then consider i being
Nat such that A31:
(
i in dom (SgmX (RelIncl n),(support a)) &
(SgmX (RelIncl n),(support a)) . i = k )
by A25, FINSEQ_2:11;
A32:
i <= len (SgmX (RelIncl n),(support a))
by A31, FINSEQ_3:27;
per cases
( i = len (SgmX (RelIncl n),(support a)) or i < len (SgmX (RelIncl n),(support a)) )
by A32, XXREAL_0:1;
suppose
i < len (SgmX (RelIncl n),(support a))
;
:: thesis: contradictionthen
[((SgmX (RelIncl n),(support a)) /. i),((SgmX (RelIncl n),(support a)) /. (len (SgmX (RelIncl n),(support a))))] in RelIncl n
by A24, A26, A31, TRIANG_1:def 2;
then
[((SgmX (RelIncl n),(support a)) . i),((SgmX (RelIncl n),(support a)) /. (len (SgmX (RelIncl n),(support a))))] in RelIncl n
by A31, PARTFUN1:def 8;
then
[((SgmX (RelIncl n),(support a)) . i),((SgmX (RelIncl n),(support a)) . (len (SgmX (RelIncl n),(support a))))] in RelIncl n
by A26, PARTFUN1:def 8;
then
k c= j
by A25, A27, A29, A31, WELLORD2:def 1;
then
j = k
by A30, XBOOLE_0:def 10;
hence
contradiction
by A29;
:: thesis: verum end; end; end; hence
(EmptyBag n) . k = a . k
;
:: thesis: verum end; hence
[(EmptyBag n),a] in InvLexOrder n
by Def8;
:: thesis: verum end; end; end;
hence
for a being bag of holds [(EmptyBag n),a] in InvLexOrder n
; :: thesis: for a, b, c being bag of st [a,b] in InvLexOrder n holds
[(a + c),(b + c)] in InvLexOrder n
hence
for a, b, c being bag of st [a,b] in InvLexOrder n holds
[(a + c),(b + c)] in InvLexOrder n
; :: thesis: verum