# Soundness in negotiations

**Authors:** Javier Esparza, Denis Kuperberg, Anca Muscholl, Igor, Walukiewicz

arXiv: 1703.05137 · 2023-06-22

## TL;DR

This paper investigates the computational complexity of the soundness problem in negotiations, improving existing results and extending analysis techniques to broader classes, with implications for static analysis and race condition detection.

## Contribution

It refines the complexity classification of soundness in deterministic negotiations and demonstrates polynomial-time solutions for acyclic, weakly non-deterministic negotiations, also applying techniques to other analysis problems.

## Key findings

- Soundness in deterministic negotiations is Nlogspace-complete.
- Soundness can be decided in polynomial time for acyclic, weakly non-deterministic negotiations.
- Soundness analysis facilitates detection of race conditions and other static analysis problems.

## Abstract

Negotiations are a formalism for describing multiparty distributed cooperation. Alternatively, they can be seen as a model of concurrency with synchronized choice as communication primitive. Well-designed negotiations must be sound, meaning that, whatever its current state, the negotiation can still be completed. In earlier work, Esparza and Desel have shown that deciding soundness of a negotiation is Pspace-complete, and in Ptime if the negotiation is deterministic. They have also extended their polynomial soundness algorithm to an intermediate class of acyclic, non-deterministic negotiations. However, they did not analyze the runtime of the extended algorithm, and also left open the complexity of the soundness problem for the intermediate class. In the first part of this paper we revisit the soundness problem for deterministic negotiations, and show that it is Nlogspace-complete, improving on the earlier algorithm, which requires linear space. In the second part we answer the question left open by Esparza and Desel. We prove that the soundness problem can be solved in polynomial time for acyclic, weakly non- deterministic negotiations, a more general class than the one considered by them. In the third and final part, we show that the techniques developed in the first two parts of the paper can be applied to analysis problems other than soundness, including the problem of detecting race conditions, and several classical static analysis problems. More specifically, we show that, while these problems are intractable for arbitrary acyclic deterministic negotiations, they become tractable in the sound case. So soundness is not only a desirable behavioral property in itself, but also helps to analyze other properties.

---
Source: https://tomesphere.com/paper/1703.05137