NL is acceptance by two-way multihead automata

Lax485149.NLByAutomata · concepts/Lax485149/NLByAutomata.lean · lax-485149

proven

Loading review…

Sign in with ORCID

Community review

Flags

Each flag is tied to a public ORCID identity and explains why this concept may be incorrect.

No flags have been submitted.

    Community review

    Flag this concept

    State precisely what appears incorrect. This explanation will be public under your ORCID name.

    No source line selected.

    Natural Language Statement

    Theorem

    A decision problem PP over a relational vocabulary LL is in NL if and only if there are a number kk and a two-way kk-head automaton over LL that accepts, for every nonempty finite LL-structure AA and every linear order on AA, exactly when AA is a yes-instance of PP. The same holds for FO(TC) definability, a configuration of the automaton being a node of a transitive-closure specification and conversely. This relates the logically defined class to a machine model with logarithmic storage: kk heads on a structure of size nn hold klog⁡nk \log n bits.

    Concept map
    20 concepts
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A
    Evidence

    This concept declares 2 statements. Each proof establishes one of them relative to its assumptions.

    1 mem_NL_iff_automaton proven

    2 tcDefinable_iff_automaton proven

    Lean source view on GitHub

    1import Lax904597.Problems
    2import Lax904597.Interpretations
    3import Lax904597.Relativized
    4import Lax904597.SecondOrder
    5import Lax904597.Classes
    6import Lax904597.Sat
    7import Lax485149.Problems
    8import Lax485149.Complement
    9import Lax485149.SecondOrderAtoms
    10import Lax485149.KromFragment
    11import Lax485149.TransitiveClosure
    12import Lax485149.DeterministicTransitiveClosure
    13import Lax485149.FirstOrderDefinability
    14import Lax485149.HeadAutomata
    15import Lax485149.Reachability
    16import Lax485149.DeterministicReachability
    17import Lax485149.TwoSat
    18import Lax485149.ClassNL
    19import Lax485149.ClassL
    20
    21/-!
    22---
    23title: NL is acceptance by two-way multihead automata
    24type: theorem
    25---
    26A decision problem PP over a relational vocabulary LL is in NL if and only
    27if there are a number kk and a two-way kk-head automaton over LL that
    28accepts, for every nonempty finite LL-structure AA and every linear order
    29on AA, exactly when AA is a yes-instance of PP. The same holds for FO(TC)
    30definability, a configuration of the automaton being a node of a
    31transitive-closure specification and conversely. This relates the logically
    32defined class to a machine model with logarithmic storage: kk heads on a
    33structure of size nn hold klog⁡nk \log n bits.
    34-/
    35
    36namespace Lax485149.NLByAutomata
    37
    38open FirstOrder FirstOrder.Language
    39open Lax904597.Problems Lax904597.Interpretations Lax904597.Relativized Lax904597.SecondOrder
    40open Lax904597.Classes Lax904597.Sat
    41open Lax485149.Problems Lax485149.Complement Lax485149.SecondOrderAtoms Lax485149.KromFragment
    42open Lax485149.TransitiveClosure Lax485149.DeterministicTransitiveClosure
    43open Lax485149.FirstOrderDefinability Lax485149.HeadAutomata Lax485149.Reachability
    44open Lax485149.DeterministicReachability Lax485149.TwoSat Lax485149.ClassNL Lax485149.ClassL
    45
    46/-- NL is acceptance by a two-way multihead automaton. -/
    47axiom mem_NL_iff_automaton : ∀ {L : Language.{0, 0}} [L.IsRelational] {P : DecisionProblem L},
    48 NL.Mem P ↔ ∃ (k : ℕ) (M : HeadAutomaton L k),
    49 ∀ (A : Type) [L.Structure A] [LinearOrder A] [Finite A] [Nonempty A], P A ↔ M.Accepts A
    50
    51/-- FO(TC) definability is acceptance by a two-way multihead automaton. -/
    52axiom tcDefinable_iff_automaton : ∀ {L : Language.{0, 0}} [L.IsRelational] {P : DecisionProblem L},
    53 TCDefinable P ↔ ∃ (k : ℕ) (M : HeadAutomaton L k),
    54 ∀ (A : Type) [L.Structure A] [LinearOrder A] [Finite A] [Nonempty A], P A ↔ M.Accepts A
    55
    56end Lax485149.NLByAutomata
    57
    Show ProofShow Proof

    Discussion

    Ask a question or add context. Endorsements and structured flags are kept in the review panel above.

    Loading discussion…