Documentation

CslibFrontier.Computability.Complexity.Classes.P.FirstOrder

Polynomial-time evaluation of ordered FO(LFP) #

For each fixed formula, the finite evaluator is computed by a native multi-tape Turing machine in polynomial time. The proof uses the library's certified closure rules for Boolean operations, bounded quantification, table construction and iteration. A fixed point's working table has exactly n ^ k bits after each step, so the loop calculus accounts for the size of intermediate states as well as the number of iterations.

The input vocabulary and formula are fixed. Polynomial degrees may depend on the formula's quantifier nesting and relation arities; no polynomial combined-complexity claim is made when the formula itself is part of the input.

Main results #

References #

Every fixed raw formula's bounded evaluator has a native polynomial-time implementation. The free variables may be any fixed family of polynomial-time numerical inputs. Formation is needed for semantic correctness, and is not needed for the cost bound.

Decide a fixed sentence, rejecting malformed relation tables and universes smaller than two.

Instances For

    Every ordered FO(LFP)-definable query is in the native class P, using the existing source-only structure encoding. The formula is uniform over all canonical finite structures.