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 #
SimpleGraph.instMeasurableSingletonClass: single graphs are measurable for countableV.SimpleGraph.measurableSet_edgePattern: events prescribing edges and non-edges are measurable.SimpleGraph.measurableSet_disjoint_edgeSet: events defined by forbidden edges are measurable.
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.
The graphs with no edge in a given set form a measurable set.