Documentation

CslibFrontier.Foundations.MeasureTheory.Constructions.SimpleGraph

Measurable sets of simple graphs #

Mathlib pulls the measurable space on SimpleGraph V back along the adjacency relation. For countable V single graphs are then measurable, since a graph is determined by its adjacency relation. For finite V this makes SimpleGraph V a discrete measurable space (DiscreteMeasurableSpace follows from MeasurableSingletonClass and Finite (SimpleGraph V)), so every set of graphs on finitely many vertices is measurable (MeasurableSet.of_discrete). The graphs with a prescribed pattern of edges and non-edges on a fixed set of pairs, in particular those avoiding a fixed set of edges, form a measurable set for every countable V.

Main results #

For countable V, single graphs are measurable: a graph is determined by its adjacency relation. With Finite V this makes SimpleGraph V a discrete measurable space, so every event about a random graph on finitely many vertices is measurable.

theorem SimpleGraph.measurableSet_edgePattern {V : Type u_1} [Countable V] (t : Set (Sym2 V)) (b : Sym2 V → Bool) :
MeasurableSet {G : SimpleGraph V | ∀ e ∈ t, e ∈ G.edgeSet ↔ b e = true}

The graphs with a prescribed pattern of edges and non-edges on a set of pairs form a measurable set: e ∈ t is an edge exactly when b e = true.

The graphs with no edge in a given set form a measurable set.