No public endorsements yet.
Loading review…
Sign in with ORCIDConcept map
Evidence
This concept declares 3 statements. Each proof establishes one of them relative to its assumptions.
1st statement capturesNP proven
2nd statement definableInNP proven
3rd statement npDefinable proven
Theorem
On finite relational structures, existential second-order logic captures NP. Every existential second-order sentence defines a property in NP; every isomorphism-invariant property in NP has an existential second-order definition. No order on the input structure is assumed. The vocabulary is arbitrary but fixed independently of the input.
The computational and expressive directions are stated separately as well as together. Their proofs must supply the certificate verifier and the logical encoding of accepting computations, including any chosen auxiliary order. None of those constructions is an assumption of the theorem.
References: Fagin, Generalized first-order spectra and polynomial-time recognizable sets (1974); Libkin, Elements of Finite Model Theory, Theorem 9.6 and its proof in Section 9.2.
Lean source view on GitHub
| 1 | import Lax678846.ExistentialSecondOrder |
| 2 | import Lax678846.NondeterministicPolynomialTime |
| 3 | |
| 4 | /-! |
| 5 | --- |
| 6 | title: Fagin’s theorem |
| 7 | type: theorem |
| 8 | --- |
| 9 | On finite relational structures, existential second-order logic captures NP. |
| 10 | Every existential second-order sentence defines a property in NP; every |
| 11 | isomorphism-invariant property in NP has an existential second-order |
| 12 | definition. No order on the input structure is assumed. The vocabulary is |
| 13 | arbitrary but fixed independently of the input. |
| 14 | |
| 15 | The computational and expressive directions are stated separately as well |
| 16 | as together. Their proofs must supply the certificate verifier and the |
| 17 | logical encoding of accepting computations, including any chosen auxiliary |
| 18 | order. None of those constructions is an assumption of the theorem. |
| 19 | |
| 20 | References: Fagin, *Generalized first-order spectra and polynomial-time |
| 21 | recognizable sets* (1974); Libkin, *Elements of Finite Model Theory*, |
| 22 | Theorem 9.6 and its proof in Section 9.2. |
| 23 | -/ |
| 24 | |
| 25 | namespace Lax678846.Fagin |
| 26 | |
| 27 | open Lax678846.FiniteStructures Lax678846.ExistentialSecondOrder |
| 28 | open Lax678846.NondeterministicPolynomialTime |
| 29 | |
| 30 | axiom definableInNP {σ : Vocabulary} (Q : Property σ) : Definable Q → InNP Q |
| 31 | |
| 32 | axiom npDefinable {σ : Vocabulary} (Q : Property σ) |
| 33 | (hQ : IsomorphismInvariant Q) : InNP Q → Definable Q |
| 34 | |
| 35 | axiom capturesNP {σ : Vocabulary} (Q : Property σ) |
| 36 | (hQ : IsomorphismInvariant Q) : Definable Q ↔ InNP Q |
| 37 | |
| 38 | end Lax678846.Fagin |
| 39 |
Used by
none
From Mathlib
none
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