Metamath Proof Explorer


Theorem dgrcl

Description: The degree of any polynomial is a nonnegative integer. (Contributed by Mario Carneiro, 22-Jul-2014)

Ref Expression
Assertion dgrcl F Poly S deg F 0

Proof

Step Hyp Ref Expression
1 eqid coeff F = coeff F
2 1 dgrval F Poly S deg F = sup coeff F -1 0 0 <
3 nn0ssre 0
4 ltso < Or
5 soss 0 < Or < Or 0
6 3 4 5 mp2 < Or 0
7 6 a1i F Poly S < Or 0
8 0zd F Poly S 0
9 cnvimass coeff F -1 0 dom coeff F
10 1 coef F Poly S coeff F : 0 S 0
11 9 10 fssdm F Poly S coeff F -1 0 0
12 1 dgrlem F Poly S coeff F : 0 S 0 n x coeff F -1 0 x n
13 12 simprd F Poly S n x coeff F -1 0 x n
14 nn0uz 0 = 0
15 14 uzsupss 0 coeff F -1 0 0 n x coeff F -1 0 x n n 0 x coeff F -1 0 ¬ n < x x 0 x < n y coeff F -1 0 x < y
16 8 11 13 15 syl3anc F Poly S n 0 x coeff F -1 0 ¬ n < x x 0 x < n y coeff F -1 0 x < y
17 7 16 supcl F Poly S sup coeff F -1 0 0 < 0
18 2 17 eqeltrd F Poly S deg F 0