Documentation

CslibFrontier.Foundations.Combinatorics.SimpleGraph.Rado

The Rado graph #

SimpleGraph.radoGraph is the countable random graph, realized on ℕ by Ackermann's bit relation: distinct i and j are adjacent when bit i of j is set or bit j of i is set [Ack37] [Rad64] [Libkin2004, Section 12.3].

It has the extension property: for disjoint finite sets A and B of vertices there is a vertex outside A ∪ B adjacent to every vertex of A and to no vertex of B. A witness is 2 ^ M + ∑ a ∈ A, 2 ^ a for M larger than every element of A ∪ B; its set bits are read off with Nat.testBit_sum_two_pow. The model-theoretic consequences (uniqueness, universality, and the identification of the almost-sure theory of G(n, 1/2) with the theory of the Rado graph) are in CslibFrontier.Logics.FirstOrder.ZeroOneLaw.Rado.

Main definitions #

Main results #

References #

The Rado graph on ℕ: distinct i and j are adjacent when bit i of j is set or bit j of i is set (Ackermann's encoding of hereditarily finite sets) [Ack37] [Rad64].

Two natural numbers are adjacent in the Rado graph when one of them has the other as a set bit. Distinctness is automatic, since bit i of i is never set.

theorem SimpleGraph.radoGraph_exists_adj {A B : Finset ℕ} (hAB : Disjoint A B) :
∃ z ∉ A, z ∉ B ∧ (∀ a ∈ A, radoGraph.Adj z a) ∧ ∀ b ∈ B, ¬radoGraph.Adj z b

Extension property of the Rado graph. For disjoint finite sets A and B of vertices, some vertex outside A ∪ B is adjacent to every vertex of A and to no vertex of B.