Connectivity of binomial random graphs above the threshold #
The binomial random graph G(n, p) (Mathlib's SimpleGraph.binomialRandom) is connected with
probability tending to 1 once n p - log n → ∞: this is the upper half of the Erdős–Rényi
connectivity threshold p = log n / n, in the G(n, p) form proved in the proof of
Frieze and Karoński, Theorem 4.1 and cited in their Section 4.2.
The proof is a union bound over vertex cuts. A graph on n ≥ 1 vertices that is not connected
has a vertex set S with 1 ≤ |S| ≤ n / 2 and no edge between S and its complement
(SimpleGraph.exists_forall_not_adj_of_not_connected, in
CslibFrontier/Foundations/Combinatorics/SimpleGraph/Connectivity/Connected.lean). In G(V, p)
none of the edges in a fixed set t of non-diagonal edges is present with probability
(1 - p) ^ |t| (SimpleGraph.binomialRandom_real_disjoint_edgeSet), so a fixed cut is empty
with probability (1 - p) ^ (|S| (n - |S|)) (SimpleGraph.binomialRandom_real_forall_not_adj),
and
P(G(n, p) is not connected) ≤ ∑_{k = 1}^{⌊n / 2⌋} C(n, k) (1 - p) ^ (k (n - k))
(SimpleGraph.binomialRandom_real_not_connected_le_sum). Bounding the terms by
C(n, k) ≤ n ^ k / k!, k ^ k / k! ≤ e ^ k and 1 - p ≤ exp (-p) turns this into an explicit
bound: if n ≥ 1 and n exp (-(n p)) ≤ 1 / 64, then G(n, p) is disconnected with probability
at most 35 n exp (-(n p)) (SimpleGraph.binomialRandom_real_not_connected_le). For small p
the quantity n exp (-(n p)) is close to n (1 - p) ^ (n - 1), the expected number of isolated
vertices. The asymptotic forms are SimpleGraph.tendsto_binomialRandom_real_not_connected and
SimpleGraph.tendsto_binomialRandom_real_connected.
The source proof bounds the number of components of each order through their spanning trees;
the cut-based union bound used here is a standard simplification, and the constants 1 / 64 and
35 are ours. The lower half (n p - log n → -∞) is in
CslibFrontier/Foundations/Probability/Combinatorics/BinomialRandomGraph/IsolatedVertices.lean,
and the threshold limit e ^ (-e ^ (-c)) at p = (log n + c) / n is in the sibling module
BinomialRandomGraph.ConnectivityThreshold.
Measurability comes from CslibFrontier/Foundations/MeasureTheory/Constructions/SimpleGraph.lean:
for finite V the measurable space on SimpleGraph V is discrete, so every event about a random
graph on finitely many vertices is measurable.
Main results #
SimpleGraph.binomialRandom_real_forall_not_adj: a fixed vertex cut is empty with probability(1 - p) ^ (|S| (|V| - |S|)).SimpleGraph.binomialRandom_real_not_connected_le_sum: the union bound over cuts.SimpleGraph.binomialRandom_real_not_connected_le: the explicit bound35 n exp (-(n p)).SimpleGraph.tendsto_binomialRandom_real_not_connected,SimpleGraph.tendsto_binomialRandom_real_connected: connectivity with high probability whenn p - log n → ∞.
References #
G(V, p) has no edge between a vertex set S and its complement with probability
(1 - p) ^ (|S| (|V| - |S|)).
Union bound over cuts: G(V, p) on n ≥ 1 vertices is disconnected with probability at
most ∑_{k = 1}^{⌊n / 2⌋} C(n, k) (1 - p) ^ (k (n - k)).
Explicit bound #
Connectivity above the threshold, explicit form: if n ≥ 1 and
n exp (-(n p)) ≤ 1 / 64, then G(n, p) is disconnected with probability at most
35 n exp (-(n p)).
Connectivity above the threshold, the G(n, p) form from the proof of
Frieze and Karoński, Theorem 4.1: if n p(n) - log n → ∞, then
G(n, p(n)) is disconnected with probability tending to 0.
Connectivity above the threshold, the G(n, p) form from the proof of
Frieze and Karoński, Theorem 4.1: if n p(n) - log n → ∞, then
G(n, p(n)) is connected with probability tending to 1.