Manuscript Offprint
arXiv:2610.37534Computing GR(1) Assume-Guarantee Contracts
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 or for a formula and a context . 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

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.
2.1 Linear Temporal Logic
Linear temporal logic (LTL) [32] specifies properties of infinite traces over a set of atomic propositions AP. A trace is an infinite sequence , where each records the propositions true at time . LTL formulas are generated by the syntax . Here, is an atomic proposition, and and denote next and until. Their semantics are iff , and iff there is with and for all . The Boolean operators have their usual semantics. We use the derived operators (eventually) and (always), so iff for some , and iff for every . We write for . For specifications modulo a background theory , atomic formulas may also be predicates over typed variables. A trace assigns each such variable a value in its domain at every time position, with atomic predicates evaluated under the corresponding theory interpretation.
2.2 The GR(1) Fragment
Generalized Reactivity (1), or GR(1), is a structured fragment of LTL that supports efficient symbolic reasoning for reactive systems [13, 14, 26, 28, 31]. A standard GR(1) specification has the form
where the left-hand side of the implication contains initial, invariant, and liveness requirements made on the operational environment, and the right-hand side contains the corresponding system requirements.
Throughout this work, the sub-formulas , and are built from Boolean connectives and from propositions or predicates over
Y. Narter et al.
typed variables in a background theory, such as linear real arithmetic [4], using finitely many applications of 〇 and no other temporal operators. We call such a sub-formula a bounded-next core, or simply a core, of the GR(1)-modulo formula. A term 〇 can be mapped to an indexed variable of the same type, allowing each bounded-next core to be reduced to a finite propositional or SMT formula. This representation later enables algorithms for computing GR(1) contract operations.
2.3 Assume-Guarantee Contracts
Assume–guarantee contracts are interface specifications of the form , where states assumptions the component makes on its input variables and states guarantees the component promises to deliver on its outputs whenever the assumptions hold. A valid implementation of a contract is a model that satisfies . A valid environment for the contract is a model that satisfies .
Contract Operations. Algebraic operations on contracts relate the contracts of interconnected components with the system-level contract. We use the contract algebra underlying Pacti [20]. At the semantic level, the exact operations are defined independently of the specification theory used to express assumptions and guarantees. For contracts and , refinement is defined by iff ; it captures substitutability, with satisfying at least the requirements of . Composition combines component contracts into a contract for their interconnection and is defined by . Quotient derives the largest contract for a missing component that, when composed with an existing component, refines a target contract: . It satisfies the residual property . Finally, merging combines requirements that must hold simultaneously and is defined by .
Context Aided Variable Elimination. We distinguish the exact expressions for operations from their computational realizations, which, as in Pacti [20], require specification-theory-specific procedures. Consider the composition operation, which derives a system-level contract based on the assumptions and guarantees of its constituent components. During contract interconnection, some variables that appear in the assumptions and guarantees become irrelevant; they help describe component interfacing, but should not appear in the contract returned to a user. In composition, these are the internal variables that connect the components, and in quotient, they are the variables external to the missing component. Computing contract operations requires eliminating irrelevant variables while preserving the information supplied by the formulas they appear in. Generally, this elimination cannot be performed by simply deleting the variables or treating them in isolation, because their admissible values are constrained by the rest of the interconnected specification. As pointed out in [20], computing operations on contracts reduces to solving two such context-aided variable elimination (CAVE) problems for the background theory that the assumptions and guarantees are expressed in.
-
CAVE by refinement: Given a formula , a context , and an irrelevant variable , find a -free formula satisfying . The exact logical solution is .
-
CAVE by relaxation: Given a formula , a context , and an irrelevant variable , find a -free consequence satisfying . The exact solution is .
These are not auxiliary operations; CAVE procedures are the primitives required to compute user-interpretable contract operations by eliminating variables inside the desired interface. Figure 1 illustrates the contract-algebraic workflow.
2.4 GR(1) Specifications as Contracts
We model GR(1) specifications using assume-guarantee contracts. In general, a contract may contain multiple assumptions and guarantees. Since these are interpreted conjunctively, they can be collected without loss of generality into and . To match the structure of GR(1) specifications, we consider assumptions and guarantees with forms and , where , , and , and similarly , , and . Thus, a GR(1) specification can be translated directly into a contract . The sub-formulas , , , , , and are the corresponding initial, invariant, and liveness bounded-next cores.
The preceding notions provide the logical and contract-theoretic ingredients needed for our formulation. Our objective henceforth is to derive CAVE procedures for bounded-next GR(1) formulas, so that the contract-operation algorithms can be instantiated for these GR(1) contracts. These procedures are introduced in Section 4. Next, we set up an example that we will use to illustrate our procedures throughout the rest of the work.
2.5 Running Example: Automated Emergency-Braking
We use an automated emergency-braking (AEB) scenario as a running example, adapted from the vehicle-in-the-loop automated-driving case study of Zhang et al. [40], which combines an adaptive-cruise controller with a safety filter that modifies the commanded longitudinal velocity according to traffic conditions. We encode it as a bounded-next GR(1) abstraction with a safety supervisor , a vehicle-response component , and a distance-to-obstacle prediction component that we add. The goal is to guarantee a clearance between the vehicle and a detected obstacle at every time step, and the contract operations must derive what this requires of the components and of the environment.
Here, is the measured obstacle distance, the longitudinal command produced by the supervisor, the vehicle speed, and the
Y. Narter et al.

Fig. 2: Running AEB example, adapted from the automated-driving architecture of Zhang et al. [40] and augmented with our predicted-clearance component . Composition eliminates along the three-component chain, leaving z externally visible.
predicted clearance. The Booleans URG and WRN denote urgent and warning traffic conditions, and the supervisor has three Boolean modes, MOV (moving), DCL (decelerating), and STP (stopped). The architecture is shown in Figure 2.
Table 1 summarizes , , and . The supervisor assumes an environment that starts in the clear region ( ), whose conditions follow the obstacle distance (URG for , WRN for , neither beyond), and that returns infinitely often to the clear condition , which strengthens the separate recurrence of and assumed by Zhang et al. [40], since the latter allows URG and WRN to alternate forever and prevent motion. It guarantees exactly one active mode (OneHot(MOV, DCL, STP)), starts moving with command , commands stopping under URG, deceleration under WRN unless already stopped and motion otherwise, constrains by the obstacle distance and the commanded mode, and guarantees motion infinitely often.
The vehicle assumes commands that are admissible for the commanded mode and motion commanded infinitely often, which the supervisor liveness guarantee provides. It guarantees nonnegative speed and a tracking error of around the commanded value at the next step, with no liveness guarantee. Zhang et al. [40] supply the 10 m and 15 m hazard thresholds; the remaining values are illustrative, with m/s, s, m, and m/s. The contract (Table 1) predicts the clearance under constant speed over the one-second horizon, , and carries no recurrent state.
For quotient, we use a safety target with inputs and output . Its assumptions extend those of with and with whenever neither condition is active, namely , , and . Its guarantees are , , a one-step safety bound, and , which synchronizes for-
Table 1: GR(1) contracts , , and for the AEB running example.
| Safety supervisor | Vehicle response |
|---|---|
| Inputs: , URG, WRNOutputs: , MOV, DCL, STP | Inputs: , MOV, DCL, STPOutput: |
| Assumptions()( | Assumptions()( |
| Guarantees()( | Guarantees()( |
| Clearance prediction Inputs: Output: (( |
ward progress with recurring clear opportunities. Since the vehicle tracks the command within , these guarantees translate into the following sufficient conditions on : and . The quotient is the supervisor-side component that meets with the fixed vehicle. Composing and eliminates the internal interface , so has inputs and output . Composing it with additionally eliminates , yielding the same inputs and output . Section 5 computes both operations on this example with the CAVE procedures, where refinement CAVE generates external requirements and relaxation CAVE propagates externally visible guarantees.
3 Related Work
Quantification in Temporal Logic. Propositional quantification in modal and temporal logic has been studied from early foundations by Carnap [7] to the modern account of Fritz [17]. QPTL [38] extends LTL with quantification over atomic propositions, and Bolotov [6] develops a deductive verification method for QPTL. Automata-based treatments eliminate existentially quantified propositions, but
Y. Narter et al.
universal quantification requires complementing a Büchi automaton [37]. These works give semantics and decision procedures for quantified formulas, not GR(1) initial, invariant, and liveness results; CAVE instead eliminates irrelevant variables by refinement and relaxation to obtain quantifier-free GR(1) results. We compared CAVE for refinement with an exact automata-based pipeline built on Spot [12] (Appendix F.8). The two have complementary scaling, with Spot faster for few liveness conjuncts or many irrelevant variables and CAVE otherwise. CAVE returns a GR(1) formula with initial, invariant, and liveness parts, whereas the exact result is a Büchi automaton.
Contract Theories and Tools for Temporal Logic. Algebraic contract theories [5, 21] and hypercontracts [22] define refinement, composition, and quotient semantically, and Pacti [20] computes these operations for propositional and linear-arithmetic specifications. For temporal logic, OCRA [9] checks that the contracts of a decomposition refine the contract of their parent by generating temporal-logic proof obligations, and its tightening extension [8] searches for weaker parent assumptions and subcomponent guarantees by parameter synthesis. AGREE [10] uses assume-guarantee reasoning to compositionally verify architectural models against component contracts, CHASE [29] formalizes requirements in a pattern-based language to check them for inconsistencies, and CROME [27] states the composition and conjunction of LTL goal contracts syntactically with logical connectives, passing the resulting formulas to a model checker. These tools verify or tune refinements supplied by the designer, or state contract operations syntactically; to our knowledge, none eliminates irrelevant variables when computing the contract of an interconnection or of a missing component for temporal contracts.
GR(1) Specifications: Decomposition, Hiding, and Synthesis. Filippidis and Murray [15, 16] use BDD-based quantification to hide variables while decomposing system-level GR(1) specifications into realizable component contracts; in contrast, our component contracts are given, and elimination is induced by composition and quotient. Graebener et al. [19] apply strong-merge to GR(1) unit-test contracts, which, unlike composition and quotient, does not require CAVE. Zhang et al. [40] synthesize an automated-driving safety filter, from which our AEB example is adapted, and Katis et al. [23] synthesize implementations from assume-guarantee contracts; we treat GR(1) specifications as assume-guarantee contracts [30] and compute contract operations while remaining within GR(1).
Temporal-Logic Contracts for Compositional Control. Kim et al. [24] use parametric LTL assume-guarantee contracts for compositional reasoning; Saoud et al. [35] and Sharf et al. [36] develop assume-guarantee contracts for compositional reasoning about continuous-time and discrete-time dynamical systems, respectively. Related STL approaches coordinate multi-agent controllers through local contracts [25] and synthesize compatible local contracts for decentralized control [18]. These methods target verification or controller synthesis for dynami-cal systems, not the computation of contract operations such as composition and quotient on temporal specifications.
4 GR(1) Context-Aided Variable Elimination
It has been shown that computing the algebraic operations of contracts requires solving two QE problems [20], introduced in Section 2.3. We now fix their notation for GR(1). Suppose that a formula , called the target, contains irrelevant variables that must be eliminated, and that we may use a predicate , called the context, which collects the surrounding contract conditions that constrain these variables. The relevant variables remain in the result. In the notation of Section 2.3, plays the role of , and the role of and . Each variable is typed; some may be Boolean propositions, and others may range over a background theory such as linear real arithmetic. A formula is -free if it is semantically independent of every variable in , so the result of an elimination is a formula over . The two problems ask for a -free formula with (refinement), and for a -free formula with (relaxation). Their exact solutions are for refinement and for relaxation. We call and the universal and existential elimination of from , where is the weakest -free formula that implies , and is the strongest -free formula implied by .
In the GR(1) setting, the context and the target have the form and . Exact temporal QE need not preserve the GR(1) form. For example, . Indeed, if eventually holds forever, every recurrent valuation of eventually overlaps infinitely often. Conversely, if fails, then occurs infinitely often; choosing makes true while is false. Thus exact elimination may produce a formula outside GR(1), motivating sound algorithms guaranteed to remain within GR(1).
4.1 Bounded-Next CAVE
Recall from Section 2.2 that a bounded-next core is a sub-formula built from Boolean connectives and typed predicates using a finite number of 's and no other temporal operator. For such a core , its next-depth is the maximum number of operators on the path from the root of to any occurrence of a variable. When contains no , . We flatten a bounded-next core by substituting with a fresh variable of the same sort as for each and with a fresh variable for each . The resulting formula contains a finite number of variables and is denoted by .
We assume cores are bounded-next. For a finite set of cores involved in a variable elimination problem, define and , where is the invariant core of the context , and let be the conjunction of the shifted
Y. Narter et al.
invariants (the invariant core shifted by steps) at the positions read by the cores in , which we call the shifted invariant context. Since contains , the core holds at every time position, so each holds at every position as well (Lemma 5). These instances are therefore consequences of the context, and assuming them while eliminating is sound. We call the indexed positions the finite window of the elimination problem. It contains all time positions needed to evaluate these cores together with the shifted invariant context. Consequently, after flattening, these formulas can be represented over and . Throughout, and in a finite-window elimination denote quantification over all copies associated with that window. We use to denote the propositional formula obtained by flattening . We show that evaluating these temporal cores over the finite window is equivalent to evaluating their flattened finite-variable representations.
Lemma 1 (Flattening Preserves Semantics). Let be a bounded-next core with . Then, for every trace and time , if and only if , where assigns each indexed variable the typed value , for every and .
Proof. By structural induction on . The atomic and Boolean cases are immediate. For , the semantics of give if and only if . By the induction hypothesis, this holds if and only if . Relative to time , each in this valuation corresponds to , exactly as prescribed by flattening . Hence, , completing the induction.
Hence, flattening cores preserves semantics over the finite-window. The restriction to bounded-next formulas reduces each CAVE problem to QE over a finite SMT formula. Constructions with unbounded next-depth, such as infinite conjunctions of progressively longer time windows, do not admit this finite representation and generally require automata- or fixed-point-based reasoning.
Our procedures treat the cores within each conjunct of the GR(1) formula separately; namely, the initial core, the invariant core, and each of the liveness cores. We call each core solved over its finite window of invariant instances a finite subproblem. A certificate for a subproblem is a -free core that solves it; the procedures then lift to a conjunct of the GR(1) result by adding the temporal operators shown in the first column of the tables below. Each subproblem may utilize only the cores of the context that hold at the time positions it addresses. The initial subproblem concerns time 0, where and the shifted invariant context hold; the invariant subproblem pertains to every time position, where only the shifted invariant context is guaranteed to hold; and a liveness subproblem concerns infinitely many positions, so it may additionally use one fixed liveness core from the context. We call a certificate admissible when it solves its subproblem in this way. Keeping the subproblems separate preserves the conjunctive GR(1) structure, and by Lemma 1, each one can be flattened into an equivalent finite-window problem. Results that depend on several subproblems at once, on preceding invariant instances, on combinations or time-varying choices of recurring liveness cores, or on unbounded next-depth need joint or unbounded temporal reasoning and are outside the class. The restriction therefore yields a uniform construction for arbitrary bounded-next GR(1) formulas; formula-specific constructions outside the class may yield stronger results.
Definition 4.1 (Admissible GR(1) CAVE Construction). A certificate is admissible for a finite subproblem if it is bounded-next, -free, and satisfies the obligation on the finite window listed below for its corresponding subproblem. The refinement obligations are
| lifted conjunct | finite window obligation |
|---|---|
The relaxation obligations are
| lifted conjunct | finite window obligation |
|---|---|
A complete admissible relaxation, in which each certificate is admissible for its own finite subproblem independently of the others, has the decomposed form . Dependencies between subproblems, multiple or time-varying refinement supports, preceding invariant time-windows, and unbounded next-depth are not admissible.
The finite-window restriction can exclude GR(1)-expressible consequences that require earlier invariant information. For example, for and , eliminating gives the exact refinement , whereas the admissible invariant subproblem yields because its finite window does not include the preceding invariant instance. Such dependencies require a broader elimination construction.
4.2 GR(1)-Compatible Refinement and Relaxation
Refinement. Algorithm 1 constructs the refinement bound by solving the initial, invariant, and liveness subproblems of Definition 4.1. For every liveness target it builds one candidate per branch: the synthetic branch (index 0) and one support branch for each context-liveness core .
The synthetic branch eliminates using the invariant context alone, assuming no context-liveness core (hence synthetic: ); its certificate (Definition 4.1) is
Y. Narter et al.
Algorithm 1 GR(1) Refinement CAVE
Input: context , target , eliminated variables
Output: -free GR(1) refinement
1: ;
2: ;
3: for do
4:
5: ;
6:
7: return
8: procedure SELECTSUPPORT(, , )
9: ;
10:
11: for do
12:
13: ;
14: valid core first, then non-false core, then fixed order
15: return
lifted as the recurrence condition . A support branch additionally assumes and is lifted as , because two independent recurrence conditions need not synchronize. If is -free, we need not retain directly. Since , we have , so the synthetic branch, when selected, is at least as weak as direct retention. After constructing every candidate, Select prefers one whose finite core is established valid by the SMT solver, then one not established unsatisfiable, and otherwise the first in a fixed synthetic-first order (support syntax depth, then SMT-LIB core). It keeps the chosen candidate's temporal operator ( for the synthetic branch, for a support branch). Every candidate is individually sound (Lemmas 11 and 12), so Select affects only the strength of the result; no optimality is claimed across branches with different temporal operators ( versus ). Appendices D and E give the proofs.
Illustrative example: refinement. Let be irrelevant and relevant, with context , which forces at each falling edge of and allows it only after , and target . Over the window , the invariant and liveness subproblems evaluate to and , so refinement CAVE returns , which is exact, since the worst case is a legal trace. Without , the elimination would be .
Relaxation. Algorithm 2 constructs the relaxation bound by treating the initial, invariant, and liveness subproblems separately. Initial and invariant elimination use the corresponding finite windows directly, while the liveness subroutine
Algorithm 2 GR(1) Relaxation CAVE
Input: context , target , eliminated variables
Output: -free GR(1) relaxation
1: ; .
2: ; .
3:
4:
5: return
6: procedure SELECTLIVENESS()
7:
8: for do
9: ;
10: .
11: if then
12:
13: for do
14: ;
15: .
16: if then
17:
18: ; remove logically equivalent candidates from
19: for all do
20: for all do
21: if SMT_UNSAT() and SMT_SAT() then
22:
23: break
24: return
derives consequences over the remaining relevant variables from the context and target liveness cores, removing redundant ones. For liveness relaxation, every context and target liveness core can independently yield a consequence over the remaining relevant variables. The subroutine collects these consequences in , discards those equivalent to , retains one representative of each logical-equivalence class, and removes any core strictly implied by another core . Since implies , these reductions preserve the conjunction of liveness requirements exactly.
The invariant condition is sound but need not be exact, since the admissible construction performs elimination on a finite invariant window rather than unrestricted infinite-trace elimination. We therefore retain this finite GR(1) construction. Each existential elimination is the strongest -free consequence of its fixed finite subproblem, and SELECTLIVENESS preserves the conjunction of the liveness requirements obtained by elimination exactly. The resulting complete relaxation is strongest within the decomposed finite-subproblem class of Definition 4.1; the proofs are in Appendices D and E.
Y. Narter et al.
Illustrative example: relaxation. For the same and , the window subproblems evaluate to and , so relaxation CAVE returns , again exact, since the best case is a legal trace meeting whenever the result holds.
Complexity. Let , , and be the CAVE-window depth. Flattening produces indexed variables, with formula size linear in the invariant copies before simplification. The dominant operation is finite propositional/SMT QE. For each refinement liveness target, Algorithm 1 performs one QE call for the synthetic branch and for the support branches. Relaxation performs one QE call for each context and target liveness core, followed by at most quadratic finite SMT implication checks in SELECTLIVENESS. Thus CAVE avoids general temporal QE by exploiting bounded-next GR(1) structure, while its symbolic cost depends strongly on the modulo theory and representation. Appendix F reports measurements on synthetic families, including a comparison baseline that unrolls the specifications over a finite horizon and ignores liveness (Appendix F.5), chains of compositions (Appendix F.7), and ablations (Appendix F.9). The cost is governed by (Appendix F.4). On the Boolean substitution family (Appendix F.3), refinement grows from 0.06s to 27s when goes from 2 to 6 at , and exceeds 600s, whereas on linear real arithmetic the runtime stays below 0.8s for . The runtime grows linearly with the number of liveness cores (for refinement from 0.03s to 0.22s when goes from 1 to 8). These are observations over the tested ranges, not asymptotic bounds.
Empirical comparisons. We compared the refinement construction with exact elimination through Büchi automata computed with Spot [12], by translating , existentially eliminating the irrelevant variables, and complementing, on a Boolean family designed to stress complementation. Spot [12] is faster on small instances, but its cost grows steeply with the number of liveness conjuncts, as expected from complementation. Spot needs 0.003s with one target liveness conjunct, 1.1s with four, 62s with five, and exceeds 300s with six, whereas CAVE needs between 0.05 and 0.36s for one to eight. On the number of eliminated variables, the order reverses (7.8s for Spot against 137s for CAVE, on seven variables). The automaton is exact, whereas the CAVE result was sound but not necessarily equivalent (Appendix F.8). Against an explicit-state oracle on bounded-lasso words (8000 random instances per direction), no unsound result was found in 16000 classifications, and the refinement and relaxation results were exact on 35.3% and 78.6% respectively on nontrivial problems (where result and exact answer are not the same constant) (Appendix F.6).
4.3 Soundness and Optimality
We now show that the constructions above are sound solutions to the CAVE by refinement and relaxation problems.
Theorem 1 (Soundness of GR(1) CAVE). Let and be the -free GR(1) formulas returned by Algorithms 1 and 2 for context , target , and eliminated variables . Then
Proof sketch. Exact finite-window flattening and universal elimination establish the refinement INIT/INV obligations. For LIV, recurrence of the synthetic core after elimination is sufficient under the invariant context, while a genuine recurring support uses a persistent implication after elimination so that both hold at the same support positions. Existential elimination gives the relaxation consequences, and SELECTLIVENESS removes only terms redundant in their recurrent conjunction. Appendix D gives the trace-level proofs.
Next, we compare CAVE with all admissible solutions of the finite subproblems.
Definition 4.2 (Finite-Subproblem Optimality). Within a fixed admissible refinement subproblem or certificate branch as in Definition 4.1, is weakest iff for every admissible certificate . Similarly, within a fixed admissible relaxation subproblem as in Definition 4.1, is strongest iff for every admissible consequence . These orders are subproblem or branch specific and do not imply complete-refinement optimality.
Theorem 2 (Finite-Subproblem Optimality of CAVE). Under Definition 4.2, for refinement, and are weakest in their corresponding finite subproblems; for each liveness target , and, for every fixed , are weakest in their respective admissible branches.
For relaxation, , , for every , and for every are strongest in their respective finite subproblems. Moreover, the complete relaxation is strongest within the decomposed finite-subproblem class of Definition 4.1.
Proof sketch. Flattening converts admissible temporal subproblem conditions to finite indexed implications. Universal elimination then gives the weakest -free sufficient refinement conditions; existential elimination dually gives the strongest -free relaxation consequences. SELECTLIVENESS preserves the recurrent conjunction, so strongest relaxation consequences compose across the subproblems. Refinement branch choices need not compose optimally. See Appendix E.
The theorem concerns the admissible finite GR(1) constructions of Definition 4.1. Admissibility is a logical condition on a certificate, namely sufficiency for its window obligation, and is stated without reference to Algorithm 1; the theorem therefore says that CAVE loses nothing relative to any certificate satisfying it, and not merely relative to its own output. The admissible class is not an arbitrary restriction. It is what the GR(1) decomposition prescribes, independently of any algorithm, namely solving each initial, invariant, and liveness obligation separately at the position where it is checked, under the invariant context from that position onward. Within each such subproblem the finite-window
Y. Narter et al.
representation is exact (Lemma 1), so CAVE returns the weakest refinement and strongest relaxation attainable for that subproblem. Any conservatism therefore comes from what the class deliberately leaves out, that is, dependencies between distinct obligations, as in the example following Definition 4.1, and consistency conditions of unbounded depth. For example, over real-valued , every finite shifted-window conjunction formed from is satisfiable, whereas is unsatisfiable, so an unrestricted exact invariant relaxation may require increasingly deep consistency conditions.
5 GR(1) Contract Operations in Pacti
We instantiate the contract algebra of Section 2.3 for GR(1)-modulo theory using the existing Pacti contract operation algorithms [20]. The contract algebra itself is unchanged; the refinement and relaxation CAVE procedures of Algorithms 1 and 2 provide the GR(1)-specific variable-elimination primitives that composition, quotient, and related operations require. As in [20], the resulting GR(1) composition is a sound relaxation of the exact algebraic composition, while the quotient is a refinement of the exact quotient; merging is exact after lifting to a compatible union interface. The algorithmic realizations of these operations and their soundness results are given in Appendix A.
Internally, contracts maintain separate INIT, INV, and LIV assumptions and guarantees. Operations construct the corresponding assume–guarantee expressions and invoke CAVE, using finite-window flattening and symbolic QE, whenever irrelevant variables must be eliminated; the generated GR(1) contracts are retained for all subsequent operations.
The implementation also provides a sound refinement verifier for bounded-next GR(1) contracts (Appendix A.2). It checks the structured INIT, INV, and LIV obligations using direct implications and finite certificates formed from shifted source invariants, independently of the finite CAVE windows used to construct operation results; an exact procedure would instead require a separate infinite-trace temporal reasoning backend, beyond the finite SMT-based CAVE framework considered here. By Proposition 1 in Appendix A.2, every successful check establishes semantic contract refinement, whereas failure means only that the implemented procedure did not establish refinement.
5.1 Running Example: Composition and Quotient
We apply the GR(1) contract operations to the AEB architecture of Section 2.5. Composition returns a sound relaxation of the exact composition, and quotient a sound refinement of the exact quotient. We compute and then , which together eliminate and leave inputs and output . Separately, we compute , with inputs and outputs , resulting in what a supervisor component must satisfy to meet when composed with the vehicle.
Table 2: Equivalent compact forms of the computed AEB contracts.
| Composition | Quotient |
|---|---|
| Inputs: , URG, WRNOutput: | Inputs: , URG, WRNOutputs: , MOV, DCL, STP |
| Assumptions | Assumptions |
| Guarantees | Guarantees |
Let clear := ¬(URG ∨ WRN) and abbreviate the environmental invariant core by . Table 2 shows the contracts generated by Pacti, in compact forms verified equivalent to the generated contracts by mutual refinement. For readability, both initial assumptions state and the composition's initial guarantee shows the full predicted-clearance interval.
Composition exposes a compatibility requirement that neither component states. The condition clear is introduced by and reused in . It is the weakest condition under which every clear-mode supervisor command meets the vehicle requirement: for , the supervisor may issue commands below 2, violating . Composing with preserves these assumptions and exposes the one-step predicted residual clearance through . For , the computed relaxed composition yields region-wise bounds on this clearance in every environment mode, namely , , and . These bounds describe the computed relaxation, not exact physical dynamics (Figure 3(a)).
The quotient generates concrete requirements for the missing supervisor (Figure 3(b)). It retains the vehicle's command-admissibility requirements and adds one-step safety and recurrent progress in clear conditions: and . For the chosen parameters, these become and . The command bound leaves room for the vehicle's tracking error while meeting the target's braking-distance bound, and the progress condition ensures forward motion whenever the environment clears. Because the quotient retains , the eliminations simplify exactly to these forms. The requirement stays separate, since the two recurrence conditions need
Y. Narter et al.

(a)
(b)
Fig. 3: Region-wise view of the computed AEB contracts over the obstacle distance (hatched: excluded by the computed assumption; gray: , outside ). (a) Relaxed composition : bounds on the clearance per mode, above the safety bound for . (b) Quotient : admissible commands and recurrent progress when clear.
not hold at the same positions. The restriction is the safety-feasibility condition already included in , not generated by quotient. Pacti verifies both , so the existing supervisor already meets the computed requirements over the operating domain, and , where . Hence, any supervisor refining meets the target when composed with the vehicle.
Finally, the refinement checker establishes : under the target assumptions, the supervisor and vehicle together satisfy the target's safety bound and recurrent progress. relaxes the exact composition, so the latter also refines . The recurring support comes from the target assumption ; combined with the actual invariant context, whose clear-region consequences include and , it yields . The certificate succeeds at horizon . Support alone fails, invariants alone do not establish recurring clear positions, but their combination succeeds by exercising the invariant-assisted recurrence branch of Algorithm 3 in Appendix A.2. All results are computed automatically in Pacti. Computing and takes a median of 0.93 s over 10 runs, of which 0.48 s is spent in CAVE. Detailed run-time results are reported in Appendix F.10.
6 Conclusion and Future Work
We developed a bounded-next GR(1) assume-guarantee contract framework with sound refinement and relaxation CAVE procedures and weakest/strongest finite-subproblem guarantees within the admissible class. Their Pacti implementation supports composition, quotient, merging, and refinement analysis through finite symbolic computation; the AEB study illustrates the resulting system-level requirements and compatibility conditions. Experiments indicate that the cost grows steeply with the number of eliminated variables but only linearly with the number of liveness conjuncts. Future work includes more complete temporal refinement verification, less conservative CAVE branch selection, extensions beyond bounded-next GR(1), and evaluation on larger compositional systems.
Data Availability Statement. The implementation, examples, verification tests, benchmark and comparison scripts, plotting scripts, and the raw per-run measurements behind the experiments of Appendix F will be made publicly available in an archived artifact with a persistent identifier upon acceptance. The link is withheld for double-blind review. The raw data record the source revision, the package versions, and the digests of the benchmark scripts.
References
-
Alur, R., Moarref, S., Topcu, U.: Compositional synthesis of reactive controllers for multi-agent systems. In: Chaudhuri, S., Farzan, A. (eds.) Computer Aided Verification (CAV 2016). Lecture Notes in Computer Science, vol. 9780, pp. 251–269. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-41540-6_14
-
Annpureddy, Y., Liu, C., Fainekos, G., Sankaranarayanan, S.: S-TaLiRo: A tool for temporal logic falsification for hybrid systems. In: Abdulla, P.A., Leino, K.R.M. (eds.) Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2011). Lecture Notes in Computer Science, vol. 6605, pp. 254–257. Springer, Berlin, Heidelberg (2011). https://doi.org/10.1007/978-3-642-19835-9_21
-
Armoni, R., Fix, L., Flaisher, A., Gerth, R., Ginsburg, B., Kanza, T., Landver, A., Mador-Haim, S., Singerman, E., Tiemeyer, A., Vardi, M.Y., Zbar, Y.: The ForSpec temporal logic: A new temporal property-specification language. In: Katoen, J.P., Stevens, P. (eds.) Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2002). Lecture Notes in Computer Science, vol. 2280, pp. 296–311. Springer, Berlin, Heidelberg (2002). https://doi.org/10.1007/3-540-46002-0_21
-
Becchi, A., Cimatti, A.: Abstraction modulo stability. Formal Methods in System Design 66, 134–169 (2025). https://doi.org/10.1007/s10703-024-00461-2
-
Benveniste, A., Caillaud, B., Ferrari, A., Mangeruca, L., Passerone, R., Sofronis, C.: Multiple viewpoint contract-based specification and design. In: Formal Methods for Components and Objects (FMCO 2007). Lecture Notes in Computer Science, vol. 5382, pp. 200–225. Springer (2008). https://doi.org/10.1007/978-3-540-92188-2_9
-
Bolotov, A.: Handling periodic properties: Deductive verification for quantified temporal logic specifications. In: 2011 Fifth International Conference on Secure Software Integration and Reliability Improvement – Companion. pp. 179–186 (2011). https://doi.org/10.1109/SSIRI-C.2011.41
-
Carnap, R.: Modalities and quantification. Journal of Symbolic Logic 11(2), 33–64 (1946). https://doi.org/10.2307/2268610
-
Cimatti, A., Demasi, R., Tonetta, S.: Tightening the contract refinements of a system architecture. Formal Methods in System Design 52(1), 88–116 (2018). https://doi.org/10.1007/s10703-017-0312-9
-
Cimatti, A., Dorigatti, M., Tonetta, S.: OCRA: A tool for checking the refinement of temporal contracts. In: 2013 28th IEEE/ACM International Conference on Automated Software Engineering (ASE). pp. 702–705 (2013). https://doi.org/10.1109/ASE.2013.6693137
-
Cofer, D., Gacek, A., Miller, S., Whalen, M.W., LaValley, B., Sha, L.: Compositional verification of architectural models. In: Goodloe, A.E., Person, S. (eds.) NASA Formal Methods (NFM 2012). Lecture Notes in Computer Science,
Y. Narter et al.
vol. 7226, pp. 126–140. Springer, Berlin, Heidelberg (2012). https://doi.org/10.1007/978-3-642-28891-3_13
-
Cybersecurity and Infrastructure Security Agency, Defense Advanced Research Projects Agency, Office of the Under Secretary of Defense for Research and Engineering, National Security Agency: Closing the software understanding gap. Cybersecurity Information Sheet (Jan 2025), https://media.defense.gov/2025/Jan/16/2003629074/-1/-1/0/Joint-Guide-Closing-the-Software-Understanding-Gap.PDF
-
Duret-Lutz, A., Renault, E., Colange, M., Renkin, F., Gbaguidi Aisse, A., Schlehuber-Caissier, P., Medioni, T., Martin, A., Dubois, J., Gillard, C., Lauko, H.: From Spot 2.0 to Spot 2.10: What's new? In: Shoham, S., Vizel, Y. (eds.) Computer Aided Verification (CAV 2022). Lecture Notes in Computer Science, vol. 13372, pp. 174–187. Springer, Cham (2022). https://doi.org/10.1007/978-3-031-13188-2_9
-
Ehlers, R., Khalimov, A.: Fully generalized reactivity (1) synthesis. In: Finkbeiner, B., Kovács, L. (eds.) Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2024). Lecture Notes in Computer Science, vol. 14570, pp. 83–102. Springer (2024). https://doi.org/10.1007/978-3-031-57246-3_6
-
Ehlers, R., Raman, V.: Slugs: Extensible GR(1) synthesis. In: Chaudhuri, S., Farzan, A. (eds.) Computer Aided Verification (CAV 2016). Lecture Notes in Computer Science, vol. 9780, pp. 333–339. Springer, Cham (2016). https://doi.org/10.1007/978-3-319-41540-6_18
-
Filippidis, I., Murray, R.M.: Hiding variables when decomposing specifications into GR(1) contracts. Discussion paper, submitted to the 56th IEEE Conference on Decision and Control (Dec 2017)
-
Filippidis, I., Murray, R.M.: Layering assume-guarantee contracts for hierarchical system design. Proceedings of the IEEE 106(9), 1616–1654 (2018). https://doi.org/10.1109/JPROC.2018.2834926
-
Fritz, P.: Propositional Quantifiers. Elements in Philosophy and Logic, Cambridge University Press, Cambridge (2024). https://doi.org/10.1017/9781009177740
-
Ghasemi, K., Sadraddini, S., Belta, C.: Decentralized signal temporal logic control for perturbed interconnected systems via assume-guarantee contract optimization. In: 2022 IEEE 61st Conference on Decision and Control (CDC). pp. 5226–5231 (2022). https://doi.org/10.1109/CDC51059.2022.9992326
-
Graebener, J.B., Badithela, A., Murray, R.M.: Towards better test coverage: Merging unit tests for autonomous systems. In: Deshmukh, J.V., Havelund, K., Perez, I. (eds.) NASA Formal Methods (NFM 2022). Lecture Notes in Computer Science, vol. 13260, pp. 133–155. Springer (2022). https://doi.org/10.1007/978-3-031-06773-0_7
-
Incer, I., Badithela, A., Graebener, J., Mallozzi, P., Pandey, A., Rouquette, N., Yu, S.J., Benveniste, A., Caillaud, B., Murray, R.M., Sangiovanni-Vincentelli, A., Seshia, S.A.: Pacti: Assume-guarantee contracts for efficient compositional analysis and design. ACM Transactions on Cyber-Physical Systems 9(1), 1–35 (2025). https://doi.org/10.1145/3704736
-
Incer, I., Benveniste, A., Sangiovanni-Vincentelli, A.: Some algebraic aspects of assume-guarantee reasoning. In: Fränzle, M., Niehaus, J., Westphal, B. (eds.) Engineering Safe and Trustworthy Cyber Physical Systems, Lecture Notes in Computer Science, vol. 15471, pp. 9–35. Springer (2026). https://doi.org/10.1007/978-3-031-97537-0_2
-
Incer, I., Benveniste, A., Sangiovanni-Vincentelli, A., Seshia, S.A.: Hypercontracts. Formal Methods in System Design 66(3), 455–497 (2025). https://doi.org/10.1007/s10703-025-00473-6
-
Katis, A., Fedyukovich, G., Guo, H., Gacek, A., Backes, J., Gurfinkel, A., Whalen, M.W.: Validity-guided synthesis of reactive systems from assume-guarantee contracts. In: Beyer, D., Huisman, M. (eds.) Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2018). Lecture Notes in Computer Science, vol. 10806, pp. 176–193. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-89963-3_10
-
Kim, E.S., Arcak, M., Seshia, S.A.: A small gain theorem for parametric assume-guarantee contracts. In: Proceedings of the 20th International Conference on Hybrid Systems: Computation and Control. pp. 207–216. Association for Computing Machinery, New York, NY, USA (2017). https://doi.org/10.1145/3049797.3049805
-
Liu, S., Saoud, A., Dimarogonas, D.V.: Controller synthesis of collaborative signal temporal logic tasks for multiagent systems via assume-guarantee contracts. IEEE Transactions on Automatic Control 70(9), 5894–5909 (2025). https://doi.org/10.1109/TAC.2025.3549288
-
Majumdar, R., Piterman, N., Schmuck, A.K.: Environmentally-friendly GR(1) synthesis. In: Tools and Algorithms for the Construction and Analysis of Systems (TACAS 2019). Lecture Notes in Computer Science, vol. 11428, pp. 229–246. Springer (2019). https://doi.org/10.1007/978-3-030-17465-1_13
-
Mallozzi, P., Nuzzo, P., Pelliccione, P., Schneider, G.: CROME: Contract-based robotic mission specification. In: 2020 18th ACM-IEEE International Conference on Formal Methods and Models for System Design (MEMOCODE). pp. 1–11 (2020). https://doi.org/10.1109/MEMOCODE51338.2020.9315065
-
Maoz, S., Ringert, J.O.: GR(1) synthesis for LTL specification patterns. In: Proceedings of the 2015 10th Joint Meeting on Foundations of Software Engineering. pp. 96–106. ACM (2015). https://doi.org/10.1145/2786805.2786824
-
Nuzzo, P., Lora, M., Feldman, Y.A., Sangiovanni-Vincentelli, A.L.: CHASE: Contract-based requirement engineering for cyber-physical system design. In: 2018 Design, Automation & Test in Europe Conference & Exhibition (DATE). pp. 839–844. IEEE (2018). https://doi.org/10.23919/DATE.2018.8342122
-
Nuzzo, P., Xu, H., Ozay, N., Finn, J.B., Sangiovanni-Vincentelli, A.L., Murray, R.M., Donzé, A., Seshia, S.A.: A contract-based methodology for aircraft electric power system design. IEEE Access 2, 1–25 (2014). https://doi.org/10.1109/ACCESS.2013.2295764
-
Piterman, N., Pnueli, A., Sa'ar, Y.: Synthesis of reactive(1) designs. In: Verification, Model Checking, and Abstract Interpretation (VMCAI). Lecture Notes in Computer Science, vol. 3855, pp. 364–380. Springer (2006). https://doi.org/10.1007/11609773_24
-
Pnueli, A.: The temporal logic of programs. In: IEEE Symposium on Foundations of Computer Science (FOCS). pp. 46–57 (1977). https://doi.org/10.1109/SFCS.1977.32
-
Rouquette, N., Pinto, A., Incer, I.: Early design exploration of aerospace systems using assume-guarantee contracts. Journal of Aerospace Information Systems 23(9), 820–835 (2026). https://doi.org/10.2514/1.I011529
-
Sangiovanni-Vincentelli, A., Damm, W., Passerone, R.: Taming Dr. Frankenstein: Contract-based design for cyber-physical systems. European Journal of Control 18(3), 217–238 (2012). https://doi.org/10.3166/ejc.18.217-238
Y. Narter et al.
-
Saoud, A., Girard, A., Fribourg, L.: Assume-guarantee contracts for continuous-time systems. Automatica 134, 109910 (2021). https://doi.org/10.1016/j.automatica.2021.109910
-
Sharf, M., Besselink, B., Molin, A., Zhao, Q., Johansson, K.H.: Assume/guarantee contracts for dynamical systems: Theory and computational tools. IFAC-PapersOnLine 54(5), 25–30 (2021). https://doi.org/10.1016/j.ifacol.2021.08.469
-
Sistla, A.P., Vardi, M.Y., Wolper, P.: The complementation problem for Büchi automata with applications to temporal logic. Theoretical Computer Science 49(2–3), 217–237 (1987). https://doi.org/10.1016/0304-3975(87)90008-9
-
Sistla, A.P.: Theoretical Issues in the Design and Verification of Distributed Systems. Ph.D. thesis, Harvard University (1983)
-
Wolper, P.: Temporal logic can be more expressive. Information and Control 56(1), 72–99 (1983). https://doi.org/10.1016/S0019-9958(83)80051-5
-
Zhang, Z., Badakis, G., Galanis, M., Bavarshi, A., van Hassel, E., Alirezaei, M., Haesaert, S.: A vehicle-in-the-loop simulator with AI-powered digital twins for testing automated driving controllers. arXiv preprint arXiv:2507.02313 (2025). https://doi.org/10.48550/arXiv.2507.02313
Appendices
A GR(1) Contract-Operation Algorithms
This appendix gives the GR(1) realizations of the contract-operation algorithms implemented in Pacti [20]. The underlying assume-guarantee algebra is the one introduced in Section 2.3; CAVE eliminates the irrelevant variables of an interconnection while retaining a bounded-next GR(1) representation.
Throughout this appendix, let
denote GR(1) contracts, where I and O are the input and output interfaces and A and G are the assumptions and guarantees, respectively. Although we write A and G as complete formulas below, the implementation represents each of them through separate INIT, INV, and LIV buckets.
A.1 CAVE primitives
We first recall the semantic properties of the two CAVE primitives used by the contract operations. Let be a GR(1) context, a GR(1) target, and the variables to eliminate. Algorithm 1 returns a -free GR(1) formula with ; since is -free, this is equivalent to (Theorem 3). Dually, Algorithm 2 returns a -free GR(1) formula with , equivalently (Theorem 4). Refinement CAVE thus yields a GR(1) strengthening of the exact universal elimination, and relaxation CAVE a GR(1) weakening of the exact existential elimination.
These implications, rather than equality with the quantified formulas, are the properties required below. Both procedures operate on the structured GR(1) representation: initial and invariant obligations are projected under the corresponding finite shifted invariant contexts, and liveness obligations are treated core by core. The calls in the algorithms below therefore denote the complete structured CAVE procedures, not monolithic LTL quantifier elimination.
A.2 GR(1) Refinement
For contracts and over the same interface, refinement is defined by
These are semantic infinite-trace implications. The implementation verifies them using a sound finite procedure over the structured bounded-next GR(1) representation.
Y. Narter et al.
Algorithm 3 GR(1) Contract Refinement Verification
Input: ,
Output: TRUE if is certified
1:
2:
3: return
4: function GR1IMPLIES(S, T)
5:
6:
7: if then
8: for do
9:
10: if IMPLIES( ) then
11:
12: break
13: if then
14: return FALSE
15: for all do
16:
17: for do
18:
19: if IMPLIES( ) then
20:
21: break
22: if then
23: return FALSE
24: for all do
25:
26: if then
27: for do
28:
29: if IMPLIES( ) or then
30:
31: break
32: if then
33: return FALSE
34: return TRUE
For a source term list, let and denote the conjunctions of its INIT and INV cores, respectively, and let denote its LIV cores. We write . For each target invariant core , the verifier searches for
For the target initial conjunction , it first checks and, if necessary, searches for
Finally, each target liveness core is discharged by one of three routes: a single source recurrence with , the shifted source invariant alone, or the shifted source invariant together with one recurring source liveness core,
The verifier searches , with in the experiments. Algorithm 3 summarizes the resulting structured verifier.
Here IMPLIES( ) returns TRUE only when the SMT solver establishes as unsatisfiable.
Proposition 1 (Soundness of GR(1) refinement verification). If Algorithm 3 returns TRUE, then
The converse need not hold.
Proof. Each successful structured check establishes the corresponding temporal implication. By Lemma 5, entails for every finite , so (2) establishes each target invariant and (3) the target initial condition. For liveness, gives by Lemma 2; (4) gives and hence ; and under (5), supplies at every position while supplies infinitely many positions at which the support holds, so holds at each of them. Hence a successful call GR1IMPLIES( ) establishes .
Algorithm 3 therefore establishes and , the latter implying . These are the two obligations in (1).
Proof-search limitations. The bound limits the finite certificates considered by the verifier; it is a proof-search bound, not a semantic horizon. Even when a finite certificate of the form (2) exists, the required h can be arbitrarily large relative to the -depth of the individual cores. Moreover, some valid infinite-trace implications admit no certificate of this finite-shift form for any h. Consequently, increasing can establish additional refinements, but a returned FALSE means only that refinement was not established by this procedure.
Exact refinement. A complete verifier would decide the temporal implications in (1) over infinite traces, rather than searching only for finite shifted-invariant certificates. Such a procedure would require a complete temporal reasoning backend capable of accounting for unbounded invariant propagation and general interactions between invariant and recurrence obligations. This is orthogonal to the finite SMT-based CAVE machinery developed here.
Y. Narter et al.
Algorithm 4 GR(1) Contract Composition
Input: GR(1) contracts ,
Output: GR(1) relaxation satisfying
Requires:
1:
2:
3:
4:
5: ;
▷ assumption-constrained inputs
6: Cycle
Requires:
7: if and then
8:
Requires:
9:
10: else if and then
11:
Requires:
12:
13: else
14:
15:
16:
17:
18:
19:
20: return REDUCEGR1((I^c, O^c, A^c, G^c))
A.3 GR(1) Composition
Ignoring interface elimination, the exact contract-algebra composition is
where
Algorithm 4 gives the GR(1) realization used by the implementation. For clarity, the algorithm shows the case in which all interconnection variables are irrelevant. The implementation additionally permits selected interconnection variables to be retained explicitly.
Here RELAXCOMP( ) invokes relaxation CAVE whenever elimination remains necessary. If the target and context are already -free, it retains the projected guarantee directly. The implementation also preserves the time-zero consequence of an invariant when needed by the structured INIT/INV representation. Any residual guarantee term containing a variable in is then discarded, further relaxing the result. The operation REDUCEGR1 denotes structure-preserving simplification and redundancy removal; it does not change the semantic direction established by CAVE.
As in the underlying Pacti composition algorithm [20], the composability condition permits bidirectional feedback unless an output of either contract feeds an input of the other that is constrained by its assumption. Specifically, and denote the respective assumption-constrained inputs, and Cycle indicates that the two contracts are connected in both directions. The second composability condition excludes precisely those bidirectional cycles for which or .
The following proposition records the relation between Algorithm 4 and the exact algebraic composition.
Proposition 2 (Soundness of GR(1) composition). Let be returned by Algorithm 4. Then
Thus the computed GR(1) composition is a relaxation of the exact algebraic composition.
Proof. Consider first the branch in which C supplies an input to . Refinement CAVE gives
Since , it follows that
Moreover, : if is false, then establishes ; if is true, (9) gives , so establishes . The symmetric branch is identical, while implies immediately in the remaining case. Hence
Under , the saturated exact guarantee simplifies to
Indeed, , and whenever holds, (9) gives .
The two relaxation calls satisfy
and therefore
The final relaxation step gives
Y. Narter et al.
Algorithm 5 GR(1) Contract Quotient
Input: Dividend GR(1) contract , divisor GR(1) contract
Output: GR(1) refinement satisfying
Requires:
1:
2:
3:
4:
5: if GR1IMPLIES(A, A') then
6:
7: else
8:
9:
10:
11:
Requires: contains no variable in
12: return REDUCEGR1((I^q, O^q, A^q, G^q))
Together with (11),
or equivalently
Combining this implication with (10) gives the claimed contract refinement.
The relaxation need not be an equivalence. In particular, separate structured eliminations may discard correlations that would be retained by unrestricted temporal quantifier elimination.
A.4 GR(1) Quotient
For a dividend C and divisor , the exact algebraic quotient is
with
The guarantee can equivalently be written as
This factorization motivates the two refinement-CAVE passes in Algorithm 5.
The implementation treats an unsuccessful intermediate refinement elimination conservatively: the pre-elimination target is retained, and a quotient is returned only if no eliminated variable remains in the final guarantee. This does not alter the implication directions used below.
Proposition 3 (Soundness of GR(1) quotient). Let Q be returned by Algorithm 5, and let denote the exact quotient. Then
Thus the computed GR(1) quotient is a refinement of the exact quotient.
Proof. First consider the guarantee. The first refinement-CAVE call gives
Hence
The second refinement call gives
Using (15), this implies
For the assumption, suppose first that the sound refinement checker establishes . Then
and relaxation CAVE yields
Thus the existential elimination of implies .
If is not established, the algorithm instead projects A under the trivial context. Since
we again obtain
Since and , we obtain and . These are precisely the two obligations for .
The refinement test used in the assumption branch is sound. Consequently, a positive result justifies the first branch, whereas failure to establish the implication merely selects the more conservative fallback. Completeness of the refinement checker is not required for Proposition 3.
Corollary 1 (Missing-component soundness). Let Q be returned by Algorithm 5. Then
where denotes the exact composition of the contract algebra.
Proof. By Proposition 3, . Since exact composition is monotone and the exact quotient satisfies ,
Thus the computed quotient is a sound missing-component specification, as in the post-processing principle of Pacti [20].
Y. Narter et al.
Algorithm 6 GR(1) Contract Merging
Input: GR(1) contracts ,
Output: Merged GR(1) contract
Requires: shared variable sorts agree
Requires:
1:
2:
3:
4:
5: return
A.5 GR(1) Merging
Merging requires no variable elimination. The implementation first lifts both contracts to the compatible union interface and then merges their structured GR(1) obligations.
Here MERGEBUCKETS conjoins the INIT and INV obligations and retains all liveness cores as separate recurrence obligations. In particular,
is retained as two liveness obligations and is not replaced by .
After lifting both contracts to the compatible union interface, Algorithm 6 is exact: it computes
No refinement or relaxation CAVE call is required.
B Setting for Proofs
We use the temporal semantics of Section 2, extended with quantification over typed variables. Let be a fixed set of variables, where each has domain (Boolean propositions are the case ). A trace assigns every a value at each time , and atomic predicates are evaluated under the background-theory interpretation. A temporal valuation of a variable is a function , and denotes the trace that agrees with on every variable other than and satisfies . Quantification ranges over temporal valuations:
and iff this holds for some .
C Auxiliary Lemmas
C.1 Temporal Facts
Lemma 2 (Propagation of Liveness under Invariant Implication). For any LTL formulas and ,
Proof. Let and fix . Some satisfies , and then gives . Since was arbitrary, .
Lemma 3 (One-way commutation of and ). For every temporal formula ,
Proof. Let , witnessed by a temporal valuation , so that for every . The same witnesses at each , hence .
Lemma 4 (Removal of Redundant Liveness Terms). If is valid, then , and consequently .
Proof. Validity of gives , so the implication follows from Lemma 2. The equivalence holds because implies the second conjunct, while the conjunction trivially implies .
C.2 Bounded-Next Elimination
Lemma 5 (Shifted Consequences of an Invariant). For any LTL formula and any ,
Proof. Assume and fix a time . For every we have , that is, . Hence for every .
Lemma 6 (Bounded-Next Invariant Guard). Let , , , and be as in Section 4.1. If , then for every time ,
Proof. By Lemma 5, holds at every time. Each conjunct with has next-depth , so Lemma 1 gives the claim.
Y. Narter et al.
Lemma 7 (Fixed vs. Time-Varying Support). For a fixed target liveness core , let , be as in Algorithm 1. Then
In contrast, the time-varying condition
does not, in general, imply □◇φi, nor □◇ ∨j(γliv,j ∧ ψi,j).
Proof. First claim: some fixed satisfies . Together with and , and with , Lemma 12 yields .
Second claim: let , , , , , for a Boolean variable . Then , that is, and . On the trace where holds exactly at even times, both hold and holds, yet fails, and for each .
Lemma 8 (Bounded-Next Existential Relaxation). Let , so that and as in Section 4.1, and define
Then
Proof. Let be a temporal valuation of such that satisfies , and let . Some has . By Lemma 6, , and by Lemma 1, . The -copies of this valuation therefore witness the existential quantifier in , and since agrees with on the copies of , we obtain . As was arbitrary, .
Lemma 9 (Optimality of Universal Elimination). Let be a propositional or SMT formula and define . Then
-
for every valuation of ;
-
for every -free formula with for all , we have . Hence is the weakest -free condition sufficient for uniformly over the eliminated variables.
Proof. Claim 1 is the semantics of . For Claim 2, suppose holds. By assumption holds for every valuation of , that is, , which is .
Lemma 10 (Optimality of Existential Elimination). Let be a propositional or SMT formula and define . Then
-
-
for every -free formula with , we have .
Hence is the strongest -free consequence of F.
Proof. For Claim 1, a valuation of satisfying witnesses . For Claim 2, suppose holds. Then some valuation of satisfies , and the assumed implication gives . Since is -free, this conclusion does not depend on the witness.
D Soundness Proofs
D.1 Soundness of Context-Aided Variable Elimination by Refinement
Recall and from Section 4; the exact objective is . Algorithm 1 returns
The initial and invariant implications follow exactly as in Lemmas 6 and 1: the shifted invariant supplies the finite window, and universal elimination makes the implication hold for every typed valuation of the eliminated indexed variables. The liveness targets are handled branch by branch: Lemmas 11 and 12 show that each candidate produced by SELECTSUPPORT is individually sound.
Lemma 11 (Synthetic liveness refinement). For and
Proof. Fix a time . Recurrence of gives at which it holds, and supplies at the same (Lemma 6). By exact flattening (Lemma 1), the actual typed values on this finite window form a valuation of the indexed variables. The universal elimination holds for every valuation of the eliminated indexed variables, hence for these actual values, and yields at . Since such a exists after every , holds.
Lemma 12 (Fixed-support liveness refinement). For , let and
Then
Y. Narter et al.
Proof. After every , recurrence supplies a time satisfying . The invariant supplies the shifted finite window at (Lemma 6), while supplies the projected implication at that same position. Exact flattening and universal elimination, over the typed domains of all eliminated indexed variables, therefore yield at , so recurs. In contrast, is insufficient in general, because the two recurrent formulas may hold at disjoint sets of positions. For instance, with , , , and , we have , and both and hold on a trace alternating while fails.
Theorem 3 (Soundness of Refinement). The formula returned by Algorithm 1 satisfies
Proof. The initial and invariant finite-window arguments establish their corresponding target obligations for every typed temporal valuation of . Lemma 11 handles every , and Lemma 12 handles every , because supplies the invariant and every genuine support recurrence. Each candidate is individually sound, so the argument uses only the soundness of the candidate that Select returns and does not depend on how it is chosen. Conjoining these obligations proves the claim.
D.2 Soundness of Context-Aided Variable Elimination by Relaxation
The exact relaxation objective is , and Algorithm 2 returns . We prove component by component, using the cores , and and the set of Algorithm 2.
Initial relaxation. A valuation of witnessing satisfies . By Lemmas 6 and 1, the indexed values it induces at time 0 satisfy the conjunction inside the existential quantifier of , so .
Invariant relaxation. Any valuation witnessing satisfies . At each time, Lemmas 6 and 1 show that the indexed values induced by that same valuation satisfy the formula inside the existential quantifier of , so . This is the one-sided direction of Lemma 3 at the level of finite windows; the converse equivalence is not asserted.
Liveness relaxation. Let be the projected liveness cores before reduction. A valuation witnessing satisfies together with for every and for every . Lemma 8, applied to each and each , gives .
Lemma 13 (Exactness of SELECTLIVENESS reduction). Let P be the projected liveness cores before reduction and the set returned by SELECTLIVENESS. Then
Proof. Removing a core equivalent to (as is valid) or a duplicate of an equivalent core is immediate. If is removed because , then by Lemma 4, so the conjunction is unchanged. Applying this argument to every removal proves the claim. The implication test is not complete for temporal redundancy: for example, although . This affects only simplification, not the equivalence of the returned conjunction.
By Lemma 13, the liveness consequence established above holds with in place of .
Theorem 4 (Soundness of Relaxation). The formula returned by the relaxation CAVE algorithm,
satisfies
Proof. The initial, invariant, and liveness implications were established above, the latter with by Lemma 13. Conjoining them gives .
E Optimality Proofs
The following results use the admissible finite-subproblem classes of Definitions 4.1 and 4.2. They do not assert unrestricted temporal quantifier elimination.
Lemma 14 (Refinement finite-subproblem optimality). The initial elimination and invariant elimination are weakest within their corresponding fixed finite refinement subproblems. For each liveness target , is weakest in the synthetic recurrent branch, and for every fixed , is weakest in the persistent branch using .
Proof. Fix a subproblem or certificate branch of Definition 4.1. Let be its finite obligation (the implication in the refinement table), let be its flattening, and let be the core that Algorithm 1 computes for . For any admissible -free core of , admissibility gives . Flattening is exact (Lemma 1), so for every valuation of the eliminated indexed variables. Since is -free, Lemma 9 gives , and exactness of flattening transfers this back to . This yields the claim for and for the cores of the INV, synthetic, and fixed-support branches. For the branches whose certificate carries a temporal wrapper, the order is preserved under it: gives for the INV and fixed-support branches, and for the synthetic branch by Lemma 2.
Y. Narter et al.
-free targets. If is -free, then , because implies for every eliminated-variable valuation. Hence , so no separate retention case is needed. No claim is made that finite core implication computes exact temporal dominance between different liveness branches; bounded-next windows can overlap across successive positions.
Lemma 15 (Relaxation finite-subproblem optimality). For every fixed finite relaxation subproblem with flattened formula , the elimination is its strongest -free consequence. Consequently, is strongest for INIT, is strongest for the admissible INV branch, and each generated before SELECTLIVENESS is strongest for its corresponding liveness subproblem.
Proof. Let be the finite obligation of the subproblem (the entailment in the relaxation table of Definition 4.1) and its flattening, so that Algorithm 2 sets the corresponding core to . For any admissible -free consequence , admissibility gives , and exact flattening (Lemma 1) gives . Then Lemma 10 gives , which transfers back to for INIT, for INV, for context LIV, and for target LIV. Lifting under for INV and under for LIV (Lemma 2) preserves the order.
Lemma 16 (Optimality of the complete decomposed relaxation). Within the decomposed finite-subproblem relaxation class of Definition 4.1, the formula returned by Algorithm 2 is the strongest admissible complete relaxation consequence.
Proof. Let be any complete admissible relaxation, with independently admissible INIT, INV, context-LIV, and target-LIV terms , and let be the corresponding CAVE results before liveness reduction. By Lemma 15, for every , so . By Lemma 13, SELECTLIVENESS does not change this conjunction, hence . This proves strongest-consequence optimality within the class; it does not cover joint consequences that use dependencies between distinct subproblems, which Definition 4.1 excludes.
There is no analogous complete-refinement optimality conclusion: different liveness certificate branches can be incomparable, and independent branch selection need not yield an undominated final conjunction. Every candidate is individually sound, and no optimality is claimed across mixed □ and □◇ branches, so Theorem 2 states refinement optimality only subproblem-wise.
F Computational Evaluation
This appendix reports all measurements behind the empirical statements in the paper. It can be read independently of the proofs. We first fix the terminology and the measurement protocol (Sections F.1 and F.2) and describe the benchmark families (Section F.3). The experiments are numbered E1 to E8 and, for the stress test against automata, E6b. Each experiment answers one question.
– E1 and E2 ask how the cost of one CAVE call depends on the number of eliminated variables, the depth of the finite window, and the number of liveness conjuncts (Section F.4).
– E3 compares CAVE with eliminating the same variables after unrolling the specifications over a finite horizon (Section F.5).
– E4 tests, against an independent explicit-state oracle, whether the returned formulas are sound in practice and how often they are exact (Section F.6).
– E5 measures chains of compositions (Section F.7).
– E6 and E6b compare CAVE with exact elimination through Büchi automata (Section F.8).
– E7 isolates the effect of individual implementation choices (Section F.9).
– E8 measures the composition and quotient computations on the automated emergency-braking (AEB) example (Section F.10).
Every experiment except E4 measures running time, and E4 makes no runtime claim. All numbers describe the implementation over the tested ranges. They are not asymptotic bounds, and the synthetic families are built to isolate individual cost drivers, not to represent GR(1) specifications in general.
Summary of findings.
– The cost of one CAVE call is governed by the number of eliminated indexed variables. On Boolean families it grows steeply and quantifier elimination (QE) dominates, so that eight irrelevant variables exceed the time limit. On linear real arithmetic it stays below 0.8s over the tested range (E1, E2).
– The cost grows linearly with the number of liveness conjuncts, at about 9 to 10 ms per liveness candidate in the substitution family (E1, E2).
– On the AEB composition, a finite-horizon unrolling baseline that ignores liveness is faster than CAVE for horizons , slower from T = 3, and exceeds the time limit at T = 6 when it eliminates the production interface (E3).
– On 16000 random classifications against an explicit-state oracle on bounded lasso words, no unsound result was observed. The refinement result was exact on 69.4% and the relaxation result on 90.6% of the instances (E4).
– Chains of up to eight stages are composed in 2.8 s or less (E5).
– Against exact Spot-based elimination, CAVE is slower when many variables are irrelevant or the window is deep, and faster when the number of liveness conjuncts grows. The CAVE results were sound but not exact on every instance that could be checked (E6, E6b).
– Computing the AEB contracts and Q takes 0.93 s, of which 0.48 s is spent inside CAVE (E8).
F.1 Terminology and Measured Quantities
A GR(1) specification is a conjunction of cores, namely initial cores, invariant cores (under □), and liveness cores (under □◇), as in Section 2. A CAVE call eliminates a set of irrelevant variables from a target in the presence of
Y. Narter et al.
a context . The refinement call returns a -free GR(1) formula that implies , and the relaxation call returns a -free GR(1) formula implied by (Section 4.2). The following quantities appear throughout.
is the number of irrelevant variables, and and are the numbers of liveness cores of the target and of the context.
– D is the nesting depth of 〇 in the generated invariants, and is the depth of the finite window that CAVE actually uses (Section 4.1). A call flattens the problem over time points, so each irrelevant variable becomes indexed variables. We call the quantified dimension.
– Quantifier elimination (QE) is performed by Z3. Unless stated otherwise the tactic is qe2, and the QE share is the fraction of the runtime spent inside the QE tactic.
– A liveness candidate is one liveness core that a call must project. As in Section 4.2, refinement builds one candidate per branch for each target liveness core, namely one for the synthetic branch and one for each support branch, which gives candidates. Relaxation projects every context and target liveness core once, which gives candidates.
– Simplify is the post-processing step of Pacti that removes redundant cores from a result. It is on by default.
– The size of a result is measured by its number of cores and by the number of nodes of its Z3 term DAG (DAG nodes).
– A Büchi automaton accepts an infinite word if it visits an accepting state infinitely often, and every LTL formula can be translated to one. Existential quantification of a variable projects the variable out of the edge labels. Universal quantification needs complementation, which is exponential in the worst case [37].
F.2 Measurement Protocol
Environment. All runs were made on one ARM64 Mac (Apple M5 Pro, 48 GB of memory) under macOS 26.7.1 with Python 3.11.16 and Z3 5.1.0. The comparisons with automata use the Spot library [12], version 2.16 (https://spot.lre.epita.fr). The source tree was clean, and its revision, the package versions, and the digests of the benchmark scripts are recorded together with the raw per-run data.
Cold and warm calls. Every repetition runs in a freshly spawned worker process. The worker builds the instance and then executes the measured operation twice. The first call (cold) includes one-time costs of the process, and the second call (warm) is the one we report. Construction of the instance and all diagnostics, such as result sizes and equivalence checks, lie outside the timed region. For every configuration with a warm time of at least 0.05 s in E1 to E3, E5, E7, and E8, the cold and warm medians differ by less than 7%, so the choice does not affect any conclusion.
Repetitions, limits, and statistics. We report medians over successful repetitions, with 10 repetitions in E1, E3, E6, E7, and E8, 5 in E2 and E6b, and 3 in E5. Each worker has a hard limit that covers imports, preparation, both calls, and checks. It is 600 s in E1 to E3, E6, E7, and E8, and 300 s in E5 and E6b. A configuration that exceeds the limit is a timeout (T/O in the tables). Because the limit covers both calls, a timeout means that the two calls together need more than the limit, which for similar cold and warm times is more than about half of the limit per call. Within one sweep the values ascend, and once all repetitions at a value (the first three in E6b) time out, larger values are skipped, which is shown as “-”. Timeouts are censored observations and are never averaged into medians. The order of the sweeps is shuffled with a fixed seed. E4 has no repetitions and no timing.
F.3 Benchmark Families
Experiments E1 to E3 and E5 to E8 use the following instances. In all families the parameters not being varied are fixed to and D=1, and every sweep varies one parameter at a time.
Substitution family (E1). The irrelevant variables are Boolean, and each is tied to a retained Boolean over the window. Writing , the context is
and the target is , with retained Booleans and . Elimination is by substitution, so the family isolates the cost of QE and of candidate construction. The sweeps are , , and .
Boolean-bound family (E2, E6, E6b, E7). Here each irrelevant variable is only bounded by retained Booleans and . For and the context has the invariant core
The context liveness cores are and the target liveness cores are . Here and with and , so that distinct cores constrain different subsets of . The target has no invariant. Since the invariant contains one , the window depth is .
Y. Narter et al.
Linear-real family (E2). For the real variables satisfy the context invariant for . Context liveness core is and target liveness core is with retained Booleans and . The target invariant is for each . Relaxation eliminates the , and refinement eliminates the and the , so that the quantified dimension of refinement is twice as large.
Remark on the depth sweeps. In all three families the copies of an invariant shifted by are implied by the copy with under . The depth sweeps therefore measure how the implementation reacts to the syntactic depth of the window, and not a change of the logical content. We did not add a preprocessing step that removes such copies.
AEB and chain instances. E3, E7, and E8 use the AEB contracts of Section 2.5, and E5 uses the chain of Section F.7.
F.4 Scaling with the Problem Parameters (E1 and E2)
Table 3 lists the warm medians of all one-at-a-time sweeps for the three families and both directions, and Figure 4 plots them. Table 4 gives the joint grid over and D for the Boolean-bound family.
Irrelevant variables and depth. On the Boolean families the runtime grows steeply with and with . In the substitution family refinement takes 0.026 s for , 0.057 s for , 0.70 s for , and 26.9 s for , and for all ten repetitions time out. Relaxation behaves alike (0.034, 0.054, 0.565, and 38.7 s). The depth sweep shows the same pattern, from 0.026 s at to 26.9 s at for refinement and from 0.038 s to 39.1 s for relaxation. The Boolean-bound family is more expensive (refinement 2.2 s at and 71.4 s at ), and Table 4 shows where it ends. Refinement finishes up to in 23.4 s and (6, 1) in 70.1 s, while (4, 3) and (6, 2) time out. Relaxation finishes (4, 2) in 8.0 s and (6, 1) in 17.0 s and times out at the same two points.
The role of quantifier elimination. In the substitution family the QE share rises with the quantified dimension, from 0.19 at to 0.78 at for refinement and from 0.18 to above 0.99 for relaxation, and it follows the same trend along the depth sweep (Figure 5(a)). For the largest instances that completed, QE therefore accounts for most of the time, and the growth is that of the QE problem. Fitting linearly against gives slopes between 0.38 and 0.71 per unit of , with between 0.91 and 0.98 (the fits for the joint grid are drawn in Figure 5(b)). We report the fits only as a description. The factor by which the runtime grows per additional quantified variable is not constant. In the refinement sweep over it is 1.5, 1.9, and 2.5 for the steps from to 4, 4 to 8, and 8 to 12, and it is 1.3, 1.8, and 2.9 for relaxation. We therefore make no claim about the base of an exponential.
Table 3: Warm median runtime in seconds of one CAVE call when one parameter is varied and the others are fixed to and . Ref. is refinement and Rel. is relaxation. T/O marks a timeout.
| Parameter | Value | Substitution | Boolean-bound | Linear real | |||
|---|---|---|---|---|---|---|---|
| Ref. | Rel. | Ref. | Rel. | Ref. | Rel. | ||
| 1 | 0.0257 | 0.0342 | 0.0449 | 0.0419 | 0.06 | 0.0922 | |
| 2 | 0.0573 | 0.0542 | 0.151 | 0.0669 | 0.0946 | 0.155 | |
| 4 | 0.705 | 0.565 | 2.22 | 0.463 | 0.171 | 0.318 | |
| 6 | 26.9 | 38.7 | 71.4 | 17.6 | 0.258 | 0.496 | |
| 8 | T/O | T/O | T/O | T/O | 0.358 | 0.708 | |
| 0 | 0.0263 | 0.0382 | 0.0622 | 0.0499 | 0.0635 | 0.093 | |
| 1 | 0.0562 | 0.0541 | 0.152 | 0.0664 | 0.0946 | 0.149 | |
| 2 | 0.168 | 0.131 | 0.318 | 0.116 | 0.126 | 0.213 | |
| 3 | 0.703 | 0.571 | 0.75 | 0.28 | 0.158 | 0.279 | |
| 4 | 3.7 | 3.81 | 2.36 | 0.974 | 0.191 | 0.356 | |
| 5 | 26.9 | 39.1 | 8.5 | 4.85 | 0.225 | 0.439 | |
| 1 | 0.0294 | 0.0399 | 0.0753 | 0.0523 | 0.0543 | 0.118 | |
| 2 | 0.0575 | 0.0542 | 0.151 | 0.0681 | 0.0949 | 0.149 | |
| 4 | 0.113 | 0.0903 | 0.294 | 0.108 | 0.171 | 0.218 | |
| 6 | 0.166 | 0.135 | 0.44 | 0.154 | 0.253 | 0.298 | |
| 8 | 0.221 | 0.186 | 0.584 | 0.211 | 0.329 | 0.388 | |
| 1 | 0.0375 | 0.0396 | 0.0928 | 0.0485 | 0.0653 | 0.122 | |
| 2 | 0.0568 | 0.0538 | 0.149 | 0.0683 | 0.0927 | 0.152 | |
| 4 | 0.0947 | 0.0893 | 0.265 | 0.116 | 0.149 | 0.223 | |
| 6 | 0.132 | 0.133 | 0.375 | 0.171 | 0.204 | 0.307 | |
| 8 | 0.168 | 0.187 | 0.487 | 0.238 | 0.258 | 0.399 | |
Table 4: Warm median runtime in seconds for the Boolean-bound family over the grid of irrelevant variables (rows) and depth (columns), with . T/O marks a timeout, and “−” a configuration skipped after a smaller one timed out.
| Refinement, depth | Relaxation, depth | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 1 | 2 | 3 | 4 | 0 | 1 | 2 | 3 | 4 | |
| 1 | 0.0326 | 0.0448 | 0.0668 | 0.0842 | 0.147 | 0.0377 | 0.0419 | 0.0466 | 0.0553 | 0.0702 |
| 2 | 0.0625 | 0.151 | 0.314 | 0.74 | 2.37 | 0.0498 | 0.0667 | 0.116 | 0.28 | 0.976 |
| 4 | 0.289 | 2.2 | 23.4 | T/O | - | 0.0951 | 0.462 | 8.03 | T/O | - |
| 6 | 1.38 | 70.1 | T/O | - | - | 0.261 | 17 | T/O | - | - |
Y. Narter et al.

(a) Irrelevant variables .

(b) Depth D.

(c) Target liveness cores .

(d) Context liveness cores .
Fig. 4: Warm median CAVE time for the three families in both directions under one-at-a-time variation of each parameter, on logarithmic vertical axes. Triangles mark timeouts and are drawn at the limit.
Liveness cores. The runtime grows linearly with and and stays small. In the substitution family refinement takes 0.029 s for and 0.221 s for , and relaxation takes 0.040 s and 0.186 s. The refinement time is proportional to the number of liveness candidates at 9.2 to 9.8 ms per candidate (linear fits in and in have ), and the relaxation time grows by 0.021 s per added liveness core of either kind. The Boolean-bound and linear-real families show the same linear trend, for instance 0.075 to 0.584 s and 0.054 to 0.329 s for refinement when goes from 1 to 8.
Linear real arithmetic. The linear-real family is benign over the tested range. The largest runtime is 0.708 s, at for relaxation, and no configuration times out. Refinement grows approximately linearly from 0.060 s at to 0.358 s at and from 0.064 s at to 0.225 s at , and QE accounts for 10 to 14% of the time. The steep growth of the Boolean families is thus a property of QE over Boolean variables, which Z3 handles by case splitting, and not of the temporal construction.

(a) Share of the time spent in QE at the largest quantified dimension that completed, for each family and direction.

(b) Warm CAVE time against on the joint grid of the Boolean-bound family, with log-linear fits.
Fig. 5: Cost as a function of the quantified dimension.
F.5 Comparison with Finite-Horizon Unrolling (E3)
Setting. The baseline eliminates the same variables without CAVE. It instantiates the initial and invariant cores of the supervisor and the vehicle at consecutive time steps, which introduces variables at time points, and it calls Z3 QE twice on the resulting formulas, once for the universally quantified implication from the assumptions and guarantees of the supervisor to the assumptions of the vehicle (the refinement problem) and once for the existentially quantified conjunction of the two guarantees (the relaxation problem). It is not an equivalent computation. It drops all liveness cores and constrains only steps, so its result is not a GR(1) contract, and it favors the baseline because no liveness is processed. We use it to show how a monolithic QE call scales, not to claim a semantic equivalence. Two variants differ in the guarantee projection. The requested variant eliminates all five irrelevant variables from the guarantee. The interface-matched variant eliminates only , because the production composition keeps on its interface, and it is the primary comparison. The reference is the production computation of with CAVE, which does not depend on and processes the liveness cores.
Results. Table 5 and Figure 6 show the following. CAVE takes 0.308 s with the default simplification and 0.124 s without it, independently of T. The interface-matched baseline takes 0.0042, 0.031, 0.37, and 15.1 s for T = 1, 2, 3, 4 and times out at T = 6. It is faster than CAVE for and slower from T = 3, both against the default (0.37 against 0.31 s) and against the variant without simplification. The requested variant is cheaper, with 0.24 s at T = 4 and 10.1 s at T = 6, and times out at T = 8. It is faster than the default CAVE configuration up to T = 4 and slower at T = 6 (T = 5 was not measured), and it is slower than
Y. Narter et al.
Table 5: Warm median runtime and result size of the unrolled baseline for horizon and of CAVE for the AEB composition . Size is the number of Z3 DAG nodes. T/O is a timeout and “-” a skipped configuration.
| Horizon T | Interface-matched | Requested | ||
|---|---|---|---|---|
| Time [s] | Size | Time [s] | Size | |
| 1 | 0.00424 | 30 | 0.00411 | 16 |
| 2 | 0.0305 | 130 | 0.0127 | 79 |
| 3 | 0.371 | 217 | 0.0513 | 116 |
| 4 | 15.1 | 313 | 0.241 | 170 |
| 6 | T/O | - | 10.1 | 649 |
| 8 | - | - | T/O | - |
| 12 | - | - | - | - |
| 16 | - | - | - | - |
| CAVE (independent of T, liveness included) | ||||
| true | 0.308 | 138 | 5 | |
| false | 0.124 | 140 | 17 | |

(a) Runtime against the horizon .

(b) Result size against the horizon .
Fig. 6: Unrolled baseline for both guarantee projections against the CAVE references with simplification on and off. Triangles mark timeouts.
CAVE without simplification from . QE accounts for 92 to of the baseline time. The size of the unrolled result grows with the horizon (from 30 to 313 DAG nodes for in the interface-matched variant and to 649 nodes at in the requested one), whereas the CAVE result has 138 nodes (5 cores) with simplification and 140 nodes (17 cores) without. The unrolled results cover only the first steps and no liveness, so they are not a substitute for the CAVE result even where they are cheaper.
F.6 Soundness and Precision on Random Instances (E4)
Setting. Timing runs cannot establish soundness, so E4 compares the implementation with an independent explicit-state oracle. An instance consists of a context and a target over two relevant Boolean variables and irrelevant Boolean variables. The context and the target each have an invariant core, an initial core with probability , and zero to two liveness cores. Every core is a random Boolean formula of nesting depth at most three over and the constants true and false, in which a variable may occur directly under one . There are two sources of instances. The uniform source draws contexts without restriction. The nonblocking source keeps only contexts that pass a quick check for nonblocking behavior, explained below. Each source and each value of contributes 2000 instances, which gives 8000 instances, and each is classified for refinement and for relaxation.
The oracle works on lasso words, which are ultimately periodic words over the four valuations of with and . There are 1764 such words. For one word it decides exactly, by exploring the product of the word with all valuations of the irrelevant variables and analyzing its strongly connected components under the liveness requirements, whether holds (refinement) or holds (relaxation). We compare the CAVE result with this answer on all 1764 words and classify the instance as follows.
– Unsound if for some word the refinement result holds while the exact answer fails, or the exact relaxation holds while the relaxation result fails.
– Exact if the result agrees with the oracle on every word.
– Conservative otherwise, that is, sound on all words but not exact.
A context is nonblocking if for every word some run of the irrelevant variables satisfies it. On a word without such a run the refinement answer is vacuously true. An instance is trivial if the CAVE result and the exact answer are the same constant on all words, and nontrivial otherwise. The nonblocking source samples contexts that are feasible on a subset of the words ( and ), and one of its 4000 instances turned out to be blocking on the full set of words. All draws are deterministic functions of a fixed seed. Since only 1764 words are examined, “exact” means exact on this suite, and the absence of unsound observations is evidence and not a proof.
Results. No unsound result was observed in any of the 16000 classifications, and none of the 1764 words per instance produced a violation. The Wilson upper bound on the unsound fraction is 0.05% for each direction. Refinement was exact on 5549 of 8000 instances (69.4%) and conservative on the rest. The precision depends strongly on the context. It is 96.9% for nonblocking contexts and 26.1% for blocking contexts, and among the nontrivial instances it is 89.7% for nonblocking contexts and 0.3% (8 of 2306) for blocking ones. Blocking contexts make the exact answer vacuously true on some words, and the CAVE result does not exploit this vacuity. Relaxation was exact on 7249 instances (90.6%) and on 78.6% of the nontrivial ones, and it does not improve with nonblocking contexts (88.3% against 94.3% for blocking ones). When a result is conservative, it differs from the exact answer on a median fraction of 0.49 of the words for refinement and 0.17 for relaxation. The two values of give similar numbers (68.6% and 70.2% exact for refinement, 92.4% and 88.8% for relaxation). The instances are random and small and do not represent engineering specifications,
Y. Narter et al.

Blocking contexts make exact refinement vacuous on some traces. This stratum describes the random generator, not realistic contracts. Wilson 95% intervals: tables.
(a) Refinement, all instances.

Blocking contexts make exact refinement vacuous on some traces. This stratum describes the random generator, not realistic contracts. Wilson 95% intervals: tables.
(b) Relaxation, all instances.

Blocking contexts make exact refinement vacuous on some traces. This stratum describes the random generator, not realistic contracts. Wilson 95% intervals: tables.
(c) Refinement, nontrivial instances.

Blocking contexts make exact refinement vacuous on some traces. This stratum describes the random generator, not realistic contracts. Wilson 95% intervals: tables.
(d) Relaxation, nontrivial instances.
Fig. 7: Share of exact, conservative, and unsound results per subset of the instances, with Wilson 95% intervals.
Table 6: Classification of CAVE results on 8000 random instances per direction. Here is the number of instances in the subset. The column “Exact [%]” gives the percentage with its Wilson 95% interval. The unsound column gives the count and, in parentheses, the Wilson upper bound in percent on the unsound fraction. Instances that are neither exact nor unsound are conservative.
| Subset | n | Exact | Exact [%] | Conserv. | Unsound |
|---|---|---|---|---|---|
| Refinement | |||||
| All instances | 8000 | 5549 | 69.4 [68.3, 70.4] | 2451 | 0 (≤0.05) |
| Uniform source | 4000 | 1681 | 42.0 [40.5, 43.6] | 2319 | 0 (≤0.10) |
| Nonblocking source | 4000 | 3868 | 96.7 [96.1, 97.2] | 132 | 0 (≤0.10) |
| Context nonblocking | 4890 | 4737 | 96.9 [96.3, 97.3] | 153 | 0 (≤0.08) |
| Context blocking | 3110 | 812 | 26.1 [24.6, 27.7] | 2298 | 0 (≤0.12) |
| Nontrivial | 3788 | 1337 | 35.3 [33.8, 36.8] | 2451 | 0 (≤0.10) |
| Nontrivial, nonblocking | 1482 | 1329 | 89.7 [88.0, 91.1] | 153 | 0 (≤0.26) |
| Nontrivial, blocking | 2306 | 8 | 0.3 [0.2, 0.7] | 2298 | 0 (≤0.17) |
| Relaxation | |||||
| All instances | 8000 | 7249 | 90.6 [90.0, 91.2] | 751 | 0 (≤0.05) |
| Uniform source | 4000 | 3735 | 93.4 [92.6, 94.1] | 265 | 0 (≤0.10) |
| Nonblocking source | 4000 | 3514 | 87.8 [86.8, 88.8] | 486 | 0 (≤0.10) |
| Context nonblocking | 4890 | 4317 | 88.3 [87.4, 89.2] | 573 | 0 (≤0.08) |
| Context blocking | 3110 | 2932 | 94.3 [93.4, 95.0] | 178 | 0 (≤0.12) |
| Nontrivial | 3510 | 2759 | 78.6 [77.2, 79.9] | 751 | 0 (≤0.11) |
| Nontrivial, nonblocking | 2430 | 1857 | 76.4 [74.7, 78.1] | 573 | 0 (≤0.16) |
| Nontrivial, blocking | 1080 | 902 | 83.5 [81.2, 85.6] | 178 | 0 (≤0.35) |
so the percentages show where conservatism arises and not how often it occurs in practice.
F.7 Chains of Compositions (E5)
Setting. Stage is a contract with the real input and the outputs (real) and (Boolean). Its assumptions are initially and invariantly and . Its guarantees are initially, the invariant , and and . Composing consecutive stages eliminates the connecting variable. We measure a left fold for and a balanced composition of contiguous halves for . The time is the sum of the durations of the composition steps. As a diagnostic, a bounded check confirms that the safety part of the result is satisfiable and that the composed assumption restricts to , which is the range in which a worst-case drift of per stage keeps every intermediate signal in . Both checks succeed for every (they are not realizability checks).
Results. Eight stages are composed in 2.77 s by a left fold, and take 0.14, 0.37, 0.65, 1.03, and 1.49 s. The cost of one step depends on the size of
Y. Narter et al.
Table 7: Warm median runtime of the chain composition, the part spent inside CAVE, the QE share, and the size of the composed contract.
| Order | Stages N | Time [s] | CAVE [s] | QE share [%] | Cores | DAG nodes |
|---|---|---|---|---|---|---|
| left-fold | 2 | 0.143 | 0.0794 | 7.8 | 7 | 36 |
| left-fold | 3 | 0.367 | 0.21 | 7.3 | 8 | 46 |
| left-fold | 4 | 0.652 | 0.367 | 6.7 | 9 | 56 |
| left-fold | 5 | 1.03 | 0.571 | 6.2 | 10 | 66 |
| left-fold | 6 | 1.49 | 0.808 | 5.8 | 11 | 76 |
| left-fold | 8 | 2.77 | 1.46 | 5.0 | 13 | 96 |
| balanced | 4 | 0.572 | 0.321 | 6.9 | 9 | 56 |
| balanced | 8 | 1.79 | 0.961 | 5.8 | 13 | 106 |

(a) Total composition time against .

(b) Time of each composition step in the left folds.
Fig. 8: Chains of compositions.
the accumulated contract and not on . In the left fold of eight stages the seven steps take 0.14, 0.22, 0.29, 0.38, 0.47, 0.57, and 0.69 s, and from two stages on the contract grows by one core and by 10 DAG nodes per stage. The total time is therefore superlinear in but moderate. A balanced composition reduces the time to 0.57 s for (12% less) and 1.79 s for (35% less), because it composes smaller contracts, at the price of a somewhat larger result for (106 against 96 DAG nodes at the same 13 cores). CAVE accounts for 53 to 57% of the time and QE only for 5.0 to 7.8%, so the remaining time is spent in the contract operations around the elimination, which we did not break down further.
F.8 Comparison with Exact Automata-Based Elimination (E6 and E6b)
The automata pipeline. Temporal quantification can be computed exactly with automata [38]. For refinement the exact result is . Our baseline translates to a nondeterministic Büchi automaton with
Table 8: E6, warm median runtime of CAVE and of the Spot pipeline on the Boolean-bound family with . States are those of the projected automaton and of its complement. Sound and exact refer to the CAVE result.
| D | CAVE [s] | Spot [s] | States | Compl. states | Sound | Exact | |
|---|---|---|---|---|---|---|---|
| 1 | 0 | 0.0121 | 0.00121 | 4 | 3 | yes | no |
| 1 | 1 | 0.0165 | 0.00146 | 4 | 3 | yes | no |
| 2 | 0 | 0.0222 | 0.00207 | 8 | 6 | yes | no |
| 2 | 1 | 0.0469 | 0.00278 | 8 | 6 | yes | no |
| 3 | 0 | 0.0428 | 0.00975 | 16 | 9 | yes | no |
| 3 | 1 | 0.168 | 0.0128 | 16 | 9 | yes | no |
Spot, projects the irrelevant variables out of the edge labels, which realizes , and complements the result, which realizes the negation. The reported time is that of these three steps. Afterwards, outside the timed region and only for small instances, we compare the CAVE result with the exact automaton. The CAVE result is sound if the product of its automaton with the projected automaton has an empty language, that is, if it implies the exact result, and exact if the languages are equal. The output of the pipeline is an automaton. It is not a GR(1) formula with initial, invariant, and liveness parts, so it could not be used as a contract in Pacti without a further translation, which we do not attempt. Spot is the only automata-based tool in the comparison, and we use one pipeline without tuning. Other complementation constructions or deterministic automata could change the constants.
E6, small instances. E6 runs the Boolean-bound family with , , and . Table 8 shows that Spot is faster on every one of these small instances, by a factor of 4.4 to 16.8 (the automata have at most 16 states, and the complements at most 9). The CAVE result is sound in all 60 runs and is not exact in any of them.
E6b, a stress family for the automata pipeline. The first comparison is tiny and favors Spot. We therefore designed E6b to probe the regime in which complementation is expensive, and we disclose that this family was designed after we had seen the E6 results. It is the Boolean-bound family with base parameters , , , and five sweeps that vary , , (where ), , and one at a time. The liveness counts take the values 1, 2, 3, 4, 5, 6, 8 (and ). Each point is measured five times with a limit of 300s for the worker, and a point is skipped after three timeouts. Ten points with small automata are additionally checked for soundness and exactness. The run produced 360 rows, none of which is an error.
E6b results for liveness conjuncts. The cost of the pipeline is governed by complementation (Table 9). Translation and projection stay below 0.1 s for , but the complement has 6, 49, 508, 6754, and 122254 states for ,
Y. Narter et al.

(a) Target liveness .

(b) Context liveness .

(c) Both, .

(d) Irrelevant variables .

(e) Depth D.
Fig. 9: E6b, warm median time of CAVE and of exact elimination with Spot, with the minimum to maximum range over the repetitions. Crosses mark points at which the first repetitions reached the 300 s limit.
Table 9: E6b, warm median runtime of CAVE and of the Spot pipeline when the number of liveness conjuncts grows (base , ). Compl. states and sets are those of the complemented automaton. T/O is a timeout of the 300 s worker, and “-” a skipped point.
| Parameter | Value | CAVE [s] | Spot [s] | Compl. states | Compl. sets |
|---|---|---|---|---|---|
| 1 | 0.0458 | 0.0027 | 6 | 2 | |
| 2 | 0.0943 | 0.00645 | 49 | 4 | |
| 3 | 0.135 | 0.0375 | 508 | 6 | |
| 4 | 0.188 | 1.12 | 6754 | 8 | |
| 5 | 0.231 | 62.3 | 122254 | 10 | |
| 6 | 0.283 | T/O | - | - | |
| 8 | 0.358 | - | - | - | |
| 1 | 0.0471 | 0.00275 | 6 | 2 | |
| 2 | 0.076 | 0.00589 | 19 | 2 | |
| 3 | 0.107 | 0.0182 | 150 | 2 | |
| 4 | 0.131 | 0.356 | 1891 | 2 | |
| 5 | 0.175 | 14.7 | 31066 | 2 | |
| 6 | 0.195 | T/O | - | - | |
| 8 | 0.248 | - | - | - | |
| 1 | 0.0471 | 0.00267 | 6 | 2 | |
| 2 | 0.158 | 0.0489 | 513 | 4 | |
| 3 | 0.32 | T/O | - | - | |
| 4 | 0.542 | - | - | - | |
| 6 | 1.14 | - | - | - | |
| 8 | 2 | - | - | - |
so the number of states grows by a factor that rises from 8 to 18 per added conjunct, and its number of acceptance sets is . At complementation takes almost all of the 62.3 s, and exceeds the limit. CAVE grows linearly from 0.046 to 0.358 s over with cores and 52 to 300 DAG nodes in the result. The curves cross between (0.038 s for Spot against 0.135 s for CAVE) and (1.12 against 0.19 s), and at CAVE is 269 times faster. Context liveness behaves alike. The complement grows from 6 to 31066 states while its acceptance sets stay at two, Spot needs 0.356 s at and 14.7 s at and times out at 6, whereas CAVE needs 0.248 s at . When both counts grow together, Spot is faster at (0.049 against 0.158 s) and times out at , where CAVE needs 0.32 s, and CAVE reaches in 2.0 s.
E6b results for irrelevant variables and depth. The picture reverses (Table 10). Spot handles irrelevant variables in 7.8 s, mostly in the translation (7.1 s) and with a complement that stays at 17 states, while CAVE needs 137 s, which is 17.5 times as long, and 22.6 times as long at (20.3 against 0.90 s). The automaton has states, and for both approaches exceed the limit. In the three repetitions of Spot at the translation took 44 to 52 s, and in one
Y. Narter et al.
Table 10: E6b, warm median runtime of CAVE and of the Spot pipeline when the number of irrelevant variables or the depth grows (base ). States are those of the projected automaton before complementation, and compl. states those of its complement.
| Parameter | Value | CAVE [s] | Spot [s] | States | Compl. states |
|---|---|---|---|---|---|
| 1 | 0.017 | 0.00122 | 4 | 3 | |
| 2 | 0.047 | 0.00269 | 8 | 6 | |
| 3 | 0.176 | 0.0122 | 16 | 9 | |
| 4 | 0.706 | 0.0919 | 32 | 17 | |
| 5 | 2.52 | 0.77 | 64 | 17 | |
| 6 | 20.3 | 0.9 | 128 | 17 | |
| 7 | 137 | 7.84 | 256 | 17 | |
| 8 | T/O | T/O | - | - | |
| D | 0 | 0.0224 | 0.002 | 8 | 6 |
| 1 | 0.0471 | 0.00266 | 8 | 6 | |
| 2 | 0.103 | 0.0036 | 8 | 6 | |
| 3 | 0.237 | 0.00477 | 8 | 6 | |
| 4 | 0.742 | 0.00593 | 8 | 6 | |
| 5 | 2.68 | 0.0072 | 8 | 6 | |
| 6 | 11.8 | 0.00875 | 8 | 6 |
of them the cold call finished after 295 s, of which 248 s were complementation, although complementation took 0.14 s at . We do not explain this jump. The CAVE point at is close to the limit as well, since the worker needed 268 to 279 s of the 300 s for its two calls. In CAVE the result grows with (from 52 to 3132 DAG nodes between and 6) and the QE share rises from 0.26 to 0.70. Along the depth sweep CAVE grows from 0.022 s at to 11.8 s at , while the automaton is unchanged (8 states) and Spot needs between 0.002 and 0.009 s. Since the shifted invariants are redundant (Section F.3), the automaton is unaffected, whereas the cost of CAVE grows with the window.
Soundness and exactness of the CAVE result. Table 11 lists the ten checked points, which include and up to 4 and up to 6. The CAVE result is sound at every point and equivalent to the exact result at none of them. Together with E6 the comparison thus covers 15 distinct instances, and on each of them the CAVE result implies the exact result without being equivalent to it. We did not determine whether the exact results can be expressed as GR(1) formulas, which is why we do not attribute the gap to the restriction to GR(1). The points with the largest Spot cost could not be checked.
Conclusion of the comparison. Neither method dominates. The automata pipeline returns the exact result and is faster when many variables are irrelevant or the window is deep. Its cost is dominated by complementation, which grows by orders of magnitude with each added liveness conjunct, and CAVE is faster
Table 11: E6b, soundness and exactness checks of the CAVE result against the exact Spot result. States are those of the projected automaton and of its complement.
| D | CAVE [s] | Spot [s] | States | Compl. states | Sound | Exact | |||
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | 2 | 1 | 0.0472 | 0.00313 | 8 | 6 | yes | no |
| 2 | 1 | 2 | 1 | 0.0948 | 0.00683 | 12 | 49 | yes | no |
| 1 | 2 | 2 | 1 | 0.0754 | 0.00603 | 12 | 19 | yes | no |
| 2 | 2 | 2 | 1 | 0.154 | 0.0516 | 20 | 513 | yes | no |
| 3 | 1 | 2 | 1 | 0.139 | 0.0417 | 16 | 508 | yes | no |
| 1 | 3 | 2 | 1 | 0.103 | 0.0184 | 16 | 150 | yes | no |
| 4 | 1 | 2 | 1 | 0.188 | 1.14 | 20 | 6802 | yes | no |
| 1 | 4 | 2 | 1 | 0.13 | 0.347 | 20 | 1891 | yes | no |
| 1 | 1 | 4 | 1 | 0.703 | 0.099 | 32 | 17 | yes | no |
| 1 | 1 | 6 | 1 | 19.6 | 0.907 | 128 | 17 | yes | no |
in that regime. The family of E6b is adversarial for the automata pipeline by construction and should not be read as a typical workload.
F.9 Implementation Ablations (E7)
E7 changes one implementation choice at a time in refinement CAVE and measures the effect on the AEB composition and on the Boolean-bound instance with and . The variants are the qe and qe_rec QE tactics of Z3 in place of the default qe2, no simplification of the result, and construction of the synthetic-branch candidates only, which omits all support-branch candidates. We check whether the variant returns an equivalent result by comparing it with the production result bucket by bucket with Z3 and a limit of 500 ms per query. This is a sufficient condition, so “inconclusive” means only that no certificate was found and not that the results differ. On the AEB composition it is also inconclusive when the production result is compared with itself, so inconclusive carries no information there.
Results. The default tactic qe2 is not uniformly the fastest. On the AEB composition qe is 1.6 times slower (0.486 against 0.305 s) with an equivalent result, and qe_rec takes 0.301 s with an equivalent result. On the Boolean-bound instance qe_rec is about twice as fast as the default (0.108 against 0.213 s) and qe 1.7 times, both with equivalent results. Disabling simplification makes the AEB composition 2.5 times faster (0.124 s) but returns 17 cores instead of 5, so the time is saved at the price of a larger and less readable result. Constructing only the synthetic candidate takes 0.173 s on the AEB composition and returns 4 cores instead of 5, so some support-based core is missing, and it takes 0.104 s on the Boolean-bound instance, where the result is equivalent and the support candidates do not contribute.
Y. Narter et al.
Table 12: E7, warm median runtime, result size, and equivalence check against the production result for each variant of refinement CAVE.
| Instance | Variant | Time [s] | Cores | DAG nodes | Equivalence |
|---|---|---|---|---|---|
| AEB composition | production (qe2) | 0.305 | 5 | 138 | inconclusive |
| qe | 0.486 | 5 | 303 | equivalent | |
| qe_rec | 0.301 | 5 | 136 | equivalent | |
| simplify off | 0.124 | 17 | 140 | inconclusive | |
| synthetic only | 0.173 | 4 | 66 | inconclusive | |
| Boolean family | production (qe2) | 0.213 | 2 | 31 | equivalent |
| qe | 0.124 | 2 | 27 | equivalent | |
| qe_rec | 0.108 | 2 | 23 | equivalent | |
| simplify off | 0.15 | 2 | 94 | equivalent | |
| synthetic only | 0.104 | 2 | 32 | equivalent |

Fig. 10: E7, warm median runtime of the variants on the AEB composition and on the Boolean-bound instance.
F.10 AEB Performance (E8)
E8 measures the AEB computation with the same instrumented implementation. The timed region consists of computing , by composing and and then composing the result with , and of computing the quotient , both with the production operations. These are the two contracts of Table 2. Construction of the input contracts and bookkeeping lie outside the timed region. Both operations use the default simplification. The cumulative CAVE time and QE time are the times spent in these parts of the operations, and counters are taken from the instrumentation. Each of the 10 repetitions runs in a fresh worker.
The composition and the quotient take 0.718 s and 0.208 s, which is 0.927 s for both (Table 13). The time spent inside CAVE is 0.485 s, which is 52% of the total, and QE takes 0.254 s, which is 27% of the total and 52% of the CAVE time. The computation invokes CAVE 11 times (4 refinements and 7 relaxations) and
Table 13: E8, warm medians over 10 runs for , , and their sum.
| Metric | Composition | Quotient | Combined |
|---|---|---|---|
| Runtime [s] | 0.718 | 0.208 | 0.927 |
| CAVE runtime [s] | 0.408 | 0.0767 | 0.485 |
| QE runtime [s] | 0.251 | 0.00221 | 0.254 |
| CAVE invocations | 8 | 3 | 11 |
| Refinement / relaxation | 2/6 | 2/1 | 4/7 |
| Solver.check() calls | 189 | 117 | 306 |
| Optimize.check() calls | 42 | 28 | 70 |
| QE applications | 20 | 3 | 23 |
| Liveness targets | 1 | 3 | 4 |
| Candidates | 3 | 5 | 8 |
| Max. quantified atoms | 11 | 3 | 11 |
| Max. quantified indexed variables | 19 | 10 | 19 |
| Output cores | 5 | 7 | 12 |
| Output DAG nodes | 124 | 133 | 257 |
performs 306 solver checks, 70 optimization checks, and 23 QE applications. The largest QE problem has 19 indexed variables. The results have 5 and 7 cores and 124 and 133 DAG nodes. The worker needs about 156 MiB of resident memory at peak, which includes the loaded libraries. The first step of the composition, , is also timed in E3 and E7 (0.308 s and 0.305 s), which leaves roughly 0.4 s of the composition time to the step with .
F.11 Limitations of the Evaluation
All measurements come from one machine, one Python implementation, and one version of Z3 and of Spot, and absolute times depend on them. The synthetic families isolate single cost drivers, and their depth sweeps add redundant copies of the same invariant, so they show sensitivity to the syntactic window depth. Timeouts are censored, and a timeout here means that the cold and warm calls together needed more than the limit. E4 uses random small instances, bounded lasso words, and an oracle that is itself software, so it is evidence for soundness and not a proof. The automata comparison uses a single Spot pipeline, and its stress family was designed after the first comparison. No other tool known to us eliminates irrelevant variables when computing the composition or quotient of contracts whose assumptions and guarantees are temporal formulas, so E3 and E6 compare CAVE with the closest alternative constructions and not with competing tools. Finally, in E8 about half of the time is spent outside CAVE, in the contract operations that surround it, and we did not profile these further.