|
Here's a quick proof as to how it works. Suppose the triangle has endpoints (0,0), (1,0), and (1/2, sqrt(3)/2). Given a point (x,y), the three transformations then become f1(x,y) = (x/2, y/2) f2(x,y) = (x/2+1/2, y/2) f3(x,y) = (x/2 + 1/4, y/2 + sqrt(3)/4) which are precisely the maps in the Iterated Function System [1] which generate the Sierpinsky triangle! It's a very nice observation that the three maps have a concise representation in terms of taking the midpoint with the given point and the vertices of the triangle. [1] https://en.wikipedia.org/wiki/Iterated_function_system |
Edit: In my view, to show that this draws the Sierpinsky triangle, one would need to show that (1) we only draw points that are in the Sierpinski triangle and (2) we draw all the points of the Sierpinski triangle.
(1) is clearly false (we start with a random point), but the claim is of course only that we draw an “approximation”. What that means exactly would need to be defined. I assume a rigorous argument would involve 2D probability densities. Given that, (2) isn’t obvious to me as well, what’s the argument that all the parts of the Sierpinski shape correspond to areas with high probability density?