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

Theorem hashennn 10519
Description: The size of a set equinumerous to an element of  om. (Contributed by Jim Kingdon, 21-Feb-2022.)
Assertion
Ref Expression
hashennn  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( `  A )  =  (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 ) `  N ) )
Distinct variable groups:    x, A    x, N

Proof of Theorem hashennn
Dummy variables  y  z are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 df-ihash 10515 . . . . 5  |- =  ( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u. 
{ <. om , +oo >. } )  o.  (
x  e.  _V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) )
21fveq1i 5415 . . . 4  |-  ( `  A
)  =  ( ( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u. 
{ <. om , +oo >. } )  o.  (
x  e.  _V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) ) `
 A )
3 funmpt 5156 . . . . 5  |-  Fun  (
x  e.  _V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } )
4 hashennnuni 10518 . . . . . . . . 9  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A }  =  N )
54eqcomd 2143 . . . . . . . 8  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  N  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A } )
6 nnfi 6759 . . . . . . . . . . 11  |-  ( N  e.  om  ->  N  e.  Fin )
76adantr 274 . . . . . . . . . 10  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  N  e.  Fin )
8 simpr 109 . . . . . . . . . . 11  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  N  ~~  A )
98ensymd 6670 . . . . . . . . . 10  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  A  ~~  N )
10 enfii 6761 . . . . . . . . . 10  |-  ( ( N  e.  Fin  /\  A  ~~  N )  ->  A  e.  Fin )
117, 9, 10syl2anc 408 . . . . . . . . 9  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  A  e.  Fin )
12 simpl 108 . . . . . . . . 9  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  N  e.  om )
13 simpr 109 . . . . . . . . . . 11  |-  ( ( x  =  A  /\  z  =  N )  ->  z  =  N )
14 breq2 3928 . . . . . . . . . . . . . 14  |-  ( x  =  A  ->  (
y  ~<_  x  <->  y  ~<_  A ) )
1514adantr 274 . . . . . . . . . . . . 13  |-  ( ( x  =  A  /\  z  =  N )  ->  ( y  ~<_  x  <->  y  ~<_  A ) )
1615rabbidv 2670 . . . . . . . . . . . 12  |-  ( ( x  =  A  /\  z  =  N )  ->  { y  e.  ( om  u.  { om } )  |  y  ~<_  x }  =  {
y  e.  ( om  u.  { om }
)  |  y  ~<_  A } )
1716unieqd 3742 . . . . . . . . . . 11  |-  ( ( x  =  A  /\  z  =  N )  ->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x }  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A } )
1813, 17eqeq12d 2152 . . . . . . . . . 10  |-  ( ( x  =  A  /\  z  =  N )  ->  ( z  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x }  <->  N  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A } ) )
1918opelopabga 4180 . . . . . . . . 9  |-  ( ( A  e.  Fin  /\  N  e.  om )  ->  ( <. A ,  N >.  e.  { <. x ,  z >.  |  z  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } }  <->  N  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A } ) )
2011, 12, 19syl2anc 408 . . . . . . . 8  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( <. A ,  N >.  e.  { <. x ,  z >.  |  z  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } }  <->  N  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A } ) )
215, 20mpbird 166 . . . . . . 7  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  <. A ,  N >.  e. 
{ <. x ,  z
>.  |  z  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } } )
22 mptv 4020 . . . . . . 7  |-  ( x  e.  _V  |->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x } )  =  { <. x ,  z >.  |  z  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } }
2321, 22eleqtrrdi 2231 . . . . . 6  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  <. A ,  N >.  e.  ( x  e.  _V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) )
24 opeldmg 4739 . . . . . . 7  |-  ( ( A  e.  Fin  /\  N  e.  om )  ->  ( <. A ,  N >.  e.  ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } )  ->  A  e.  dom  ( x  e.  _V  |->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x } ) ) )
2511, 12, 24syl2anc 408 . . . . . 6  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( <. A ,  N >.  e.  ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } )  ->  A  e.  dom  ( x  e.  _V  |->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x } ) ) )
2623, 25mpd 13 . . . . 5  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  A  e.  dom  ( x  e.  _V  |->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x } ) )
27 fvco 5484 . . . . 5  |-  ( ( Fun  ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } )  /\  A  e.  dom  ( x  e.  _V  |->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x } ) )  -> 
( ( (frec ( ( x  e.  ZZ  |->  ( x  +  1
) ) ,  0 )  u.  { <. om , +oo >. } )  o.  ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) ) `
 A )  =  ( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  ( ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) `  A ) ) )
283, 26, 27sylancr 410 . . . 4  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( ( (frec ( ( x  e.  ZZ  |->  ( x  +  1
) ) ,  0 )  u.  { <. om , +oo >. } )  o.  ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) ) `
 A )  =  ( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  ( ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) `  A ) ) )
292, 28syl5eq 2182 . . 3  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( `  A )  =  ( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  ( ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) `  A ) ) )
3011elexd 2694 . . . . . 6  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  A  e.  _V )
314, 12eqeltrd 2214 . . . . . 6  |-  ( ( N  e.  om  /\  N  ~~  A )  ->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A }  e.  om )
3214rabbidv 2670 . . . . . . . 8  |-  ( x  =  A  ->  { y  e.  ( om  u.  { om } )  |  y  ~<_  x }  =  { y  e.  ( om  u.  { om } )  |  y  ~<_  A } )
3332unieqd 3742 . . . . . . 7  |-  ( x  =  A  ->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x }  =  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  A } )
34 eqid 2137 . . . . . . 7  |-  ( x  e.  _V  |->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x } )  =  ( x  e.  _V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } )
3533, 34fvmptg 5490 . . . . . 6  |-  ( ( A  e.  _V  /\  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A }  e.  om )  ->  ( ( x  e.  _V  |->  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  x } ) `  A
)  =  U. {
y  e.  ( om  u.  { om }
)  |  y  ~<_  A } )
3630, 31, 35syl2anc 408 . . . . 5  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) `  A )  =  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  A } )
3736, 4eqtrd 2170 . . . 4  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) `  A )  =  N )
3837fveq2d 5418 . . 3  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  ( ( x  e. 
_V  |->  U. { y  e.  ( om  u.  { om } )  |  y  ~<_  x } ) `  A ) )  =  ( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  N ) )
3929, 38eqtrd 2170 . 2  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( `  A )  =  ( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  N ) )
40 ordom 4515 . . . . . . 7  |-  Ord  om
41 ordirr 4452 . . . . . . 7  |-  ( Ord 
om  ->  -.  om  e.  om )
4240, 41ax-mp 5 . . . . . 6  |-  -.  om  e.  om
43 eleq1 2200 . . . . . 6  |-  ( om  =  N  ->  ( om  e.  om  <->  N  e.  om ) )
4442, 43mtbii 663 . . . . 5  |-  ( om  =  N  ->  -.  N  e.  om )
4544necon2ai 2360 . . . 4  |-  ( N  e.  om  ->  om  =/=  N )
46 fvunsng 5607 . . . 4  |-  ( ( N  e.  om  /\  om  =/=  N )  -> 
( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  N )  =  (frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 ) `  N
) )
4745, 46mpdan 417 . . 3  |-  ( N  e.  om  ->  (
(frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u. 
{ <. om , +oo >. } ) `  N
)  =  (frec ( ( x  e.  ZZ  |->  ( x  +  1
) ) ,  0 ) `  N ) )
4847adantr 274 . 2  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 )  u.  { <. om , +oo >. } ) `  N )  =  (frec ( ( x  e.  ZZ  |->  ( x  + 
1 ) ) ,  0 ) `  N
) )
4939, 48eqtrd 2170 1  |-  ( ( N  e.  om  /\  N  ~~  A )  -> 
( `  A )  =  (frec ( ( x  e.  ZZ  |->  ( x  +  1 ) ) ,  0 ) `  N ) )
Colors of variables: wff set class
Syntax hints:   -. wn 3    -> wi 4    /\ wa 103    <-> wb 104    = wceq 1331    e. wcel 1480    =/= wne 2306   {crab 2418   _Vcvv 2681    u. cun 3064   {csn 3522   <.cop 3525   U.cuni 3731   class class class wbr 3924   {copab 3983    |-> cmpt 3984   Ord word 4279   omcom 4499   dom cdm 4534    o. ccom 4538   Fun wfun 5112   ` cfv 5118  (class class class)co 5767  freccfrec 6280    ~~ cen 6625    ~<_ cdom 6626   Fincfn 6627   0cc0 7613   1c1 7614    + caddc 7616   +oocpnf 7790   ZZcz 9047  ♯chash 10514
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 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2119  ax-sep 4041  ax-nul 4049  ax-pow 4093  ax-pr 4126  ax-un 4350  ax-setind 4447  ax-iinf 4497
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2000  df-mo 2001  df-clab 2124  df-cleq 2130  df-clel 2133  df-nfc 2268  df-ne 2307  df-ral 2419  df-rex 2420  df-rab 2423  df-v 2683  df-sbc 2905  df-dif 3068  df-un 3070  df-in 3072  df-ss 3079  df-nul 3359  df-pw 3507  df-sn 3528  df-pr 3529  df-op 3531  df-uni 3732  df-int 3767  df-br 3925  df-opab 3985  df-mpt 3986  df-tr 4022  df-id 4210  df-iord 4283  df-on 4285  df-suc 4288  df-iom 4500  df-xp 4540  df-rel 4541  df-cnv 4542  df-co 4543  df-dm 4544  df-rn 4545  df-res 4546  df-ima 4547  df-iota 5083  df-fun 5120  df-fn 5121  df-f 5122  df-f1 5123  df-fo 5124  df-f1o 5125  df-fv 5126  df-er 6422  df-en 6628  df-dom 6629  df-fin 6630  df-ihash 10515
This theorem is referenced by:  hashcl  10520  hashfz1  10522  hashen  10523  fihashdom  10542  hashun  10544
  Copyright terms: Public domain W3C validator