Nondeterministic deciders of ordered queries #
A nondeterministic decider of an ordered query on encStructure inputs keeps its choice bit in
register 0. Above the choice it validates the input tables and rejects cardinalities below two,
then runs a nondeterministic block of counter code with a true exit, and accepts at that exit.
nblockDecider assembles such a program around any block, as blockDecider does in the
deterministic case. mem_NL_of_soundCompleteBlock reduces membership in NL to the
correctness of the block on well-formed inputs of cardinality at least two. Every branch must
reach the true exit only on members, or halt at the block's reject label. On members, some
branch must reach the true exit. Every register stays at most (N + 1) ^ (d + k) for input length
N and maximal input arity d.
FO(TC) model checking is the client.
Main definitions #
Cslib.Logic.FO.Ordered.nblockDecider: the shape check, the size guard, the block, accept and reject, above the choice bit.
Main results #
Cslib.Logic.FO.Ordered.mem_NL_of_soundCompleteBlock: a sound and complete block puts the query inNL.
The nondeterministic decider around a block C b T F of length c, placed at b with exits
T (accept) and F (reject): the shape check and the guard rejecting cardinalities below two,
shifted above the choice bit, then the block, accept, reject. Register 0 is the choice bit,
registers 1 to 3 are the shape check's, followed by s scratch registers for the block.
Instances For
A sound and complete block puts an ordered query in NL. Let S contain only
well-formed inputs of cardinality at least two. Suppose that on every such input, the block
C b T F, run above the choice bit from the cardinality in register 0 and s registers after
the shape check's, with every register at most (N + 1) ^ (d + k):
- is sound: every branch halts satisfying
Postor reachesTonly on members ofS, keeping every register within the bound, wheneverFis a halting label satisfyingPost; - is complete: on members of
S, some branch reachesT.
Then nblockDecider v C c s decides S in nondeterministic logarithmic space.