1
THE LOGIC IN COMPUTER SCIENCE COLUMN
by
2
Yuri GUREVICH
Electrical Engineering and Computer Science
UniversityofMichigan, Ann Arb or, MI 48109-2122, USA
Zero-One Laws
Quisani: I heard you talking on nite mo del theory the other day.Itisinteresting
indeed that all those famous theorems ab out rst-order logic fail in the case when
only nite structures are allowed. I can understand that for those, likeyou, educated
in the tradition of mathematical logic it seems very imp ortantto ndoutwhichof
the classical theorems can b e rescued. But nite structures are to o imp ortant all by
themselves. There's got to b e deep nite mo del theory that has nothing to do with
in nite structures.
Author: \Nothing to do" sounds a little extremist to me. Sometimes in nite ob jects
are go o d approximations of nite ob jects.
Q: I do not understand this. Usually, nite ob jects approximate in nite ones.
A: It may happ en that the in nite case is cleaner and easier to deal with. For example,
a long nite sum may b e replaced with a simpler integral. Returning to your question,
there is indeed meaningful, inherently nite, mo del theory. One exciting issue is zero-
one laws. Consider, say, undirected graphs and let be a propertyofsuch graphs. For
example, may b e connectivity. What fraction of n-vertex graphs have the prop erty
? It turns out that, for many natural prop erties , this fraction converges to 0 or
1asn grows to in nity. If the fraction converges to 1, the prop erty is called almost
sure. In that sense, almost all graphs are connected, hamiltonian, not 3-colorable,
rigid, etc. [BH, Co2, and references there].
1
\CurrentTrends in Theoretical Computer Science", Eds. G. Rozenb erg and A. Salomaa, World
Scienti c, Series in Computer Science, Volume 40, 1993
2
Partially supp orted by NSF grant CCR 89-04728 and ONR grant N00014-91-J-11861. 1
Q: What is exactly the fraction of n-vertex graphs with prop erty ? What do es it
mean that a graph is rigid?
A: A graph G is called rigid if the identity map is the only automorphism of G
(i.e. the only isomorphism from G to G). Now, ab out that fraction. There are two
di erent de nitions in the literature:
Lab eled Case: l ( )isthenumber L ( )of graphs on f1;:::;ng divided by
n n
n(n 1)=2
2 , the total numb er of graphs on f1;:::;ng. In other words, l ( )=
n
L ( )=L ( ) where is the trivial prop ertythatevery graph has.
n n
Unlab eled Case: u ( ) is the number U ( ) of isomorphism typ es of n-vertex
n n
graphs divided by the total number U ( )ofisomorphismtyp es of n-vertex
n
graphs.
Of course, the prop erty in question is supp osed to b e preserved by isomorphisms.
Somewhat lo osely, p eople say that ob eys the lab eled (resp. unlab eled) zero-one law
if l ( ) (resp. u ( )) converges to 0 or 1. Let me saythattwonumerical sequences
n n
and are asymptotical ly equivalent if they converge to the same numb er or else
n n
they b oth diverge. I will use the sign to denote asymptotic equivalence. Notice
that the asymptotic equivalence is weaker than the asymptotic equality
n n
; the latter means that the fraction = converges to 1. For example, 1=n
n n n n
2
is asymptotically equivalent but not asymptotically equal to 1=n . It turns out that
l ( ) u ( ). The reason for the asymptotic equivalence is that almost all graphs
n n
are rigid.
Q: In what sense are most graphs rigid?
A: Rigidity,which I will denote by , ob eys either of the two zero-one laws: l ()
n
u () ! 1. Notice that each rigid n-vertex graph has exactly n! distinct lab elings, so
n
that L ( ^ )=U ( ^ ) n!. The desired asymptotic equivalence l ( ) u ( )
n n n n
follows easily.Doyou see how to deriveit?
Q: I think I do. Since l () ! 1,
n
L ( ) L ( ^ )+L ( ^:) L ( ^ ) L ( ^ )
n n n n n
= :
L ( ) L ( ) L ( ) L ()
n n n n
U ( ) U ( ^ ) U ( ^ ) L ( ^ )
n n n n
Similarly, b ecause u () ! 1. But = .
n
U ( ) U () U () L ()
n n n n
A: Very go o d.
Q: Let me verify for myself that rigid graph has n! distinct lab elings.
There are n! one-to-one functions f from the universe V of an n-vertex graph
G onto f1;:::;ng. Eachsuch f gives a graph G on f1;:::;ng,sothatf is an
f