Orthogonal vectors hardness of diameter two versus three #
Roditty and Vassilevska Williams [RVW13] (Section 4, Theorem 9) showed
that a procedure distinguishing graphs of diameter two from graphs of diameter three within time
m ^ (2 - ε) on m edges solves CNF-SAT on n variables within time 2 ^ (n (1 - ε / 2)) times
a polynomial. Their graph has a vertex for each partial assignment of either half of the variables,
a vertex for each clause, and two hubs; the clause vertices and the hubs form a clique. This module
formalizes the orthogonal vectors form of that construction, factoring it through the split-and-list
reduction of Williams [Wil05]: partial assignments become vectors and clauses become
coordinates. The clique on the coordinates is replaced by edges from both hubs to every coordinate,
and two padding vertices are added.
From lists A and B of N vectors of dimension d, the graph Cslib.Complexity.OV.toDiameter
has a vertex for each vector, a vertex for each coordinate, two hubs 0 and 1, and two
non-adjacent padding vertices 2 and 3. The hub 0 is adjacent to the vectors of A, the hub
1 to those of B, the two hubs to each other and to every coordinate and padding vertex, and a
vector to the coordinates where it holds true. Every vertex is adjacent to a hub, so the
diameter is at most three. Two vectors of the same list share a hub, and a vector of A and one of
B are at distance two exactly when they share a coordinate holding true, that is when they are
not orthogonal. So the graph has diameter three when the instance has an orthogonal pair, and
diameter two otherwise (Cslib.Complexity.OV.ediam_toDiameter); the padding vertices keep the
diameter at two on instances with no vectors.
The graph has O(N d) vertices and edges. Its vertex list and its edge list are each written by
one pass over the encoded instance, a finite automaton with two counters
(Cslib.Complexity.OV.parseRun), the coordinate and the number of the current vector, streaming
the outputs of each bit. The counters take O(log L) bits on an encoded instance of length L, so
the two streams, paired, compute the reduction within time L (log L) ^ D
(Cslib.Complexity.OV.exists_computableInO_toDiameter). Then a procedure
separating diameter two from diameter three within time L ^ (2 - ε), on graphs encoded in length
L, decides OV within time N ^ (2 - ε') times a polynomial in the dimension
(Cslib.Complexity.DecidableInTimeO.decidableInTimeO_OV_of_diameter), which the orthogonal
vectors hypothesis excludes (Cslib.Complexity.not_decidableInTimeO_diameter_of_OVH).
The lower bound is stated in the length L of the encoded graph. A time bound in the number
n + m of listed vertices and edges alone would be vacuous: vertex labels are unbounded, and a
machine whose time is bounded in n + m cannot read long labels, so it cannot tell a four-cycle
from a path whose last edge leaves the declared vertices. The size form therefore charges the input
length as well, with the bound (n + m) ^ (2 - ε) + L
(Cslib.Complexity.not_decidableInTimeO_diameter_size_of_OVH). On the graphs of the reduction,
labels take O(log (N d)) bits, so L and n + m differ by a logarithmic factor.
The graphs of the reduction have Θ(N d) edges for an unrestricted dimension d, so this is
Theorem 9 for general m. The statement for sparse graphs in the introduction of
[RVW13] is not covered: it needs dimension c log N, that is the
low-dimension form of the orthogonal vectors hypothesis, which this library does not state.
The hypothesis is unresolved. This library neither proves nor refutes OVH. It refutes
SETH (Cslib.Complexity.CountingNativeEndpoint.not_SETH), so OVH is not derived from it;
Cslib.Complexity.OVH_of_not_decidableInExpTime_SAT derives OVH from a hypothesis on
unrestricted SAT that is open. The transfer from a fast diameter procedure to a fast OV decider
is unconditional.
Main definitions #
Cslib.Complexity.OV.toDiameter: the graph of an orthogonal vectors instance.Cslib.Complexity.OV.parseRun: one pass over an encoded instance, emitting outputs for each bit and each vector.
Main results #
Cslib.Complexity.OV.ediam_toDiameter: the diameter oftoDiameter pis three ifp ∈ OV, and two otherwise.Cslib.Complexity.OV.exists_computableInO_toDiameter: the reduction runs within timeL (log L) ^ D.Cslib.Complexity.DecidableInTimeO.decidableInTimeO_OV_of_diameter: separating diameter two from three within timeL ^ (2 - ε)decidesOVwithin timeN ^ (2 - min ε 1 / 2) (d + 1) ^ 2.Cslib.Complexity.not_decidableInTimeO_diameter_of_OVH,Cslib.Complexity.not_decidableInTimeO_diameter_size_of_OVH: underOVH, diameter two is not separated from diameter three within timeL ^ (2 - ε), nor within(n + m) ^ (2 - ε) + L.
References #
Outputs of the bits and vectors of a list #
The graph #
The vertex of the vector numbered k; the vectors of both lists are numbered consecutively.
The hub of a list: 0 for the first list, 1 for the second.
The hubs 0 and 1 and the padding vertices 2 and 3.
The graph of an orthogonal vectors instance, the orthogonal vectors form of the graph of
Theorem 9 of [RVW13]: a vertex for
each vector and each coordinate, the hubs 0 and 1 and the padding vertices 2 and 3. The hub
0 is adjacent to the vectors of the first list, the hub 1 to those of the second, both hubs to
each other, to the coordinates and to the padding vertices, and a vector to the coordinates where it
holds true.
Vertices and edges of the gadget #
The edges of the gadget.
The neighbours of a vector of the first list: the hub 0 and its coordinates.
The neighbours of a vector of the second list: the hub 1 and its coordinates.
Distances in the gadget #
The vertices of the gadget: every vertex is a neighbour of both hubs 0 and 1, or a
vector of the first list, adjacent to 0, or a vector of the second list, adjacent to 1.
Diameter at most two without an orthogonal pair: a vector of each list share a coordinate
holding true in both, and all other pairs of vertices share a hub.
One pass over an encoded instance #
The state of the parser of an encoded instance encOV (A, B): whether it reads B, whether
it reads the marker of a bit of the outer frame of A (or the first bit of encOV), whether the
bit it reads is a frame marker, the coordinate of the current bit, and the number of the current
vector.
The encoding of the parser state.
A round of the parser, reading one bit. In the first list each bit c of the inner frames
comes as [true, c] in the outer frame, and the first unmarked bit ends the first list. In the
inner frames, a marker true announces a bit of the vector and false ends the vector.
The streamed output of the parser rounds is the encoded output of the pass.
The parser on an encoded instance: it emits the outputs of the first list, then those of the second, numbering the vectors of both lists consecutively.
The size of the parser state #
A round of the parser is computable in polynomial time.
The output of a round of the parser is computable in polynomial time when its outputs are.
One pass of the parser over an encoded instance runs within time L (log L) ^ D on inputs
of length L, when its outputs are computable in polynomial time.
The reduction from orthogonal vectors to diameter runs in quasi-linear time: within time
L (log L) ^ D on instances encoded in length L.
The conditional lower bound #
Separating diameter two from three decides orthogonal vectors, the orthogonal vectors form
of Theorem 9 of [RVW13]: a procedure accepting the graphs of diameter at
most two and rejecting those of diameter three, within time L ^ (2 - ε) on graphs encoded in
length L, decides OV within time N ^ (2 - min ε 1 / 2) (d + 1) ^ 2 on N vectors of
dimension d.
Orthogonal vectors hardness of diameter two versus three [RVW13]:
under the orthogonal vectors hypothesis, for every ε > 0, no procedure accepting the graphs of
diameter at most two and rejecting those of diameter three runs within time L ^ (2 - ε) on
graphs encoded in length L.
Orthogonal vectors hardness of diameter two versus three, in the size of the graph: under
the orthogonal vectors hypothesis, for every ε > 0, no procedure accepting the graphs of diameter
at most two and rejecting those of diameter three runs within time (n + m) ^ (2 - ε) + L on
graphs listing n vertices and m edges, encoded in length L. The term L lets the procedure
read its input: without it the statement would hold without the hypothesis, since a time bound in
n + m alone does not allow reading long vertex labels.
Diameter at most two is not decidable in subquadratic time under the orthogonal vectors
hypothesis, for graphs encoded in length L.