Skip to main content
QUICK REVIEW

[Paper Review] Causally consistent dynamic slicing

Roly Perera, Deepak Garg|arXiv (Cornell University)|Oct 7, 2016
Logic, programming, and type systemsComputer Science5 citations
TL;DR

This paper introduces a causally consistent dynamic slicing technique for the π-calculus using lattice-theoretic foundations, establishing a Galois connection between forward and backward slices. It proves that any causally equivalent execution yields isomorphic slices via a constructive rewiring, enabling efficient and portable concurrent slicing independent of specific interleavings.

ABSTRACT

We offer a lattice-theoretic account of dynamic slicing for π-calculus, building on prior work in the sequential setting. For any run of a concurrent program, we exhibit a Galois connection relating forward slices of the start configuration to backward slices of the end configuration. We prove that, up to lattice isomorphism, the same Galois connection arises for any causally equivalent execution, allowing an efficient concurrent implementation of slicing via a standard interleaving semantics. Our approach has been formalised in the dependently-typed language Agda.

Motivation & Objective

  • To extend dynamic slicing to concurrent programs in the π-calculus with formal guarantees.
  • To address the challenge of non-determinism in concurrent execution by ensuring slicing results are invariant under causal equivalence.
  • To provide a formal foundation for provenance tracking and debugging in concurrent systems using reversible computation principles.
  • To enable efficient implementation of slicing via any technique (e.g., redex trails, thread-local memories) as long as causality is preserved.
  • To formalize the relationship between forward and backward slicing using Galois connections in a concurrent setting.

Proposed method

  • Formalizes dynamic slicing using a lattice-theoretic framework based on Galois connections between forward and backward slices.
  • Defines slicing with respect to a specific execution trace and proves that causally equivalent executions yield isomorphic slices.
  • Constructs a lattice isomorphism via a 'rewiring' process that maps metadata (e.g., memory addresses) from one execution to another using causal equivalence paths.
  • Leverages a prior Agda formalization of causal equivalence in π-calculus to ensure correctness and constructivity.
  • Uses a composite cofinality map γα to translate slices across causally equivalent runs, preserving slice structure.
  • Relies on proof-relevant type theory in Agda to ensure that all isomorphisms are constructive and executable.

Experimental results

Research questions

  • RQ1Can dynamic slicing for concurrent programs be made invariant under causal equivalence of executions?
  • RQ2How can forward and backward slicing be formally related in a concurrent setting using Galois connections?
  • RQ3What is the role of causal equivalence in enabling portable and efficient slicing across different execution traces?
  • RQ4Can a constructive, isomorphic mapping between slices be established for any pair of causally equivalent runs?
  • RQ5How can implementation techniques like redex trails or thread-local memories be safely used in a slicing system without breaking correctness?

Key findings

  • A Galois connection between forward and backward slices is established for π-calculus, ensuring minimal and extremal slices.
  • Any two causally equivalent executions produce isomorphic slices via a constructive rewiring process based on the causal path between them.
  • The lattice isomorphism between slices is induced by a composite cofinality map derived from atomic causal equivalences.
  • The formalization in Agda ensures that all constructions are proof-relevant and executable, supporting implementation portability.
  • The approach allows any causally consistent implementation (e.g., using redex trails or thread-local memories) to safely compute equivalent slices.
  • The method generalizes beyond variable-based slicing criteria, supporting arbitrary parts of program configurations as slicing criteria.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.