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

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

Proof of Theorem omoe
Dummy variables  a 
b are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 odd2np1 13922 . . . . 5  |-  ( A  e.  ZZ  ->  ( -.  2  ||  A  <->  E. a  e.  ZZ  ( ( 2  x.  a )  +  1 )  =  A ) )
2 odd2np1 13922 . . . . 5  |-  ( B  e.  ZZ  ->  ( -.  2  ||  B  <->  E. b  e.  ZZ  ( ( 2  x.  b )  +  1 )  =  B ) )
31, 2bi2anan9 871 . . . 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 3034 . . . . 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 10908 . . . . . . . . 9  |-  2  e.  ZZ
6 zsubcl 10917 . . . . . . . . 9  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  ( a  -  b
)  e.  ZZ )
7 dvdsmul1 13883 . . . . . . . . 9  |-  ( ( 2  e.  ZZ  /\  ( a  -  b
)  e.  ZZ )  ->  2  ||  (
2  x.  ( a  -  b ) ) )
85, 6, 7sylancr 663 . . . . . . . 8  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  2  ||  ( 2  x.  ( a  -  b ) ) )
9 zcn 10881 . . . . . . . . 9  |-  ( a  e.  ZZ  ->  a  e.  CC )
10 zcn 10881 . . . . . . . . 9  |-  ( b  e.  ZZ  ->  b  e.  CC )
11 2cn 10618 . . . . . . . . . . . 12  |-  2  e.  CC
12 mulcl 9588 . . . . . . . . . . . 12  |-  ( ( 2  e.  CC  /\  a  e.  CC )  ->  ( 2  x.  a
)  e.  CC )
1311, 12mpan 670 . . . . . . . . . . 11  |-  ( a  e.  CC  ->  (
2  x.  a )  e.  CC )
14 mulcl 9588 . . . . . . . . . . . 12  |-  ( ( 2  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  b
)  e.  CC )
1511, 14mpan 670 . . . . . . . . . . 11  |-  ( b  e.  CC  ->  (
2  x.  b )  e.  CC )
16 ax-1cn 9562 . . . . . . . . . . . 12  |-  1  e.  CC
17 pnpcan2 9871 . . . . . . . . . . . 12  |-  ( ( ( 2  x.  a
)  e.  CC  /\  ( 2  x.  b
)  e.  CC  /\  1  e.  CC )  ->  ( ( ( 2  x.  a )  +  1 )  -  (
( 2  x.  b
)  +  1 ) )  =  ( ( 2  x.  a )  -  ( 2  x.  b ) ) )
1816, 17mp3an3 1313 . . . . . . . . . . 11  |-  ( ( ( 2  x.  a
)  e.  CC  /\  ( 2  x.  b
)  e.  CC )  ->  ( ( ( 2  x.  a )  +  1 )  -  ( ( 2  x.  b )  +  1 ) )  =  ( ( 2  x.  a
)  -  ( 2  x.  b ) ) )
1913, 15, 18syl2an 477 . . . . . . . . . 10  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( ( ( 2  x.  a )  +  1 )  -  (
( 2  x.  b
)  +  1 ) )  =  ( ( 2  x.  a )  -  ( 2  x.  b ) ) )
20 subdi 10002 . . . . . . . . . . 11  |-  ( ( 2  e.  CC  /\  a  e.  CC  /\  b  e.  CC )  ->  (
2  x.  ( a  -  b ) )  =  ( ( 2  x.  a )  -  ( 2  x.  b
) ) )
2111, 20mp3an1 1311 . . . . . . . . . 10  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( 2  x.  (
a  -  b ) )  =  ( ( 2  x.  a )  -  ( 2  x.  b ) ) )
2219, 21eqtr4d 2511 . . . . . . . . 9  |-  ( ( a  e.  CC  /\  b  e.  CC )  ->  ( ( ( 2  x.  a )  +  1 )  -  (
( 2  x.  b
)  +  1 ) )  =  ( 2  x.  ( a  -  b ) ) )
239, 10, 22syl2an 477 . . . . . . . 8  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  ( ( ( 2  x.  a )  +  1 )  -  (
( 2  x.  b
)  +  1 ) )  =  ( 2  x.  ( a  -  b ) ) )
248, 23breqtrrd 4479 . . . . . . 7  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  2  ||  ( ( ( 2  x.  a
)  +  1 )  -  ( ( 2  x.  b )  +  1 ) ) )
25 oveq12 6304 . . . . . . . 8  |-  ( ( ( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  ( ( ( 2  x.  a )  +  1 )  -  ( ( 2  x.  b )  +  1 ) )  =  ( A  -  B ) )
2625breq2d 4465 . . . . . . 7  |-  ( ( ( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  ( 2  ||  ( ( ( 2  x.  a )  +  1 )  -  (
( 2  x.  b
)  +  1 ) )  <->  2  ||  ( A  -  B )
) )
2724, 26syl5ibcom 220 . . . . . 6  |-  ( ( a  e.  ZZ  /\  b  e.  ZZ )  ->  ( ( ( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  2  ||  ( A  -  B
) ) )
2827rexlimivv 2964 . . . . 5  |-  ( E. a  e.  ZZ  E. b  e.  ZZ  (
( ( 2  x.  a )  +  1 )  =  A  /\  ( ( 2  x.  b )  +  1 )  =  B )  ->  2  ||  ( A  -  B )
)
294, 28sylbir 213 . . . 4  |-  ( ( E. a  e.  ZZ  ( ( 2  x.  a )  +  1 )  =  A  /\  E. b  e.  ZZ  (
( 2  x.  b
)  +  1 )  =  B )  -> 
2  ||  ( A  -  B ) )
303, 29syl6bi 228 . . 3  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  ( ( -.  2  ||  A  /\  -.  2  ||  B )  ->  2  ||  ( A  -  B
) ) )
3130imp 429 . 2  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( -.  2  ||  A  /\  -.  2  ||  B ) )  -> 
2  ||  ( A  -  B ) )
3231an4s 824 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 1379    e. wcel 1767   E.wrex 2818   class class class wbr 4453  (class class class)co 6295   CCcc 9502   1c1 9505    + caddc 9507    x. cmul 9509    - cmin 9817   2c2 10597   ZZcz 10876    || cdivides 13864
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1601  ax-4 1612  ax-5 1680  ax-6 1719  ax-7 1739  ax-8 1769  ax-9 1771  ax-10 1786  ax-11 1791  ax-12 1803  ax-13 1968  ax-ext 2445  ax-sep 4574  ax-nul 4582  ax-pow 4631  ax-pr 4692  ax-un 6587  ax-resscn 9561  ax-1cn 9562  ax-icn 9563  ax-addcl 9564  ax-addrcl 9565  ax-mulcl 9566  ax-mulrcl 9567  ax-mulcom 9568  ax-addass 9569  ax-mulass 9570  ax-distr 9571  ax-i2m1 9572  ax-1ne0 9573  ax-1rid 9574  ax-rnegex 9575  ax-rrecex 9576  ax-cnre 9577  ax-pre-lttri 9578  ax-pre-lttrn 9579  ax-pre-ltadd 9580  ax-pre-mulgt0 9581
This theorem depends on definitions:  df-bi 185  df-or 370  df-an 371  df-3or 974  df-3an 975  df-tru 1382  df-ex 1597  df-nf 1600  df-sb 1712  df-eu 2279  df-mo 2280  df-clab 2453  df-cleq 2459  df-clel 2462  df-nfc 2617  df-ne 2664  df-nel 2665  df-ral 2822  df-rex 2823  df-reu 2824  df-rmo 2825  df-rab 2826  df-v 3120  df-sbc 3337  df-csb 3441  df-dif 3484  df-un 3486  df-in 3488  df-ss 3495  df-pss 3497  df-nul 3791  df-if 3946  df-pw 4018  df-sn 4034  df-pr 4036  df-tp 4038  df-op 4040  df-uni 4252  df-iun 4333  df-br 4454  df-opab 4512  df-mpt 4513  df-tr 4547  df-eprel 4797  df-id 4801  df-po 4806  df-so 4807  df-fr 4844  df-we 4846  df-ord 4887  df-on 4888  df-lim 4889  df-suc 4890  df-xp 5011  df-rel 5012  df-cnv 5013  df-co 5014  df-dm 5015  df-rn 5016  df-res 5017  df-ima 5018  df-iota 5557  df-fun 5596  df-fn 5597  df-f 5598  df-f1 5599  df-fo 5600  df-f1o 5601  df-fv 5602  df-riota 6256  df-ov 6298  df-oprab 6299  df-mpt2 6300  df-om 6696  df-recs 7054  df-rdg 7088  df-er 7323  df-en 7529  df-dom 7530  df-sdom 7531  df-pnf 9642  df-mnf 9643  df-xr 9644  df-ltxr 9645  df-le 9646  df-sub 9819  df-neg 9820  df-div 10219  df-nn 10549  df-2 10606  df-n0 10808  df-z 10877  df-dvds 13865
This theorem is referenced by:  oddprm  14215  pythagtriplem13  14227  lgsquad2lem1  23499  lgsquad3  23502  jm2.22  30856  jm2.23  30857
  Copyright terms: Public domain W3C validator