Documentation

CslibFrontier.GameTheory.InterdomainRouting.WelfareHardness

Constant-Factor Inapproximability of Interdomain Routing Welfare Maximization #

This module formalizes Exercise 14.8 of [FSS07] (Chapter 14, p. 384): when no structural restrictions (such as policy consistency) are placed on AS route valuations, finding a destination-based confluent routing tree T_d whose social welfare comes within any constant factor of the maximum social welfare is NP-hard.

Model and reduction #

An encoded routing welfare instance RoutingWelfareInstance consists of an undirected AS graph graph : Cslib.Complexity.Graph, a destination AS dest : ℕ, a list of sparse route valuation entries RouteValuationEntry (source, path, weight) (representing arbitrary nonnegative integer valuations on simple routes from source to dest), and a target welfare target : ℕ. A route allocation π : ℕ → Option (List ℕ) is a valid destination-based confluent routing tree (IsConfluentRouting) when π dest = some [dest], every assigned route π u = some p is a simple path in graph from u to dest on declared vertices, and every suffix along an assigned route agrees with π (single next-hop forwarding).

Given an IndependentSetInstance (G, m), the polynomial-time reduction independentSetToRouting builds an AS graph H_G on 1 + |V| + 3 |E| nodes with destination 0:

Because destination-based forwarding assigns each edge AS routingEdgeNode i a unique next hop, no confluent tree can simultaneously satisfy both endpoints of an edge e_i (their desired paths require distinct next hops routingExitLeft i ≠ routingExitRight i). Conversely, for any independent set S of G, the desired paths of {v ∈ S} are pairwise vertex-disjoint outside destination 0, forming a valid confluent tree of social welfare |S|. Hence (independentSetToRouting x).maxWelfare = x.graph.indepNum (maxWelfare_independentSetToRouting).

Combining this exact gap-preserving polynomial-time reduction (polyTimeReducible_GapIndependentSet_GapRoutingWelfare) with Cslib.Complexity.GapIndependentSet_npHard establishes that for every constant 0 < s < 1, approximating maximum interdomain-routing social welfare within factor s is NP-hard (GapRoutingWelfare_npHard) and outside PromiseP unless P = NP (GapRoutingWelfare_notMem_PromiseP).

Main definitions #

Main results #

References #

1. Encoded interdomain-routing welfare maximization problem #

A single sparse route-valuation entry (source, path, weight): AS source derives nonnegative weight weight when allocated route path.

  • source : ℕ

    Owning source AS.

  • path : List ℕ

    Simple path from source to the destination.

  • weight : ℕ

    Nonnegative integer valuation of path to source.

Instances For
    theorem Cslib.GameTheory.InterdomainRouting.encRouteValuationEntry_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 T0 S0 : γ → ℕ} {x1 : γ → List ℕ} {T1 S1 x2 T2 S2 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Turing.MultiTapeTM.encNat T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn (Turing.MultiTapeTM.encList Turing.MultiTapeTM.encNat) T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn Turing.MultiTapeTM.encNat T2 S2) :
    Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { source := x0 x, path := x1 x, weight := x2 x }) encIn encRouteValuationEntry (fun (x : γ) => T0 x + (T1 x + T2 x)) fun (x : γ) => S0 x + (S1 x + S2 x)

    Binary encoding of RouteValuationEntry: framed source (encNat), framed path (encList encNat), and weight (encNat).

    An encoded instance of interdomain-routing social-welfare maximization ([FSS07], §14.3.2, p. 375, and Exercise 14.8, p. 384): an undirected AS graph graph, a destination AS dest, unrestricted nonnegative route valuations valuations, and a welfare target target.

    Instances For
      theorem Cslib.GameTheory.InterdomainRouting.encRoutingWelfareInstance_mk_inO {γ : Type} {encIn : γ ↪ List Bool} {x0 : γ → Complexity.Graph} {T0 S0 x1 T1 S1 : γ → ℕ} {x2 : γ → List RouteValuationEntry} {T2 S2 x3 T3 S3 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInO x0 encIn Complexity.encGraph T0 S0) (h1 : Turing.MultiTapeTM.ComputableInO x1 encIn Turing.MultiTapeTM.encNat T1 S1) (h2 : Turing.MultiTapeTM.ComputableInO x2 encIn (Turing.MultiTapeTM.encList encRouteValuationEntry) T2 S2) (h3 : Turing.MultiTapeTM.ComputableInO x3 encIn Turing.MultiTapeTM.encNat T3 S3) :
      Turing.MultiTapeTM.ComputableInO (fun (x : γ) => { graph := x0 x, dest := x1 x, valuations := x2 x, target := x3 x }) encIn encRoutingWelfareInstance (fun (x : γ) => T0 x + (T1 x + (T2 x + T3 x))) fun (x : γ) => S0 x + (S1 x + (S2 x + S3 x))
      theorem Cslib.GameTheory.InterdomainRouting.encRoutingWelfareInstance_mk_budget {γ : Type} {encIn : γ ↪ List Bool} {budget : γ → ℕ} {x0 : γ → Complexity.Graph} {x1 : γ → ℕ} {x2 : γ → List RouteValuationEntry} {x3 : γ → ℕ} (h0 : Turing.MultiTapeTM.ComputableInSpace x0 encIn Complexity.encGraph budget) (h1 : Turing.MultiTapeTM.ComputableInSpace x1 encIn Turing.MultiTapeTM.encNat budget) (h2 : Turing.MultiTapeTM.ComputableInSpace x2 encIn (Turing.MultiTapeTM.encList encRouteValuationEntry) budget) (h3 : Turing.MultiTapeTM.ComputableInSpace x3 encIn Turing.MultiTapeTM.encNat budget) :
      Turing.MultiTapeTM.ComputableInSpace (fun (x : γ) => { graph := x0 x, dest := x1 x, valuations := x2 x, target := x3 x }) encIn encRoutingWelfareInstance budget

      A route assignment π : ℕ → Option (List ℕ) is a valid destination-based confluent routing tree ([FSS07], §14.3.1, p. 371) for inst if:

      1. π inst.dest = some [inst.dest];
      2. every assigned route π u = some p is a simple path in inst.graph.toSimpleGraph from u to inst.dest using only declared vertices of inst.graph;
      3. forwarding is destination-based (confluent): every nonempty suffix x :: t of any assigned path satisfies π x = some (x :: t).

      Valuation derived by AS u from allocated route o under inst.valuations.

      Total social welfare ∑ u, v_u(π u) summed over the distinct declared ASes of inst.graph.

      Maximum social welfare achievable by a valid confluent routing tree for inst.

      The gap promise problem for interdomain-routing social welfare maximization with soundness s: yes-instances have a confluent routing tree achieving welfare at least x.target, and no-instances have no confluent routing tree achieving welfare strictly greater than s * x.target ([FSS07], Exercise 14.8, p. 384).

      2. Exact gap-preserving reduction from IndependentSet #

      Node ID (4 v + 1) assigned to declared vertex v of G.

      Node ID (4 i + 2) assigned to the i-th valid edge of G.

      Private exit node ID (8 i + 3) used by the first endpoint e.1 after traversing edge i.

      Private exit node ID (8 i + 7) used by the second endpoint e.2 after traversing edge i.

      Edges of G with distinct endpoints both lying in G.vertices.

      Indexed valid edges [(e₀, 0), (e₁, 1), …] of G.

      Desired simple path vertexDesiredPath G v from routingVertexNode v to destination 0: threads sequentially through [routingEdgeNode i, routingExitLeft i] for every indexed valid edge ((u, w), i) with u = v, and [routingEdgeNode i, routingExitRight i] for every indexed valid edge with w = v, ending at destination 0.

      Consecutive vertex pairs along a path p, emitted as undirected edges.

      Polynomial-time gap-preserving reduction from IndependentSetInstance to RoutingWelfareInstance ([FSS07], Exercise 14.8, p. 384).

      Structural properties of vertexDesiredPath and independentSetToRouting #

      Exact welfare-independence identity: the maximum confluent-routing social welfare of independentSetToRouting x equals the independence number x.graph.indepNum of x.graph.

      3. Polynomial-time computability and constant-factor NP-hardness (Exercise 14.8) #

      Exercise 14.8 (constant-factor NP-hardness of interdomain-routing social welfare) ([FSS07], p. 384): without structural restrictions on AS route valuations, for every constant 0 < s < 1, distinguishing instances with a confluent routing tree of social welfare at least k from instances with maximum welfare at most s * k is NP-hard.

      Unless P = NP, for every constant 0 < s < 1, no polynomial-time algorithm approximates maximum interdomain-routing social welfare within factor s.