Documentation

CslibFrontier.Computability.PCP.Encoded.ParallelEdges

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.

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 #

Main results #

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
      theorem Cslib.PCP.Encoded.Graph.NoParallelEdges.eq_of_src_eq_of_dst_eq {C : Type} {g : Graph C} (hg : g.NoParallelEdges) {i j : Fin g.edges.length} (hsrc : (g.edges.get i).src = (g.edges.get j).src) (hdst : (g.edges.get i).dst = (g.edges.get j).dst) :
      i = j

      Without parallel edges, an edge occurrence is determined by its endpoints.

      A graph without edges has no parallel edges.

      A graph without edges is loopless.