ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  elz2 Unicode version

Theorem elz2 9716
Description: Membership in the set of integers. Commonly used in constructions of the integers as equivalence classes under subtraction of the positive integers. (Contributed by Mario Carneiro, 16-May-2014.)
Assertion
Ref Expression
elz2  |-  ( N  e.  ZZ  <->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
Distinct variable group:    x, y, N

Proof of Theorem elz2
StepHypRef Expression
1 elznn0 9659 . 2  |-  ( N  e.  ZZ  <->  ( N  e.  RR  /\  ( N  e.  NN0  \/  -u N  e.  NN0 ) ) )
2 nn0p1nn 9602 . . . . . 6  |-  ( N  e.  NN0  ->  ( N  +  1 )  e.  NN )
32adantl 277 . . . . 5  |-  ( ( N  e.  RR  /\  N  e.  NN0 )  -> 
( N  +  1 )  e.  NN )
4 1nn 9315 . . . . . 6  |-  1  e.  NN
54a1i 9 . . . . 5  |-  ( ( N  e.  RR  /\  N  e.  NN0 )  -> 
1  e.  NN )
6 recn 8312 . . . . . . . 8  |-  ( N  e.  RR  ->  N  e.  CC )
76adantr 276 . . . . . . 7  |-  ( ( N  e.  RR  /\  N  e.  NN0 )  ->  N  e.  CC )
8 ax-1cn 8272 . . . . . . 7  |-  1  e.  CC
9 pncan 8532 . . . . . . 7  |-  ( ( N  e.  CC  /\  1  e.  CC )  ->  ( ( N  + 
1 )  -  1 )  =  N )
107, 8, 9sylancl 417 . . . . . 6  |-  ( ( N  e.  RR  /\  N  e.  NN0 )  -> 
( ( N  + 
1 )  -  1 )  =  N )
1110eqcomd 2244 . . . . 5  |-  ( ( N  e.  RR  /\  N  e.  NN0 )  ->  N  =  ( ( N  +  1 )  -  1 ) )
12 rspceov 6128 . . . . 5  |-  ( ( ( N  +  1 )  e.  NN  /\  1  e.  NN  /\  N  =  ( ( N  +  1 )  - 
1 ) )  ->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
133, 5, 11, 12syl3anc 1278 . . . 4  |-  ( ( N  e.  RR  /\  N  e.  NN0 )  ->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
144a1i 9 . . . . 5  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  1  e.  NN )
156adantr 276 . . . . . . 7  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  N  e.  CC )
16 negsub 8574 . . . . . . 7  |-  ( ( 1  e.  CC  /\  N  e.  CC )  ->  ( 1  +  -u N )  =  ( 1  -  N ) )
178, 15, 16sylancr 418 . . . . . 6  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  ( 1  +  -u N )  =  ( 1  -  N ) )
18 simpr 110 . . . . . . 7  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  -> 
-u N  e.  NN0 )
19 nnnn0addcl 9593 . . . . . . 7  |-  ( ( 1  e.  NN  /\  -u N  e.  NN0 )  ->  ( 1  +  -u N )  e.  NN )
204, 18, 19sylancr 418 . . . . . 6  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  ( 1  +  -u N )  e.  NN )
2117, 20eqeltrrd 2316 . . . . 5  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  ( 1  -  N
)  e.  NN )
22 nncan 8555 . . . . . . 7  |-  ( ( 1  e.  CC  /\  N  e.  CC )  ->  ( 1  -  (
1  -  N ) )  =  N )
238, 15, 22sylancr 418 . . . . . 6  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  ( 1  -  (
1  -  N ) )  =  N )
2423eqcomd 2244 . . . . 5  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  N  =  ( 1  -  ( 1  -  N ) ) )
25 rspceov 6128 . . . . 5  |-  ( ( 1  e.  NN  /\  ( 1  -  N
)  e.  NN  /\  N  =  ( 1  -  ( 1  -  N ) ) )  ->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
2614, 21, 24, 25syl3anc 1278 . . . 4  |-  ( ( N  e.  RR  /\  -u N  e.  NN0 )  ->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
2713, 26jaodan 809 . . 3  |-  ( ( N  e.  RR  /\  ( N  e.  NN0  \/  -u N  e.  NN0 ) )  ->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
28 nnre 9311 . . . . . . 7  |-  ( x  e.  NN  ->  x  e.  RR )
29 nnre 9311 . . . . . . 7  |-  ( y  e.  NN  ->  y  e.  RR )
30 resubcl 8590 . . . . . . 7  |-  ( ( x  e.  RR  /\  y  e.  RR )  ->  ( x  -  y
)  e.  RR )
3128, 29, 30syl2an 289 . . . . . 6  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( x  -  y
)  e.  RR )
32 nnz 9663 . . . . . . . 8  |-  ( y  e.  NN  ->  y  e.  ZZ )
33 nnz 9663 . . . . . . . 8  |-  ( x  e.  NN  ->  x  e.  ZZ )
34 zletric 9688 . . . . . . . 8  |-  ( ( y  e.  ZZ  /\  x  e.  ZZ )  ->  ( y  <_  x  \/  x  <_  y ) )
3532, 33, 34syl2anr 290 . . . . . . 7  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( y  <_  x  \/  x  <_  y ) )
36 nnnn0 9570 . . . . . . . . 9  |-  ( y  e.  NN  ->  y  e.  NN0 )
37 nnnn0 9570 . . . . . . . . 9  |-  ( x  e.  NN  ->  x  e.  NN0 )
38 nn0sub 9711 . . . . . . . . 9  |-  ( ( y  e.  NN0  /\  x  e.  NN0 )  -> 
( y  <_  x  <->  ( x  -  y )  e.  NN0 ) )
3936, 37, 38syl2anr 290 . . . . . . . 8  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( y  <_  x  <->  ( x  -  y )  e.  NN0 ) )
40 nn0sub 9711 . . . . . . . . . 10  |-  ( ( x  e.  NN0  /\  y  e.  NN0 )  -> 
( x  <_  y  <->  ( y  -  x )  e.  NN0 ) )
4137, 36, 40syl2an 289 . . . . . . . . 9  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( x  <_  y  <->  ( y  -  x )  e.  NN0 ) )
42 nncn 9312 . . . . . . . . . . 11  |-  ( x  e.  NN  ->  x  e.  CC )
43 nncn 9312 . . . . . . . . . . 11  |-  ( y  e.  NN  ->  y  e.  CC )
44 negsubdi2 8585 . . . . . . . . . . 11  |-  ( ( x  e.  CC  /\  y  e.  CC )  -> 
-u ( x  -  y )  =  ( y  -  x ) )
4542, 43, 44syl2an 289 . . . . . . . . . 10  |-  ( ( x  e.  NN  /\  y  e.  NN )  -> 
-u ( x  -  y )  =  ( y  -  x ) )
4645eleq1d 2307 . . . . . . . . 9  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( -u ( x  -  y )  e. 
NN0 
<->  ( y  -  x
)  e.  NN0 )
)
4741, 46bitr4d 191 . . . . . . . 8  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( x  <_  y  <->  -u ( x  -  y
)  e.  NN0 )
)
4839, 47orbi12d 805 . . . . . . 7  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( ( y  <_  x  \/  x  <_  y )  <->  ( ( x  -  y )  e. 
NN0  \/  -u ( x  -  y )  e. 
NN0 ) ) )
4935, 48mpbid 147 . . . . . 6  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( ( x  -  y )  e.  NN0  \/  -u ( x  -  y
)  e.  NN0 )
)
5031, 49jca 306 . . . . 5  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( ( x  -  y )  e.  RR  /\  ( ( x  -  y )  e.  NN0  \/  -u ( x  -  y
)  e.  NN0 )
) )
51 eleq1 2301 . . . . . 6  |-  ( N  =  ( x  -  y )  ->  ( N  e.  RR  <->  ( x  -  y )  e.  RR ) )
52 eleq1 2301 . . . . . . 7  |-  ( N  =  ( x  -  y )  ->  ( N  e.  NN0  <->  ( x  -  y )  e. 
NN0 ) )
53 negeq 8519 . . . . . . . 8  |-  ( N  =  ( x  -  y )  ->  -u N  =  -u ( x  -  y ) )
5453eleq1d 2307 . . . . . . 7  |-  ( N  =  ( x  -  y )  ->  ( -u N  e.  NN0  <->  -u ( x  -  y )  e. 
NN0 ) )
5552, 54orbi12d 805 . . . . . 6  |-  ( N  =  ( x  -  y )  ->  (
( N  e.  NN0  \/  -u N  e.  NN0 ) 
<->  ( ( x  -  y )  e.  NN0  \/  -u ( x  -  y
)  e.  NN0 )
) )
5651, 55anbi12d 477 . . . . 5  |-  ( N  =  ( x  -  y )  ->  (
( N  e.  RR  /\  ( N  e.  NN0  \/  -u N  e.  NN0 ) )  <->  ( (
x  -  y )  e.  RR  /\  (
( x  -  y
)  e.  NN0  \/  -u ( x  -  y
)  e.  NN0 )
) ) )
5750, 56syl5ibrcom 157 . . . 4  |-  ( ( x  e.  NN  /\  y  e.  NN )  ->  ( N  =  ( x  -  y )  ->  ( N  e.  RR  /\  ( N  e.  NN0  \/  -u N  e.  NN0 ) ) ) )
5857rexlimivv 2674 . . 3  |-  ( E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y )  ->  ( N  e.  RR  /\  ( N  e.  NN0  \/  -u N  e.  NN0 ) ) )
5927, 58impbii 126 . 2  |-  ( ( N  e.  RR  /\  ( N  e.  NN0  \/  -u N  e.  NN0 ) )  <->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
601, 59bitri 184 1  |-  ( N  e.  ZZ  <->  E. x  e.  NN  E. y  e.  NN  N  =  ( x  -  y ) )
Colors of variables:    wff set class
This proof depends on syntax axioms:    /\ wa 104    <-> wb 105    \/ wo 720    = wceq 1402    e. wcel 2209   E.wrex 2529   class class class wbr 4130  (class class class)co 6085   CCcc 8177   RRcr 8178   1c1 8180    + caddc 8182    <_ cle 8361    - cmin 8497   -ucneg 8498   NNcn 9304   NN0cn0 9563   ZZcz 9644
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-sep 4249  ax-pow 4311  ax-pr 4346  ax-un 4578  ax-setind 4684  ax-cnex 8270  ax-resscn 8271  ax-1cn 8272  ax-1re 8273  ax-icn 8274  ax-addcl 8275  ax-addrcl 8276  ax-mulcl 8277  ax-addcom 8279  ax-addass 8281  ax-distr 8283  ax-i2m1 8284  ax-0lt1 8285  ax-0id 8287  ax-rnegex 8288  ax-cnre 8290  ax-pre-ltirr 8291  ax-pre-ltwlin 8292  ax-pre-lttrn 8293  ax-pre-ltadd 8295
This proof depends on definitions:  df-bi 117  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rab 2537  df-v 2823  df-sbc 3052  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-br 4131  df-opab 4193  df-id 4438  df-xp 4780  df-rel 4781  df-cnv 4782  df-co 4783  df-dm 4784  df-iota 5337  df-fun 5379  df-fv 5385  df-riota 6038  df-ov 6088  df-oprab 6089  df-mpo 6090  df-pnf 8362  df-mnf 8363  df-xr 8364  df-ltxr 8365  df-le 8366  df-sub 8499  df-neg 8500  df-inn 9305  df-n0 9564  df-z 9645
This theorem is used by:  dfz2  9717
  Copyright terms: Public domain W3C validator