ArticleslgStudy

computer science

Abstract state machine

Abstract state machine is a computer science topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Abstract state machine rather than just read about it. In short: In computer science, an abstract state machine (ASM) is a state machine operating on states that are arbitrary data structures (structure in the sense of mathematical logic, that is a nonempty set together with a number of functions (operations) and relations over the set). Overview The ASM Method is a practical and scientifically well-founded systems engineering method that bridges the gap between the two ends of s…

Key takeaways

  • Abstract state machine belongs to computer science; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Abstract state machine to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Abstract state machine from memory before moving on to harder problems.

Reference excerpt

In computer science, an abstract state machine (ASM) is a state machine operating on states that are arbitrary data structures (structure in the sense of mathematical logic, that is a nonempty set together with a number of functions (operations) and relations over the set).

Overview The ASM Method is a practical and scientifically well-founded systems engineering method that bridges the gap between the two ends of system development:

the human understanding and formulation of real-world problems (requirements capture by accurate high-level modeling at the level of abstraction determined by the given application domain) the deployment of their algorithmic solutions by code-executing machines on changing platforms (definition of design decisions, system and implementation details). The method builds upon three basic concepts:

ASM: a precise form of pseudo-code, generalizing finite-state machines to operate over arbitrary data structures ground model: a rigorous form of blueprints, serving as an authoritative reference model for the design refinement: a most general scheme for stepwise instantiations of model abstractions to concrete system elements, providing controllable links between the more and more detailed descriptions at the successive stages of system development. In the original conception of ASMs, a single agent executes a program in a sequence of steps, possibly interacting with its environment. This notion was extended to capture distributed computations, in which multiple agents execute their programs concurrently. Since ASMs model algorithms at arbitrary levels of abstraction, they can provide high-level, low-level and mid-level views of a hardware or software design. ASM specifications often consist of a series of ASM models, starting with an abstract ground model and proceeding to greater levels of detail in successive refinements or coarsenings. Due to the algorithmic and mathematical nature of these three concepts, ASM models and their properties of interest can be analyzed using any rigorous form of verification (by reasoning) or validation (by experimentation, testing model executions).

History The concept of ASMs is due to Yuri Gurevich, who first proposed it in the mid-1980s as a way of improving on Turing's thesis that every algorithm is simulated by an appropriate Turing machine. He formulated the ASM Thesis: every algorithm, no matter how abstract, is step-for-step emulated by an appropriate ASM. In 2000, Gurevich axiomatized the notion of sequential algorithms, and proved the ASM thesis for them. Roughly stated, the axioms are as follows:

states are structures, the state transition involves only a bounded part of the state, and everything is invariant under isomorphisms of structures. (Structures can be viewed as algebras, which explains the original name evolving algebras for ASMs.) The axiomatization and characterization of sequential algorithms have been extended to parallel and interactive algorithms. In the 1990s, through a community effort, the ASM method was developed, using ASMs for the formal specification and analysis (verification and validation) of computer hardware and software. Comprehensive ASM specifications of programming languages (including Prolog, C, and Java) and design languages (UML and SDL) have been developed. A detailed historical account can be found elsewhere. A number of software tools for ASM execution and analysis are available.

Publications

Books AsmBook: Egon Börger, Robert Stärk. Abstract State Machines: A Method for High-Level System Design and Analysis JBook: R.Stärk, J.Schmid, E.Börger. Java and the Java Virtual Machine: Definition, Verification, Validation Proceedings/Journal Issues (since 2000) 2008: Springer LNCS 5238 Abstract State Machines, B and Z 2008: J.UCS Special Issue with Selected Papers from ASM'07 doi:10.3217/jucs-014-12 2006: Springer LNCS 5115 Rigorous Methods for Software Construction and Analysis, ASM and B Dagstuhl Seminar 2005: Fundamenta Informatica Special Issue with Selected Papers from ASM'05 (electronic proceedings) 2004: Springer LNCS 3052 Abstract State Machines 2004 2003: Springer LNCS 2589 Abstract State Machines 2003: Advances in Theory and Practice 2003: TCS special Issue with Selected Papers from ASM'03 2002: Dagstuhl Seminar Report Theory and Applications of Abstract State Machines 2001: J.UCS 7.11 Special Issue with Selected Papers from ASM'01 2000: Springer LNCS 1912 Abstract State Machines: Theory and Applications Comparative case studies with ASM contributions Steam-Boiler Control: Specification Case Study, Springer LNCS 1165 Production Cell: Software Development Case Study, ASM model Railcrossing: Formal Methods for Real-Time Computing, ASM model Light Control: Requirements Engineering Case Study, Dagstuhl Seminar Invoicing: Requirements Capture Case Study

Behavioral models for industrial standards OMG for BPMN (version 2006): Springer LNCS 5316 OASIS for BPEL: IJBPMI 1.4 (2006) ECMA for C#: "A high-level modular definition of the semantics of C♯" doi:10.1016/j.tcs.2004.11.008 ITU-T for SDL-2000: formal semantics of SDL-2000 and Formal Definition of SDL-2000 - Compiling and Running SDL Specifications as ASM Models IEEE for VHDL93: E.Boerger, U.Glaesser, W.Mueller. Formal Definition of an Abstract VHDL'93 Simulator by EA-Machines. In: Carlos Delgado Kloos and Peter T.~Breuer (Eds.), Formal Semantics for VHDL, pp. 107–139, Kluwer Academic Publishers, 1995 ISO for Prolog: "A mathematical definition of full Prolog" doi:10.1016/0167-6423(95)00006-E

Tools (in historical order since 2000)

The ASM Workbench ASMETA, the Abstract State Machine Metamodel and its tool set AsmL CoreASM, available at CoreASM, an extensible ASM execution engine AsmGofer on Archive.org The XASM open source project on SourceForge

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Abstract state machine

Start with the simplest possible case. Write down what Abstract state machine claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In computer science, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Abstract state machine before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Abstract state machine ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Abstract state machine

In research
Abstract state machine appears in computer science research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Abstract state machine in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Abstract state machine is common in secondary-school and first-year university syllabi. It links to neighbouring topics Formal methods, Models of computation, so understanding it makes those chapters shorter.
In everyday life
Look for Abstract state machine outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Abstract state machine” →

How to study Abstract state machine in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Abstract state machine means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Abstract state machine out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Abstract state machine in simple terms?

In computer science, an abstract state machine (ASM) is a state machine operating on states that are arbitrary data structures (structure in the sense of mathematical logic, that is a nonempty set together with a number of functions (operations) and relations over the set). Overview The ASM Method…

Why does Abstract state machine matter?

Because it connects several computer science ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Abstract state machine?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Abstract state machine.

Tags

  • Formal methods
  • Models of computation

Keep exploring