Documentation

CslibFrontier.Computability.PCP.Approximation.LabelCover.Incidence

Incidence projections from binary CSP to Label Cover #

Each edge occurrence becomes a left vertex carrying a pair of symbols, and two total projection edges check the two endpoint labels. Invalid pair labels retract to a satisfying pair, using a fixed exhaustive list. A relation with no satisfying pair instead produces a fixed contradictory projection instance. Loops and parallel edges retain their occurrence identities. The output has no parallel edges (Cslib.PCP.Encoded.Graph.NoParallelEdges) whenever the input is loopless (noParallelEdges_reduce), which parallel repetition requires.

The construction and factor-two gap bound are original library adaptations to the existing executable graph and total-projection APIs. The source hardness theorem is the already-proved Cslib.Complexity.GapTwoCSP_npHard. This is a constant-gap prerequisite for small-soundness Label Cover, which applies parallel repetition after loop removal in CslibFrontier.Computability.PCP.Approximation.LabelCover.SmallSoundness.

Main definitions #

Main results #

def Cslib.PCP.Encoded.LabelCoverIncidence.repair {α : Type} (pairs : List (α × α)) (fallback : α × α) (R : α → α → Bool) (p : α × α) :
α × α

Keep satisfying pairs; repair any other pair using the first satisfying pair in pairs. The fallback is read only when no such pair exists.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.repair_eq {α : Type} (pairs : List (α × α)) (fallback : α × α) {R : α → α → Bool} {p : α × α} (hp : R p.1 p.2 = true) :
repair pairs fallback R p = p

Repair fixes every pair that already satisfies the relation.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.satisfies_repair {α : Type} (pairs : List (α × α)) (fallback : α × α) {R : α → α → Bool} (hR : (pairs.any fun (p : α × α) => R p.1 p.2) = true) (p : α × α) :
R (repair pairs fallback R p).1 (repair pairs fallback R p).2 = true

A nonempty relation makes every repaired pair satisfying.

def Cslib.PCP.Encoded.LabelCoverIncidence.block {α : Type} (pairs : List (α × α)) (fallback : α × α) (d : Edge (α → α → Bool)) (i : ℕ) :
List (Edge (α × α → α))

The two incidence projections associated to source edge occurrence i.

def Cslib.PCP.Encoded.LabelCoverIncidence.incidence {α : Type} (pairs : List (α × α)) (fallback : α × α) (g : Graph (α → α → Bool)) :
Graph (α × α → α)

The occurrence-indexed incidence graph. Left and right vertex numbers are separate, as in GapLabelCover; an original loop still yields two distinct incidence edge occurrences.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.length_edges_incidence {α : Type} (pairs : List (α × α)) (fallback : α × α) (g : Graph (α → α → Bool)) :
(incidence pairs fallback g).edges.length = 2 * g.edges.length

Each input edge occurrence contributes two projection edges.

Two constant projections to distinct symbols cannot both be satisfied: two left vertices 0 and 1 project to the symbols a and b at the same right vertex 0. The two edges have different left ends, so the instance has no parallel edges.

The contradictory instance has no parallel edges.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.noParallelEdges_incidence {α : Type} (pairs : List (α × α)) (fallback : α × α) {g : Graph (α → α → Bool)} (hg : g.IsLoopless) :
(incidence pairs fallback g).NoParallelEdges

Within an occurrence block the two edges have different right ends when the source edge is not a loop, and blocks of different occurrences have different left ends.

def Cslib.PCP.Encoded.LabelCoverIncidence.reduce {α : Type} (pairs : List (α × α)) (a b : α) (g : Graph (α → α → Bool)) :
Graph (α × α → α)

Send an empty relation to the contradictory instance; otherwise take incidence projections.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.noParallelEdges_reduce {α : Type} (pairs : List (α × α)) (a b : α) {g : Graph (α → α → Bool)} (hg : g.IsLoopless) :
(reduce pairs a b g).NoParallelEdges

The reduction of a loopless binary constraint graph is a Label Cover instance without parallel edges.

The fixed contradictory instance has unsatisfied value exactly one half.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.half_unsatVal_le_incidence {α : Type} [DecidableEq α] (pairs : List (α × α)) (fallback : α × α) (g : Graph (α → α → Bool)) (hR : ∀ d ∈ g.edges, (pairs.any fun (p : α × α) => d.constraint p.1 p.2) = true) :

Every labelling of the incidence graph decodes to a source labelling with at most twice its violated fraction. The label of each source vertex is the right component of the target label.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.satisfiable_incidence {α : Type} [DecidableEq α] (pairs : List (α × α)) (fallback : α × α) {g : Graph (α → α → Bool)} (hg : (g.toGraph id).Satisfiable) :

Source satisfiability gives a satisfying pair at every edge occurrence and hence a satisfying labelling of the incidence projections.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.half_unsatVal_le_reduce {α : Type} [DecidableEq α] (pairs : List (α × α)) (a b : α) (hab : a ≠ b) (g : Graph (α → α → Bool)) :

The reduction retains at least half the source unsatisfied value, including an empty relation or an empty edge list.

theorem Cslib.PCP.Encoded.LabelCoverIncidence.satisfiable_reduce {α : Type} [DecidableEq α] (pairs : List (α × α)) (hpairs : ∀ (p : α × α), p ∈ pairs) (a b : α) {g : Graph (α → α → Bool)} (hg : (g.toGraph id).Satisfiable) :

An exhaustive pair list ensures that satisfiable source instances never enter the empty relation branch.

The incidence reduction is polynomial-time for every fixed finite alphabet and fixed pair list. Unary endpoints, the input edge list and the complete finite projection tables are charged under the existing graph encodings.

theorem Cslib.Complexity.polyTimeReducible_GapTwoCSP_GapLabelCover {α : Type} [Fintype α] [DecidableEq α] (pairs : List (α × α)) (hpairs : ∀ (p : α × α), p ∈ pairs) (a b : α) (hab : a ≠ b) (encA : α ↪ List Bool) (s : ℝ) :

Constant-gap binary CSP reduces to total-projection Label Cover, preserving perfect completeness and losing a factor of at most two in unsatisfied fraction.

Label Cover with left alphabet of 128² symbols and right alphabet of 128 symbols is NP-hard at the constant soundness 1 - 2⁻⁶². Arbitrarily small soundness, with growing alphabets, is Cslib.Complexity.exists_GapLabelCover_npHard.