Parallel edges and loops in executable constraint graphs #
An executable constraint graph (Cslib.PCP.Encoded.Graph) stores a list of edge occurrences, so
it may contain parallel edges (two occurrences with the same ordered pair of endpoints) and loops
(an occurrence whose two endpoints coincide). This file names the two restrictions.
- A graph has no parallel edges (
Graph.NoParallelEdges) when no two of its edge occurrences have the same ordered pair of endpoints. Edges in opposite directions between the same two vertices are allowed, and so are loops, each at most once per vertex. The predicate is therefore weaker than simplicity in the sense ofSimpleGraph, which also excludes loops. - A graph is loopless (
Graph.IsLoopless) when no edge occurrence has equal endpoints.
The definitions do not refer to the constraints, so they apply to every constraint type. In a
Label Cover instance (Cslib.Complexity.GapLabelCover) the left and right vertices are numbered
separately, so an edge with src = dst joins two different vertices; having no parallel edges
there says that each pair of a left and a right vertex is joined by at most one projection.
Without parallel edges, the uniformly random edge of a Label Cover instance is a question pair of a
two-prover game whose acceptance test is the constraint on that edge alone. This is how the
parallel repetition theorem is transferred to Label Cover in
CslibFrontier.Computability.PCP.Approximation.LabelCover.Repetition.
Main definitions #
Cslib.PCP.Encoded.Graph.NoParallelEdges: no two edge occurrences have the same ordered endpoints.Cslib.PCP.Encoded.Graph.IsLoopless: no edge occurrence is a loop.
Main results #
Cslib.PCP.Encoded.Graph.NoParallelEdges.eq_of_src_eq_of_dst_eq: without parallel edges, an edge occurrence is determined by its endpoints.
A graph has no parallel edges when no two of its edge occurrences have the same ordered
pair of endpoints: the list of (src, dst) pairs has no duplicates. Loops are allowed.
Instances For
A graph is loopless when no edge occurrence has equal endpoints.
Instances For
Without parallel edges, an edge occurrence is determined by its endpoints.