[Paper Review] Syntax and analytic semantics of LISA
This paper presents the syntax and analytic semantics of LISA, a formal language for specifying concurrent and parallel programs. It introduces traces, stamps for event uniqueness, and scope trees to model program behavior and architecture-dependent features, enabling precise, compositional semantics for concurrent systems through formal trace-based execution and well-formedness conditions.
We provide the syntax and semantics of the LISA (for "Litmus Instruction Set Architecture") language. The parallel assembly language LISA is implemented in the herd7 tool (http://virginia.cs.ucl.ac.uk/herd/) for simulating weak consistency models.
Motivation & Objective
- To define a formal syntax and analytic semantics for LISA, a language targeting concurrent and parallel program specification.
- To ensure event uniqueness in program traces using process-specific stamps, preventing ambiguity in execution sequences.
- To model program architecture and dependencies via scope trees, decoupling them from core semantic definitions.
- To provide a compositional framework for combining multiple processes with well-formedness constraints on execution traces.
- To enable formal verification of concurrent programs by defining trace-based semantics with precise state and event transitions.
Proposed method
- Traces are formalized as sequences of state-event transitions: σ₁ → ε₂ → σ₂ → ... → σₘ, where ε₁ is the start event.
- Stamps (θ ∈ ℙ(p)) uniquely identify events per process, with total ordering (≤_p) to ensure sequential consistency.
- The set of all stamps is defined as ℘ = ∪ₚ ℙ(p), with distinct stamps across different processes (ℙ(p) ∩ ℙ(q) = ∅ for p ≠ q).
- Traces are decomposed into state sequences (τ̲) and event sequences (τ̄), supporting both finite and infinite executions.
- Scope trees are used as metadata for cat specifications, with a default trivial tree when no declaration is present.
- Well-formedness conditions (wf) are enforced on traces via logical constraints over process identifiers and event orderings.
Experimental results
Research questions
- RQ1How can a formal semantics be defined for concurrent programs that ensures event uniqueness and trace consistency?
- RQ2What mechanisms are required to model architecture-dependent features without affecting the core semantic model?
- RQ3How can traces be formally represented to support both finite and infinite executions in a unified framework?
- RQ4How can process identifiers and scope trees be integrated into the semantic model to support modular program composition?
- RQ5What conditions ensure that a trace is well-formed and semantically valid within the LISA framework?
Key findings
- The formalization of traces as sequences of state-event transitions enables precise modeling of program execution, including infinite runs.
- Stamps ensure that events are uniquely identifiable per process, with disjoint stamp sets across processes to avoid conflicts.
- The use of total orderings on stamps (≤_p) supports sequential consistency and enables reasoning about execution order.
- Well-formedness conditions (wf) are defined as logical constraints over traces, ensuring valid process interactions and ordering.
- Scope trees are decoupled from core semantics and used only as metadata for external cat specifications, preserving semantic purity.
- The compositional semantics allows for modular construction of program traces by combining sub-programs with consistent process identifiers and state transitions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.