Skip to content

Wang B-machine

A four-instruction, mark-only sequential tape machine—left, right, mark, and conditional jump—that retains Turing-complete computational power without a primitive erase operation.

Core Idea

The B-machine combines an unbounded tape of blank or marked squares with a scanning head and a finite numbered program. Movement and marking fall through to the next instruction; a conditional transfer branches to a named instruction only when the scanned square is marked.

Its importance is representational economy. Direct erasure and richer Turing-state transitions are absent, yet appropriate encodings simulate a Turing machine. The W-machine is a nearby variant obtained by adding erase, so instruction-set fidelity matters when naming an implementation.

How would you explain it like I'm…

The Mark-Only Machine

Imagine a super long strip of squares and a little reader that looks at one square at a time. It follows a numbered list of steps: move left or right, put a mark, or jump to a different step if the square already has a mark. It can never rub a mark out, but with clever planning it can still work out the same puzzles as fancier machines.

The No-Eraser Computer

The Wang B-machine is a very simple pretend computer. It has an endless tape of squares that are blank or marked, a head that looks at one square, and a short numbered list of instructions. Instructions can move the head, put a mark on the square, or jump to another instruction only if the square is marked; otherwise it just goes to the next step. It cannot erase marks, yet with the right coding it can do anything a Turing machine can. Adding an erase instruction gives a slightly different machine called the W-machine.

Wang's Non-Erasing Machine

The Wang B-machine is a minimal model of computation. It has an unbounded tape of squares that are either blank or marked, a scanning head, and a finite numbered program. The instructions are: move left, move right, mark the scanned square, and a conditional jump that transfers to a named instruction only if the scanned square is marked. After any move or mark, control simply falls through to the next instruction. There is no erase instruction and no rich state table like a Turing machine has, yet with suitable encodings it can simulate a Turing machine. A nearby variant, the W-machine, adds an erase instruction, so it matters which instruction set you mean.

 

The Wang B-machine is an abstract machine combining an unbounded tape of squares, each blank or marked, a scanning head, and a finite program of numbered instructions. The instruction set is tiny: move left, move right, mark the scanned square, and a conditional transfer that branches to a named instruction only if the scanned square is marked. Movement and marking fall through sequentially to the next instruction, so control flow is like a simple program rather than a Turing-machine state table. There is no direct erasure. Its significance is representational economy: despite lacking erasure and richer state transitions, appropriate encodings let it simulate a Turing machine. The W-machine is the nearby variant obtained by adding an erase instruction, so fidelity to the instruction set matters when identifying an implementation.

Scope of Application

  • Computability theory. Shows Turing equivalence with unusually sparse primitives.
  • Machine-model comparison. Studies how state and operations are encoded across formalisms.
  • Universal computation. Supports constructions of interpreters and universal programs.
  • Minimal instruction sets. Separates convenience of primitives from computability power.
  • History of computer models. Connects Turing and Post formalisms to computer-like sequential instructions.

Clarity

State tape extent and alphabet, initial configuration, head position, numbered program, exact fall-through and jump semantics, halting convention, and whether erase is primitive. Demonstrate equivalence through an explicit simulation rather than the word universal alone. Inclusion test: Require the B-machine's binary tape, single head, finite numbered program, sequential fall-through, four exact primitives, and simulation semantics sufficient for Turing equivalence. Exclusion test: Exclude the W-machine with erase, Post–Turing machines with broader instruction sets, Wang tiles, random-access machines, and any informal register program sharing only the letter B. Nearest boundary: The W-machine is the B-machine plus an erase instruction; this convenience changes the primitive instruction set even though both remain Turing-equivalent. Exit condition: The identity changes when direct erase or random access is admitted as a basic operation. Common misclassifications: It is not Wang tile computation. It is not the W-machine with a primitive erase. It is not a random-access machine. It is not the B-Method for software specification. Nearest named distinctions: Wang W-Machine: The W-machine adds a primitive erase instruction to the B-machine. Wang Tile: Wang tiles form a geometric tiling system and share only the researcher's name. Random-Access Machine: A RAM addresses registers directly rather than moving a local tape head. B-Method: The B-Method is a formal software-development notation unrelated to Wang's machine B.

Manages Complexity

The abstraction isolates three resources—unbounded binary memory, local head motion, and conditional control—and shows they suffice despite a mark-only update. It makes hidden state encodings visible and supports exact comparison of instruction-set economy.

Abstract Reasoning

  1. Encode data and simulated state on the marked tape and instruction counter.
  2. Read the scanned cell through conditional transfer.
  3. Mark blank cells when the encoding requires it.
  4. Move one square left or right.
  5. Compose instruction blocks simulating each source-machine transition.
  6. Verify halting and output correspondence under the declared coding.

Knowledge Transfer

The transferable cargo is universality under a severely restricted local instruction set. It transfers to other machine models through proven simulations; it stops at assuming all simple-looking tape systems are equivalent without encoding and halting arguments.

Neighborhood in Abstraction Space

Wang B-machine sits in a moderately populated region (47th percentile for distinctiveness): it has near-neighbors but no dense thicket of look-alikes.

Family — Digital Logic & Finite-State Machines (10 abstractions)

Nearest neighbors

Computed from structural-signature embeddings · 2026-11-14