Programming Language and Logic Links

These thread on Lambda the Ultimate has several interesting links to online papers and books about the links between logic and functional programming languages.

What’s interesting is that, with one giant exception (category theory), the mathematics used is among the least fashionable. Most mathematicians can go through their entire careers without learning anything about proof theory and intuitionistic logic, and I think the reason is that both undermine the naive model of mathematical foundations that most mathematicians carry around in their heads. Mathematicians hate thinking about foundations. Whenever a famous open problem turns out to be equivalent to the Continuum Hypothesis, it’s like a family member died, or worse joined a cult.

Proof theory is disconcerting because it treats mathematican proofs as purely syntactic. Mathematicians, whatever their actual philosophy, adopt a working philosophy of Platonism: symplectic manifolds and 7-spheres and von Neumann regular algebras all exist in some nebulous “out there”. While mathematicians occasionally argue that mathematics is just the formal manipulation of symbols, in practice they think of a 7-sphere as an actual object.

In proof theory, mathematics really is just a formal manipulation of symbols. The more elementary parts of proof theory consist of proving one method of representing proof symbolically is the same as another. More advanced proof theory consists of studying topics such as proof normalization, where it is shown that proofs can be systematically rewritten in a particular form. Here are some further links to proof theory texts.

Intuitionistic logic is another field more prominent in computer science than in mathematics. Intuitionistic logic unnerves mathematicians by removing the law of the excluded middle: that a statement is true, or its negation is true. In classical logic, every statement can be (in principle) assigned a value of either true or false. To do the same for intuitionistic logic, some statements must be assigned intermediate truth values (in fact, infinitely many intermediate values become possible). Most mathematicians regard intuitionism as a historical curiosity not particularly of study.

Intuitionism is attractive to computer scientists, because whether or not its axioms correctly model truth, they do model knowability. The law of excluded middle doesn’t apply to knowability. A statement that is not known to be true may also be not known to false. Curry-Howard correspondence between logical formulas and function types has insired study of even weaker logical systems.

Goodstein Sequences

Goodstein sequences are integer sequences with a very surprising property.

Start with any number. Rewrite the number as a sum of powers of 2. In turn, rewrite the exponents as powers of 2, then the exponents of exponents, etc. For example, we’d write 33 as:
33 in hreditary base-2 notation.

To compute the next value in the sequence, replace every 2 with a 3, and subtract 1. The next value in the Goodstein sequence for 33 is:
The next value in the Goodstein sequence for 33
which is equal to 22876792454961.

For the next step, we replace the 3s with 4s and subtract 1, etc. This sequence continues to increase very rapidly, right?

Wrong. Goodstein proved that for any starting value, the sequence eventually goes to zero. Even more surprisingly, the proof relies on properties of infinite ordinal arithmetic. The theorem cannot have an appreciably more elementary proof: the result is independent of the Peano axioms for arithmetic.

A minicourse on Goodstein sequences and some related examples can be found at this online course: Fast-Growing Functions and Unprovable Theorems

Tippe Top

Tippe Top The mathematical model for a tippe top is a sphere with an uneven concentration of mass along the vertical axis, making the lower half heavier than the upper half; a physical model is more practical if you cut the top off the sphere and replace it with a stem. In each case, the key feature is that the centre of gravity is lower than the centre of the sphere. When the top spins, with the help of friction, it slowly tips over — raising the centre of gravity — until it is upside down.

For a history of the tippe top and an overview of how it works see this page. You can also watch an animation of the tippe top in action.

If you want to really understand why it inverts, Richard Cohen was the first to provide a rigorous explanation in The Tippe Top Revisited Am. J. Phys. 45, 12 (1977). Or, if it’s important that you also know why it falls back down as it runs out of spin, see this paper.

Hausdorff Surprises

The Hausdorff dimension is used to define the dimension of fractals, for example, the dimension of the Sierpinski triangle is log(3)/log(2).

To find the d-dimensional Hausdorff measure of a set: cover the set with very small balls, sum the diameter to the power of d of each ball, and take the lim inf as the balls get smaller. For integer dimensions, the Hausdorff measure is equivalent to the Lebesgue measure. The Hausdorff dimension of a set is the point where the d-dimensional Hausdorff measure changes from infinity to zero, i.e. the dimension of a set is d* if for d < d* its measure is infinity and for d > d* its measure is zero.

From the abstract for a paper by Dierk Schleicher:

… we construct a set E ⊂ â„‚ of positive planar measure and with dimension 2 such that each point in E can be joined to ∞ by one or several curves in â„‚ such that all curves are disjoint from each other and from E, and so that their union has Hausdorff dimension 1. We can even arrange things so that every point in â„‚ which is not on one of these curves is in E. These examples have been discovered very recently; they arise quite naturally in the context of complex dynamics, more precisely in the iteration theory of simple maps such as z → sin(z).

247 anal sex amateur anal sex anal asian gay sex anal asian hot sex anal asian picture sex anal black sex anal demo sex video anal free sex anal gay sex anal hardcore sex anal movie sex anal penetration sex video anal porn free movie sex xxx anal porn sex anal sex anal sex clip anal sex free anal sex free pic anal sex free trailer anal sex gallery anal sex guide anal sex movie anal sex photo anal sex pic anal sex picture anal sex porn anal sex position anal sex pregnant anal sex site anal sex story anal sex technique anal sex teen anal sex tip anal sex toy anal sex trailer anal sex trailer video anal sex video anal sex video clip anal sex video virgin anal sex with young girl asian anal sex best lube for anal sex black anal sex black white anal sex blonde chick thirsty for anal sex catalog anal sex anal sex china doll rough sex anal pee christine young free anal sex video deep anal sex ebony anal sex extreme anal sex first anal sex first time anal sex first time anal sex video foxy lady 4 queen of anal sex free anal porn sex movie download free anal sex free anal sex clip free anal sex gallery free anal sex movie free anal sex movie gallery free anal sex pic free anal sex picture free anal sex video free granny anal sex free pic of anal sex gay anal sex gay anal sex video guide to anal sex hard anal sex hardcore anal sex hardcore gay anal sex her first anal sex her first anal sex devon lee homemade anal sex toy hot anal sex how to have anal sex interracial anal sex kinky anal sex latina anal sex lesbian anal sex male anal sex mature anal sex painful anal sex rough anal sex sex anal teen anal sex xxl sex anal young anal sex

Most disturbing photo ever

Sigfpe, our most prolific commenter, has the most disturbing photo ever on his weblog.

While going some boxes the other day, I found an index-card-sized piece of paper with a commutative diagram on it, but no other text. Where does it come from? I have no idea. For all I know if you leave any box alone long enough, it starts to sprout commutative diagrams.

Perron-Frobenius on the web

Or, how to make a search engine.

Imagine the web is irreducible, by which I mean you could get from any page to any other by following links; pages without links (and pages no one links to) demonstrate that the web is not irreducible — but this is mathematics, so we are not going to let it worry us. Further, imagine there are millions of monkeyspigeons randomly clicking on links (forming a Markov chain). Perron-Frobenius theory can tell us the probability of these random walks through cyberspace visiting a particular page at an instance in time.

Continue reading

Not Even Wrong on Group Theory

Peter Woit’s weblog is an interesting source for information about the intersection of math and physics. His latest is a post on the early history of using group theory in quantum mechanics. While group-theoretic methods in physics (and chemistry) are uncontroversial these days, the original emergence of the subject was painful, with pro- and anti-group theory partisans. (Wolfgang Pauli termed group theory the “Gruppenpest”.)