let n be Element of NAT ; :: thesis: for T being connected admissible TermOrder of n
for L being non empty non degenerated right_complementable almost_left_invertible associative commutative well-unital distributive Abelian add-associative right_zeroed doubleLoopStr
for P being Subset of (Polynom-Ring n,L) st ( for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_reducible_wrt P,T ) holds
for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_top_reducible_wrt P,T

let T be connected admissible TermOrder of n; :: thesis: for L being non empty non degenerated right_complementable almost_left_invertible associative commutative well-unital distributive Abelian add-associative right_zeroed doubleLoopStr
for P being Subset of (Polynom-Ring n,L) st ( for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_reducible_wrt P,T ) holds
for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_top_reducible_wrt P,T

let L be non empty non degenerated right_complementable almost_left_invertible associative commutative well-unital distributive Abelian add-associative right_zeroed doubleLoopStr ; :: thesis: for P being Subset of (Polynom-Ring n,L) st ( for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_reducible_wrt P,T ) holds
for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_top_reducible_wrt P,T

let P be Subset of (Polynom-Ring n,L); :: thesis: ( ( for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_reducible_wrt P,T ) implies for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_top_reducible_wrt P,T )

assume A1: for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_reducible_wrt P,T ; :: thesis: for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_top_reducible_wrt P,T

thus for f being non-zero Polynomial of n,L st f in P -Ideal holds
f is_top_reducible_wrt P,T :: thesis: verum
proof
let f be non-zero Polynomial of n,L; :: thesis: ( f in P -Ideal implies f is_top_reducible_wrt P,T )
assume A2: f in P -Ideal ; :: thesis: f is_top_reducible_wrt P,T
set H = { g where g is non-zero Polynomial of n,L : ( g in P -Ideal & not g is_top_reducible_wrt P,T ) } ;
assume not f is_top_reducible_wrt P,T ; :: thesis: contradiction
then A3: f in { g where g is non-zero Polynomial of n,L : ( g in P -Ideal & not g is_top_reducible_wrt P,T ) } by A2;
now
let u be set ; :: thesis: ( u in { g where g is non-zero Polynomial of n,L : ( g in P -Ideal & not g is_top_reducible_wrt P,T ) } implies u in the carrier of (Polynom-Ring n,L) )
assume u in { g where g is non-zero Polynomial of n,L : ( g in P -Ideal & not g is_top_reducible_wrt P,T ) } ; :: thesis: u in the carrier of (Polynom-Ring n,L)
then consider g' being non-zero Polynomial of n,L such that
A4: ( u = g' & g' in P -Ideal & not g' is_top_reducible_wrt P,T ) ;
thus u in the carrier of (Polynom-Ring n,L) by A4; :: thesis: verum
end;
then reconsider H = { g where g is non-zero Polynomial of n,L : ( g in P -Ideal & not g is_top_reducible_wrt P,T ) } as non empty Subset of (Polynom-Ring n,L) by A3, TARSKI:def 3;
consider p being Polynomial of n,L such that
A5: ( p in H & ( for q being Polynomial of n,L st q in H holds
p <= q,T ) ) by POLYRED:31;
consider p' being non-zero Polynomial of n,L such that
A6: ( p' = p & p' in P -Ideal & not p' is_top_reducible_wrt P,T ) by A5;
reconsider p = p as non-zero Polynomial of n,L by A6;
p is_reducible_wrt P,T by A1, A6;
then consider q being Polynomial of n,L such that
A7: p reduces_to q,P,T by POLYRED:def 9;
consider u being Polynomial of n,L such that
A8: ( u in P & p reduces_to q,u,T ) by A7, POLYRED:def 7;
consider b being bag of such that
A9: p reduces_to q,u,b,T by A8, POLYRED:def 6;
A10: u <> 0_ n,L by A9, POLYRED:def 5;
then reconsider u = u as non-zero Polynomial of n,L by POLYNOM7:def 2;
A11: q < p,T by A8, POLYRED:43;
consider m being Monomial of n,L such that
A12: q = p - (m *' u) by A8, Th1;
reconsider uu = u, pp = p, mm = m as Element of (Polynom-Ring n,L) by POLYNOM1:def 27;
reconsider uu = uu, pp = pp, mm = mm as Element of (Polynom-Ring n,L) ;
uu in P -Ideal by A8, Lm1;
then mm * uu in P -Ideal by IDEAL_1:def 2;
then - (mm * uu) in P -Ideal by IDEAL_1:13;
then A13: pp + (- (mm * uu)) in P -Ideal by A6, IDEAL_1:def 1;
mm * uu = m *' u by POLYNOM1:def 27;
then p - (m *' u) = pp - (mm * uu) by Lm2;
then A14: q in P -Ideal by A12, A13, RLVECT_1:def 12;
A15: p <> 0_ n,L by POLYNOM7:def 2;
then Support p <> {} by POLYNOM7:1;
then A16: HT p,T in Support p by TERMORD:def 6;
consider b being bag of such that
A17: p reduces_to q,u,b,T by A8, POLYRED:def 6;
b in Support p by A17, POLYRED:def 5;
then A18: b <= HT p,T,T by TERMORD:def 6;
now end;
then b < HT p,T,T by A18, TERMORD:def 3;
then A19: HT p,T in Support q by A16, A17, POLYRED:40;
now
per cases ( q <> 0_ n,L or q = 0_ n,L ) ;
case A20: q <> 0_ n,L ; :: thesis: contradiction
then reconsider q = q as non-zero Polynomial of n,L by POLYNOM7:def 2;
Support q <> {} by A20, POLYNOM7:1;
then A21: HT q,T in Support q by TERMORD:def 6;
A22: HT p,T <= HT q,T,T by A19, TERMORD:def 6;
HT q,T <= HT p,T,T by A8, A21, POLYRED:42;
then A23: HT q,T = HT p,T by A22, TERMORD:7;
then consider u' being Polynomial of n,L such that
A24: ( u' in P & q is_top_reducible_wrt u',T ) by POLYRED:def 12;
consider q' being Polynomial of n,L such that
A25: q top_reduces_to q',u',T by A24, POLYRED:def 11;
A26: q reduces_to q',u', HT q,T,T by A25, POLYRED:def 10;
then A27: ( q <> 0_ n,L & u' <> 0_ n,L & HT q,T in Support q & ex s being bag of st
( s + (HT u',T) = HT q,T & q' = q - (((q . (HT q,T)) / (HC u',T)) * (s *' u')) ) ) by POLYRED:def 5;
consider s being bag of such that
A28: ( s + (HT u',T) = HT q,T & q' = q - (((q . (HT q,T)) / (HC u',T)) * (s *' u')) ) by A26, POLYRED:def 5;
set qq = p - (((p . (HT p,T)) / (HC u',T)) * (s *' u'));
A29: p <> 0_ n,L by POLYNOM7:def 2;
then Support p <> {} by POLYNOM7:1;
then HT p,T in Support p by TERMORD:def 6;
then p reduces_to p - (((p . (HT p,T)) / (HC u',T)) * (s *' u')),u', HT p,T,T by A23, A27, A28, A29, POLYRED:def 5;
then p top_reduces_to p - (((p . (HT p,T)) / (HC u',T)) * (s *' u')),u',T by POLYRED:def 10;
then p is_top_reducible_wrt u',T by POLYRED:def 11;
hence contradiction by A6, A24, POLYRED:def 12; :: thesis: verum
end;
case q = 0_ n,L ; :: thesis: contradiction
then A30: m *' u = (p - (m *' u)) + (m *' u) by A12, POLYRED:2
.= (p + (- (m *' u))) + (m *' u) by POLYNOM1:def 23
.= p + ((- (m *' u)) + (m *' u)) by POLYNOM1:80
.= p + (0_ n,L) by POLYRED:3
.= p by POLYNOM1:82 ;
then reconsider m = m as non-zero Polynomial of n,L by POLYNOM7:def 2;
A32: HT p,T = (HT m,T) + (HT u,T) by A30, TERMORD:31;
set pp = p - (((p . (HT p,T)) / (HC u,T)) * ((HT m,T) *' u));
p reduces_to p - (((p . (HT p,T)) / (HC u,T)) * ((HT m,T) *' u)),u, HT p,T,T by A10, A15, A16, A32, POLYRED:def 5;
then p top_reduces_to p - (((p . (HT p,T)) / (HC u,T)) * ((HT m,T) *' u)),u,T by POLYRED:def 10;
then p is_top_reducible_wrt u,T by POLYRED:def 11;
hence contradiction by A6, A8, POLYRED:def 12; :: thesis: verum
end;
end;
end;
hence contradiction ; :: thesis: verum
end;