defpred S1[ set , set ] means ex x', y' being bag of st
( x' = $1 & y' = $2 & ( TotDegree x' < TotDegree y' or ( TotDegree x' = TotDegree y' & [x',y'] in o ) ) );
consider R being Relation of (Bags n) such that
A2:
for x, y being set holds
( [x,y] in R iff ( x in Bags n & y in Bags n & S1[x,y] ) )
from RELSET_1:sch 1();
A3:
now hence
R is_reflexive_in Bags n
by RELAT_2:def 1;
:: thesis: ( R is_antisymmetric_in Bags n & R is_transitive_in Bags n )now let x,
y be
set ;
:: thesis: ( x in Bags n & y in Bags n & [x,y] in R & [y,x] in R implies x = y )assume A5:
(
x in Bags n &
y in Bags n &
[x,y] in R &
[y,x] in R )
;
:: thesis: x = yconsider x',
y' being
bag of
such that A6:
(
x' = x &
y' = y )
and A7:
(
TotDegree x' < TotDegree y' or (
TotDegree x' = TotDegree y' &
[x',y'] in o ) )
by A2, A5;
consider y'',
x'' being
bag of
such that A8:
(
y'' = y &
x'' = x )
and A9:
(
TotDegree y'' < TotDegree x'' or (
TotDegree y'' = TotDegree x'' &
[y'',x''] in o ) )
by A2, A5;
hence
x = y
by A5, A6, ORDERS_1:13;
:: thesis: verum end; hence
R is_antisymmetric_in Bags n
by RELAT_2:def 4;
:: thesis: R is_transitive_in Bags nnow let x,
y,
z be
set ;
:: thesis: ( x in Bags n & y in Bags n & z in Bags n & [x,y] in R & [y,z] in R implies [b1,b3] in R )assume A12:
(
x in Bags n &
y in Bags n &
z in Bags n &
[x,y] in R &
[y,z] in R )
;
:: thesis: [b1,b3] in Rconsider x',
y' being
bag of
such that A13:
(
x' = x &
y' = y & (
TotDegree x' < TotDegree y' or (
TotDegree x' = TotDegree y' &
[x',y'] in o ) ) )
by A2, A12;
consider y'',
z' being
bag of
such that A14:
(
y'' = y &
z' = z & (
TotDegree y'' < TotDegree z' or (
TotDegree y'' = TotDegree z' &
[y'',z'] in o ) ) )
by A2, A12;
per cases
( TotDegree x' < TotDegree y' or ( TotDegree x' = TotDegree y' & [x',y'] in o ) )
by A13;
suppose A16:
(
TotDegree x' = TotDegree y' &
[x',y'] in o )
;
:: thesis: [b1,b3] in Rnow per cases
( TotDegree y' < TotDegree z' or ( TotDegree y' = TotDegree z' & [y',z'] in o ) )
by A13, A14;
suppose
(
TotDegree y' = TotDegree z' &
[y',z'] in o )
;
:: thesis: [x,z] in Rthen
[x',z'] in o
by A12, A13, A14, A16, ORDERS_1:14;
hence
[x,z] in R
by A2, A12, A13, A14, A16;
:: thesis: verum end; end; end; hence
[x,z] in R
;
:: thesis: verum end; end; end; hence
R is_transitive_in Bags n
by RELAT_2:def 8;
:: thesis: verum end;
then
( dom R = Bags n & field R = Bags n )
by ORDERS_1:98;
then reconsider R = R as TermOrder of n by A3, PARTFUN1:def 4, RELAT_2:def 9, RELAT_2:def 12, RELAT_2:def 16;
take
R
; :: thesis: for a, b being bag of holds
( [a,b] in R iff ( TotDegree a < TotDegree b or ( TotDegree a = TotDegree b & [a,b] in o ) ) )
let a, b be bag of ; :: thesis: ( [a,b] in R iff ( TotDegree a < TotDegree b or ( TotDegree a = TotDegree b & [a,b] in o ) ) )
assume A19:
( TotDegree a < TotDegree b or ( TotDegree a = TotDegree b & [a,b] in o ) )
; :: thesis: [a,b] in R
( a in Bags n & b in Bags n )
by POLYNOM1:def 14;
hence
[a,b] in R
by A2, A19; :: thesis: verum