feat(MultiTapeTM): Nondeterministic multi-tape Turing machines - #802
Open
barni120400 wants to merge 1 commit into
Open
feat(MultiTapeTM): Nondeterministic multi-tape Turing machines#802barni120400 wants to merge 1 commit into
barni120400 wants to merge 1 commit into
Conversation
barni120400
force-pushed
the
multitape/nondeterministic
branch
3 times, most recently
from
August 15, 2026 07:39
7450891 to
f44edbc
Compare
A nondeterministic multi-tape Turing machine is a `MultiTapeTM` whose transition function is replaced by a transition relation. Configurations, transition outputs and the effect of a single step move to a shared `MultiTape/Basic.lean`; no existing statement changes meaning. The semantics is a labelled transition system on configurations, a step labelled by the symbol it emits. A `Computation` is a chain of such transitions, with time, output and space read off it. `MultiTapeTM.toNTM` embeds the deterministic machine and `toNTM_computes` shows the embedding preserves computation in bounded time and space. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
barni120400
force-pushed
the
multitape/nondeterministic
branch
from
August 15, 2026 07:46
f44edbc to
1ef9de2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds nondeterministic multi-tape Turing machines next to the deterministic ones from #384. The transition function is replaced by a transition relation ([Papadimitriou94] 2.7); nothing else about the model changes, so configurations and the effect of a single step move to a shared
MultiTape/Basic.lean. No existing statement changes meaning.The semantics is a labelled transition system on configurations, labelled by the emitted symbol. A computation is a chain of such transitions, in the style of
SimpleGraph.Walk, recording the trajectory that space depends on and the labels that the output depends on.MultiTapeTM.toNTMembeds the deterministic machine and preserves computation in bounded time and space.