Description: Define the set size function # , which gives the cardinality of a finite set as a member of NN0 , and assigns all infinite sets the value +oo . For example, ( #{ 0 , 1 , 2 } ) = 3 ( ex-hash ). (Contributed by Paul Chapman, 22-Jun-2011)
Ref | Expression | ||
---|---|---|---|
Assertion | df-hash | |
Step | Hyp | Ref | Expression |
---|---|---|---|
0 | chash | |
|
1 | vx | |
|
2 | cvv | |
|
3 | 1 | cv | |
4 | caddc | |
|
5 | c1 | |
|
6 | 3 5 4 | co | |
7 | 1 2 6 | cmpt | |
8 | cc0 | |
|
9 | 7 8 | crdg | |
10 | com | |
|
11 | 9 10 | cres | |
12 | ccrd | |
|
13 | 11 12 | ccom | |
14 | cfn | |
|
15 | 2 14 | cdif | |
16 | cpnf | |
|
17 | 16 | csn | |
18 | 15 17 | cxp | |
19 | 13 18 | cun | |
20 | 0 19 | wceq | |