Inductive diagrams for causal reasoning

07/19/2023
by   Jonathan Castello, et al.
0

The Lamport diagram is a pervasive and intuitive tool for informal reasoning about causality in a concurrent system. However, traditional axiomatic formalizations of Lamport diagrams can be painful to work with in a mechanized setting like Agda, whereas inductively-defined data would enjoy structural induction and automatic normalization. We propose an alternative, inductive formalization – the causal separation diagram (CSD) – that takes inspiration from string diagrams and concurrent separation logic. CSDs enjoy a graphical syntax similar to Lamport diagrams, and can be given compositional semantics in a variety of domains. We demonstrate the utility of CSDs by applying them to logical clocks – widely-used mechanisms for reifying causal relationships as data – yielding a generic proof of Lamport's clock condition that is parametric in a choice of clock. We instantiate this proof on Lamport's scalar clock, on Mattern's vector clock, and on the matrix clocks of Raynal et al. and of Wuu and Bernstein, yielding verified implementations of each. Our results and general framework are mechanized in the Agda proof assistant.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
11/20/2018

Causal Inference by String Diagram Surgery

Extracting causal relationships from observed correlations is a growing ...
research
06/04/2019

Bialgebraic Semantics for String Diagrams

Turi and Plotkin's bialgebraic semantics is an abstract approach to spec...
research
04/15/2023

Causal models in string diagrams

The framework of causal models provides a principled approach to causal ...
research
06/27/2023

Causal Diagrams for Structural Engineers

Causal diagrams are logic and graphical tools that depict assumptions ab...
research
11/01/2022

A Categorical Framework for Modeling with Stock and Flow Diagrams

Stock and flow diagrams are already an important tool in epidemiology, b...
research
10/16/2020

The Structure of Concurrent Process Histories

We identify the algebraic structure of the material histories generated ...
research
06/01/2018

A programmable clock generator for automatic Quality Assurance of LOCx2

The upgrade of ATLAS Liquid Argon Calorimeter (LAr) Phase-1 trigger requ...

Please sign up or login with your details

Forgot password? Click here to reset