arXiv:2610.37534cs.LOOct 2026

Manuscript Offprint

arXiv:2610.37534

Computing GR(1) Assume-Guarantee Contracts

Yigit Narter, Emily Zhao, Inigo Incer

Yigit Narter, Emily Zhao, and Inigo Incer

Department of Electrical and Computer Engineering, University of Michigan, Ann Arbor, MI, USA

{narter,emzhao,iir}@umich.edu

Abstract. Assume-guarantee contracts provide a set of algebraic operations that enable the efficient compositional design and analysis of complex engineering systems. The explicit computation of these operations at component interfaces is currently supported only for some logics lacking a notion of time. This paper develops theory and algorithms to compute these operations when the contracts are expressed in the GR(1) modulo theory. The key challenge is the computation of two quantifier elimination problems for temporal formulas. We develop context-aided variable elimination procedures on GR(1)-modulo formulas, establish their soundness, characterize subproblem-wise optimal solutions within an admissible class of formulas, and use the procedures to compute contract operations, including composition and quotient. We implement the resulting framework in Pacti, automating compositional reasoning over GR(1) contracts. Finally, we demonstrate the framework on an automated emergency-braking case study, where we compute system-level contracts and expose compatibility conditions arising from the interaction of component specifications. Experiments on synthetic families show that the cost is governed by the number of eliminated variables and liveness conjuncts, and a comparison with exact automata-based elimination shows complementary scaling.

Keywords: Assume-guarantee contracts · GR(1) · Linear temporal logic · Compositional reasoning · Contract-based design · Quantifier elimination

1 Introduction

Safety-critical systems increasingly rely on software that is built faster than our ability to verify it across all operating conditions. A 2025 joint report by CISA, DARPA, OUSD (R&E), and the NSA [11] refers to this gap between what we design and what we can verify as the “software understanding gap.” The technical call to action of this report states that “all suitable techniques (including formal methods, AI, and others) must be leveraged to develop rigorous, reliable, rapid, and inexpensive capabilities” to address such understanding.

A key principle for designing and analyzing complex systems is compositionality. Over the last 20 years, assume-guarantee contracts have been proposed as a mathematical framework that supports tractable compositional design by formalizing system integrations across heterogeneous components [5,34]. Contracts

Y. Narter et al.

are interface specifications of components that encode information usually contained in the datasheet of a system; they define assumptions a component makes on its context of operation together with guarantees expected from that component whenever the assumptions hold [33]. They supply algebraic operations that enable system-level design and analysis [21]. A recently introduced open-source platform for contract-based design, Pacti, supports the efficient computation of operations on contracts whose assumptions and guarantees are expressed in logical specification languages that are accessible to practitioners [20].

This paper studies the computation of the algebra of contracts when the specifications are expressed in a fragment of Linear Temporal Logic (LTL) [32], which can capture safety and liveness properties of discrete and hybrid event systems. This is desirable in domains such as computer architecture [3], automotive systems [2], and multi-agent robotics [1]. Pacti supports contracts over propositional logic and linear real arithmetic, but not temporal specifications. Temporal contract tools such as OCRA [9], AGREE [10], and CHASE [29] verify contract refinement, and algebraic theories [5, 21, 22] define contract operations semantically. To the best of our knowledge, it is not currently known how to compute the contract of an interconnection (composition) or of a missing component (quotient) over interface variables when the assumptions and guarantees are temporal formulas. The difficulty lies in variable elimination. It was shown in [20] that composition and quotient must eliminate variables outside the interface of the resulting contract. Concretely, we must compute ∀pˉ.(Γ⇒ϕ)\forall \bar{p}.(\Gamma \Rightarrow \phi) or ∃pˉ.(Γ∧ϕ)\exists \bar{p}.(\Gamma \land \phi) for a formula ϕ\phi and a context Γ\Gamma. Automata-based quantification [37, 38] eliminates existentially quantified variables directly, but universal quantification needs complementation, which is exponential in the worst case [37], and the result is an automaton whose language may not be expressible in LTL [39]. We restrict our attention to the GR(1) fragment of LTL, a common format for system specifications with initial, invariant, and liveness clauses [13, 28, 31]. The GR(1) format conveniently relates to contracts and offers useful properties for computing variable elimination. Exact elimination can leave this fragment, so our procedures trade exactness for soundness, and each operation again yields a contract in GR(1) form.

Contributions. We enable the computation of system-level design operations on contracts expressed in GR(1)-modulo theory. We provide procedures for the two GR(1) context-aided variable elimination problems behind composition and quotient (Section 4), computed soundly by SMT-based quantifier elimination (QE). Our procedures attain closure within GR(1) and subproblem-wise optimality within an admissible class of GR(1) formulas. We implement the procedures in the Pacti [20] platform for contract-based design. We also provide an automated emergency-braking case study (Section 5) deriving system-level temporal contracts and compatibility conditions. The optional appendix contains proofs and experiments (Appendix F), including a bounded-lasso soundness and precision check and a comparison with automata-based elimination using Spot [12], and will be posted as a preprint after review.

GR(1) Contract Operations

Figure

Fig. 1: Role of CAVE in the GR(1) contract-algebra workflow. Contract operations may produce formulas outside the GR(1) representation; CAVE constructs a GR(1) result through refinement or relaxation-based abstraction.

References (40)