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

Theorem nneneq 7060
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 4042 . . . . . 6  |-  ( x  =  (/)  ->  ( x 
~~  z  <->  (/)  ~~  z
) )
2 eqeq1 2302 . . . . . 6  |-  ( x  =  (/)  ->  ( x  =  z  <->  (/)  =  z ) )
31, 2imbi12d 311 . . . . 5  |-  ( x  =  (/)  ->  ( ( x  ~~  z  ->  x  =  z )  <->  (
(/)  ~~  z  ->  (/)  =  z ) ) )
43ralbidv 2576 . . . 4  |-  ( x  =  (/)  ->  ( A. z  e.  om  (
x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( (/)  ~~  z  -> 
(/)  =  z ) ) )
5 breq1 4042 . . . . . 6  |-  ( x  =  y  ->  (
x  ~~  z  <->  y  ~~  z ) )
6 eqeq1 2302 . . . . . 6  |-  ( x  =  y  ->  (
x  =  z  <->  y  =  z ) )
75, 6imbi12d 311 . . . . 5  |-  ( x  =  y  ->  (
( x  ~~  z  ->  x  =  z )  <-> 
( y  ~~  z  ->  y  =  z ) ) )
87ralbidv 2576 . . . 4  |-  ( x  =  y  ->  ( A. z  e.  om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) ) )
9 breq1 4042 . . . . . 6  |-  ( x  =  suc  y  -> 
( x  ~~  z  <->  suc  y  ~~  z ) )
10 eqeq1 2302 . . . . . 6  |-  ( x  =  suc  y  -> 
( x  =  z  <->  suc  y  =  z
) )
119, 10imbi12d 311 . . . . 5  |-  ( x  =  suc  y  -> 
( ( x  ~~  z  ->  x  =  z )  <->  ( suc  y  ~~  z  ->  suc  y  =  z ) ) )
1211ralbidv 2576 . . . 4  |-  ( x  =  suc  y  -> 
( A. z  e. 
om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( suc  y  ~~  z  ->  suc  y  =  z ) ) )
13 breq1 4042 . . . . . 6  |-  ( x  =  A  ->  (
x  ~~  z  <->  A  ~~  z ) )
14 eqeq1 2302 . . . . . 6  |-  ( x  =  A  ->  (
x  =  z  <->  A  =  z ) )
1513, 14imbi12d 311 . . . . 5  |-  ( x  =  A  ->  (
( x  ~~  z  ->  x  =  z )  <-> 
( A  ~~  z  ->  A  =  z ) ) )
1615ralbidv 2576 . . . 4  |-  ( x  =  A  ->  ( A. z  e.  om  ( x  ~~  z  ->  x  =  z )  <->  A. z  e.  om  ( A  ~~  z  ->  A  =  z ) ) )
17 ensym 6926 . . . . . 6  |-  ( (/)  ~~  z  ->  z  ~~  (/) )
18 en0 6940 . . . . . . 7  |-  ( z 
~~  (/)  <->  z  =  (/) )
19 eqcom 2298 . . . . . . 7  |-  ( z  =  (/)  <->  (/)  =  z )
2018, 19bitri 240 . . . . . 6  |-  ( z 
~~  (/)  <->  (/)  =  z )
2117, 20sylib 188 . . . . 5  |-  ( (/)  ~~  z  ->  (/)  =  z )
2221rgenw 2623 . . . 4  |-  A. z  e.  om  ( (/)  ~~  z  -> 
(/)  =  z )
23 nn0suc 4696 . . . . . . 7  |-  ( w  e.  om  ->  (
w  =  (/)  \/  E. z  e.  om  w  =  suc  z ) )
24 en0 6940 . . . . . . . . . . . 12  |-  ( suc  y  ~~  (/)  <->  suc  y  =  (/) )
25 breq2 4043 . . . . . . . . . . . . 13  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  <->  suc  y  ~~  (/) ) )
26 eqeq2 2305 . . . . . . . . . . . . 13  |-  ( w  =  (/)  ->  ( suc  y  =  w  <->  suc  y  =  (/) ) )
2725, 26bibi12d 312 . . . . . . . . . . . 12  |-  ( w  =  (/)  ->  ( ( suc  y  ~~  w  <->  suc  y  =  w )  <-> 
( suc  y  ~~  (/)  <->  suc  y  =  (/) ) ) )
2824, 27mpbiri 224 . . . . . . . . . . 11  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  <->  suc  y  =  w ) )
2928biimpd 198 . . . . . . . . . 10  |-  ( w  =  (/)  ->  ( suc  y  ~~  w  ->  suc  y  =  w
) )
3029a1i 10 . . . . . . . . 9  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( w  =  (/)  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
31 nfv 1609 . . . . . . . . . . 11  |-  F/ z  y  e.  om
32 nfra1 2606 . . . . . . . . . . 11  |-  F/ z A. z  e.  om  ( y  ~~  z  ->  y  =  z )
3331, 32nfan 1783 . . . . . . . . . 10  |-  F/ z ( y  e.  om  /\ 
A. z  e.  om  ( y  ~~  z  ->  y  =  z ) )
34 nfv 1609 . . . . . . . . . 10  |-  F/ z ( suc  y  ~~  w  ->  suc  y  =  w )
35 rsp 2616 . . . . . . . . . . . . . 14  |-  ( A. z  e.  om  (
y  ~~  z  ->  y  =  z )  -> 
( z  e.  om  ->  ( y  ~~  z  ->  y  =  z ) ) )
36 vex 2804 . . . . . . . . . . . . . . . . . 18  |-  y  e. 
_V
37 vex 2804 . . . . . . . . . . . . . . . . . 18  |-  z  e. 
_V
3836, 37phplem4 7059 . . . . . . . . . . . . . . . . 17  |-  ( ( y  e.  om  /\  z  e.  om )  ->  ( suc  y  ~~  suc  z  ->  y  ~~  z ) )
3938imim1d 69 . . . . . . . . . . . . . . . 16  |-  ( ( y  e.  om  /\  z  e.  om )  ->  ( ( y  ~~  z  ->  y  =  z )  ->  ( suc  y  ~~  suc  z  -> 
y  =  z ) ) )
4039ex 423 . . . . . . . . . . . . . . 15  |-  ( y  e.  om  ->  (
z  e.  om  ->  ( ( y  ~~  z  ->  y  =  z )  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) ) )
4140a2d 23 . . . . . . . . . . . . . 14  |-  ( y  e.  om  ->  (
( z  e.  om  ->  ( y  ~~  z  ->  y  =  z ) )  ->  ( z  e.  om  ->  ( suc  y  ~~  suc  z  -> 
y  =  z ) ) ) )
4235, 41syl5 28 . . . . . . . . . . . . 13  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  ( z  e. 
om  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) ) )
4342imp 418 . . . . . . . . . . . 12  |-  ( ( y  e.  om  /\  A. z  e.  om  (
y  ~~  z  ->  y  =  z ) )  ->  ( z  e. 
om  ->  ( suc  y  ~~  suc  z  ->  y  =  z ) ) )
44 suceq 4473 . . . . . . . . . . . 12  |-  ( y  =  z  ->  suc  y  =  suc  z )
4543, 44syl8 65 . . . . . . . . . . 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 4043 . . . . . . . . . . . . 13  |-  ( w  =  suc  z  -> 
( suc  y  ~~  w 
<->  suc  y  ~~  suc  z ) )
47 eqeq2 2305 . . . . . . . . . . . . 13  |-  ( w  =  suc  z  -> 
( suc  y  =  w 
<->  suc  y  =  suc  z ) )
4846, 47imbi12d 311 . . . . . . . . . . . 12  |-  ( w  =  suc  z  -> 
( ( suc  y  ~~  w  ->  suc  y  =  w )  <->  ( suc  y  ~~  suc  z  ->  suc  y  =  suc  z ) ) )
4948biimprcd 216 . . . . . . . . . . 11  |-  ( ( suc  y  ~~  suc  z  ->  suc  y  =  suc  z )  ->  (
w  =  suc  z  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
5045, 49syl6 29 . . . . . . . . . 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 2677 . . . . . . . . 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 369 . . . . . . . 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 423 . . . . . . 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 63 . . . . . 6  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  ( w  e. 
om  ->  ( suc  y  ~~  w  ->  suc  y  =  w ) ) ) )
5554ralrimdv 2645 . . . . 5  |-  ( y  e.  om  ->  ( A. z  e.  om  ( y  ~~  z  ->  y  =  z )  ->  A. w  e.  om  ( suc  y  ~~  w  ->  suc  y  =  w ) ) )
56 breq2 4043 . . . . . . 7  |-  ( w  =  z  ->  ( suc  y  ~~  w  <->  suc  y  ~~  z ) )
57 eqeq2 2305 . . . . . . 7  |-  ( w  =  z  ->  ( suc  y  =  w  <->  suc  y  =  z ) )
5856, 57imbi12d 311 . . . . . 6  |-  ( w  =  z  ->  (
( suc  y  ~~  w  ->  suc  y  =  w )  <->  ( suc  y  ~~  z  ->  suc  y  =  z )
) )
5958cbvralv 2777 . . . . 5  |-  ( A. w  e.  om  ( suc  y  ~~  w  ->  suc  y  =  w
)  <->  A. z  e.  om  ( suc  y  ~~  z  ->  suc  y  =  z ) )
6055, 59syl6ib 217 . . . 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 4698 . . 3  |-  ( A  e.  om  ->  A. z  e.  om  ( A  ~~  z  ->  A  =  z ) )
62 breq2 4043 . . . . 5  |-  ( z  =  B  ->  ( A  ~~  z  <->  A  ~~  B ) )
63 eqeq2 2305 . . . . 5  |-  ( z  =  B  ->  ( A  =  z  <->  A  =  B ) )
6462, 63imbi12d 311 . . . 4  |-  ( z  =  B  ->  (
( A  ~~  z  ->  A  =  z )  <-> 
( A  ~~  B  ->  A  =  B ) ) )
6564rspcv 2893 . . 3  |-  ( B  e.  om  ->  ( A. z  e.  om  ( A  ~~  z  ->  A  =  z )  ->  ( A  ~~  B  ->  A  =  B ) ) )
6661, 65mpan9 455 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  ~~  B  ->  A  =  B ) )
67 eqeng 6911 . . 3  |-  ( A  e.  om  ->  ( A  =  B  ->  A 
~~  B ) )
6867adantr 451 . 2  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  =  B  ->  A  ~~  B
) )
6966, 68impbid 183 1  |-  ( ( A  e.  om  /\  B  e.  om )  ->  ( A  ~~  B  <->  A  =  B ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    <-> wb 176    \/ wo 357    /\ wa 358    = wceq 1632    e. wcel 1696   A.wral 2556   E.wrex 2557   (/)c0 3468   class class class wbr 4039   suc csuc 4410   omcom 4672    ~~ cen 6876
This theorem is referenced by:  php  7061  onomeneq  7066  nnsdomo  7071  fineqvlem  7093  dif1enOLD  7106  dif1en  7107  findcard2  7114  cardnn  7612
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1536  ax-5 1547  ax-17 1606  ax-9 1644  ax-8 1661  ax-13 1698  ax-14 1700  ax-6 1715  ax-7 1720  ax-11 1727  ax-12 1878  ax-ext 2277  ax-sep 4157  ax-nul 4165  ax-pow 4204  ax-pr 4230  ax-un 4528
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1532  df-nf 1535  df-sb 1639  df-eu 2160  df-mo 2161  df-clab 2283  df-cleq 2289  df-clel 2292  df-nfc 2421  df-ne 2461  df-ral 2561  df-rex 2562  df-rab 2565  df-v 2803  df-sbc 3005  df-dif 3168  df-un 3170  df-in 3172  df-ss 3179  df-pss 3181  df-nul 3469  df-if 3579  df-pw 3640  df-sn 3659  df-pr 3660  df-tp 3661  df-op 3662  df-uni 3844  df-br 4040  df-opab 4094  df-tr 4130  df-eprel 4321  df-id 4325  df-po 4330  df-so 4331  df-fr 4368  df-we 4370  df-ord 4411  df-on 4412  df-lim 4413  df-suc 4414  df-om 4673  df-xp 4711  df-rel 4712  df-cnv 4713  df-co 4714  df-dm 4715  df-rn 4716  df-res 4717  df-ima 4718  df-iota 5235  df-fun 5273  df-fn 5274  df-f 5275  df-f1 5276  df-fo 5277  df-f1o 5278  df-fv 5279  df-er 6676  df-en 6880
  Copyright terms: Public domain W3C validator