Sunday, October 19, 2008

Are Semicolons Pretentious?

I just realized it's impossible to use a semicolon when you're writing with a casual tone; it comes off as pretentious. Right?

Wednesday, April 30, 2008

Amazon's New Price Font

Maybe this is just me, but it seems like Amazon.com has managed a huge psychological breakthrough with the slightly altered fonts and styles on their product pages.

Somehow it seems like the larger, skinnier red price letters make it really easy to just click and buy, and even disappointing not to do so.

Wednesday, April 16, 2008

Overcoming Bias

Overcoming Bias is my favorite blog. I've always thought of myself as a highly rational person, but after spending about 40 hours reading the series on rationality by Eliezer Yudkowsky, I've realized that the methodology of rationality is a lot more subtle and fascinating than I thought. It's fair to say this blog has changed my life more than anything else I've read in the last year. Here is one great quote among many:
It is a corruption of curiosity to prefer the question to its answer. Yet people seem to get a tremendous emotional kick out of not knowing something. Worse, they think that the mysteriousness of a mysterious phenomena indicates a special quality of the phenomenon itself, inferring that it is surely different-in-kind from phenomena labeled "understood". If we are ignorant about a phenomenon, that is a fact about our state of mind, not a fact about the phenomenon itself.

Sunday, March 30, 2008

On Undefinable Numbers

If you are asked to define the biggest number you can, and restricted to only using only 1000 characters of English text, then there are only finitely many things you can write, and only finitely many numbers you can define.

Out of all the numbers nameable with 1000 characters of English text, which is the biggest? Surely, it must be huge -- a lot bigger than "a googol to the power of (a googol to the power of a googol (...and so on, nested a googol times))".

Unfortunately, there is no such "biggest number", because there is no well-defined mapping from English phrases to numbers. In Who Can Name the Bigger Number, Scott Aaronson considers:

"One plus the biggest whole number nameable with 1,000 characters of English text."

This number takes at least 1,001 characters to name. Yet we’ve just named it with only 80 characters! Like a snake that swallows itself whole, our colossal number dissolves in a tumult of contradiction. What gives?

The paradox I’ve just described was first published by Bertrand Russell, who attributed it to a librarian named G. G. Berry. The Berry Paradox arises not from mathematics, but from the ambiguity inherent in the English language. There’s no surefire way to convert an English phrase into the number it names (or to decide whether it names a number at all).

The problem with English isn’t that it’s unsuitable for a discussion of math. On the contrary, it’s too good at discussing math. The Berry paradox shows that if phrases in a language could all be unambiguously interpreted as numbers, then the language wouldn’t be able to refer to itself with anywhere near as much expressive power as English.

The Berry paradox only applies when one attempts to define big natural numbers using natural language. But there is also a second problem when you try to define a real number using any representation: the finite-length strings you use to represent real numbers aren't able to represent them all.

The problem is that the set of real numbers is uncountably infinite, while the set of finite-length strings is countably infinite. (If you don't know what that means, then read the Infinity lesson notes from X-treme Thinking). Thus, the set of real numbers that you can define is only a countable island in the uncountable ocean of reals.

OK now imagine you're given an infinitely long piece of paper with a real number printed on it. It starts like this: 0.821480865132823066470938446095...

As far as you look, the numbers seem completely random. You don't discern any pattern at all. Let's say you have an eternity to look at this number and try to understand it, but when you're done, you have to communicate which number this is to a mortal living in a finite universe. What do you do?

In the general case, this is impossible, because we know that most real numbers are undefinable. So do you just give up? But wait, the number you were given was actually Pi, except with the first 100 decimal digits taken out. You could have just told that to the mortal!

Every real number has infinitely many decimal digits after the decimal point. And in general, it takes an infinite amount of information to communicate which real number you're talking about. But it would be overkill for me to spend my life trying to say infinitely many 3's as in 0.333333... when I could just use a finite shorthand like "one third" or "zero point three three three and so on". Certain real numbers admit to being identified by finite pieces of information. These numbers include Pi, for example, as well as the number 0.56656565556... whose 2nd, 3rd, 5th, and all other prime-numbered digits after the decimal points are 6's, with the composite-numbered digits all being 5's, and way more elaborate constructions than this.

So what kinds of real numbers can't we define? What does an undefinable real number look like? It looks like a number that you can't say what it looks like. In other words, it looks completely and truly random, more random than it's logically possible for finite creatures to understand.

So not only are we unable to talk about "the biggest whole number nameable with 1,000 characters of English text", we also can't say anything interesting about which real numbers are definable. In other words, the vast majority of real numbers are undefinable, but we can't imagine which ones they are, and we wouldn't know them when we see them!

Does it even make sense for us finite humans to talk about the existence of "undefinable real numbers" and the supposedly "infinite amount of information" that they contain? Are we talking about anything at all? It seems like the "ocean of undefinable reals" is really a make-believe ocean, and the "island of definable reals" is really all that's there to talk about.

Wednesday, February 20, 2008

My First Musical Composition

I want to be a good composer and pianist someday, instead of a bad composer and an intermediate pianist like I am now.

Here's my first composition, a 30-second piece that I wrote up in an hour on the computer using Finale SongWriter 2007:

Fantasy in C Minor

X-treme Thinking

This semester I teach a 1-unit class at UC Berkeley called X-treme Thinking. Here is the Course Website.

Saturday, January 05, 2008

What Is There in Mathematics?

“What is there?” is an important question in philosophy, as it applies to both the physical world, and the world of ideas. The branch of philosophy that studies this question is called ontology.

Mathematics is characterized by defining and studying various “mathematical objects”, such as sets, numbers, functions, graphs, sequences, polynomials, equations, Turing machines and complexity classes.

But two questions remain:
  1. How can a mathematician be sure that the object of conversation is in fact a mathematical object, and as such that the mathematician is justified in using the terminology and methods of dealing with mathematical objects?

  2. How does one ensure that one's definition of a mathematical object is unambiguous?
These questions seem deep and philosophical, perhaps without a well-defined answer. But modern mathematics manages to spare the ontologists from the unwieldy task of answering the above two questions individually for every mathematical object. This is done by only studying sets.

Even though we only study sets, the surprising thing is that we can still prove things about properties of numbers, functions, graphs, and all the other “mathematical objects” we wanted to study. Sets are so versatile that we can always make some construction out of them with properties that mirror those of a given mathematical object.

Thus, we don’t require a new ontological entity for each mathematical object, because we can simply redefine all our terms about the object and its properties so that they refer to certain sets and their properties.

Since sets are the only mathematical objects, you might still ask the one ontological question about mathematical objects left to pose in modern math: What is a set? But then, what is “what is”? Generally one answers an ontological question with the name of an entity, so any pure mathematical answer to this question must be circular.

So we leave the question of “what is a set” unanswered. Until further notice, you don’t know what sets are, you just define all your mathematical objects in terms of them.

This is all the philosophical underpinning you will need to start thinking about naïve set theory. We should just keep in mind what the source of our naiveté is: since we aren’t defining what a set is, we don’t say how to decide which definitions of sets are valid, and which are not.

But the hole we left in naïve set theory, that we didn’t say how to decide which definitions of sets are valid, allows us to construct a profound paradox (Bertrand Russel’s): Let S be the set of all sets which are not members of themselves. Is S a set? Well, we said “let S be a set”, so that should be enough – you don’t have any grounds to argue that it isn’t. Is S a member of itself? By the law of the excluded middle, you must believe that the answer is either yes or no. By the definition of S, you must also believe the opposite conclusion. But by the law of non-contradiction, you can’t do that. So the constraints of rational thinking make nonsense out of naïve set theory.

When we study axiomatic set theory, we define properties that a set must satisfy, instead of just letting intuition decide which definitions are valid sets and which aren’t. Axiomatizing set theory introduces a stunning array of counterintuitive results, but still enables us to avoid all known paradoxes.

What answer do we give to the question of “what is a set” in axiomatic set theory? Assuming that the axioms of set theory don’t contradict each other, Kurt Gödel’s completeness theorem tells us that axiomatic set theory has a model – meaning, in another meta-theory of sets which is a foundation for the study of axiom systems, there exists a meta-set whose elements satisfy our axioms' conditions of being sets. So we can say that those elements are the sets. But what kind of mathematical object is a model? It’s a set: not a set in our axiomatic set theory, but a set in the set meta-theory that underpins model theory which underpins the original axiomatic set theory.

Then what about meta-sets in the meta-theory of sets? All we can do is construct a model for one axiomatic set theory within another, and add arbitrarily many levels to the hierarchy of meta-sets inside meta-meta-sets.

If we look at any given level of meta-set in this hierarchy and ask what its definition is, there are two possibilities: either the set is an element of a model of an axiomatic set theory, or the question has no mathematical answer, because the set is the ontological foundation of the highest level model theory.

When we answered the question of what sets are in axiomatic set theory, we forced ourselves into a dead end by saying that they were elements of a model of set theory. But we can also give a second answer: sets are the symbols we write on paper as we mechanically apply inference rules to the set axioms (which are also symbols). So this is what we mathematicians do: define everything in terms of sets, define an axiomatic set theory which avoids all known paradoxes, and then field philosophical challenges by pretending to be blind mechanical theorem derivers. Then when the challenger goes away, we go back to abstracting and deriving meta-theorems.

If you want to talk about sets, and you don’t want to be stuck without a definition for sets at the highest level of the model hierarchy, then you have no choice but to take the notion of a set out of the scope of ontological study. You have to believe that every discussion about sets is shorthand for a discussion of symbols which purport to describe the sets. But at the highest level of axiomatic set theory, the one the mathematician writes in, the symbols can’t really be talking about anything.

It isn’t all that surprising that we initially reached an ontological dead end when we asked the question of what is a set. After all, every definition is made up of words, and there are only finitely many words. Thus, any chain of “what is” questions must end, or be answered with a circular definition.

And of course, we are still working our way down such a chain of questions. For what exactly are the “inference rules” and “strings of symbols” with which we confidently work? This is another discussion. But compared to the original question of what a set is, this is a discussion which seems quite alright for a mathematician to leave to a philosopher. A discussion of sets seems to strike much closer to the foundation of mathematics than a discussion of the mechanical execution of rules. Thus, we should be content to proceed with mathematics as usual, while leaving the philosophers to address a topic in the non-mathematical realm of ontological inquiry.