Documentation

CslibFrontier.Computability.Complexity.ImmermanVardi

The Immerman–Vardi characterization of polynomial time #

On the library's canonically ordered finite structures, a query is definable by one checked FO(LFP) sentence exactly when its source-only encoded language belongs to native P. The vocabulary is finite and relational; its fixed enumeration determines truth-table order. Universes are Fin n with n ≥ 2. Order, BIT, zero, one, and maximum are canonical numeric symbols, computed from the universe size rather than supplied as input tables.

The forward direction compiles a fixed formula to a native polynomial-time model checker. For the converse, a native deterministic machine has a positive local tableau. Its input symbols are defined directly from the actual binary encoding. A fixed tuple width bounds the machine's time, input length, and finite feature tags for all input sizes. Pullback along the canonical full-tuple interpretation gives one sentence over the original input universe.

Main results #

References #

Every ordered query decided by an actual native polynomial-time machine is defined by one checked FO(LFP) sentence over the original ordered input structures.

Immerman–Vardi: a single checked FO(LFP) sentence defines an ordered query exactly when its source-only language is decidable in native polynomial time.