Lax979537.ImmermanVardi
The Immerman–Vardi theorem
concepts/Lax979537/ImmermanVardi.lean · lax-979537
No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Evidence
This concept declares 2 statements. Each proof establishes one of them relative to its assumptions.
1st statement capturesPtime proven
2nd statement ptimeDefinable proven
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).
Lean source view on GitHub
| 1 | import Lax979537.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 Lax979537.ImmermanVardi |
| 29 | |
| 30 | open Lax979537.OrderedStructures Lax979537.FixedPointSemantics |
| 31 | open Lax979537.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 Lax979537.ImmermanVardi |
| 40 |
Community review
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above; your ORCID profile must share a public name.
0 comments