NP and PTIME against the logics of the two entries
Lax832283.LogicalBridge · concepts/Lax832283/LogicalBridge.lean · lax-832283
No public endorsements yet.
Loading review…
Sign in with ORCIDNatural Language Statement
Theorem
A decision problem is in NP exactly when it reads as a property defined by an existential second-order sentence of the Fagin entry, and in PTIME exactly when it reads as a query defined by an FO(LFP) formula of the Immerman–Vardi entry. Neither statement mentions a machine, and neither proof assumes a capture theorem. The second is the substance of this submission: the formulas of the entry may nest, negate, and parameterize their fixed points, whereas the definitions of the library have one simultaneous fixed point.
Concept map
Evidence
Lean source view on GitHub
| 1 | import Lax832283.StringProblems |
| 2 | import Lax904597.Classes |
| 3 | import Lax535992.ClassPTIME |
| 4 | import Lax751879.FixedPointSemantics |
| 5 | import Lax988886.ExistentialSecondOrder |
| 6 | |
| 7 | /-! |
| 8 | --- |
| 9 | title: NP and PTIME against the logics of the two entries |
| 10 | type: theorem |
| 11 | --- |
| 12 | A decision problem is in NP exactly when it reads as a property defined by an existential |
| 13 | second-order sentence of the Fagin entry, and in PTIME exactly when it reads as a query |
| 14 | defined by an FO(LFP) formula of the Immerman–Vardi entry. Neither statement mentions a |
| 15 | machine, and neither proof assumes a capture theorem. The second is the substance of this |
| 16 | submission: the formulas of the entry may nest, negate, and parameterize their fixed points, |
| 17 | whereas the definitions of the library have one simultaneous fixed point. |
| 18 | -/ |
| 19 | |
| 20 | namespace Lax832283.LogicalBridge |
| 21 | |
| 22 | open FirstOrder Lax904597.Problems Lax904597.Classes Lax535992.ClassPTIME |
| 23 | open Lax832283.StringProblems |
| 24 | |
| 25 | /-- NP, against the existential second-order logic of the Fagin entry. -/ |
| 26 | axiom mem_NP_iff_definable {L : Language.{0, 0}} [L.IsRelational] (V : FinVocab L) |
| 27 | (P : DecisionProblem L) : |
| 28 | NP.Mem P ↔ Lax988886.ExistentialSecondOrder.Definable (toProperty V P) |
| 29 | |
| 30 | /-- PTIME, against the FO(LFP) of the Immerman–Vardi entry. -/ |
| 31 | axiom mem_PTIME_iff_definable {L : Language.{0, 0}} [L.IsRelational] (V : FinVocab L) |
| 32 | (P : DecisionProblem L) : |
| 33 | PTIME.Mem P ↔ Lax751879.FixedPointSemantics.Definable (toQuery V P) |
| 34 | |
| 35 | end Lax832283.LogicalBridge |
| 36 |
Discussion
Ask a question or add context. Endorsements and structured flags are kept in the review panel above.
0 comments