Mathbox for Stefan O'Rear < Previous   Next > Nearby theorems Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  dgrsub2 Structured version   Visualization version   GIF version

Theorem dgrsub2 40250
 Description: Subtracting two polynomials with the same degree and top coefficient gives a polynomial of strictly lower degree. (Contributed by Stefan O'Rear, 25-Nov-2014.)
Hypothesis
Ref Expression
dgrsub2.a 𝑁 = (deg‘𝐹)
Assertion
Ref Expression
dgrsub2 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (deg‘(𝐹f𝐺)) < 𝑁)

Proof of Theorem dgrsub2
StepHypRef Expression
1 simpr2 1192 . . 3 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → 𝑁 ∈ ℕ)
2 dgr0 24903 . . . . 5 (deg‘0𝑝) = 0
3 nngt0 11674 . . . . 5 (𝑁 ∈ ℕ → 0 < 𝑁)
42, 3eqbrtrid 5069 . . . 4 (𝑁 ∈ ℕ → (deg‘0𝑝) < 𝑁)
5 fveq2 6655 . . . . 5 ((𝐹f𝐺) = 0𝑝 → (deg‘(𝐹f𝐺)) = (deg‘0𝑝))
65breq1d 5044 . . . 4 ((𝐹f𝐺) = 0𝑝 → ((deg‘(𝐹f𝐺)) < 𝑁 ↔ (deg‘0𝑝) < 𝑁))
74, 6syl5ibrcom 250 . . 3 (𝑁 ∈ ℕ → ((𝐹f𝐺) = 0𝑝 → (deg‘(𝐹f𝐺)) < 𝑁))
81, 7syl 17 . 2 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → ((𝐹f𝐺) = 0𝑝 → (deg‘(𝐹f𝐺)) < 𝑁))
9 plyssc 24841 . . . . . . . 8 (Poly‘𝑆) ⊆ (Poly‘ℂ)
109sseli 3913 . . . . . . 7 (𝐹 ∈ (Poly‘𝑆) → 𝐹 ∈ (Poly‘ℂ))
11 plyssc 24841 . . . . . . . 8 (Poly‘𝑇) ⊆ (Poly‘ℂ)
1211sseli 3913 . . . . . . 7 (𝐺 ∈ (Poly‘𝑇) → 𝐺 ∈ (Poly‘ℂ))
13 eqid 2798 . . . . . . . 8 (deg‘𝐹) = (deg‘𝐹)
14 eqid 2798 . . . . . . . 8 (deg‘𝐺) = (deg‘𝐺)
1513, 14dgrsub 24913 . . . . . . 7 ((𝐹 ∈ (Poly‘ℂ) ∧ 𝐺 ∈ (Poly‘ℂ)) → (deg‘(𝐹f𝐺)) ≤ if((deg‘𝐹) ≤ (deg‘𝐺), (deg‘𝐺), (deg‘𝐹)))
1610, 12, 15syl2an 598 . . . . . 6 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) → (deg‘(𝐹f𝐺)) ≤ if((deg‘𝐹) ≤ (deg‘𝐺), (deg‘𝐺), (deg‘𝐹)))
1716adantr 484 . . . . 5 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (deg‘(𝐹f𝐺)) ≤ if((deg‘𝐹) ≤ (deg‘𝐺), (deg‘𝐺), (deg‘𝐹)))
18 simpr1 1191 . . . . . . 7 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (deg‘𝐺) = 𝑁)
19 dgrsub2.a . . . . . . . . 9 𝑁 = (deg‘𝐹)
2019eqcomi 2807 . . . . . . . 8 (deg‘𝐹) = 𝑁
2120a1i 11 . . . . . . 7 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (deg‘𝐹) = 𝑁)
2218, 21ifeq12d 4448 . . . . . 6 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → if((deg‘𝐹) ≤ (deg‘𝐺), (deg‘𝐺), (deg‘𝐹)) = if((deg‘𝐹) ≤ (deg‘𝐺), 𝑁, 𝑁))
23 ifid 4467 . . . . . 6 if((deg‘𝐹) ≤ (deg‘𝐺), 𝑁, 𝑁) = 𝑁
2422, 23eqtrdi 2849 . . . . 5 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → if((deg‘𝐹) ≤ (deg‘𝐺), (deg‘𝐺), (deg‘𝐹)) = 𝑁)
2517, 24breqtrd 5060 . . . 4 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (deg‘(𝐹f𝐺)) ≤ 𝑁)
26 eqid 2798 . . . . . . . . 9 (coeff‘𝐹) = (coeff‘𝐹)
27 eqid 2798 . . . . . . . . 9 (coeff‘𝐺) = (coeff‘𝐺)
2826, 27coesub 24898 . . . . . . . 8 ((𝐹 ∈ (Poly‘ℂ) ∧ 𝐺 ∈ (Poly‘ℂ)) → (coeff‘(𝐹f𝐺)) = ((coeff‘𝐹) ∘f − (coeff‘𝐺)))
2910, 12, 28syl2an 598 . . . . . . 7 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) → (coeff‘(𝐹f𝐺)) = ((coeff‘𝐹) ∘f − (coeff‘𝐺)))
3029adantr 484 . . . . . 6 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (coeff‘(𝐹f𝐺)) = ((coeff‘𝐹) ∘f − (coeff‘𝐺)))
3130fveq1d 6657 . . . . 5 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → ((coeff‘(𝐹f𝐺))‘𝑁) = (((coeff‘𝐹) ∘f − (coeff‘𝐺))‘𝑁))
321nnnn0d 11963 . . . . . 6 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → 𝑁 ∈ ℕ0)
3326coef3 24873 . . . . . . . . 9 (𝐹 ∈ (Poly‘𝑆) → (coeff‘𝐹):ℕ0⟶ℂ)
3433ad2antrr 725 . . . . . . . 8 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (coeff‘𝐹):ℕ0⟶ℂ)
3534ffnd 6496 . . . . . . 7 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (coeff‘𝐹) Fn ℕ0)
3627coef3 24873 . . . . . . . . 9 (𝐺 ∈ (Poly‘𝑇) → (coeff‘𝐺):ℕ0⟶ℂ)
3736ad2antlr 726 . . . . . . . 8 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (coeff‘𝐺):ℕ0⟶ℂ)
3837ffnd 6496 . . . . . . 7 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (coeff‘𝐺) Fn ℕ0)
39 nn0ex 11909 . . . . . . . 8 0 ∈ V
4039a1i 11 . . . . . . 7 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → ℕ0 ∈ V)
41 inidm 4148 . . . . . . 7 (ℕ0 ∩ ℕ0) = ℕ0
42 simplr3 1214 . . . . . . 7 ((((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) ∧ 𝑁 ∈ ℕ0) → ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))
43 eqidd 2799 . . . . . . 7 ((((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) ∧ 𝑁 ∈ ℕ0) → ((coeff‘𝐺)‘𝑁) = ((coeff‘𝐺)‘𝑁))
4435, 38, 40, 40, 41, 42, 43ofval 7410 . . . . . 6 ((((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) ∧ 𝑁 ∈ ℕ0) → (((coeff‘𝐹) ∘f − (coeff‘𝐺))‘𝑁) = (((coeff‘𝐺)‘𝑁) − ((coeff‘𝐺)‘𝑁)))
4532, 44mpdan 686 . . . . 5 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (((coeff‘𝐹) ∘f − (coeff‘𝐺))‘𝑁) = (((coeff‘𝐺)‘𝑁) − ((coeff‘𝐺)‘𝑁)))
4637, 32ffvelrnd 6839 . . . . . 6 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → ((coeff‘𝐺)‘𝑁) ∈ ℂ)
4746subidd 10992 . . . . 5 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (((coeff‘𝐺)‘𝑁) − ((coeff‘𝐺)‘𝑁)) = 0)
4831, 45, 473eqtrd 2837 . . . 4 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → ((coeff‘(𝐹f𝐺))‘𝑁) = 0)
49 plysubcl 24863 . . . . . . 7 ((𝐹 ∈ (Poly‘ℂ) ∧ 𝐺 ∈ (Poly‘ℂ)) → (𝐹f𝐺) ∈ (Poly‘ℂ))
5010, 12, 49syl2an 598 . . . . . 6 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) → (𝐹f𝐺) ∈ (Poly‘ℂ))
5150adantr 484 . . . . 5 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (𝐹f𝐺) ∈ (Poly‘ℂ))
52 eqid 2798 . . . . . 6 (deg‘(𝐹f𝐺)) = (deg‘(𝐹f𝐺))
53 eqid 2798 . . . . . 6 (coeff‘(𝐹f𝐺)) = (coeff‘(𝐹f𝐺))
5452, 53dgrlt 24907 . . . . 5 (((𝐹f𝐺) ∈ (Poly‘ℂ) ∧ 𝑁 ∈ ℕ0) → (((𝐹f𝐺) = 0𝑝 ∨ (deg‘(𝐹f𝐺)) < 𝑁) ↔ ((deg‘(𝐹f𝐺)) ≤ 𝑁 ∧ ((coeff‘(𝐹f𝐺))‘𝑁) = 0)))
5551, 32, 54syl2anc 587 . . . 4 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (((𝐹f𝐺) = 0𝑝 ∨ (deg‘(𝐹f𝐺)) < 𝑁) ↔ ((deg‘(𝐹f𝐺)) ≤ 𝑁 ∧ ((coeff‘(𝐹f𝐺))‘𝑁) = 0)))
5625, 48, 55mpbir2and 712 . . 3 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → ((𝐹f𝐺) = 0𝑝 ∨ (deg‘(𝐹f𝐺)) < 𝑁))
5756ord 861 . 2 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (¬ (𝐹f𝐺) = 0𝑝 → (deg‘(𝐹f𝐺)) < 𝑁))
588, 57pm2.61d 182 1 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑇)) ∧ ((deg‘𝐺) = 𝑁𝑁 ∈ ℕ ∧ ((coeff‘𝐹)‘𝑁) = ((coeff‘𝐺)‘𝑁))) → (deg‘(𝐹f𝐺)) < 𝑁)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 209   ∧ wa 399   ∨ wo 844   ∧ w3a 1084   = wceq 1538   ∈ wcel 2111  Vcvv 3442  ifcif 4428   class class class wbr 5034  ⟶wf 6328  ‘cfv 6332  (class class class)co 7145   ∘f cof 7398  ℂcc 10542  0cc0 10544   < clt 10682   ≤ cle 10683   − cmin 10877  ℕcn 11643  ℕ0cn0 11903  0𝑝c0p 24314  Polycply 24825  coeffccoe 24827  degcdgr 24828 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2113  ax-9 2121  ax-10 2142  ax-11 2158  ax-12 2175  ax-ext 2770  ax-rep 5158  ax-sep 5171  ax-nul 5178  ax-pow 5235  ax-pr 5299  ax-un 7454  ax-inf2 9106  ax-cnex 10600  ax-resscn 10601  ax-1cn 10602  ax-icn 10603  ax-addcl 10604  ax-addrcl 10605  ax-mulcl 10606  ax-mulrcl 10607  ax-mulcom 10608  ax-addass 10609  ax-mulass 10610  ax-distr 10611  ax-i2m1 10612  ax-1ne0 10613  ax-1rid 10614  ax-rnegex 10615  ax-rrecex 10616  ax-cnre 10617  ax-pre-lttri 10618  ax-pre-lttrn 10619  ax-pre-ltadd 10620  ax-pre-mulgt0 10621  ax-pre-sup 10622  ax-addf 10623 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-fal 1551  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2598  df-eu 2629  df-clab 2777  df-cleq 2791  df-clel 2870  df-nfc 2938  df-ne 2988  df-nel 3092  df-ral 3111  df-rex 3112  df-reu 3113  df-rmo 3114  df-rab 3115  df-v 3444  df-sbc 3723  df-csb 3831  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-pss 3902  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-tp 4533  df-op 4535  df-uni 4805  df-int 4843  df-iun 4887  df-br 5035  df-opab 5097  df-mpt 5115  df-tr 5141  df-id 5429  df-eprel 5434  df-po 5442  df-so 5443  df-fr 5482  df-se 5483  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-pred 6123  df-ord 6169  df-on 6170  df-lim 6171  df-suc 6172  df-iota 6291  df-fun 6334  df-fn 6335  df-f 6336  df-f1 6337  df-fo 6338  df-f1o 6339  df-fv 6340  df-isom 6341  df-riota 7103  df-ov 7148  df-oprab 7149  df-mpo 7150  df-of 7400  df-om 7574  df-1st 7684  df-2nd 7685  df-wrecs 7948  df-recs 8009  df-rdg 8047  df-1o 8103  df-oadd 8107  df-er 8290  df-map 8409  df-pm 8410  df-en 8511  df-dom 8512  df-sdom 8513  df-fin 8514  df-sup 8908  df-inf 8909  df-oi 8976  df-card 9370  df-pnf 10684  df-mnf 10685  df-xr 10686  df-ltxr 10687  df-le 10688  df-sub 10879  df-neg 10880  df-div 11305  df-nn 11644  df-2 11706  df-3 11707  df-n0 11904  df-z 11990  df-uz 12252  df-rp 12398  df-fz 12906  df-fzo 13049  df-fl 13177  df-seq 13385  df-exp 13446  df-hash 13707  df-cj 14470  df-re 14471  df-im 14472  df-sqrt 14606  df-abs 14607  df-clim 14857  df-rlim 14858  df-sum 15055  df-0p 24315  df-ply 24829  df-coe 24831  df-dgr 24832 This theorem is referenced by:  mpaaeu  40265
 Copyright terms: Public domain W3C validator