Simple graphs as relational configurations #
The language of graphs, FirstOrder.Language.graph, has a single binary relation symbol adj. A
relational configuration of it is a truth value for every atom adj(u, v), including the diagonal
atoms adj(v, v). The configurations that are symmetric and false on the diagonal are exactly the
simple graphs: this file identifies SimpleGraph V with them as a measurable equivalence, and
shows that pulling a graph back along a vertex map corresponds to restricting its configuration.
Forgetting the simple-graph conditions, a configuration is just its array of truth values on the
adjacency atoms (TauCeti.RelationalConfiguration.adjArrayEquiv), and the array of a simple graph
is its adjacency array.
Main definitions #
TauCeti.RelationalConfiguration.IsSimpleGraph— a configuration of the language of graphs is symmetric and irreflexive;SimpleGraph.toRelationalConfiguration— the configuration of a simple graph;SimpleGraph.relationalConfigurationEquiv— the measurable equivalence between simple graphs and symmetric irreflexive configurations;TauCeti.RelationalConfiguration.adjArrayEquiv— the measurable equivalence between configurations of the language of graphs andBool-valued arrays.
Main results #
SimpleGraph.measurableEmbedding_toRelationalConfiguration— on a countable vertex type, the encoding is a measurable embedding onto the simple-graph configurations (SimpleGraph.range_toRelationalConfiguration);SimpleGraph.map_comap_toRelationalConfiguration— a law on configurations concentrated on simple graphs is the encoding of its pullback to simple graphs;SimpleGraph.toRelationalConfiguration_comap— encoding a pulled-back graph is restricting its encoding; for laws,SimpleGraph.map_comap_comap_toRelationalConfiguration— pulling back to simple graphs commutes with restriction;TauCeti.RelationalConfiguration.IsSimpleGraph.restrict— restriction preserves symmetry and irreflexivity, also along non-injective vertex maps;SimpleGraph.adjArrayEquiv_toRelationalConfiguration— the array of the configuration of a simple graph is its adjacency array;SimpleGraph.relationalConfigurationEquiv_comapandSimpleGraph.relationalConfigurationEquiv_symm_restrict— the equivalence commutes with restriction in both directions.
The adjacency atom adj(u, v).
Instances For
Every atom of the language of graphs is an adjacency atom.
A configuration of the language of graphs is a simple graph when adjacency is symmetric and false on the diagonal.
Instances For
A configuration is a simple graph exactly when adjacency is symmetric and false on the diagonal.
The simple graph of a symmetric irreflexive configuration.
Instances For
Restriction preserves symmetry and irreflexivity. The vertex map need not be injective: a pair of distinct vertices with the same image reads a diagonal atom, which is false.
On a countable vertex type, the simple-graph configurations form a measurable set: a countable intersection of conditions on one or two atoms.
Restricting a law concentrated on simple graphs gives a law concentrated on simple graphs.
Configurations as arrays #
Configurations of the language of graphs are Bool-valued arrays: a configuration is
determined by its truth values on the adjacency atoms adj(u, v), one for each ordered pair of
vertices, and these truth values can be prescribed freely.
Instances For
The array of a configuration records its truth value on each adjacency atom.
The configuration of a simple graph, read off its first-order structure.
Instances For
The configuration of a simple graph decodes to the graph's structure.
Simple graphs are the symmetric irreflexive configurations of the language of graphs, as a measurable equivalence.
Instances For
Encoding a simple graph as a configuration is measurable.
The configurations of simple graphs are exactly the simple-graph configurations.
On a countable vertex type, encoding simple graphs as configurations is a measurable embedding, so laws on simple graphs are the laws on configurations concentrated on simple graphs.
The encoding of a law on simple graphs is concentrated on simple graphs.
A law on configurations concentrated on simple graphs is the encoding of its pullback to simple graphs.
The pullback to simple graphs of a probability law concentrated on simple graphs is a probability law.
The array of the configuration of a simple graph is its adjacency array.
Compatibility with restriction #
Encoding commutes with restriction: the configuration of a pulled-back graph is the restriction of the configuration.
Encoding commutes with restriction, as an identity of maps.
For laws concentrated on simple graphs, pulling back to simple graphs commutes with restriction.
Decoding commutes with restriction.