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

Theorem nneneq 6977
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
StepHypRef Expression
1 breq1 3966 . . . . . 6  |-  ( x  =  (/)  ->  ( x 
~~  z  <->  (/)  ~~  z
) )
2 eqeq1 2262 . . . . . 6  |-  ( x  =  (/)  ->  ( x  =  z  <->  (/)  =  z ) )
31, 2imbi12d 313 . . . . 5  |-  ( x  =  (/)  ->  ( ( x  ~~  z  ->  x  =  z )  <->  (
(/)  ~~  z  ->  (/)  =  z ) ) )
43ralbidv 2534 . . . 4  |-  ( x  =  (/)  ->  ( A. z  e.  om  (
x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( (/)  ~~  z  -> 
(/)  =  z ) ) )
5 breq1 3966 . . . . . 6  |-  ( x  =  y  ->  (
x  ~~  z  <->  y  ~~  z ) )
6 eqeq1 2262 . . . . . 6  |-  ( x  =  y  ->  (
x  =  z  <->  y  =  z ) )
75, 6imbi12d 313 . . . . 5  |-  ( x  =  y  ->  (
( x  ~~  z  ->  x  =  z )  <-> 
( y  ~~  z  ->  y  =  z ) ) )
87ralbidv 2534 . . . 4  |-  ( x  =  y  ->  ( A. z  e.  om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) ) )
9 breq1 3966 . . . . . 6  |-  ( x  =  suc  y  -> 
( x  ~~  z  <->  suc  y  ~~  z ) )
10 eqeq1 2262 . . . . . 6  |-  ( x  =  suc  y  -> 
( x  =  z  <->  suc  y  =  z
) )
119, 10imbi12d 313 . . . . 5  |-  ( x  =  suc  y  -> 
( ( x  ~~  z  ->  x  =  z )  <->  ( suc  y  ~~  z  ->  suc  y  =  z ) ) )
1211ralbidv 2534 . . . 4  |-  ( x  =  suc  y  -> 
( A. z  e. 
om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( suc  y  ~~  z  ->  suc  y  =  z ) ) )
13 breq1 3966 . . . . . 6  |-  ( x  =  A  ->  (
x  ~~  z  <->  A  ~~  z ) )
14 eqeq1 2262 . . . . . 6  |-  ( x  =  A  ->  (
x  =  z  <->  A  =  z ) )
1513, 14imbi12d 313 . . . . 5  |-  ( x  =  A  ->  (
( x  ~~  z  ->  x  =  z )  <-> 
( A  ~~  z  ->  A  =  z ) ) )
1615ralbidv 2534 . . . 4  |-  ( x  =  A  ->  ( A. z  e.  om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( A  ~~  z  ->  A  =  z ) ) )
17 ensym 6843 . . . . . 6  |-  ( (/)  ~~  z  ->  z  ~~  (/) )
18 en0 6857 . . . . . . 7  |-  ( z 
~~  (/)  <->  z  =  (/) )
19 eqcom 2258 . . . . . . 7  |-  ( z  =  (/)  <->  (/)  =  z )
2018, 19bitri 242 . . . . . 6  |-  ( z 
~~  (/)  <->  (/)  =  z )
2117, 20sylib 190 . . . . 5  |-  ( (/)  ~~  z  ->  (/)  =  z )
2221rgenw 2581 . . . 4  |-  A. z  e.  om  ( (/)  ~~  z  -> 
(/)  =  z )
23 nn0suc 4617 . . . . . . 7  |-  ( w  e.  om  ->  (
w  =  (/)  \/  E. z  e.  om  w  =  suc  z ) )
24 en0 6857 . . . . . . . . . . . 12  |-  ( suc  y  ~~  (/)  <->  suc  y  =  (/) )
25 breq2 3967 . . . . . . . . . . . . 13  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  <->  suc  y  ~~  (/) ) )
26 eqeq2 2265 . . . . . . . . . . . . 13  |-  ( w  =  (/)  ->  ( suc  y  =  w  <->  suc  y  =  (/) ) )
2725, 26bibi12d 314 . . . . . . . . . . . 12  |-  ( w  =  (/)  ->  ( ( suc  y  ~~  w  <->  suc  y  =  w )  <-> 
( suc  y  ~~  (/)  <->  suc  y  =  (/) ) ) )
2824, 27mpbiri 226 . . . . . . . . . . 11  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  <->  suc  y  =  w ) )
2928biimpd 200 . . . . . . . . . 10  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  ->  suc  y  =  w
) )
3029a1i 12 . . . . . . . . 9  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( w  =  (/)  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
31 nfv 1629 . . . . . . . . . . 11  |-  F/ z  y  e.  om
32 nfra1 2564 . . . . . . . . . . 11  |-  F/ z A. z  e.  om  ( y  ~~  z  ->  y  =  z )
3331, 32nfan 1737 . . . . . . . . . 10  |-  F/ z ( y  e.  om  /\ 
A. z  e.  om  ( y  ~~  z  ->  y  =  z ) )
34 nfv 1629 . . . . . . . . . 10  |-  F/ z ( suc  y  ~~  w  ->  suc  y  =  w )
35 ra4 2574 . . . . . . . . . . . . . 14  |-  ( A. z  e.  om  (
y  ~~  z  ->  y  =  z )  -> 
( z  e.  om  ->  ( y  ~~  z  ->  y  =  z ) ) )
36 vex 2743 . . . . . . . . . . . . . . . . . 18  |-  y  e. 
_V
37 vex 2743 . . . . . . . . . . . . . . . . . 18  |-  z  e. 
_V
3836, 37phplem4 6976 . . . . . . . . . . . . . . . . 17  |-  ( ( y  e.  om  /\  z  e.  om )  ->  ( suc  y  ~~  suc  z  ->  y  ~~  z ) )
3938imim1d 71 . . . . . . . . . . . . . . . 16  |-  ( ( y  e.  om  /\  z  e.  om )  ->  ( ( y  ~~  z  ->  y  =  z )  ->  ( suc  y  ~~  suc  z  -> 
y  =  z ) ) )
4039ex 425 . . . . . . . . . . . . . . 15  |-  ( y  e.  om  ->  (
z  e.  om  ->  ( ( y  ~~  z  ->  y  =  z )  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) ) )
4140a2d 25 . . . . . . . . . . . . . 14  |-  ( y  e.  om  ->  (
( z  e.  om  ->  ( y  ~~  z  ->  y  =  z ) )  ->  ( z  e.  om  ->  ( suc  y  ~~  suc  z  -> 
y  =  z ) ) ) )
4235, 41syl5 30 . . . . . . . . . . . . 13  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  ( z  e. 
om  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) ) )
4342imp 420 . . . . . . . . . . . 12  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( z  e. 
om  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) )
44 suceq 4394 . . . . . . . . . . . 12  |-  ( y  =  z  ->  suc  y  =  suc  z )
4543, 44syl8 67 . . . . . . . . . . 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 3967 . . . . . . . . . . . . 13  |-  ( w  =  suc  z  -> 
( suc  y  ~~  w 
<->  suc  y  ~~  suc  z ) )
47 eqeq2 2265 . . . . . . . . . . . . 13  |-  ( w  =  suc  z  -> 
( suc  y  =  w 
<->  suc  y  =  suc  z ) )
4846, 47imbi12d 313 . . . . . . . . . . . 12  |-  ( w  =  suc  z  -> 
( ( suc  y  ~~  w  ->  suc  y  =  w )  <->  ( suc  y  ~~  suc  z  ->  suc  y  =  suc  z ) ) )
4948biimprcd 218 . . . . . . . . . . 11  |-  ( ( suc  y  ~~  suc  z  ->  suc  y  =  suc  z )  ->  (
w  =  suc  z  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
5045, 49syl6 31 . . . . . . . . . 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 2635 . . . . . . . . 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 371 . . . . . . . 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 425 . . . . . . 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 65 . . . . . 6  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  ( w  e. 
om  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) ) )
5554ralrimdv 2603 . . . . 5  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  A. w  e.  om  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
56 breq2 3967 . . . . . . 7  |-  ( w  =  z  ->  ( suc  y  ~~  w  <->  suc  y  ~~  z ) )
57 eqeq2 2265 . . . . . . 7  |-  ( w  =  z  ->  ( suc  y  =  w  <->  suc  y  =  z ) )
5856, 57imbi12d 313 . . . . . 6  |-  ( w  =  z  ->  (
( suc  y  ~~  w  ->  suc  y  =  w )  <->  ( suc  y  ~~  z  ->  suc  y  =  z )
) )
5958cbvralv 2717 . . . . 5  |-  ( A. w  e.  om  ( suc  y  ~~  w  ->  suc  y  =  w
)  <->  A. z  e.  om  ( suc  y  ~~  z  ->  suc  y  =  z ) )
6055, 59syl6ib 219 . . . 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 4619 . . 3  |-  ( A  e.  om  ->  A. z  e.  om  ( A  ~~  z  ->  A  =  z ) )
62 breq2 3967 . . . . 5  |-  ( z  =  B  ->  ( A  ~~  z  <->  A  ~~  B ) )
63 eqeq2 2265 . . . . 5  |-  ( z  =  B  ->  ( A  =  z  <->  A  =  B ) )
6462, 63imbi12d 313 . . . 4  |-  ( z  =  B  ->  (
( A  ~~  z  ->  A  =  z )  <-> 
( A  ~~  B  ->  A  =  B ) ) )
6564rcla4v 2831 . . 3  |-  ( B  e.  om  ->  ( A. z  e.  om  ( A  ~~  z  ->  A  =  z )  ->  ( A  ~~  B  ->  A  =  B ) ) )
6661, 65mpan9 457 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  ~~  B  ->  A  =  B ) )
67 eqeng 6828 . . 3  |-  ( A  e.  om  ->  ( A  =  B  ->  A 
~~  B ) )
6867adantr 453 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  =  B  ->  A  ~~  B
) )
6966, 68impbid 185 1  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  ~~  B  <->  A  =  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 6    <-> wb 178    \/ wo 359    /\ wa 360    = wceq 1619    e. wcel 1621   A.wral 2516   E.wrex 2517   (/)c0 3397   class class class wbr 3963   suc csuc 4331   omcom 4593    ~~ cen 6793
This theorem is referenced by:  php  6978  onomeneq  6983  nnsdomo  6988  fineqvlem  7010  dif1enOLD  7023  dif1en  7024  findcard2  7031  cardnn  7529
This theorem was proved from axioms:  ax-1 7  ax-2 8  ax-3 9  ax-mp 10  ax-5 1533  ax-6 1534  ax-7 1535  ax-gen 1536  ax-8 1623  ax-11 1624  ax-13 1625  ax-14 1626  ax-17 1628  ax-12o 1664  ax-10 1678  ax-9 1684  ax-4 1692  ax-16 1927  ax-ext 2237  ax-sep 4081  ax-nul 4089  ax-pow 4126  ax-pr 4152  ax-un 4449
This theorem depends on definitions:  df-bi 179  df-or 361  df-an 362  df-3or 940  df-3an 941  df-tru 1315  df-ex 1538  df-nf 1540  df-sb 1884  df-eu 2121  df-mo 2122  df-clab 2243  df-cleq 2249  df-clel 2252  df-nfc 2381  df-ne 2421  df-ral 2520  df-rex 2521  df-rab 2523  df-v 2742  df-sbc 2936  df-dif 3097  df-un 3099  df-in 3101  df-ss 3108  df-pss 3110  df-nul 3398  df-if 3507  df-pw 3568  df-sn 3587  df-pr 3588  df-tp 3589  df-op 3590  df-uni 3769  df-br 3964  df-opab 4018  df-tr 4054  df-eprel 4242  df-id 4246  df-po 4251  df-so 4252  df-fr 4289  df-we 4291  df-ord 4332  df-on 4333  df-lim 4334  df-suc 4335  df-om 4594  df-xp 4640  df-rel 4641  df-cnv 4642  df-co 4643  df-dm 4644  df-rn 4645  df-res 4646  df-ima 4647  df-fun 4648  df-fn 4649  df-f 4650  df-f1 4651  df-fo 4652  df-f1o 4653  df-fv 4654  df-er 6593  df-en 6797
  Copyright terms: Public domain W3C validator