Documentation

CslibFrontier.Foundations.Probability.Combinatorics.BinomialRandomGraph.Basic

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:

Main results #

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.

theorem SimpleGraph.binomialRandom_subset_edgeSet {V : Type u_1} [Countable V] (p : ↑unitInterval) (s : Finset (Sym2 V)) (hs : ∀ e ∈ s, ¬e.IsDiag) :

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.

theorem SimpleGraph.binomialRandom_real_subset_edgeSet {V : Type u_1} [Countable V] (p : ↑unitInterval) (s : Finset (Sym2 V)) (hs : ∀ e ∈ s, ¬e.IsDiag) :
(binomialRandom V p).real {G : SimpleGraph V | ↑s ⊆ G.edgeSet} = ↑p ^ s.card

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.

theorem SimpleGraph.binomialRandom_real_disjoint_edgeSet {V : Type u_1} [Countable V] (p : ↑unitInterval) (t : Finset (Sym2 V)) (ht : ∀ e ∈ t, ¬e.IsDiag) :
(binomialRandom V p).real {G : SimpleGraph V | Disjoint (↑t) G.edgeSet} = (1 - ↑p) ^ t.card

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.

theorem SimpleGraph.tendsto_binomialRandom_real_isContained {W : Type u_2} [Fintype W] (H : SimpleGraph W) [Fintype ↑H.edgeSet] {p : ℕ → ↑unitInterval} (hp : Filter.Tendsto (fun (n : ℕ) => ↑n ^ Fintype.card W * ↑(p n) ^ H.edgeFinset.card) Filter.atTop (nhds 0)) :

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.