Assessment exercises 4

Exercise 4.1 (9.28 in the book).

Show that there is a formal proof in the first-order language L with non-logical symbols f , 0 , 1 (where f is a unary function and 0 , 1 are constants) of x y ( ¬ ( x = u ) ( f ( x ) = f ( y ) ) ) from x ( ( f ( x ) = 0 ) ( f ( x ) = 1 ) ) and x y z ( ¬ ( x = y ) ( ¬ ( y = z ) ¬ ( z = x ) ) ) .

(Hint: first make an informal argument in the way you might for some other mathematics course you are studying. Then try to tighten up the arguments and write all the cases down. Then rewrite your proof in first order logic.)

Exercise 4.2.

Let L E be the first order language with single non-logical symbol (a binary relation).

(a) Write down statements of L saying that is an equivalence relation.

(b) Write down a single statement of L saying that there are exactly three -equivalence classes.

(c) Show how to write down infinitely many statements of L that when taken together say that there are infinitely many -equivalence classes.

Exercise 4.3.

Let L G be the first order language with a single non-logical symbol E (a binary relation). A simple graph is a nonempty set V of vertices and a set E of unordered pairs of vertices.

(a) Explain how an L G -structure might be regarded as a graph, and vice versa. What two extra conditions on L G -structures must be true for this graph to be a simple graph?

(b) Write down statements of L G saying that:

(i) the graph is complete (has every possible edge);

(ii) the graph has no cycle of length n ;

(iii) vertices x , y of V are not connected by any path. (You will need to give infinitely many sentences for this one.)

Exercise 4.4.

A simple graph ( V , E ) is bipartite if there is a partition V = V 0 V 1 into two disjoint sets such that all edges in E join a vertex in V 0 with a vertex in V 1 . If G = ( V , E ) is a simple graph and is an equivalence relation on V then we define a graph G / = ( V / , E / ) by: for v V the -equivalence class of v is denoted v / and V / is the set of -equivalence classes v / of V ; and ( v / , w / ) E / if and only if ( x , y ) E for some x v / and y w / . (Note that this construction may create loops, i.e. edges from a vertex to itself, which is also a cycle of length 1.) Suppose G is a simple graph with no cycles of odd length i.e. no sequence of vertices v 0 , v 1 , , v 2 k with ( v i , v i + 1 ) E for all i and also ( v 2 k , v 0 ) E .

(a) Let X be the set of equivalence relations on V such that G / has no cycles of odd length. Show that X is nonempty.

(b) Define on X by letting 1 2 if and only if x 1 y implies x 2 y for all x , y V . Show that ( X , ) is a poset with the Zorn property.

(c) Let X be maximal. Show that divides V into either one or two equivalence classes and the case of only one class is only possible is the original graph had no edges. (Hint: two equivalence classes C , D can be merged provided (a) there is no path of odd length between them and (b) provided there is no third class E with paths of from C to E and from D to E of different parity. It follows that any two classes with an even length path between them can be merged, and if two classes cannot be merged but have no path between, then there is another class with an even length path from one of them.)

(d) Deduce that any graph with no odd cycles is bipartite. Prova a converse too, and hence explain how to write down infinitely many sentences of L G saying that a graph is bipartite.