Subgraph probabilities in binomial random graphs #
Mathlib's SimpleGraph.binomialRandom V p, written G(V, p), is the law of the random simple
graph on V in which each pair of distinct vertices is an edge independently with probability
p. This file computes the basic probabilities of G(V, p) for countable V:
G(V, p)contains a fixed finite setsof non-diagonal edges with probabilityp ^ |s|(SimpleGraph.binomialRandom_real_subset_edgeSet) and avoids a fixed finite settof non-diagonal edges with probability(1 - p) ^ |t|(SimpleGraph.binomialRandom_real_disjoint_edgeSet), so it contains a fixed subgraphHon its own vertex set with probabilityp ^ e(H)(SimpleGraph.binomialRandom_real_setOf_le);- for finite
Vthe expected number of labelled copies of a finite graphHis the falling factorial|V| (|V| - 1) ⋯ (|V| - v(H) + 1)timesp ^ e(H)(SimpleGraph.integral_labelledCopyCount), and by the union boundG(V, p)contains a copy ofHwith at most this probability (SimpleGraph.binomialRandom_real_isContained_le); - consequently, if
n ^ v(H) p(n) ^ e(H) → 0, thenG(n, p(n))contains no copy ofHwith probability tending to1(SimpleGraph.tendsto_binomialRandom_real_isContained). This is the first-moment half of the small-subgraph threshold theorem Janson, Łuczak and Ruciński, Chapter 3; applied to the densest subgraph ofH, it gives the0-statement belown ^ (-1 / m(H)). The second-moment half is proved for triangles in the sibling moduleBinomialRandomGraph.Clique.
Main results #
SimpleGraph.measurableSet_subset_edgeSet,SimpleGraph.measurableSet_setOf_le: events defined by required edges are measurable.SimpleGraph.binomialRandom_real_subset_edgeSet,SimpleGraph.binomialRandom_real_disjoint_edgeSet,SimpleGraph.binomialRandom_real_setOf_le: the probability of containing or avoiding a fixed set of edges or containing a fixed subgraph.SimpleGraph.integral_labelledCopyCount: the expected number of labelled copies ofH.SimpleGraph.binomialRandom_real_isContained_le: the first-moment bound for containingH.SimpleGraph.tendsto_binomialRandom_real_isContained: its asymptotic form.
References #
Fixed edges and fixed subgraphs #
The graphs containing a given set of edges form a measurable set.
The supergraphs of a given graph form a measurable set.
G(V, p) contains a fixed finite set s of non-diagonal edges with probability p ^ |s|:
the constant pattern true in SimpleGraph.binomialRandom_edgePattern.
G(V, p) contains a fixed finite set s of non-diagonal edges with probability p ^ |s|.
G(V, p) has no edge in a fixed finite set t of non-diagonal edges with probability
(1 - p) ^ |t|: the constant pattern false in SimpleGraph.binomialRandom_edgePattern.
G(V, p) has no edge in a fixed finite set t of non-diagonal edges with probability
(1 - p) ^ |t|.
G(V, p) contains a fixed subgraph H with finitely many edges with probability
p ^ e(H).
Labelled copies #
The expected number of labelled copies of a graph H in G(V, p) is the falling
factorial |V| (|V| - 1) ⋯ (|V| - v(H) + 1) times p ^ e(H)
Alon and Spencer, Section 4.4.
First moment bound for containment Alon and Spencer, Section 4.4:
G(V, p) contains a copy of H with probability at most the expected number
|V| (|V| - 1) ⋯ (|V| - v(H) + 1) · p ^ e(H) of labelled copies.
Below the first-moment threshold [Janson, Łuczak and Ruciński, Chapter 3]
[JLR00]: if n ^ v(H) p(n) ^ e(H) → 0, then G(n, p(n)) contains a copy of
H with probability tending to 0.