Documentation

CslibFrontier.Foundations.Probability.Combinatorics.BinomialRandomGraph.EdgePattern

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 #

theorem SimpleGraph.binomialRandom_edgePattern {V : Type u_1} [Countable V] (p : ↑unitInterval) (t : Finset (Sym2 V)) (ht : ∀ e ∈ t, ¬e.IsDiag) (b : Sym2 V → Bool) :

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.

theorem SimpleGraph.binomialRandom_real_edgePattern {V : Type u_1} [Countable V] (p : ↑unitInterval) (t : Finset (Sym2 V)) (ht : ∀ e ∈ t, ¬e.IsDiag) (b : Sym2 V → Bool) :
(binomialRandom V p).real {G : SimpleGraph V | ∀ e ∈ t, e ∈ G.edgeSet ↔ b e = true} = ∏ e ∈ t, if b e = true then ↑p else 1 - ↑p

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

theorem SimpleGraph.binomialRandom_real_edgePattern_of_injective {V : Type u_1} [Countable V] {ι : Type u_2} [Fintype ι] (p : ↑unitInterval) {f : ι → Sym2 V} (hf : Function.Injective f) (hd : ∀ (i : ι), ¬(f i).IsDiag) (c : ι → Bool) :
(binomialRandom V p).real {G : SimpleGraph V | ∀ (i : ι), f i ∈ G.edgeSet ↔ c i = true} = ∏ i : ι, if c i = true 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).