MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  opoe Structured version   Unicode version

Theorem opoe 13989
Description: The sum of two odds is even. (Contributed by Scott Fenton, 7-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
opoe  |-  ( ( ( A  e.  ZZ  /\ 
-.  2  ||  A
)  /\  ( B  e.  ZZ  /\  -.  2  ||  B ) )  -> 
2  ||  ( A  +  B ) )

Proof of Theorem opoe
Dummy variables  a 
b are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 odd2np1 13703 . . . . 5  |-  ( A  e.  ZZ  ->  ( -.  2  ||  A  <->  E. a  e.  ZZ  ( ( 2  x.  a )  +  1 )  =  A ) )
2 odd2np1 13703 . . . . 5  |-  ( B  e.  ZZ  ->  ( -.  2  ||  B  <->  E. b  e.  ZZ  ( ( 2  x.  b )  +  1 )  =  B ) )
31, 2bi2anan9 868 . . . 4  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( -.  2  ||  A  /\  -.  2  ||  B )  <->  ( E. a  e.  ZZ  (
( 2  x.  a
)  +  1 )  =  A  /\  E. b  e.  ZZ  (
( 2  x.  b
)  +  1 )  =  B ) ) )
4 reeanv 2987 . . . . 5  |-  ( E. a  e.  ZZ  E. b  e.  ZZ  (
( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  <-> 
( E. a  e.  ZZ  ( ( 2  x.  a )  +  1 )  =  A  /\  E. b  e.  ZZ  ( ( 2  x.  b )  +  1 )  =  B ) )
5 2z 10782 . . . . . . . . 9  |-  2  e.  ZZ
6 zaddcl 10789 . . . . . . . . . 10  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  ( a  +  b )  e.  ZZ )
76peano2zd 10854 . . . . . . . . 9  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  ( ( a  +  b )  +  1 )  e.  ZZ )
8 dvdsmul1 13665 . . . . . . . . 9  |-  ( ( 2  e.  ZZ  /\  ( ( a  +  b )  +  1 )  e.  ZZ )  ->  2  ||  (
2  x.  ( ( a  +  b )  +  1 ) ) )
95, 7, 8sylancr 663 . . . . . . . 8  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  2  ||  ( 2  x.  ( ( a  +  b )  +  1 ) ) )
10 zcn 10755 . . . . . . . . 9  |-  ( a  e.  ZZ  ->  a  e.  CC )
11 zcn 10755 . . . . . . . . 9  |-  ( b  e.  ZZ  ->  b  e.  CC )
12 addcl 9468 . . . . . . . . . . . . 13  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( a  +  b )  e.  CC )
13 2cn 10496 . . . . . . . . . . . . . 14  |-  2  e.  CC
14 ax-1cn 9444 . . . . . . . . . . . . . 14  |-  1  e.  CC
15 adddi 9475 . . . . . . . . . . . . . 14  |-  ( ( 2  e.  CC  /\  ( a  +  b )  e.  CC  /\  1  e.  CC )  ->  ( 2  x.  (
( a  +  b )  +  1 ) )  =  ( ( 2  x.  ( a  +  b ) )  +  ( 2  x.  1 ) ) )
1613, 14, 15mp3an13 1306 . . . . . . . . . . . . 13  |-  ( ( a  +  b )  e.  CC  ->  (
2  x.  ( ( a  +  b )  +  1 ) )  =  ( ( 2  x.  ( a  +  b ) )  +  ( 2  x.  1 ) ) )
1712, 16syl 16 . . . . . . . . . . . 12  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  (
( a  +  b )  +  1 ) )  =  ( ( 2  x.  ( a  +  b ) )  +  ( 2  x.  1 ) ) )
18 adddi 9475 . . . . . . . . . . . . . 14  |-  ( ( 2  e.  CC  /\  a  e.  CC  /\  b  e.  CC )  ->  (
2  x.  ( a  +  b ) )  =  ( ( 2  x.  a )  +  ( 2  x.  b
) ) )
1913, 18mp3an1 1302 . . . . . . . . . . . . 13  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  (
a  +  b ) )  =  ( ( 2  x.  a )  +  ( 2  x.  b ) ) )
2019oveq1d 6208 . . . . . . . . . . . 12  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( ( 2  x.  ( a  +  b ) )  +  ( 2  x.  1 ) )  =  ( ( ( 2  x.  a
)  +  ( 2  x.  b ) )  +  ( 2  x.  1 ) ) )
2117, 20eqtrd 2492 . . . . . . . . . . 11  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  (
( a  +  b )  +  1 ) )  =  ( ( ( 2  x.  a
)  +  ( 2  x.  b ) )  +  ( 2  x.  1 ) ) )
22 2t1e2 10574 . . . . . . . . . . . . 13  |-  ( 2  x.  1 )  =  2
23 df-2 10484 . . . . . . . . . . . . 13  |-  2  =  ( 1  +  1 )
2422, 23eqtri 2480 . . . . . . . . . . . 12  |-  ( 2  x.  1 )  =  ( 1  +  1 )
2524oveq2i 6204 . . . . . . . . . . 11  |-  ( ( ( 2  x.  a
)  +  ( 2  x.  b ) )  +  ( 2  x.  1 ) )  =  ( ( ( 2  x.  a )  +  ( 2  x.  b
) )  +  ( 1  +  1 ) )
2621, 25syl6eq 2508 . . . . . . . . . 10  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  (
( a  +  b )  +  1 ) )  =  ( ( ( 2  x.  a
)  +  ( 2  x.  b ) )  +  ( 1  +  1 ) ) )
27 mulcl 9470 . . . . . . . . . . . 12  |-  ( ( 2  e.  CC  /\  a  e.  CC )  ->  ( 2  x.  a
)  e.  CC )
2813, 27mpan 670 . . . . . . . . . . 11  |-  ( a  e.  CC  ->  (
2  x.  a )  e.  CC )
29 mulcl 9470 . . . . . . . . . . . 12  |-  ( ( 2  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  b
)  e.  CC )
3013, 29mpan 670 . . . . . . . . . . 11  |-  ( b  e.  CC  ->  (
2  x.  b )  e.  CC )
31 add4 9689 . . . . . . . . . . . 12  |-  ( ( ( ( 2  x.  a )  e.  CC  /\  ( 2  x.  b
)  e.  CC )  /\  ( 1  e.  CC  /\  1  e.  CC ) )  -> 
( ( ( 2  x.  a )  +  ( 2  x.  b
) )  +  ( 1  +  1 ) )  =  ( ( ( 2  x.  a
)  +  1 )  +  ( ( 2  x.  b )  +  1 ) ) )
3214, 14, 31mpanr12 685 . . . . . . . . . . 11  |-  ( ( ( 2  x.  a
)  e.  CC  /\  ( 2  x.  b
)  e.  CC )  ->  ( ( ( 2  x.  a )  +  ( 2  x.  b ) )  +  ( 1  +  1 ) )  =  ( ( ( 2  x.  a )  +  1 )  +  ( ( 2  x.  b )  +  1 ) ) )
3328, 30, 32syl2an 477 . . . . . . . . . 10  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( ( ( 2  x.  a )  +  ( 2  x.  b
) )  +  ( 1  +  1 ) )  =  ( ( ( 2  x.  a
)  +  1 )  +  ( ( 2  x.  b )  +  1 ) ) )
3426, 33eqtrd 2492 . . . . . . . . 9  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  (
( a  +  b )  +  1 ) )  =  ( ( ( 2  x.  a
)  +  1 )  +  ( ( 2  x.  b )  +  1 ) ) )
3510, 11, 34syl2an 477 . . . . . . . 8  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  ( 2  x.  (
( a  +  b )  +  1 ) )  =  ( ( ( 2  x.  a
)  +  1 )  +  ( ( 2  x.  b )  +  1 ) ) )
369, 35breqtrd 4417 . . . . . . 7  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  2  ||  ( ( ( 2  x.  a
)  +  1 )  +  ( ( 2  x.  b )  +  1 ) ) )
37 oveq12 6202 . . . . . . . 8  |-  ( ( ( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  ( ( ( 2  x.  a )  +  1 )  +  ( ( 2  x.  b )  +  1 ) )  =  ( A  +  B ) )
3837breq2d 4405 . . . . . . 7  |-  ( ( ( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  ( 2  ||  ( ( ( 2  x.  a )  +  1 )  +  ( ( 2  x.  b
)  +  1 ) )  <->  2  ||  ( A  +  B )
) )
3936, 38syl5ibcom 220 . . . . . 6  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  ( ( ( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  2  ||  ( A  +  B
) ) )
4039rexlimivv 2945 . . . . 5  |-  ( E. a  e.  ZZ  E. b  e.  ZZ  (
( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  2  ||  ( A  +  B )
)
414, 40sylbir 213 . . . 4  |-  ( ( E. a  e.  ZZ  ( ( 2  x.  a )  +  1 )  =  A  /\  E. b  e.  ZZ  (
( 2  x.  b
)  +  1 )  =  B )  -> 
2  ||  ( A  +  B ) )
423, 41syl6bi 228 . . 3  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( -.  2  ||  A  /\  -.  2  ||  B )  ->  2  ||  ( A  +  B
) ) )
4342imp 429 . 2  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( -.  2  ||  A  /\  -.  2  ||  B ) )  -> 
2  ||  ( A  +  B ) )
4443an4s 822 1  |-  ( ( ( A  e.  ZZ  /\ 
-.  2  ||  A
)  /\  ( B  e.  ZZ  /\  -.  2  ||  B ) )  -> 
2  ||  ( A  +  B ) )
Colors of variables: wff setvar class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 369    = wceq 1370    e. wcel 1758   E.wrex 2796   class class class wbr 4393  (class class class)co 6193   CCcc 9384   1c1 9387    + caddc 9389    x. cmul 9391   2c2 10475   ZZcz 10750    || cdivides 13646
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1592  ax-4 1603  ax-5 1671  ax-6 1710  ax-7 1730  ax-8 1760  ax-9 1762  ax-10 1777  ax-11 1782  ax-12 1794  ax-13 1952  ax-ext 2430  ax-sep 4514  ax-nul 4522  ax-pow 4571  ax-pr 4632  ax-un 6475  ax-resscn 9443  ax-1cn 9444  ax-icn 9445  ax-addcl 9446  ax-addrcl 9447  ax-mulcl 9448  ax-mulrcl 9449  ax-mulcom 9450  ax-addass 9451  ax-mulass 9452  ax-distr 9453  ax-i2m1 9454  ax-1ne0 9455  ax-1rid 9456  ax-rnegex 9457  ax-rrecex 9458  ax-cnre 9459  ax-pre-lttri 9460  ax-pre-lttrn 9461  ax-pre-ltadd 9462  ax-pre-mulgt0 9463
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 966  df-3an 967  df-tru 1373  df-ex 1588  df-nf 1591  df-sb 1703  df-eu 2264  df-mo 2265  df-clab 2437  df-cleq 2443  df-clel 2446  df-nfc 2601  df-ne 2646  df-nel 2647  df-ral 2800  df-rex 2801  df-reu 2802  df-rmo 2803  df-rab 2804  df-v 3073  df-sbc 3288  df-csb 3390  df-dif 3432  df-un 3434  df-in 3436  df-ss 3443  df-pss 3445  df-nul 3739  df-if 3893  df-pw 3963  df-sn 3979  df-pr 3981  df-tp 3983  df-op 3985  df-uni 4193  df-iun 4274  df-br 4394  df-opab 4452  df-mpt 4453  df-tr 4487  df-eprel 4733  df-id 4737  df-po 4742  df-so 4743  df-fr 4780  df-we 4782  df-ord 4823  df-on 4824  df-lim 4825  df-suc 4826  df-xp 4947  df-rel 4948  df-cnv 4949  df-co 4950  df-dm 4951  df-rn 4952  df-res 4953  df-ima 4954  df-iota 5482  df-fun 5521  df-fn 5522  df-f 5523  df-f1 5524  df-fo 5525  df-f1o 5526  df-fv 5527  df-riota 6154  df-ov 6196  df-oprab 6197  df-mpt2 6198  df-om 6580  df-recs 6935  df-rdg 6969  df-er 7204  df-en 7414  df-dom 7415  df-sdom 7416  df-pnf 9524  df-mnf 9525  df-xr 9526  df-ltxr 9527  df-le 9528  df-sub 9701  df-neg 9702  df-div 10098  df-nn 10427  df-2 10484  df-n0 10684  df-z 10751  df-dvds 13647
This theorem is referenced by:  pythagtriplem11  14003  prmlem0  14244  eupath2lem3  23745
  Copyright terms: Public domain W3C validator