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

Theorem nneneq 6823
Description: Two equinumerous natural numbers are equal. Proposition 10.20 of [TakeutiZaring] p. 90 and its converse. Also compare Corollary 6E of [Enderton] p. 136. (Contributed by NM, 28-May-1998.)
Assertion
Ref Expression
nneneq  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  ~~  B  <->  A  =  B ) )

Proof of Theorem nneneq
Dummy variables  x  y  z  w are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 breq1 3985 . . . . . 6  |-  ( x  =  (/)  ->  ( x 
~~  z  <->  (/)  ~~  z
) )
2 eqeq1 2172 . . . . . 6  |-  ( x  =  (/)  ->  ( x  =  z  <->  (/)  =  z ) )
31, 2imbi12d 233 . . . . 5  |-  ( x  =  (/)  ->  ( ( x  ~~  z  ->  x  =  z )  <->  (
(/)  ~~  z  ->  (/)  =  z ) ) )
43ralbidv 2466 . . . 4  |-  ( x  =  (/)  ->  ( A. z  e.  om  (
x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( (/)  ~~  z  -> 
(/)  =  z ) ) )
5 breq1 3985 . . . . . 6  |-  ( x  =  y  ->  (
x  ~~  z  <->  y  ~~  z ) )
6 eqeq1 2172 . . . . . 6  |-  ( x  =  y  ->  (
x  =  z  <->  y  =  z ) )
75, 6imbi12d 233 . . . . 5  |-  ( x  =  y  ->  (
( x  ~~  z  ->  x  =  z )  <-> 
( y  ~~  z  ->  y  =  z ) ) )
87ralbidv 2466 . . . 4  |-  ( x  =  y  ->  ( A. z  e.  om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) ) )
9 breq1 3985 . . . . . 6  |-  ( x  =  suc  y  -> 
( x  ~~  z  <->  suc  y  ~~  z ) )
10 eqeq1 2172 . . . . . 6  |-  ( x  =  suc  y  -> 
( x  =  z  <->  suc  y  =  z
) )
119, 10imbi12d 233 . . . . 5  |-  ( x  =  suc  y  -> 
( ( x  ~~  z  ->  x  =  z )  <->  ( suc  y  ~~  z  ->  suc  y  =  z ) ) )
1211ralbidv 2466 . . . 4  |-  ( x  =  suc  y  -> 
( A. z  e. 
om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( suc  y  ~~  z  ->  suc  y  =  z ) ) )
13 breq1 3985 . . . . . 6  |-  ( x  =  A  ->  (
x  ~~  z  <->  A  ~~  z ) )
14 eqeq1 2172 . . . . . 6  |-  ( x  =  A  ->  (
x  =  z  <->  A  =  z ) )
1513, 14imbi12d 233 . . . . 5  |-  ( x  =  A  ->  (
( x  ~~  z  ->  x  =  z )  <-> 
( A  ~~  z  ->  A  =  z ) ) )
1615ralbidv 2466 . . . 4  |-  ( x  =  A  ->  ( A. z  e.  om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( A  ~~  z  ->  A  =  z ) ) )
17 ensym 6747 . . . . . 6  |-  ( (/)  ~~  z  ->  z  ~~  (/) )
18 en0 6761 . . . . . . 7  |-  ( z 
~~  (/)  <->  z  =  (/) )
19 eqcom 2167 . . . . . . 7  |-  ( z  =  (/)  <->  (/)  =  z )
2018, 19bitri 183 . . . . . 6  |-  ( z 
~~  (/)  <->  (/)  =  z )
2117, 20sylib 121 . . . . 5  |-  ( (/)  ~~  z  ->  (/)  =  z )
2221rgenw 2521 . . . 4  |-  A. z  e.  om  ( (/)  ~~  z  -> 
(/)  =  z )
23 nn0suc 4581 . . . . . . 7  |-  ( w  e.  om  ->  (
w  =  (/)  \/  E. z  e.  om  w  =  suc  z ) )
24 en0 6761 . . . . . . . . . . . 12  |-  ( suc  y  ~~  (/)  <->  suc  y  =  (/) )
25 breq2 3986 . . . . . . . . . . . . 13  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  <->  suc  y  ~~  (/) ) )
26 eqeq2 2175 . . . . . . . . . . . . 13  |-  ( w  =  (/)  ->  ( suc  y  =  w  <->  suc  y  =  (/) ) )
2725, 26bibi12d 234 . . . . . . . . . . . 12  |-  ( w  =  (/)  ->  ( ( suc  y  ~~  w  <->  suc  y  =  w )  <-> 
( suc  y  ~~  (/)  <->  suc  y  =  (/) ) ) )
2824, 27mpbiri 167 . . . . . . . . . . 11  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  <->  suc  y  =  w ) )
2928biimpd 143 . . . . . . . . . 10  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  ->  suc  y  =  w
) )
3029a1i 9 . . . . . . . . 9  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( w  =  (/)  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
31 nfv 1516 . . . . . . . . . . 11  |-  F/ z  y  e.  om
32 nfra1 2497 . . . . . . . . . . 11  |-  F/ z A. z  e.  om  ( y  ~~  z  ->  y  =  z )
3331, 32nfan 1553 . . . . . . . . . 10  |-  F/ z ( y  e.  om  /\ 
A. z  e.  om  ( y  ~~  z  ->  y  =  z ) )
34 nfv 1516 . . . . . . . . . 10  |-  F/ z ( suc  y  ~~  w  ->  suc  y  =  w )
35 rsp 2513 . . . . . . . . . . . . . 14  |-  ( A. z  e.  om  (
y  ~~  z  ->  y  =  z )  -> 
( z  e.  om  ->  ( y  ~~  z  ->  y  =  z ) ) )
36 vex 2729 . . . . . . . . . . . . . . . . . 18  |-  y  e. 
_V
37 vex 2729 . . . . . . . . . . . . . . . . . 18  |-  z  e. 
_V
3836, 37phplem4 6821 . . . . . . . . . . . . . . . . 17  |-  ( ( y  e.  om  /\  z  e.  om )  ->  ( suc  y  ~~  suc  z  ->  y  ~~  z ) )
3938imim1d 75 . . . . . . . . . . . . . . . 16  |-  ( ( y  e.  om  /\  z  e.  om )  ->  ( ( y  ~~  z  ->  y  =  z )  ->  ( suc  y  ~~  suc  z  -> 
y  =  z ) ) )
4039ex 114 . . . . . . . . . . . . . . 15  |-  ( y  e.  om  ->  (
z  e.  om  ->  ( ( y  ~~  z  ->  y  =  z )  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) ) )
4140a2d 26 . . . . . . . . . . . . . 14  |-  ( y  e.  om  ->  (
( z  e.  om  ->  ( y  ~~  z  ->  y  =  z ) )  ->  ( z  e.  om  ->  ( suc  y  ~~  suc  z  -> 
y  =  z ) ) ) )
4235, 41syl5 32 . . . . . . . . . . . . 13  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  ( z  e. 
om  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) ) )
4342imp 123 . . . . . . . . . . . 12  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( z  e. 
om  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) )
44 suceq 4380 . . . . . . . . . . . 12  |-  ( y  =  z  ->  suc  y  =  suc  z )
4543, 44syl8 71 . . . . . . . . . . 11  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( z  e. 
om  ->  ( suc  y  ~~  suc  z  ->  suc  y  =  suc  z ) ) )
46 breq2 3986 . . . . . . . . . . . . 13  |-  ( w  =  suc  z  -> 
( suc  y  ~~  w 
<->  suc  y  ~~  suc  z ) )
47 eqeq2 2175 . . . . . . . . . . . . 13  |-  ( w  =  suc  z  -> 
( suc  y  =  w 
<->  suc  y  =  suc  z ) )
4846, 47imbi12d 233 . . . . . . . . . . . 12  |-  ( w  =  suc  z  -> 
( ( suc  y  ~~  w  ->  suc  y  =  w )  <->  ( suc  y  ~~  suc  z  ->  suc  y  =  suc  z ) ) )
4948biimprcd 159 . . . . . . . . . . 11  |-  ( ( suc  y  ~~  suc  z  ->  suc  y  =  suc  z )  ->  (
w  =  suc  z  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
5045, 49syl6 33 . . . . . . . . . 10  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( z  e. 
om  ->  ( w  =  suc  z  ->  ( suc  y  ~~  w  ->  suc  y  =  w
) ) ) )
5133, 34, 50rexlimd 2580 . . . . . . . . 9  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( E. z  e.  om  w  =  suc  z  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
5230, 51jaod 707 . . . . . . . 8  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( ( w  =  (/)  \/  E. z  e.  om  w  =  suc  z )  ->  ( suc  y  ~~  w  ->  suc  y  =  w
) ) )
5352ex 114 . . . . . . 7  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  ( ( w  =  (/)  \/  E. z  e.  om  w  =  suc  z )  ->  ( suc  y  ~~  w  ->  suc  y  =  w
) ) ) )
5423, 53syl7 69 . . . . . 6  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  ( w  e. 
om  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) ) )
5554ralrimdv 2545 . . . . 5  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  A. w  e.  om  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
56 breq2 3986 . . . . . . 7  |-  ( w  =  z  ->  ( suc  y  ~~  w  <->  suc  y  ~~  z ) )
57 eqeq2 2175 . . . . . . 7  |-  ( w  =  z  ->  ( suc  y  =  w  <->  suc  y  =  z ) )
5856, 57imbi12d 233 . . . . . 6  |-  ( w  =  z  ->  (
( suc  y  ~~  w  ->  suc  y  =  w )  <->  ( suc  y  ~~  z  ->  suc  y  =  z )
) )
5958cbvralv 2692 . . . . 5  |-  ( A. w  e.  om  ( suc  y  ~~  w  ->  suc  y  =  w
)  <->  A. z  e.  om  ( suc  y  ~~  z  ->  suc  y  =  z ) )
6055, 59syl6ib 160 . . . 4  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  A. z  e.  om  ( suc  y  ~~  z  ->  suc  y  =  z ) ) )
614, 8, 12, 16, 22, 60finds 4577 . . 3  |-  ( A  e.  om  ->  A. z  e.  om  ( A  ~~  z  ->  A  =  z ) )
62 breq2 3986 . . . . 5  |-  ( z  =  B  ->  ( A  ~~  z  <->  A  ~~  B ) )
63 eqeq2 2175 . . . . 5  |-  ( z  =  B  ->  ( A  =  z  <->  A  =  B ) )
6462, 63imbi12d 233 . . . 4  |-  ( z  =  B  ->  (
( A  ~~  z  ->  A  =  z )  <-> 
( A  ~~  B  ->  A  =  B ) ) )
6564rspcv 2826 . . 3  |-  ( B  e.  om  ->  ( A. z  e.  om  ( A  ~~  z  ->  A  =  z )  ->  ( A  ~~  B  ->  A  =  B ) ) )
6661, 65mpan9 279 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  ~~  B  ->  A  =  B ) )
67 eqeng 6732 . . 3  |-  ( A  e.  om  ->  ( A  =  B  ->  A 
~~  B ) )
6867adantr 274 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  =  B  ->  A  ~~  B
) )
6966, 68impbid 128 1  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  ~~  B  <->  A  =  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 103    <-> wb 104    \/ wo 698    = wceq 1343    e. wcel 2136   A.wral 2444   E.wrex 2445   (/)c0 3409   class class class wbr 3982   suc csuc 4343   omcom 4567    ~~ cen 6704
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565
This theorem depends on definitions:  df-bi 116  df-dc 825  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-ral 2449  df-rex 2450  df-rab 2453  df-v 2728  df-sbc 2952  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-br 3983  df-opab 4044  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-er 6501  df-en 6707
This theorem is referenced by:  findcard2  6855  findcard2s  6856  unsnfidcex  6885  unsnfidcel  6886  exmidonfinlem  7149  hashen  10697  hashunlem  10717
  Copyright terms: Public domain W3C validator