To construct the Cantor set, take a line segment of finite length, say from 0 to 1, and take out the middle third. You are left with two segments of equal length (1/3), and a space in between. Now cut each of the two remaining segments into thirds, so you are left with 4 segments each of length 1/9. Do this forever, and the points you have left make up the Cantor set.

Skip over ASCII art

0      1/3       2/3      1
***************************  Original segment

*********         *********  Step 1

***   ***         ***   ***  Step 2

* *   * *         * *   * *  Step 3

And so forth.

There are an infinite number of points in the Cantor set. There are also an infinite number of points within the original line segment which are not in the Cantor set. Both of these numbers are equally large (in technical terms, they have the same cardinality), and both are as large as the number of points in the original line segment. The Cantor set is an infinite number of points spread over a finite line segment which, combined, have 0 length.

A 2-dimensional version of this is called a Sierpinski carpet. To construct it, take a solid square, break it into a 3 x 3 grid of squares (like a tic-tac-toe board), and remove the middle square. You are left with 8 squares around an empty space. Do the same thing to each of these 8 squares, and so on forever.

I once rendered an approximation of a Sierpinski carpet using nothing but nested tables. Here’s a more detailed image in the Wikipedia. A Sierpinski carpet contains an infinite number of solid squares that combine to have 0 area.

A 3-dimensional version of this is called a Menger sponge. To construct it, start with a solid cube. Split each face into 9 squares and drill out the center square, all the way to the opposing face of the cube. This will leave you with 20 smaller cubes. Do the same thing to each of them, and so on forever. If this is confusing, here are a number of images to help you visualize the process and the result. Someone built an approximation of a Menger sponge entirely out of business cards, and someone else made a poster of one.

A Menger sponge has infinite surface area but 0 volume. Each face of a Menger sponge forms a Sierpinski carpet, and each cross-section diagonal of a Menger sponge forms a Cantor set.

Tomorrow we’ll see why there are more real numbers between 0 and 1 than there are integers in the entire universe.

§

Thirty nine comments here (latest comments)

  1. This reminds me of a paradox from Calculus III.

    Take a function like y = 1 / x from 1 -> infinity and rotate it about the x axis. It has infinite length and therefore infinite surface area, but finite volume.

    So you could never paint the surface, but you could fill the interior with paint. ;-)

    — ziggy #

  2. I once took a 4th-year undergrad math course in something called “Measure theory” of which I recall very little; a set can have something called “Measure” - if the set is points on a line, the measure is non-zero if it includes “contiguous chunks” of the line.

    The orgasmic climax of the course came during the last lecture when the prof proved that the Cantor set had the cardinality of the continuum (i.e. is uncountable) but nonetheless measure zero. The fact that I was unable to care about this was a premonition that I was headed away from math career-wise.

    — Tim Bray #

  3. Because there are no integers *in* the universe!

    (I’m assuming that you are going to whip out the diagonal argument, but just for laughs, on a technical note, I think we are all Platonists to the extent that there are no integers in the universe.)

    — Stewart #

  4. And here I was telling Mark in IRC that Lynne and I were just discussing sets of Lebesgue measure 0 at the dinner table a couple weeks ago. I can only wonder at the damage caused to my children’s mental health.

    — Joe #

  5. I just got done reading David Foster Wallace’s “Everything and More”, which is as good of an explaination of the history of infinity as applies to mathematics as anyone can hope to do without having a doctorate. Because of that book, I actually already know how to prove what you’re going to show us tomorrow.

    Plus, he’s a great writer and makes the stuff accessible even if you haven’t had college math (which I have), and clearly delineates things that are IYI (If You’re Interested) only.

    — Matt Comroe #

  6. Tim, that’s called the Lebesgue measure, and yes, the Cantor set has measure 0, which is (as mathematicians say) interesting. Also interesting is the fact that you can construct variations of the Cantor set using other fractions (say, lopping off 1/4 of each segment instead of 1/3) and the resulting set will always have measure 0. I believe this can be generalized to any rational number between 0 and 1.

    However, the *really* interesting part is that if you lop off a smaller and smaller amount in each step, you can construct a set with is homeomorphic to the Cantor set, but has a measure greater than 0.

    — Mark #

  7. this reminds me of a problem i read about someone solving recently, but i can’t find a source right now. it’s something like this: before you can walk any distance, you have to walk half the distance, and before you can walk that half, you have to walk half of that half, and so on into infinity. so any distance contains an infinite number of smaller distances, which should take us an infinite amount of time to walk. but for some reason it doesn’t.

    — Scott Reynen #

  8. i smell a diagonalization proof coming… :)

    — anders #

  9. Well, geez, if everybody who adds a dimension to a Cantor set gets to name it, can I claim the tesseract version? I just need to come up with a noun that describes an infinitely empty fourth-dimensional structure and: ta-da, the Knauss vacation.

    — Greg Knauss #

  10. There’s only one thing worse than a Mac geek… and thats a MATH geek ;)

    — Adrian #

  11. Scott, that’s called Zeno’s paradox, and it rests on the fact that the sum of an infinite series can yield a finite result.

    Interestingly, there is a road near my house called Zeno Road. It is a dead-end in both directions (you can only enter it from a cross street in the middle). I used to have a running route where I jogged to the end of Zeno Road, and back. Beat that with a stick.

    — Mark #

  12. I always heard it called the Sierpinsky Sponge, when did it get changed to Menger?

    BTW, if you’re into this sort of stuff, I highly recommend the seminal cyberpunk novel “White Light, or What Is Cantor’s Continuum Problem?” by Rudy Rucker. It was out of print for years and extremely rare, but now it’s back in print.

    — Charles #

  13. Scott, you’re thinking of Zeno’s paradox. see: http://www.mathacademy.com/pr/prime/articles/zeno_tort/index.asp

    also Douglas Hofstadter’s book, Goedel Escher Bach, has a good discussion of the resolution of the paradox (along with a lot of other fun stuff).

    — anders #

  14. http://en2.wikipedia.org/wiki/Aleph-null

    — Sam Ruby #

  15. For those who can’t bear the suspense, here’s the spoiler:

    http://minutillo.com/ponderful/mti.php - diagonalization away!

    The best thing about this topic is you get to talk about ℵ.

    I ♥ ℵ

    — steve minutillo #

  16. _Gödel, Escher, Bach_ should be required reading in any vaguely science-related field.

    — kami #

  17. Mathworld has cool spinnning Java3D Menger sponges.

    http://mathworld.wolfram.com/MengerSponge.html

    — kami #

  18. Aleph-Null bottles of beer on the wall,
    Aleph-Null bottles of beer
    You take one down & pass it around
    Aleph-Null bottles of beer on the wall!

    — Michael Bernstein #

  19. Aleph-One bottles of beer on the wall,
    Aleph-One bottles of beer
    Take infinity down & pass them around
    Aleph-One bottles of beer on the wall!

    — Michael Bernstein #

  20. Will be be doing the Infinite Hotel thing as well? Ah go on…

    And I can second the recommendation of White Light.

    — Piers Cawley #

  21. But what about angular momentum?

    — dws #

  22. This reminds me of a graphics programming class in college..

    Not that this adds much to the discussion, but there it is anyway.

    — kasia #

  23. Good.

    Why?

    — Jesper #

  24. // I used to have a running route where I jogged to the end of Zeno Road, and back. //

    Did you then jog halfway to the end and back, and then _quarterway to the end and back, and so on ad infinitum?

    And how long did it take?

    — James Kew #

  25. <comment type=”self promotion” mode=”shameless”>

    So, when I was at sixth form (which I think roughly corresponds of high school is the US - age 17-18), I helped produce the maths magazine, which was shamelessly called Hypotenews. Better still, I produced an HTML version, which has been preserved in all its invalid glory here:
    http://zeus.jesus.cam.ac.uk/~jg307/hypo/index.html
    Not only that, but one of the longest and most tedious articles I ever wrote for the magazine was all about infinite numbers, it contains a lot of the topics that Mark’s mentioning:
    http://zeus.jesus.cam.ac.uk/~jg307/hypo/h12/hypotenews.html
    The writing sucks. Sorry.
    In fact, the cover of issue 12 contained a Menger Sponge (well, a picture of one):
    http://zeus.jesus.cam.ac.uk/~jg307/hypo/h13/hypotenews.html
    Not only that, but if anyone owns a Casio 9750G calculator, we published programs you can use to generate mandelbrot and julia set fractals:
    http://zeus.jesus.cam.ac.uk/~jg307/hypo/h13/hypotenews.html
    (yeah, that’s really loosley related, I’m really wondering if anyone else in the world has those calculators)

    I should say, there seems to be a character coding issue that I need to sort out; hopefully it won’t impair readability.

    Mark, I’m very impressed by your tables-only Sierpinski carpet.
    </comment>

    — jgraham #

  26. jgraham: thanks. I would just like to add that my Sierpinski carpet is valid XHTML 1.1.

    — Mark #

  27. Argh. I messed those links up. Whose stupid idea was it to use frames?*

    Infinity:
    http://zeus.jesus.cam.ac.uk/~jg307/hypo/h12/infinity.html

    Fractal programs:
    http://zeus.jesus.cam.ac.uk/~jg307/hypo/h13/calcguide.html

    Sorry.

    *Mine. But I really regret it.

    — jgraham #

  28. Charles, I think the 3D Sierpinski one is called a Sierpinski gasket, and it’s triangular. I think. I found out about Menger sponges after running into the business card version…

    kami, we’ve all got cool spinning 3D Menger Sponge applets, right?
    http://www.tom-carden.co.uk/p5/menger_flat_mouse/applet/

    — Tom #

  29. Quarter Life Crisis (trackback)
  30. http://mathworld.wolfram.com/SierpinskiSponge.html

    Tom: okay, you got the Menger. How about the Sierpinski? Oh, and that would be “tetrahedral”, not “triangular”. ;)

    — kami #

  31. Re: comment #1, that’s called Gabriel’s horn, and was considered a paradox when it was first discovered in the 17th century. The empiricists were the dominant philosophical paradigm of the era, and they believed that our finite minds could never comprehend the infinite because all our comprehension was based on sense impressions, which were necessarily finite. This seems ridiculous nowadays, but I guess most overthrown paradigms are like that.

    — Mark #

  32. If you’re interested in Cantor sets, a friend of mine wrote up a proof about the sums of Cantor sets some months ago - that is, the startling fact that any number in the interval [0,2] can be represented as the sum of two points in the middle-third Cantor set defined on [0,1]. It’s very informative and quite funny: http://meghanrose.blogspot.com/2003_04_01_meghanrose_archive.html#93439869

    — Gnomon #

  33. I did Calc II OK but am lost. Have dumped a bunch of PDFs of all this and hope I will be as wise as the rest of you tomorrow when I’ve had some sleep. :)

    — Jerry #

  34. When I was in fifth grade (age 10ish) there was a wooden cone at school sliced into three pieces that revealed three conic sections: circle, ellipse, and parabola. At the time I was curious to know what the relationship was between the slope of the intersecting plane relative to the axis of the cone and the resulting conic section. I didn’t have the vocabulary to articulate it that way at the time, but that’s what I wanted to know.

    Fast forward to college. I enrolled in Calculus III as an elective even though it wasn’t part of the architecture requirements. I was specifically was looking forward to formally answering that question about cones and intersecting planes (finally). They were using the same text book as Calc II and the next couple chapters covered three-dimensional geometry.

    One of the first things out of the instructor’s mouth was “We’re going to skip the chapters on three-dimensional geometry because it really isn’t very interesting. Instead we’ll jump straight into infinite series.”

    Bastard.

    ( a longer story is at http://dobbse.net/thinair/2003/12/000158.html and some discussion of infinity and vanishing points is at http://dobbse.net/reflection/2003/12/000157.html )

    — Eric Dobbs #

  35. Speaking of images: here’s a one-dimensional cellular atomata.

    This contains no images, and validates as XHTML 1.0 strict:

    http://www.xefer.com/cell.aspx

    It works well on ie, firebird and mozilla but I haven’t tested it on the Mac.

    — Anonymous #

  36. My six year old asks, “what’s infinity plus infinity”. I reply “infinity”. Which of us understands it more?

    — Paul Morriss #

  37. There is an interesting quantity that can be associated with Cantor-set-like objects (and more generally any set of points in n-dimensional space), namely the Hausdorff (or “fractal”) dimension. The Cantor set has Hausdorff dimension log(2)/log(3) (approximately 0.631), which can be handwavingly explained by saying that if you triple its size you get two Cantor sets (whereas if you triple the size of a filled square you get nine of them, hence the filled square has dimension log(9)/log(3)=2). The Sierpinski carpet has dimension log(8)/log(3) or approximately 1.893. The Menger sponge has dimension log(20)/log(3) or nearly 2.727. The Sierpinski triangle has dimension log(3)/log(2) or about 1.585. And so on. But not only linearly self-similar objects have an associated Hausdorff dimension: it was proven, for example, that the boundary of the Mandelbrot set has Hausdorff dimension 2.

    — David #

  38. I am nearly amazed that there have been this many comments without some poor attempt to relate Cantor sets to blogging - i.e., if you keep trying to comment on something enough, dividing each point until the it disappears, you end up with a blog entry that amounts to nothing.

    Oops ;)

    — David #

  39. You took us from 2 dimentions to 3 - what happens when you extend the idea to the 4th dimention (time)?

    — Steven Garrity #

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



§

firehosecodemusicplanet

© 2001-8 Mark Pilgrim