encyclopegia.org

Stream X-Machine

The Stream X-machine (SXM) is a model of computation introduced by Gilbert Laycock in his 1993 PhD thesis, The Theory and Practice of Specification Based Software Testing.[src] Based on Samuel Eilenberg's X-machine, an extended finite-state machine for processing data of the type X, the Stream X-Machine is a kind of X-machine for processing a memory data type Mem with associated input and output streams In* and Out*, that is, where X = Out* × Mem × In*.[src] The transitions of a Stream X-Machine are labelled by functions of the form φ: Mem × In → Out × Mem, that is, which compute an output value and update the memory, from the current memory and an input value.[src] Although the general X-machine had been identified in the 1980s as a potentially useful formal model for specifying software systems, it was not until the emergence of the Stream X-Machine that this idea could be fully exploited.[src] Florentin Ipate and Mike Holcombe went on to develop a theory of complete functional testing, in which complex software systems with hundreds of thousands of states and millions of transitions could be decomposed into separate SXMs that could be tested exhaustively, with a guaranteed proof of correct integration.…[src]

The Stream X-machine (SXM) is a model of computation introduced by Gilbert Laycock in his 1993 PhD thesis, The Theory and Practice of Specification Based Software Testing.[src] Based on Samuel Eilenberg's X-machine, an extended finite-state machine for processing data of the type X, the Stream X-Machine is a kind of X-machine for processing a memory data type Mem with associated input and output streams In* and Out*, that is, where X = Out* × Mem × In*.[src] The transitions of a Stream X-Machine are labelled by functions of the form φ: Mem × In → Out × Mem, that is, which compute an output value and update the memory, from the current memory and an input value.[src] Although the general X-machine had been identified in the 1980s as a potentially useful formal model for specifying software systems, it was not until the emergence of the Stream X-Machine that this idea could be fully exploited.[src] Florentin Ipate and Mike Holcombe went on to develop a theory of complete functional testing, in which complex software systems with hundreds of thousands of states and millions of transitions could be decomposed into separate SXMs that could be tested exhaustively, with a guaranteed proof of correct integration.[src] Because of the intuitive interpretation of Stream X-Machines as "processing agents with inputs and outputs", they have attracted increasing interest, because of their utility in modelling real-world phenomena.[src] The SXM model has important applications in fields as diverse as computational biology, software testing and agent-based computational economics.[src] A Stream X-Machine (SXM) is an extended finite-state machine with auxiliary memory, inputs and outputs.[src] It is a variant of the general X-machine, in which the fundamental data type X = Out* × Mem × In*, that is, a tuple consisting of an output stream, the memory and an input stream.[src] A SXM separates the control flow of a system from the processing carried out by the system.[src] The control is modelled by a finite-state machine (known as the associated automaton) whose transitions are labelled with processing functions chosen from a set Φ (known as the type of the machine), which act upon the fundamental data type.[src] Each processing function in Φ is a partial function, and can be considered to have the type φ: Mem × In → Out × Mem, where Mem is the memory type, and In and Out are respectively the input and output types.[src] In any given state, a transition is enabled if the domain of the associated function φ i includes the next input value and the current memory state.[src] If (at most) one transition is enabled in a given state, the machine is deterministic.[src] Crossing a transition is equivalent to applying the associated function φ i , which consumes one input, possibly modifies the memory and produces one output.[src] Each recognised path through the machine therefore generates a list φ 1 ...[src] φ n of functions, and the SXM composes these functions together to generate a relation on the fundamental data type |φ 1 ...[src] φ n |: X → X.[src] The Stream X-Machine is a variant of X-machine in which the fundamental data type X = Out* × Mem × In*.[src] In the original X-machine, the φ i are general relations on X.[src] In the Stream X-Machine, these are usually restricted to functions; however the SXM is still only deterministic if (at most) one transition is enabled in each state.[src] A general X-machine handles input and output using a prior encoding function α: Y → X for input, and a posterior decoding function β: X → Z for output, where Y and Z are respectively the input and output types.[src] In a Stream X-Machine, these types are streams: Y = In* Z = Out* and the encoding and decoding functions are defined as: α(ins) = (<>, mem 0 , ins) β(outs, mem n , <>) = outs where ins: In*, outs: Out* and mem i : Mem.[src] In other words, the machine is initialized with the whole of the input stream; and the decoded result is the whole of the output stream, provided the input stream is eventually consumed (otherwise the result is undefined).[src] Each processing function in a SXM is given the abbreviated type φ SXM : Mem × In → Out × Mem.[src] This can be mapped onto a general X-machine relation of the type φ: X → X if we treat this as computing: φ(outs, mem i , in :: ins) = (outs :: out, mem i+1 , ins) where :: denotes concatenation of an element and a sequence.[src] In other words, the relation extracts the head of the input stream, modifies memory and appends a value to the tail of the output stream.[src] Because of the above equivalence, attention may focus on the way a Stream X-Machine processes inputs into outputs, using an auxiliary memory.[src] Given an initial memory state mem 0 and an input stream ins, the machine executes in a step-wise fashion, consuming one input at a time, and generating one output at a time.[src] Provided that (at least) one recognised path path = φ 1 ...[src] φ n exists leading to a state in which the input has been consumed, the machine yields a final memory state mem n and an output stream outs.[src] In general, we can think of this as the relation computed by all recognised paths: | path | : In* → Out*.[src] This is often called the behaviour of the Stream X-Machine.[src] The behaviour is deterministic, if (at most) one transition is enabled in each state.[src] This property, and the ability to control how the machine behaves in a step-wise fashion in response to inputs and memory, makes it an ideal model for the specification of software systems.[src] If the specification and implementation are both assumed to be Stream X-Machines, then the implementation may be tested for conformance to the specification machine, by observing the inputs and outputs at each step.[src] Laycock first highlighted the utility of single-step processing with observations for testing purposes.[src] Holcombe and Ipate developed this into a practical theory of software testing which was fully compositional, scaling up to very large systems.[src] A proof of correct integration guarantees that testing each component and each integration layer separately corresponds to testing the whole system.[src] This divide-and-conquer approach makes exhaustive testing feasible for large systems.[src] The testing method is described in a separate article on the Stream X-Machine testing methodology.[src]

46 sentences · 46 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Stream X-Machine." encyclopegia.org, 2026, https://encyclopegia.org/wiki/stream-x-machine. Accessed 27 November 2026.

Chicago

"Stream X-Machine." encyclopegia.org. Accessed November 27, 2026. https://encyclopegia.org/wiki/stream-x-machine.

APA

encyclopegia.org. (2026). Stream X-Machine. Retrieved November 27, 2026, from https://encyclopegia.org/wiki/stream-x-machine

Accessed November 27, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Internet Archive Wayback Machine

article · references available

automated teller machine

stub · references available

Z-machine

stub · references available

Transpolar Drift Stream

stub · references available

Bright Stream

stub · references available

watch timing machine

stub · references available

vending machine

stub · references available

Cox–Zucker machine

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1343962448 · 0.5 · snapshot enwiki-001343962448

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.