let n be Ordinal; :: 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 f, g being Polynomial of n,L
for P being Subset of (Polynom-Ring n,L) st PolyRedRel P,T reduces f,g holds
( g <= f,T & ( g = 0_ n,L or HT g,T <= HT f,T,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 f, g being Polynomial of n,L
for P being Subset of (Polynom-Ring n,L) st PolyRedRel P,T reduces f,g holds
( g <= f,T & ( g = 0_ n,L or HT g,T <= HT f,T,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 f, g being Polynomial of n,L
for P being Subset of (Polynom-Ring n,L) st PolyRedRel P,T reduces f,g holds
( g <= f,T & ( g = 0_ n,L or HT g,T <= HT f,T,T ) )

let f, g be Polynomial of n,L; :: thesis: for P being Subset of (Polynom-Ring n,L) st PolyRedRel P,T reduces f,g holds
( g <= f,T & ( g = 0_ n,L or HT g,T <= HT f,T,T ) )

let P be Subset of (Polynom-Ring n,L); :: thesis: ( PolyRedRel P,T reduces f,g implies ( g <= f,T & ( g = 0_ n,L or HT g,T <= HT f,T,T ) ) )
set R = PolyRedRel P,T;
defpred S1[ Nat] means for f, g being Polynomial of n,L st PolyRedRel P,T reduces f,g holds
for p being RedSequence of PolyRedRel P,T st p . 1 = f & p . (len p) = g & len p = $1 holds
g <= f,T;
assume A1: PolyRedRel P,T reduces f,g ; :: thesis: ( g <= f,T & ( g = 0_ n,L or HT g,T <= HT f,T,T ) )
then consider p being RedSequence of PolyRedRel P,T such that
A2: ( p . 1 = f & p . (len p) = g ) by REWRITE1:def 3;
A3: now
let k be Nat; :: thesis: ( 1 <= k & S1[k] implies S1[k + 1] )
assume A4: 1 <= k ; :: thesis: ( S1[k] implies S1[k + 1] )
thus ( S1[k] implies S1[k + 1] ) :: thesis: verum
proof
assume A5: S1[k] ; :: thesis: S1[k + 1]
now
let f, g be Polynomial of n,L; :: thesis: ( PolyRedRel P,T reduces f,g implies for p being RedSequence of PolyRedRel P,T st p . 1 = f & p . (len p) = g & len p = k + 1 holds
g <= f,T )

assume PolyRedRel P,T reduces f,g ; :: thesis: for p being RedSequence of PolyRedRel P,T st p . 1 = f & p . (len p) = g & len p = k + 1 holds
g <= f,T

let p be RedSequence of PolyRedRel P,T; :: thesis: ( p . 1 = f & p . (len p) = g & len p = k + 1 implies g <= f,T )
assume that
A6: p . 1 = f and
A7: p . (len p) = g and
A8: len p = k + 1 ; :: thesis: g <= f,T
A9: dom p = Seg (k + 1) by A8, FINSEQ_1:def 3;
then A10: k + 1 in dom p by FINSEQ_1:6;
set q = p | (Seg k);
reconsider q = p | (Seg k) as FinSequence by FINSEQ_1:19;
A11: k <= k + 1 by NAT_1:11;
then A12: dom q = Seg k by A8, FINSEQ_1:21;
then A13: k in dom q by A4, FINSEQ_1:3;
set h = q . (len q);
A14: len q = k by A8, A11, FINSEQ_1:21;
k in dom p by A4, A9, A11, FINSEQ_1:3;
then [(p . k),(p . (k + 1))] in PolyRedRel P,T by A10, REWRITE1:def 2;
then A15: [(q . (len q)),g] in PolyRedRel P,T by A7, A8, A14, A13, FUNCT_1:70;
then consider h9, g9 being set such that
A16: [(q . (len q)),g] = [h9,g9] and
A17: h9 in NonZero (Polynom-Ring n,L) and
g9 in the carrier of (Polynom-Ring n,L) by RELSET_1:6;
A18: q . (len q) = [h9,g9] `1 by A16, MCART_1:def 1
.= h9 by MCART_1:def 1 ;
A19: now
let i be Element of NAT ; :: thesis: ( i in dom q & i + 1 in dom q implies [(q . i),(q . (i + 1))] in PolyRedRel P,T )
assume that
A20: i in dom q and
A21: i + 1 in dom q ; :: thesis: [(q . i),(q . (i + 1))] in PolyRedRel P,T
i + 1 <= k by A12, A21, FINSEQ_1:3;
then A22: i + 1 <= k + 1 by A11, XXREAL_0:2;
i <= k by A12, A20, FINSEQ_1:3;
then A23: i <= k + 1 by A11, XXREAL_0:2;
1 <= i + 1 by A12, A21, FINSEQ_1:3;
then A24: i + 1 in dom p by A9, A22, FINSEQ_1:3;
1 <= i by A12, A20, FINSEQ_1:3;
then i in dom p by A9, A23, FINSEQ_1:3;
then A25: [(p . i),(p . (i + 1))] in PolyRedRel P,T by A24, REWRITE1:def 2;
p . i = q . i by A20, FUNCT_1:70;
hence [(q . i),(q . (i + 1))] in PolyRedRel P,T by A21, A25, FUNCT_1:70; :: thesis: verum
end;
0_ n,L = 0. (Polynom-Ring n,L) by POLYNOM1:def 27;
then not h9 in {(0_ n,L)} by A17, XBOOLE_0:def 5;
then h9 <> 0_ n,L by TARSKI:def 1;
then reconsider h = q . (len q) as non-zero Polynomial of n,L by A17, A18, POLYNOM1:def 27, POLYNOM7:def 2;
reconsider q = q as RedSequence of PolyRedRel P,T by A4, A14, A19, REWRITE1:def 2;
1 in dom q by A4, A12, FINSEQ_1:3;
then A26: q . 1 = f by A6, FUNCT_1:70;
then PolyRedRel P,T reduces f,h by REWRITE1:def 3;
then A27: h <= f,T by A5, A8, A11, A26, FINSEQ_1:21;
h reduces_to g,P,T by A15, Def13;
then A28: ex r being Polynomial of n,L st
( r in P & h reduces_to g,r,T ) by Def7;
reconsider h = h as non-zero Polynomial of n,L ;
g < h,T by A28, Th43;
then g <= h,T by Def3;
hence g <= f,T by A27, Th27; :: thesis: verum
end;
hence S1[k + 1] ; :: thesis: verum
end;
end;
A29: S1[1] by Th25;
A30: for k being Nat st 1 <= k holds
S1[k] from NAT_1:sch 8(A29, A3);
consider k being Nat such that
A31: len p = k ;
1 <= k by A31, NAT_1:14;
hence A32: g <= f,T by A1, A30, A2, A31; :: thesis: ( g = 0_ n,L or HT g,T <= HT f,T,T )
now
assume g <> 0_ n,L ; :: thesis: HT g,T <= HT f,T,T
then Support g <> {} by POLYNOM7:1;
then A33: HT g,T in Support g by TERMORD:def 6;
assume A34: not HT g,T <= HT f,T,T ; :: thesis: contradiction
now
per cases ( HT f,T = HT g,T or HT f,T <> HT g,T ) ;
case HT f,T = HT g,T ; :: thesis: contradiction
end;
case A35: HT f,T <> HT g,T ; :: thesis: contradiction
end;
end;
end;
hence contradiction ; :: thesis: verum
end;
hence ( g = 0_ n,L or HT g,T <= HT f,T,T ) ; :: thesis: verum