27.04.2015 Views

Computability and Logic

Computability and Logic

Computability and Logic

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

26<br />

Ramsey’s Theorem<br />

Ramsey’s theorem is a combinatorial result about finite sets with a proof that has interesting<br />

logical features. To prove this result about finite sets, we are first going to prove,<br />

in section 26.1, an analogous result about infinite sets, <strong>and</strong> are then going to derive, in<br />

section 26.2, the finite result from the infinite result. The derivation will be an application<br />

of the compactness theorem. Nothing in the proof of Ramsey’s theorem to be presented<br />

requires familiarity with logic beyond the statement of the compactness theorem, but at<br />

the end of the chapter we indicate how Ramsey theory provides an example of a sentence<br />

undecidable in P that is more natural mathematically than any we have encountered<br />

so far.<br />

26.1 Ramsey’s Theorem: Finitary <strong>and</strong> Infinitary<br />

There is an old puzzle about a party attended by six persons, at which any two of the<br />

six either like each other or dislike each other: the problem is to show that at the party<br />

there are three persons, any two of whom like each other, or there are three persons,<br />

any two of whom dislike each other.<br />

The solution: Let a be one of the six. Since there are five others, either there will be<br />

(at least) three others that a likes or there will be three others that a dislikes. Suppose<br />

a likes them. (The argument is similar if a dislikes them.) Call the three b, c, d. Then<br />

if (case 1) b likes c or b likes d or c likes d, then a, b, <strong>and</strong> c, ora, b, <strong>and</strong> d, ora, c,<br />

<strong>and</strong> d, respectively, are three persons any two of whom like each other; but if (case 2)<br />

b dislikes c, b dislikes d, <strong>and</strong> c dislikes d, then b, c, <strong>and</strong> d are three persons, any two<br />

of whom dislike each other. And either case 1 or case 2 must hold.<br />

The number six cannot in general be reduced; if only five persons, a, b, c, d, e are<br />

present, then the situation illustrated in Figure 26-1 can arise. (A broken line means<br />

‘likes’; a solid line, ‘dislikes’.) In this situation there are no three of a, b, c, d, e any<br />

two of whom like each other (a ‘clique’) <strong>and</strong> no three, any two of whom dislike each<br />

other (an ‘anticlique’).<br />

A harder puzzle of the same type is to prove that at any party such as the previous<br />

one at which eighteen persons are present, either there are four persons, any two of<br />

whom like each other, or four persons, any two of whom dislike each other. (This<br />

puzzle has been placed among the problems at the end of this chapter.) It is known<br />

that the number eighteen cannot be reduced.<br />

319

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!