Isolated vertices of binomial random graphs and disconnection below the threshold #
The binomial random graph G(n, p) (Mathlib's SimpleGraph.binomialRandom) has an isolated vertex
with probability tending to 1 when n p - log n → -∞ and to 0 when n p - log n → ∞. This is
the sharp threshold for isolated vertices, in the G(n, p) form of
Frieze and Karoński, Lemma 1.11 (stated there for G(n, m)). A connected
graph on n ≥ 2 vertices has no isolated vertex, so G(n, p) is disconnected with probability
tending to 1 when n p - log n → -∞. This is the c_n → -∞ case of
Frieze and Karoński, Theorem 4.1 in G(n, p). The c_n → ∞ case is in
CslibFrontier/Foundations/Probability/Combinatorics/BinomialRandomGraph/Connectivity.lean.
Let X count the isolated vertices and μ = n (1 - p) ^ (n - 1). A fixed vertex is isolated when
its n - 1 possible edges are absent, and two distinct vertices are both isolated when the
2 n - 3 possible edges at either are absent (both through
SimpleGraph.binomialRandom_real_disjoint_edgeSet). Hence E[X] = μ and
E[X ^ 2] = μ + n (n - 1) (1 - p) ^ (2 n - 3). The union bound gives P(X > 0) ≤ μ. Chebyshev's
inequality (Mathlib's ProbabilityTheory.meas_ge_le_variance_div_sq) gives
P(X = 0) ≤ Var[X] / μ ^ 2 ≤ 1 / μ + p / (1 - p) for n ≥ 1 and p < 1. Below the threshold,
p ≤ log n / n eventually, so p / (1 - p) → 0, and log (1 - p) ≥ -p / (1 - p) gives
1 / μ ≤ exp (n p - log n + 2 (log n) ^ 2 / n) → 0.
The source computes the second moment the same way and concludes through
P(X > 0) ≥ (E X) ^ 2 / E[X ^ 2]; Chebyshev's inequality gives the same conclusion here. The
Poisson limit P(X = k) → e ^ (-λ) λ ^ k / k! and P(G(n, p) is connected) → e ^ (-e ^ (-c))
at n p - log n → c are proved in BinomialRandomGraph.ConnectivityThreshold.
Main results #
SimpleGraph.binomialRandom_real_isIsolated,SimpleGraph.binomialRandom_real_isIsolated_and: one vertex, respectively two distinct vertices, are isolated with probability(1 - p) ^ (n - 1), respectively(1 - p) ^ (2 n - 3).SimpleGraph.integral_natCard_isIsolated,SimpleGraph.integral_natCard_isIsolated_sq: the first two moments of the number of isolated vertices.SimpleGraph.binomialRandom_real_exists_isIsolated_le:P(X > 0) ≤ n (1 - p) ^ (n - 1).SimpleGraph.binomialRandom_real_forall_not_isIsolated_le,SimpleGraph.binomialRandom_real_connected_le:P(X = 0)andP(connected)are at most1 / μ + p / (1 - p).SimpleGraph.tendsto_binomialRandom_real_exists_isIsolated_atTop,SimpleGraph.tendsto_binomialRandom_real_exists_isIsolated_atBot: the sharp threshold for isolated vertices.SimpleGraph.tendsto_binomialRandom_real_connected_atBot: disconnection with high probability whenn p - log n → -∞.
References #
The |V| - 1 possible edges at v.
A fixed vertex of G(V, p) is isolated with probability (1 - p) ^ (|V| - 1).
Two distinct fixed vertices of G(V, p) are both isolated with probability
(1 - p) ^ (2 |V| - 3): the 2 (|V| - 2) + 1 possible edges at u or v are all absent.
Moments of the number of isolated vertices #
First moment: G(V, p) has |V| (1 - p) ^ (|V| - 1) isolated vertices on average.
Second moment of the number X of isolated vertices of G(V, p):
E[X ^ 2] = |V| (1 - p) ^ (|V| - 1) + |V| (|V| - 1) (1 - p) ^ (2 |V| - 3).
Explicit bounds #
First moment method: G(V, p) has an isolated vertex with probability at most
|V| (1 - p) ^ (|V| - 1).
Second moment method: if |V| ≥ 1 and p < 1, then G(V, p) has no isolated vertex with
probability at most 1 / μ + p / (1 - p), where μ = |V| (1 - p) ^ (|V| - 1) is the expected
number of isolated vertices.
A connected graph on at least two vertices has no isolated vertex.
If |V| ≥ 2 and p < 1, then G(V, p) is connected with probability at most
1 / μ + p / (1 - p), where μ = |V| (1 - p) ^ (|V| - 1).
Asymptotics #
Isolated vertices above the threshold, the G(n, p) form of
Frieze and Karoński, Lemma 1.11: if n p(n) - log n → ∞, then G(n, p(n))
has an isolated vertex with probability tending to 0.
No isolated vertex is unlikely below the threshold: if n p(n) - log n → -∞, then
G(n, p(n)) has no isolated vertex with probability tending to 0.
Isolated vertices below the threshold, the G(n, p) form of
Frieze and Karoński, Lemma 1.11: if n p(n) - log n → -∞, then
G(n, p(n)) has an isolated vertex with probability tending to 1.
Disconnection below the threshold, the G(n, p) form of the case c_n → -∞ 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 0.