Documentation

CslibFrontier.Foundations.Probability.Combinatorics.BinomialRandomGraph.IsolatedVertices

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 #

References #

The |V| - 1 possible edges at v.

theorem SimpleGraph.binomialRandom_real_isIsolated {V : Type u_1} [Fintype V] (p : ↑unitInterval) (v : V) :

A fixed vertex of G(V, p) is isolated with probability (1 - p) ^ (|V| - 1).

theorem SimpleGraph.binomialRandom_real_isIsolated_and {V : Type u_1} [Fintype V] (p : ↑unitInterval) {u v : V} (huv : u ≠ v) :

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 #

theorem SimpleGraph.integral_natCard_isIsolated {V : Type u_1} [Fintype V] (p : ↑unitInterval) :
∫ (G : SimpleGraph V), ↑(Nat.card { v : V // G.IsIsolated v }) ∂binomialRandom V p = ↑(Fintype.card V) * (1 - ↑p) ^ (Fintype.card V - 1)

First moment: G(V, p) has |V| (1 - p) ^ (|V| - 1) isolated vertices on average.

theorem SimpleGraph.integral_natCard_isIsolated_sq {V : Type u_1} [Fintype V] (p : ↑unitInterval) :
∫ (G : SimpleGraph V), ↑(Nat.card { v : V // G.IsIsolated v }) ^ 2 ∂binomialRandom V p = ↑(Fintype.card V) * (1 - ↑p) ^ (Fintype.card V - 1) + ↑(Fintype.card V) * (↑(Fintype.card V) - 1) * (1 - ↑p) ^ (2 * Fintype.card V - 3)

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).

theorem SimpleGraph.binomialRandom_real_forall_not_isIsolated_le {V : Type u_1} [Fintype V] [Nonempty V] (p : ↑unitInterval) (hp : ↑p < 1) :
(binomialRandom V p).real {G : SimpleGraph V | ∀ (v : V), ¬G.IsIsolated v} ≤ 1 / (↑(Fintype.card V) * (1 - ↑p) ^ (Fintype.card V - 1)) + ↑p / (1 - ↑p)

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.

theorem SimpleGraph.binomialRandom_real_connected_le {V : Type u_1} [Fintype V] [Nontrivial V] (p : ↑unitInterval) (hp : ↑p < 1) :
(binomialRandom V p).real {G : SimpleGraph V | G.Connected} ≤ 1 / (↑(Fintype.card V) * (1 - ↑p) ^ (Fintype.card V - 1)) + ↑p / (1 - ↑p)

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.