Tuesday, April 29, 2025

Inversive void-shells

The void-shell is one of the trickiest structural classes to generate using sphere inversion, being one of only five that are missing in the 7x7 classification of self-similar geometry here.

A void-shell is the boundary surface of a space-filling tree, so is a fractal with no volume. There are two simple ways to make this using linear transformations, the Menger-shell:

and the Viscek-shell:

(both my own naming convention as I don't know of any better names).

My first successful attempt at this class with sphere inversions is based around the fairly well-known square-symmetric Apollonian gasket:

We use this pattern on each each principle axis. The large white circles are mapped to the full disk such that the two inner contact points become vertical or horizontal opposites. This creates a sort of cocoon with the triangular hole seen in the centre of the below images. 

The four white circles remain as 3-plane shapes after being transformed to the full disk. The remaining asymmetrical concave quadrilateral black areas are Mobius transformed into the inner concave quadrilateral, and this is then treated as a single-plane structure like the one above.



A tree-solid is simply the set inversion of the above. However, inkeeping with having the structure within a sphere, we can do this by:
1. orthographically transform the unit sphere to an infinite plane
2. repeatedly scale down any points larger than the above 'tri-disk's radius.
3. using the single-plane structure, but one-sided at the start, so features are only on the inside of the sphere

The result is an inversive tree-solid:



Friday, April 11, 2025

Rules for Inversive Classes

This classification of recursive shapes can be applied to inversive geometry in 3D, which is geometry that is symmetric to inversions around various 'generating spheres'. It is a 7x7 table that looks like this:



How we go from generating spheres to the class above is what I describe in my new paper preprint. It is a connection through about 4 layers of abstraction. 

Firstly, we have the generating spheres. The inversive limit sets are generated by repeatedly inverting points within these spheres such that the sphere surface remains unchanged. 

Secondly we have the connectivity graph, which represents many sets of generating spheres that all have the same connectivity. The nodes are the spheres and the edge numbers represent the 'branch order' n of the two intersecting surfaces. The dihedral angle of intersection is pi/n.

Thirdly we have the hypergraph, which represents many connectivity graphs with the same broad limit-set connectivity. In this diagram the branch orders are not important, just the presence of not of pairwise sphere intersections (an edge), triplet-wise sphere intersections (a semi-translucent face) and quad-wise sphere intersections (a solid volume). 

Fourthly and lastly we have an abstract hypergraph, which represents many types of hypergraph that all map to the same structural class in the 7x7 table. This structure is a schema for generating hypergraphs. The key component is the polyhedral sphere, which represents any polyhedron in the hypergraph that is intersected by a single orthogonal sphere. 


In the above abstract hypergraph, the red polyhedral sphere is the parent and the single curved edge represents one or many child edges in the hypergraph. In the hypergraph above it, there are four such edges and the spherical polyhedron is an irregular tetrahedron.

This particular abstract hypergraphs generates cluster-sponges. These are sponges that would be clusters if boundary points were removed. 

You can see this limit set in the table at the top of the page. These can be viewed in realtime here.

So this new paper is an extension of the previous paper but rather than creating a single family of limit sets for the five main diagonal classes, it is a method for generating a broad family of limit sets for all 49 classes.

Well... nearly, you can see in the top table that five limit sets are missing. These are easy to generate with linear limit-sets (see them rendered here) but hard to find for inversive limit sets. It is not certain whether they even can be generated, at least with simple sphere inversions. Working out whether these last 5 classes is possible with sphere inversions is the last major open question for this structural classification.

Friday, November 29, 2024

Mean Voronoi blocks

Returning back to the article that implied that the most common 3D Voronoi cell would be cubic. From memory the paper found that the most likely 3D cell would have the topology of a cube. But that doesn't mean it has the geometry of a cube. 

When taking the average geometry we need to rotate the objects first before averaging them. 

Here I do this by creating a random 3D delauney triangulation and picking out only those vertices with 6 edges (representing a 6-faced polyhedron, i.e. a hexahedron).

To average these hexahedra pairwise, I compare their face plane equations (meaning the vectors from the centre point to the face surface and orthogonal to the face. I currently compare ever permutation of these faces to find the closest. Before averaging these vectors. 

There is a chance that these permutations could pick an illegal permutation, but I consider that to be quite unlikely. Nevertheless, that does mean the result still has a little bit of doubt remaining.

The result is not quite as I expected, in particular it seems to have one edge that is very close to being 0 in length:


The plane equation coordinates are (shown as face dots above): 
-0.194 -0.799542  0.177
-0.194 0.799542 0.177
-0.0325489  0.0  -0.919887
 0.32221 0.0   0.86651
 0.853741 0.0  -0.206742
-1.80479 0.0  -0.206742

this has corners at:
 -1.72998 -0.656383 -0.859826
   -2.02784 -0.00848857     1.74037
 -1.72998  0.656383 -0.859826
  -2.02784 0.00848857    1.74037
 0.674983  -1.25876 -0.944922
 1.04826 -1.00809 0.596529
 0.674983   1.25876 -0.944922
 1.04826  1.00809 0.596529

The shape has bilateral symmetry as expected.

While the topology doesn't look to be the same as a cube, any tiny deviation in the plane equations returns it to being cubic geometry. 

So maybe (I might even say likely) the average 3D Voronoi cell looks like this. It being the modal topology and mean morphology.

Here is the version with mirror symmetry included, from side and top views:

As expected, it lacks the bilateral symmetry of the previous polyhedron.   
Plane vectors:
0.901108  -0.245847 -0.0036255
0.284537 0.768137 0.307837
-0.0607338  -0.702541   -0.54646
-0.238406  0.624325 -0.635057
  -1.78769  -0.245847 -0.0036255
-0.149459 -0.245847  0.713359
corners: 
  -1.7839 -0.259842  -0.92409
-1.67419 -1.07282 0.108903
-2.01822  1.41839 0.813744
-2.01419  1.38803 0.885761
 0.978475 0.0619286  -1.64478
0.557456 -1.51177 0.425191
  1.21246  0.908574 -0.900279
 1.02075 0.176343  1.10404


Wednesday, October 16, 2024

void-sponges

 Void-sponges are probably the easiest self-siimilar shape to make with inversive geometry, but it isn't obvious whether there is a particular shape that is somehow a better archetype than others; something that is 'the canonical inversive void-sponge'.

It does exist and there are six of them. The trick is to realise that the most symmetric 3D structure is a 3-sphere, and that regular polychora (4D polyhedra) have evenly distributed vertices on the 3-sphere.

We therefore run the iterative inversions in 4D with sphere inversion centres at the polychora vertices, then stereographically project them back into 3D. This projection is conformal and Mobius so spheres remain as spheres. Any such projection will do, but in practice there is one that mimimises the object size by placing the pole on the face centre (farthest from the vertices), this also has rotational symmetry in 3D so is the best choice. Noting that it is structurally the same shape regardless of the Mobius transformation, and these inversive shapes should always be considered as equivalence classes under not just similarity transformations but also Mobius transformations. 

So the six shapes come from the six regular polychora, the 5-cell:

The other free parameter is whole number n where the intersection angle between spheres is 180/n. For large n we get sparser shapes like above. And for smaller n they are thicker like below.

There is also the 8-cell:

16-cell:

and the 24-cell:
and here is as dense as the 24-cell gets before it encloses a sphere:

The 5-cell and 24-cell are special in that they are their own dual. A consequence of this is that you can fit another copy of the shape interwoven in it but not intersecting:

5-cells:
we can manipulate the Mobius transforms to make them the same shape in 3D:
24-cell:
and again transformed so they are the same shape in 3D:
here's a thinner version:


These shapes are not new I'm sure, but I am glad that at least one of the 49 classes of self-similar shape has a definitive family of archetypes.







Sunday, August 4, 2024

Pareto Olympic Results

Olympics time, and once again we see every news site in the country splash up the medals table. Invariably with USA or China at the top. The intention is clear that the top of the table are better at Olympics in some way. Sites might even refer to the top of the table as the Olympics winners.

This is unfortunate for two reasons. Firstly, there is no the medals table. Most of the world sort by golds, then by silvers then by bronze. Parts of the US sort by total medal count (for obvious reasons). The New York Times has suggested a weighting were one gold is worth two silvers, which is worth two bronzes. 

The reason there is no one ranking is that the Olympics does not recognise any ranking table, not does it recognise a winning country. It only recognises medals to individuals. The ranking tables are not any official part of The Olympics, they are something pushed by the media, who presumably are more interested in political rivalries.

Anyway, the bigger reason this is unfortunate, is that total medals is an exceedingly unfair way to rank performance of a country. Tuvalu would need 30 thousand times the rate of medals to get the glory of matching the US on the medals table. Even larger countries like Iceland would need 900 times the rate of medal winning. The figures are even more skewed when compared to China. So why doesn't the media do the obvious thing and report medals per capita in the ranking tables?

We can get a clue by looking at the last five winners of the medals per capita (I'm using the NYT weighting here but it doesn't make much difference):

Dominica, San Marino, Grenada, Grenada, Jamaica

These are all very low population countries, and the winner varies a lot each Olympics. The problem is two-fold. Firstly, low-population countries will have far higher variance in their medal count than large ones, so the 'lucky outliers' will be small countries, and big ones like China would stand no chance of winning even if they have about the same quality of athletes, due to the lower variation.

Secondly, while this may seem unfair, the fact is that having the larger countries at the top of the table pleases more people, and so as a method is supported by more people. I'm sure that San Marino people would love to see the medals per capita plastered over the media, but their opinion is drowned out by a bigger market of people from the US and China who enjoy seeing their own country near the top.

So we are being pulled in two directions. Logic and fairness pulls us towards publishing the medals per capita, but popular interest and lucky outliers pulls us towards showing the total medal count.

This is a multi-objective problem, which can be resolved using the concept of Pareto fronts. The nice thing about this is that it admits multiple first-place 'winners' and multiple second places etc. None of these several winners can claim to be better than any other, so the slightly oppressive nature of placing every country in the world into a pecking order is relieved.

Anyway, here is how it works. In my case I will use the NYT medal weighting as the 'medals' count. The Pareto winning countries are those on the Pereto front of the two objectives: medals and medals-per-capta. They are the countries that: have more medals or more medals-per-capita than every other country.

So for any two Pareto winners, either can claim superiority to the other on one objective only, so it is a tie.

In order to get Pareto second place, we just remove the Pareto winners and apply the same search again. Likewise for third and fourth place, etc.

For 2024's Olympics we have:

  • Pareto first place: Dominica, Saint Lucia, New Zealand, Netherlands, Australia, France, United States
  • second place:   Grenada, Bahrain, Georgia, Hungary, Great Britain, China
  • third place:    Slovenia, Jamaica, Croatia, Norway, Sweden, South Korea, Italy, Japan

Here are the Pareto first place countries in the three previous summer Olympics:

2020: San Marino, Bermuda, Bahamas, New Zealand, Netherlands, Australia, Great Britain, Japan, Russia, United States
2016: Grenada, Bahamas, Jamaica, New Zealand, Hungary, Netherlands, Australia, Great Britain, United States
2012: Grenada, Jamaica, New Zealand, Hungary, Australia, Great Britain, Russian Federation, United States

They are in population order. The table now is satisfying for people from large and small countries. 

We can see that the usual hegemony of US/China is replaced by a hegemony of New Zealand, Australia, Great Britain, and United States. Also with winning by Grenada, the Bahamas, Netherlands and Russia. 

It is actually rather sad to see that there is still Anglosphere privilege throughout the Olympics, and it isn't as egalitarian as the Olympic Committee (and the world) would like it to be. But at least now this hegemony is visible, it is not just USA battling it out with China.

Media companies would do well to present the Olympics this way. It shows what is really going on, and gives honour to some of the smaller countries with incredible rates of medals.


Update: This is a different attempt to solve the same problem with total medals and medlas-per-capita by trying to find a happy medium between the two extremes. I don't think it is the best answer for a few reasons- 1. it rates all medals the same regardless of colour, 2. it uses a model that is at the same time too complicated for audiences to adopt and too simple to represent what's going on. For instance it assumes all actions are independent. 3. it continues to squeeze all countries onto one strict ordering, rather than treating the medal rates of tiny and huge countries as effectively incomparible. 

Tuesday, April 9, 2024

Mixed Fractal Surfaces

It is possible to have a fractal surface which varies in local dimension everywhere. That is to say, on any patch of the surface you can zoom into a rough area (e.g. 2.5D) or zoom into a smooth area (2D). 

Here it is applied to the sphere tree fractal:

and to the non-rotated one:
In both cases the the smaller spheres are disproportionately smaller than in the usual shapes, giving a surface that tends to smooth in the vicinity of each sphere base. 

However, if you zoom in on those smooth surfaces enough you will find a sphere, and if you zoom in on that sphere enough you will find a bud at the top which is just as rough as one of the pictured ones. 

This is much like the Mandelbrot set, which has areas that are locally smooth, in the sense of being a straight thin line as you zoom in further:
But everywhere you can find tiny minibrots.

We can do the same thing with the tree surface fractal:



The surface tends to smooth, however, each smooth dome has child domes that can be just as protruding as the largest ones. So we get a mixed dimensionality. 

Because the mixture of roughnesses is everywhere and at every resolution (rather than separated) these are probably all multifractals, though I've never fully understood the definition of these. 

Saturday, April 6, 2024

Scale-based decompositions

There are several ways to decompose a smooth function. A spline, a Fourier decomposition, a Taylor decomposition per-point, and a Pade decomposition per-point, are the first that come to mind. Also a perceptron (Sigmoid decomposition). 

All of these are suited to smooth functions. However nature isn't smooth, and tends to exhibit scale-symmetric roughness in some form. Can we extend some of these useful decomposition methods to support roughness?

The way I'm considering doing this is to treat scale as like another dimension. For example, if our function is 1D: y=f(x), then a new axis s represents scale.

As scale is a logarithmic sort of attribute, we have to treat it as such. We treat the function f(x,s) as the convolution of f(x) with the Gaussian g(x)N(0,exps), and whenever we take the partial derivative d with respect to s we use the logarithm: log|d|. The modulus operation is because the logarithm is a function on the magnitude of d, representing the entropy of d

This exp and log pairing linearises the scale component of the function.  

We can now do something like a 2D Taylor decomposition of the 2D graph with respect to x and scale s. This is a sort of partial derivative that can be looked at in a systematic way:

f(x,s) is the height of the function (mean height of the patch)

fx is the gradient of the function

fs is the change in (mean) height with change in s, which is zero

So far not very interesting. But we can go further:

2fx2 is the curvature of the function with respect to x

2fs2 is the change in fs with scale s, also 0

2fxs is the change in gradient with respect to scale s

Now normally this last one would also be zero, but we are using the absolute value of yx, so it is g(x)log|yx|s, which represents how much the average absolute gradient changes with scale s

This is non-zero because larger s (lower-pass signals) has lower mean absolute gradient than high-pass signals for rough functions. This is a way to measure the fractal dimension of the function, since it is the slope of a log-log function. It is only non-zero on rough surfaces, and zero on smooth ones. 

This may not seem interesting, but it is starting to incorporate fractal functions and smooth functions into the same framework. This is a sort of Taylor expansion at a point, but it can also be applied piecewise as the basis for approximating a whole 1D function. We can now treat a function as a set of heights quadratically interpolated, and each with their own fractal dimension, so they are rough curves. Moreover, this piecewise decomposition is a mesh in 2D with scale s, giving a different set of slopes and fractal dimensions at different scales. 

This is already very powerful, it supports roughnesses that change with location and with scale. Moreover we can see a link with splines, since piecewise linear approximations are first-order splines. But we can keep going:

3fx3 is the rate of change of curvature, used in cubic splines for instance

3fx2s is the change in curvature with scale, I think this quantifies a C(1) fractal, representing not rough but lumpy functions. However I'm not sure!

3fxs2 is the change in fractal dimension with scale. Does it get rougher or smoother as you zoom in. This is connected to my Saturated shapes blog post.

3fxsx how the fractal dimension changes with x, this allows linear roughness changes along the function. 

3fs3 this is zero 

This next level of Taylor expansion can characterise the curvature of the function and the change in roughness.  

 

 There are lots of ways this idea could be extended:

  • Look at Pade decomposition instead, or Fourier decomposition
  • Extend to a 2D function (like a hillside), this adds many more partial derivatives
  • Look at the topological groups instead, e.g. -ve, 0, +ve in each component of the Taylor expansion 

For the 2D case:

2fxz - twist or saddleness

3fxzs - very weird idea, how much does saddleness change with scale 

3fxsz - how much does x fractal dimension change with z. Noting that roughness can be different in different axes

We can then have a linear sum of all of these primitive values. Topologically we we can set each to -1,0 or 1, to give us a set of derived shapes.