Edge patterns in binomial random graphs #
In Mathlib's binomial random graph G(V, p) (SimpleGraph.binomialRandom V p), the pairs of
distinct vertices are edges independently with probability p. This file states that
independence for finitely many pairs: G(V, p) gives a finite set t of non-diagonal pairs a
prescribed pattern b : Sym2 V → Bool of edges (e is an edge exactly when b e = true) with
probability ∏ e ∈ t, (if b e then p else 1 - p). A fixed set of pairs being all edges
(probability p ^ |t|, SimpleGraph.binomialRandom_subset_edgeSet) or all non-edges (probability
(1 - p) ^ |t|, SimpleGraph.binomialRandom_disjoint_edgeSet) is the special case of a constant
pattern. Measurability of these events is SimpleGraph.measurableSet_edgePattern.
Main results #
SimpleGraph.binomialRandom_edgePattern,SimpleGraph.binomialRandom_real_edgePattern: the probability of a prescribed edge pattern on a finite set of pairs.SimpleGraph.binomialRandom_real_edgePattern_of_injective: the same, for pairs indexed by an injective family.
Edge independence in G(V, p). G(V, p) gives a finite set t of non-diagonal pairs the
pattern b (each e ∈ t is an edge exactly when b e = true) with probability
∏ e ∈ t, (if b e then p else 1 - p). This is a statement about setBernoulli transported along
fromEdgeSet; upstream it belongs next to the setBernoulli API.
Edge independence in G(V, p). G(V, p) gives a finite set t of non-diagonal pairs the
pattern b with probability ∏ e ∈ t, (if b e then p else 1 - p).
Edge independence in G(V, p), indexed form. For an injective family f : ι → Sym2 V of
non-diagonal pairs indexed by a finite type and a pattern c : ι → Bool, G(V, p) makes each
f i an edge exactly when c i = true with probability ∏ i, (if c i then p else 1 - p).