I found an interesting correlation between binary numbers and $n$-dimensional simplexes and I'm trying to find where I can find more information on the subject.
I noticed that binary representations of numbers index the elements of an $n$-dimensional simplex in perfect order of construction. For example take a tetrahedron. $n=3$ as it is three dimensions. It has the elements:
1 cell
4 faces
6 edges
4 points
That is a total of $2^{n+1}-1$ elements equalling 15. If you take all binary numbers between from 1 - 15 and count the sum of the digits for each you get:
1 - 1
10 - 1
11 - 2
100 - 1
101 - 2
110 - 2
111 - 3
1000 - 1
1001 - 2
1010 - 2
1011 - 3
1100 - 2
1101 - 3
1110 - 3
1111 - 4
Now count the numbers of times each sum amount appears.
sum - count
4 - 1
3 - 4
2 - 6
1 - 4
The counts are the same as the number of each element in the tetrahedron, therefore any binary number whose digits sum 2 for example, can be used to represent an edge, 3 for faces, 1 for points, 4 for cells etc.
Not only do the sum counts match the number of elements in the simplex but surprisingly the order in which they appear, by counting by 1 binary number at a time, matches the logical order of the simplexes construction.
1 - 1 - point
10 - 1 - point
11 - 2 - edge
100 - 1 - point
101 - 2 - edge
110 - 2 - edge
111 - 3 - face
1000 - 1 - point
1001 - 2 - edge
1010 - 2 - edge
1011 - 3 - face
Notice how no edges appear until there are two free points to connect, no faces until three edges to fill etc.
Can somebody explain to me what applications this has or where I can find material on this subject?
It seems the following.
Let $n$ be a natural number, $X=\{x_0,x_1,\dots, x_n\}$ be a set of vertices of an $n$-dimensional simplex and $B$ be the set of binary sequences of length $n+1$. Then $|B|=2^{n+1}$. For each sequence $b=(b_0,\dots, b_n)$ let $c(b)=\operatorname{conv}\{x_i: b_i=1\}$ be a convex hull of a set $\{x_i: b_i=1\}$ of vertices of the simplex $S$. Then the map $c$ enumerates vertices, edges, faces, cells, etc. of the simplex $S$. In particular, a total number of faces of the simplex $S$ is equal to $2^{n}$ (here we count the empty set as a unique $(-1)$-dimensional face of the simplex $S$) and a number of $d$-dimensional faces of the simplex $S$ is equal to the number of binary sequences in $B$ with sum $d+1$ of the digits and is equal to ${n+1 \choose d+1}$. Moreover, the set $B$ has two orders. The first of them if the usual order $”\le”$ of binary naturals. The second order $”\subset”$ is a majorization. For each sequences $b,b’$ from $B$ we put $b\subset b’$ provided $b_i\le b_i’$ for each $i=0,1,\dots,n$. Clearly, $b\subset b’$ iff $c(b)\subset c(b’)$. Moreover, $b\subset b’$ implies $b\le b’$, which explains your last observation.