The Immerman–Vardi theorem
Lax751879.ImmermanVardi · concepts/Lax751879/ImmermanVardi.lean · lax-751879
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
On finite linearly ordered relational structures, a query is definable in first-order logic with least fixed points if and only if it is decidable in deterministic polynomial time.
The vocabulary and query arity are arbitrary but fixed. The order is part of the logical structure. Queries may depend on it; no order-independence condition is imposed. The arity-zero instance is the usual statement for Boolean properties of ordered structures.
The expressive direction is stated separately: every polynomial-time query has an FO(LFP) definition. Its proof must represent polynomially bounded Turing computations using tuples ordered lexicographically, and construct the defining fixed-point formula. All such simulation work belongs to the proof package, with no simulation premise added to the theorem.
References: Immerman, Relational Queries Computable in Polynomial Time (1986), Theorem 2; Vardi, The Complexity of Relational Query Languages (STOC 1982).
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax751879.FixedPointEvaluation |
| 2 | |
| 3 | /-! |
| 4 | --- |
| 5 | title: The Immerman–Vardi theorem |
| 6 | type: theorem |
| 7 | --- |
| 8 | On finite linearly ordered relational structures, a query is definable in |
| 9 | first-order logic with least fixed points if and only if it is decidable |
| 10 | in deterministic polynomial time. |
| 11 | |
| 12 | The vocabulary and query arity are arbitrary but fixed. The order is part |
| 13 | of the logical structure. Queries may depend on it; no order-independence |
| 14 | condition is imposed. The arity-zero instance is the usual statement for |
| 15 | Boolean properties of ordered structures. |
| 16 | |
| 17 | The expressive direction is stated separately: every polynomial-time query |
| 18 | has an FO(LFP) definition. Its proof must represent polynomially bounded |
| 19 | Turing computations using tuples ordered lexicographically, and construct |
| 20 | the defining fixed-point formula. All such simulation work belongs to the |
| 21 | proof package, with no simulation premise added to the theorem. |
| 22 | |
| 23 | References: Immerman, *Relational Queries Computable in Polynomial Time* |
| 24 | (1986), Theorem 2; Vardi, *The Complexity of Relational Query Languages* |
| 25 | (STOC 1982). |
| 26 | -/ |
| 27 | |
| 28 | namespace Lax751879.ImmermanVardi |
| 29 | |
| 30 | open Lax751879.OrderedStructures Lax751879.FixedPointSemantics |
| 31 | open Lax751879.PolynomialTime |
| 32 | |
| 33 | axiom ptimeDefinable {σ : Vocabulary} {k : Nat} (Q : Query σ k) : |
| 34 | InP Q → Definable Q |
| 35 | |
| 36 | axiom capturesPtime {σ : Vocabulary} {k : Nat} (Q : Query σ k) : |
| 37 | Definable Q ↔ InP Q |
| 38 | |
| 39 | end Lax751879.ImmermanVardi |
| 40 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments