Bounded machine configurations

Lax733996.BoundedConfigurations · concepts/Lax733996/BoundedConfigurations.lean · lax-733996

definition

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

    Definition

    A configuration using at most ss work cells consists of a control state, an input-head position, a work-head position, and ss work symbols. Cells beyond this prefix are blank.

    Concept map
    3 concepts; 4 descendants hidden
    100%
    Proven claimDefinitionThis conceptRelated conceptA → B: B builds on A

    In the paper

    • page 1 of this submission's paper

    Lean source view on GitHub

    1import Lax434930.SpaceMachines
    2import Mathlib.Data.Fintype.Pi
    3
    4set_option backward.isDefEq.respectTransparency false
    5
    6/-!
    7---
    8title: Bounded machine configurations
    9type: definition
    10---
    11A configuration using at most ss work cells consists of a control state,
    12an input-head position, a work-head position, and ss work symbols.
    13Cells beyond this prefix are blank.
    14-/
    15
    16namespace Lax733996.BoundedConfigurations
    17
    18open Lax434930.SpaceMachines
    19
    20structure Config (M : Machine) (n s : ℕ) where
    21 state : M.Q
    22 inputHead : Fin (n + 2)
    23 workHead : Fin s
    24 tape : Fin s → M.Γ
    25 deriving Fintype
    26
    27def expand {M : Machine} {n s : ℕ} (c : Config M n s) : M.Config :=
    28 ⟨c.state, c.inputHead.val, c.workHead.val,
    29 fun i => if h : i < s then c.tape ⟨i, h⟩ else M.blank
    30
    31end Lax733996.BoundedConfigurations
    32

    Discussion

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

    Loading discussion…