MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  dgradd2 Structured version   Visualization version   GIF version

Theorem dgradd2 23772
Description: The degree of a sum of polynomials of unequal degrees is the degree of the larger polynomial. (Contributed by Mario Carneiro, 24-Jul-2014.)
Hypotheses
Ref Expression
dgradd.1 𝑀 = (deg‘𝐹)
dgradd.2 𝑁 = (deg‘𝐺)
Assertion
Ref Expression
dgradd2 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (deg‘(𝐹𝑓 + 𝐺)) = 𝑁)

Proof of Theorem dgradd2
StepHypRef Expression
1 plyaddcl 23724 . . . . . 6 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆)) → (𝐹𝑓 + 𝐺) ∈ (Poly‘ℂ))
213adant3 1073 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (𝐹𝑓 + 𝐺) ∈ (Poly‘ℂ))
3 dgrcl 23737 . . . . 5 ((𝐹𝑓 + 𝐺) ∈ (Poly‘ℂ) → (deg‘(𝐹𝑓 + 𝐺)) ∈ ℕ0)
42, 3syl 17 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (deg‘(𝐹𝑓 + 𝐺)) ∈ ℕ0)
54nn0red 11201 . . 3 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (deg‘(𝐹𝑓 + 𝐺)) ∈ ℝ)
6 dgradd.2 . . . . . . 7 𝑁 = (deg‘𝐺)
7 dgrcl 23737 . . . . . . 7 (𝐺 ∈ (Poly‘𝑆) → (deg‘𝐺) ∈ ℕ0)
86, 7syl5eqel 2691 . . . . . 6 (𝐺 ∈ (Poly‘𝑆) → 𝑁 ∈ ℕ0)
983ad2ant2 1075 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑁 ∈ ℕ0)
109nn0red 11201 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑁 ∈ ℝ)
11 dgradd.1 . . . . . . 7 𝑀 = (deg‘𝐹)
12 dgrcl 23737 . . . . . . 7 (𝐹 ∈ (Poly‘𝑆) → (deg‘𝐹) ∈ ℕ0)
1311, 12syl5eqel 2691 . . . . . 6 (𝐹 ∈ (Poly‘𝑆) → 𝑀 ∈ ℕ0)
14133ad2ant1 1074 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑀 ∈ ℕ0)
1514nn0red 11201 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑀 ∈ ℝ)
1610, 15ifcld 4080 . . 3 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → if(𝑀𝑁, 𝑁, 𝑀) ∈ ℝ)
1711, 6dgradd 23771 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆)) → (deg‘(𝐹𝑓 + 𝐺)) ≤ if(𝑀𝑁, 𝑁, 𝑀))
18173adant3 1073 . . 3 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (deg‘(𝐹𝑓 + 𝐺)) ≤ if(𝑀𝑁, 𝑁, 𝑀))
1910leidd 10445 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑁𝑁)
20 simp3 1055 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑀 < 𝑁)
2115, 10, 20ltled 10036 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑀𝑁)
22 breq1 4580 . . . . 5 (𝑁 = if(𝑀𝑁, 𝑁, 𝑀) → (𝑁𝑁 ↔ if(𝑀𝑁, 𝑁, 𝑀) ≤ 𝑁))
23 breq1 4580 . . . . 5 (𝑀 = if(𝑀𝑁, 𝑁, 𝑀) → (𝑀𝑁 ↔ if(𝑀𝑁, 𝑁, 𝑀) ≤ 𝑁))
2422, 23ifboth 4073 . . . 4 ((𝑁𝑁𝑀𝑁) → if(𝑀𝑁, 𝑁, 𝑀) ≤ 𝑁)
2519, 21, 24syl2anc 690 . . 3 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → if(𝑀𝑁, 𝑁, 𝑀) ≤ 𝑁)
265, 16, 10, 18, 25letrd 10045 . 2 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (deg‘(𝐹𝑓 + 𝐺)) ≤ 𝑁)
27 eqid 2609 . . . . . . . 8 (coeff‘𝐹) = (coeff‘𝐹)
28 eqid 2609 . . . . . . . 8 (coeff‘𝐺) = (coeff‘𝐺)
2927, 28coeadd 23755 . . . . . . 7 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆)) → (coeff‘(𝐹𝑓 + 𝐺)) = ((coeff‘𝐹) ∘𝑓 + (coeff‘𝐺)))
30293adant3 1073 . . . . . 6 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (coeff‘(𝐹𝑓 + 𝐺)) = ((coeff‘𝐹) ∘𝑓 + (coeff‘𝐺)))
3130fveq1d 6089 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ((coeff‘(𝐹𝑓 + 𝐺))‘𝑁) = (((coeff‘𝐹) ∘𝑓 + (coeff‘𝐺))‘𝑁))
3227coef3 23736 . . . . . . . . 9 (𝐹 ∈ (Poly‘𝑆) → (coeff‘𝐹):ℕ0⟶ℂ)
33323ad2ant1 1074 . . . . . . . 8 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (coeff‘𝐹):ℕ0⟶ℂ)
34 ffn 5943 . . . . . . . 8 ((coeff‘𝐹):ℕ0⟶ℂ → (coeff‘𝐹) Fn ℕ0)
3533, 34syl 17 . . . . . . 7 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (coeff‘𝐹) Fn ℕ0)
3628coef3 23736 . . . . . . . . 9 (𝐺 ∈ (Poly‘𝑆) → (coeff‘𝐺):ℕ0⟶ℂ)
37363ad2ant2 1075 . . . . . . . 8 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (coeff‘𝐺):ℕ0⟶ℂ)
38 ffn 5943 . . . . . . . 8 ((coeff‘𝐺):ℕ0⟶ℂ → (coeff‘𝐺) Fn ℕ0)
3937, 38syl 17 . . . . . . 7 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (coeff‘𝐺) Fn ℕ0)
40 nn0ex 11147 . . . . . . . 8 0 ∈ V
4140a1i 11 . . . . . . 7 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ℕ0 ∈ V)
42 inidm 3783 . . . . . . 7 (ℕ0 ∩ ℕ0) = ℕ0
4315, 10ltnled 10035 . . . . . . . . . 10 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (𝑀 < 𝑁 ↔ ¬ 𝑁𝑀))
4420, 43mpbid 220 . . . . . . . . 9 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ¬ 𝑁𝑀)
45 simp1 1053 . . . . . . . . . . 11 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝐹 ∈ (Poly‘𝑆))
4627, 11dgrub 23738 . . . . . . . . . . . 12 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝑁 ∈ ℕ0 ∧ ((coeff‘𝐹)‘𝑁) ≠ 0) → 𝑁𝑀)
47463expia 1258 . . . . . . . . . . 11 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝑁 ∈ ℕ0) → (((coeff‘𝐹)‘𝑁) ≠ 0 → 𝑁𝑀))
4845, 9, 47syl2anc 690 . . . . . . . . . 10 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (((coeff‘𝐹)‘𝑁) ≠ 0 → 𝑁𝑀))
4948necon1bd 2799 . . . . . . . . 9 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (¬ 𝑁𝑀 → ((coeff‘𝐹)‘𝑁) = 0))
5044, 49mpd 15 . . . . . . . 8 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ((coeff‘𝐹)‘𝑁) = 0)
5150adantr 479 . . . . . . 7 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) ∧ 𝑁 ∈ ℕ0) → ((coeff‘𝐹)‘𝑁) = 0)
52 eqidd 2610 . . . . . . 7 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) ∧ 𝑁 ∈ ℕ0) → ((coeff‘𝐺)‘𝑁) = ((coeff‘𝐺)‘𝑁))
5335, 39, 41, 41, 42, 51, 52ofval 6781 . . . . . 6 (((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) ∧ 𝑁 ∈ ℕ0) → (((coeff‘𝐹) ∘𝑓 + (coeff‘𝐺))‘𝑁) = (0 + ((coeff‘𝐺)‘𝑁)))
549, 53mpdan 698 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (((coeff‘𝐹) ∘𝑓 + (coeff‘𝐺))‘𝑁) = (0 + ((coeff‘𝐺)‘𝑁)))
5537, 9ffvelrnd 6252 . . . . . 6 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ((coeff‘𝐺)‘𝑁) ∈ ℂ)
5655addid2d 10088 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (0 + ((coeff‘𝐺)‘𝑁)) = ((coeff‘𝐺)‘𝑁))
5731, 54, 563eqtrd 2647 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ((coeff‘(𝐹𝑓 + 𝐺))‘𝑁) = ((coeff‘𝐺)‘𝑁))
58 simp2 1054 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝐺 ∈ (Poly‘𝑆))
59 0red 9897 . . . . . . 7 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 0 ∈ ℝ)
6014nn0ge0d 11203 . . . . . . 7 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 0 ≤ 𝑀)
6159, 15, 10, 60, 20lelttrd 10046 . . . . . 6 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 0 < 𝑁)
6261gt0ne0d 10443 . . . . 5 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑁 ≠ 0)
636, 28dgreq0 23769 . . . . . . 7 (𝐺 ∈ (Poly‘𝑆) → (𝐺 = 0𝑝 ↔ ((coeff‘𝐺)‘𝑁) = 0))
64 fveq2 6087 . . . . . . . 8 (𝐺 = 0𝑝 → (deg‘𝐺) = (deg‘0𝑝))
65 dgr0 23766 . . . . . . . . 9 (deg‘0𝑝) = 0
6665eqcomi 2618 . . . . . . . 8 0 = (deg‘0𝑝)
6764, 6, 663eqtr4g 2668 . . . . . . 7 (𝐺 = 0𝑝𝑁 = 0)
6863, 67syl6bir 242 . . . . . 6 (𝐺 ∈ (Poly‘𝑆) → (((coeff‘𝐺)‘𝑁) = 0 → 𝑁 = 0))
6968necon3d 2802 . . . . 5 (𝐺 ∈ (Poly‘𝑆) → (𝑁 ≠ 0 → ((coeff‘𝐺)‘𝑁) ≠ 0))
7058, 62, 69sylc 62 . . . 4 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ((coeff‘𝐺)‘𝑁) ≠ 0)
7157, 70eqnetrd 2848 . . 3 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ((coeff‘(𝐹𝑓 + 𝐺))‘𝑁) ≠ 0)
72 eqid 2609 . . . 4 (coeff‘(𝐹𝑓 + 𝐺)) = (coeff‘(𝐹𝑓 + 𝐺))
73 eqid 2609 . . . 4 (deg‘(𝐹𝑓 + 𝐺)) = (deg‘(𝐹𝑓 + 𝐺))
7472, 73dgrub 23738 . . 3 (((𝐹𝑓 + 𝐺) ∈ (Poly‘ℂ) ∧ 𝑁 ∈ ℕ0 ∧ ((coeff‘(𝐹𝑓 + 𝐺))‘𝑁) ≠ 0) → 𝑁 ≤ (deg‘(𝐹𝑓 + 𝐺)))
752, 9, 71, 74syl3anc 1317 . 2 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → 𝑁 ≤ (deg‘(𝐹𝑓 + 𝐺)))
765, 10letri3d 10030 . 2 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → ((deg‘(𝐹𝑓 + 𝐺)) = 𝑁 ↔ ((deg‘(𝐹𝑓 + 𝐺)) ≤ 𝑁𝑁 ≤ (deg‘(𝐹𝑓 + 𝐺)))))
7726, 75, 76mpbir2and 958 1 ((𝐹 ∈ (Poly‘𝑆) ∧ 𝐺 ∈ (Poly‘𝑆) ∧ 𝑀 < 𝑁) → (deg‘(𝐹𝑓 + 𝐺)) = 𝑁)
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 382  w3a 1030   = wceq 1474  wcel 1976  wne 2779  Vcvv 3172  ifcif 4035   class class class wbr 4577   Fn wfn 5784  wf 5785  cfv 5789  (class class class)co 6526  𝑓 cof 6770  cc 9790  cr 9791  0cc0 9792   + caddc 9795   < clt 9930  cle 9931  0cn0 11141  0𝑝c0p 23186  Polycply 23688  coeffccoe 23690  degcdgr 23691
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1712  ax-4 1727  ax-5 1826  ax-6 1874  ax-7 1921  ax-8 1978  ax-9 1985  ax-10 2005  ax-11 2020  ax-12 2033  ax-13 2233  ax-ext 2589  ax-rep 4693  ax-sep 4703  ax-nul 4711  ax-pow 4763  ax-pr 4827  ax-un 6824  ax-inf2 8398  ax-cnex 9848  ax-resscn 9849  ax-1cn 9850  ax-icn 9851  ax-addcl 9852  ax-addrcl 9853  ax-mulcl 9854  ax-mulrcl 9855  ax-mulcom 9856  ax-addass 9857  ax-mulass 9858  ax-distr 9859  ax-i2m1 9860  ax-1ne0 9861  ax-1rid 9862  ax-rnegex 9863  ax-rrecex 9864  ax-cnre 9865  ax-pre-lttri 9866  ax-pre-lttrn 9867  ax-pre-ltadd 9868  ax-pre-mulgt0 9869  ax-pre-sup 9870  ax-addf 9871
This theorem depends on definitions:  df-bi 195  df-or 383  df-an 384  df-3or 1031  df-3an 1032  df-tru 1477  df-fal 1480  df-ex 1695  df-nf 1700  df-sb 1867  df-eu 2461  df-mo 2462  df-clab 2596  df-cleq 2602  df-clel 2605  df-nfc 2739  df-ne 2781  df-nel 2782  df-ral 2900  df-rex 2901  df-reu 2902  df-rmo 2903  df-rab 2904  df-v 3174  df-sbc 3402  df-csb 3499  df-dif 3542  df-un 3544  df-in 3546  df-ss 3553  df-pss 3555  df-nul 3874  df-if 4036  df-pw 4109  df-sn 4125  df-pr 4127  df-tp 4129  df-op 4131  df-uni 4367  df-int 4405  df-iun 4451  df-br 4578  df-opab 4638  df-mpt 4639  df-tr 4675  df-eprel 4938  df-id 4942  df-po 4948  df-so 4949  df-fr 4986  df-se 4987  df-we 4988  df-xp 5033  df-rel 5034  df-cnv 5035  df-co 5036  df-dm 5037  df-rn 5038  df-res 5039  df-ima 5040  df-pred 5582  df-ord 5628  df-on 5629  df-lim 5630  df-suc 5631  df-iota 5753  df-fun 5791  df-fn 5792  df-f 5793  df-f1 5794  df-fo 5795  df-f1o 5796  df-fv 5797  df-isom 5798  df-riota 6488  df-ov 6529  df-oprab 6530  df-mpt2 6531  df-of 6772  df-om 6935  df-1st 7036  df-2nd 7037  df-wrecs 7271  df-recs 7332  df-rdg 7370  df-1o 7424  df-oadd 7428  df-er 7606  df-map 7723  df-pm 7724  df-en 7819  df-dom 7820  df-sdom 7821  df-fin 7822  df-sup 8208  df-inf 8209  df-oi 8275  df-card 8625  df-pnf 9932  df-mnf 9933  df-xr 9934  df-ltxr 9935  df-le 9936  df-sub 10119  df-neg 10120  df-div 10536  df-nn 10870  df-2 10928  df-3 10929  df-n0 11142  df-z 11213  df-uz 11522  df-rp 11667  df-fz 12155  df-fzo 12292  df-fl 12412  df-seq 12621  df-exp 12680  df-hash 12937  df-cj 13635  df-re 13636  df-im 13637  df-sqrt 13771  df-abs 13772  df-clim 14015  df-rlim 14016  df-sum 14213  df-0p 23187  df-ply 23692  df-coe 23694  df-dgr 23695
This theorem is referenced by:  dgrcolem2  23778  plyremlem  23807
  Copyright terms: Public domain W3C validator