Manuscript Offprint
arXiv:2610.35680Verse: Semantics and Verification of Hybrid Multi-Agent Scenarios
YANGGE LI, University of Illinois Urbana Champaign, USA
KATHERINE BRAUGHT, University of Illinois Urbana Champaign, USA
ALEX YUAN, University of Illinois Urbana Champaign, USA
SAYAN MITRA, University of Illinois Urbana Champaign, USA
Verifying cyber-physical systems with many interacting agents remains difficult because interactions are mediated by sensors, individual decisions are constrained by environment (map) structure, and the resulting mode space scales combinatorially. We present Verse, a framework for writing agents, maps, and sensors in a familiar programming language syntax, with a formal semantics for the resulting scenarios. A compiler translates each scenario to a hybrid automaton whose executions correspond exactly to the runs of the scenario. Reachability analysis on this automaton builds an execution tree from two post operators, one for continuous flow over a time step and one for a single agent's mode change, and checks safety assertions at every vertex. The tree expands only the modes that are reached, without enumerating the global mode space. Experiments highlight expressive modeling across cars and drones, 2D/3D maps (including OpenDRIVE imports), noisy sensors, and multiple simultaneous safety assertions. Verse verifies a scenario with 7 agents and 37 modes in 90 seconds on a standard laptop; it is competitive with CORA and JuliaReach on ARCH benchmarks, and on multi-agent scenarios is an order of magnitude faster than JuliaReach at the cost of looser reachable sets.
CCS Concepts: • Theory of computation → Logic and verification; • Computer systems organization → Embedded and cyber-physical systems; • Software and its engineering → Software verification; • Computing methodologies → Multi-agent systems.
Additional Key Words and Phrases: Hybrid systems, formal semantics, reachability analysis, safety verification, multi-agent systems, hybrid automata, autonomous vehicles
1 Introduction
Hybrid automaton formalisms [19, 26] provide a foundational framework for modeling and verifying robotic [11], autonomous [28], and cyber-physical systems [23]. Significant technical advances have been made in formal verification of hybrid systems over the past three decades, with tools such as Hylaa, CORA, and DryVR demonstrating scalability and applicability across linear and nonlinear benchmarks [1, 4, 12]. Despite these successes, hybrid system verification has seen limited adoption in mainstream engineering workflows. A primary reason is a persistent usability barrier: existing tools require users to manually translate system designs into specialized formal modeling languages, often with a steep learning curve. This modeling effort is typically decoupled from system development, making it unclear whether the cost of formalization is justified by the resulting verification benefits.
Experience from large-scale software verification suggests that adoption improves dramatically when verification is integrated directly at the code level, avoiding translation to isolated modeling formalisms [29–31]. While software verifiers such as CBMC and Dafny operate directly on implementation-level artifacts, hybrid verification tools typically require users to hand-construct explicit hybrid automata, including state machines, guards, and reset maps. This process becomes
Authors' Contact Information: Yangge Li, li213@illinois.edu, University of Illinois Urbana Champaign, Urbana, Illinois, USA; Katherine Braught, braught2@illinois.edu, University of Illinois Urbana Champaign, Urbana, Illinois, USA; Alex Yuan, ayuan20@illinois.edu, University of Illinois Urbana Champaign, Urbana, Illinois, USA; Sayan Mitra, mitras@illinois.edu, University of Illinois Urbana Champaign, Urbana, Illinois, USA.
- ACM 2378-9638/2026/11-ART
https://doi.org/10.1145/nnnnnnn.nnnnnnn
Li et al.
especially burdensome for multi-agent systems, where the global state space grows combinatorially, and where reuse across environments is limited.
We believe that three difficulties hold back the verification of realistic multi-agent CPS scenarios: (1) expressing individual decisions independently of map geometry while still enforcing map-specific constraints, (2) formalizing sensor-mediated interaction without omniscient state access, and (3) maintaining verification scalability as agents and modes grow.
To address these challenges, we introduced Verse [25], a Python-based framework for modeling and verifying hybrid multi-agent scenarios. In Verse, a system is defined as a scenario composed of agents embedded in a map and interacting via sensors. Each component is implemented as a Python module and interpreted by the Verse frontend to construct a formal hybrid automaton. The same agent code can be simulated, analyzed, and when appropriate executed on hardware, enabling a unified development and verification workflow.
Verse meets the three difficulties as follows. An agent’s decision logic chooses among a few internal modes, such as cruising or changing lane, and a partial next-mode function supplied by the map decides whether the chosen change is admissible from the agent’s current track. The same logic therefore runs on every map, and an agent can switch only to a lane that exists at its position. Agents never read one another’s state. Each reads the observations returned by a sensor, a set-valued function of the other agents’ observable variables, and an I/O compatibility criterion checks that the logic reads only variables some sensor supplies. Under bounded noise a sensor returns every observation the noise could produce, and a mode change is enabled when some observation in that set satisfies its guard. Verification builds an execution tree that expands only the mode tuples actually reached, so the global mode space is never enumerated.
This article provides the first rigorous formal semantics for the Verse modeling framework. Building on our earlier tool paper [25], we formally define the mathematical structure of Verse scenarios, including precise interfaces for agents, maps, and sensors, and the conditions under which their composition is well-posed. Establishing these semantics is nontrivial because Verse intentionally decouples high-level agent decision logic from the low-level geometric and physical details of the environment, while still allowing agents to be instantiated across heterogeneous maps and scenarios. Our contributions are:
• A formal semantics for multi-agent scenarios, with maps, sensors, and compatibility criteria.
-
A translation from scenarios to hybrid automata, with a proof that the runs of a scenario and the executions of its automaton correspond exactly (Theorem 4.1), and a condition under which the order in which simultaneously enabled agents move cannot matter (Proposition 4.2).
-
An evaluation of expressive modeling (cars and drones, 2D/3D maps, noisy sensors, three reachability engines), a comparison with CORA and JuliaReach on ARCH benchmarks, and a comparison with JuliaReach on two scalable multi-agent scenarios that measures what the architecture gains in speed and loses in precision.
Variables are the fundamental building blocks used to define the state of a system or its components. A typed variable is associated with a type, type( ), which defines the set of all values can take. We denote the set of continuous variables (where type( ) ) as and discrete variables (where type( ) is a finite set) as . For a set of variables , a valuation is a mapping that assigns to each variable a value in its type. We denote a single valuation using a boldface

(100, 4)
(100, 0)

(100, 4)
(100, 0)
Fig. 1. The two-lane highway running example. Top: The map consists of two parallel lanes defined by paths from to and to . The diagram illustrates the four primary track modes: lane-following for ( ) and ( ), and the transitional maneuvers for changing from to ( ) and from to ( ). Bottom: The agents positions do not necessarily follow these reference tracks exactly. E.g., the blue car executes a lane change but does not precisely adhere to the linear reference path.
letter v. The set of all possible valuations for V is denoted by val(V). Thus, if a system is defined by variables V, its state space is val(V).
It is often necessary to extract the local state of a specific component from a global system state. Given a set of variables and a subset , the restriction (or projection) of a valuation to is denoted by . This restricted valuation is an element of such that for all .
Finally, the decision logic in Verse scenarios relies on checking Boolean conditions over these states. To model logic that reasons over collections of components (e.g., checking if "any" agent is close), we use first-order logic quantifiers over finite index sets. Let be a finite set of indices (representing, for example, the collection of agents). We denote the universal quantifier as , which holds if the associated condition is true for all (corresponding to the Python all function). We denote the existential quantifier as , which holds if the condition is true for at least one (corresponding to the Python any function). Guards of this form are common in applications, for example, the benchmarks of Section 5.4 both use one.
3 Multi-Agent Scenarios in Verse
A central contribution of this work is a new formalism for modeling scenarios with multiple hybrid agents that co-evolve in a shared map and interact through sensor-based observations. In this section, we present the underlying mathematical concepts and describe the formalism as realized in Verse. Section 4 then demonstrates how such scenarios can be represented as hybrid automata.
Informally, a scenario defines how a collection of agents move within a shared map and interact via sensors. The map describes the constraint in the workspace in the form of reference paths called tracks. Each agent is a state machine with both discrete and continuous state variables. Our formalism models, agent-to-agent influence only at discrete transitions via sensor observations, even though the continuous dynamics proceed in parallel. The observations are determined by the scenario's sensor function, which might specify, for example, the relative distance to nearby agents or to static elements in the environment.
Li et al.
3.1 Maps, Tracks and Agent's Internal Track Modes
The workspace defines the physical environment in which the agents operate. Formally, a set of continuous variables, denoted by W, represent position of a point in this environment, and the workspace is defined as .
For the Highway example (see Figure 1), the agent’s workspace variables represent a vehicle’s 2D position, and the workspace val(W) is therefore isomorphic to .
A map defines constraints on how an agent may move in the workspace. First of all, a map provides a static collection of reference paths, called tracks, that the agents may follow. The tracks that an agent does follow at run time can of course also depend on its internal discrete state or mode such as “continue straight” or “switch” to its continuous state or position in the workspace. Secondly, a map also governs the agent’s internal decision-making by defining the specific preconditions, such as its current position or assigned track mode, that enable transitions between its internal modes.
Tracks. A track is a continuous function that can be used by an agent as a reference path. A map defines a set of allowed tracks . In the Highway example, there are two lanes of straight reference paths—one from position to and the second from to . Formally, these two are defined by tracks:
In addition to these straight line tracks, the Highway map has a family of lane change tracks that go between the two lanes. One such track, shown in Figure 1, starts at and is the linear path , , which ends at on the second lane. As we shall see, the agents, constrained by their own initial conditions and dynamics, may not follow the tracks exactly.
As the highway example illustrates, a map may contain infinitely many tracks or reference paths. To keep agent behaviors abstract and portable across different maps, Verse groups tracks into a finite set of track modes . An agent thus chooses among abstract categories of motion, such as “straight” or “change lane,” rather than selecting a specific geometric path. Each element in this set is a unique identifier (a name) for a family of related tracks. The set of track modes for the Highway scenario are:
These modes represent distinct geometric categories of tracks available in the map. The modes and correspond to the sets of straight-line tracks, and and , correspond to the families of lane switching paths.
Map. Having introduced tracks and track modes, we can now define the maps precisely. A map is a 4-tuple , where (1) is the finite set of track modes, (2) outputs a concrete track, given a position and a track mode, (3) is the set of permissible internal agent modes allowed in , and (4) is a partial function that outputs the next track mode from the current track mode and internal agent mode given that the agent has chosen to go to the next internal model . An example usage of is shown in Fig. 2. We write when the map permits the change, and the transition is forbidden otherwise; this is what prevents an agent from switching to a lane that does not exist at its current position.
We now define the remaining components of the map tuple for our highway scenario:

Fig. 2. The figure illustrating the role of Nx function. In this example, the agent initially following track with internal mode . When the agent decides to change its internal mode to , this intent, along with the current track mode and agent's internal mode, is fed into the Nx function. The Nx function then processes this input according to the map's rules. As a result, the agent is assigned to the transitional track mode .
• Tk is defined as follows:
where is the path parameter, is the agent's position, and is the track mode. The nature of this mapping depends on the track mode. For modes and , the function maps to fixed tracks that define the absolute geometry of Lane 1 and Lane 2, respectively. The selection of these tracks is therefore independent of the agent's position w. In contrast, the mapping for modes and is dependent on the agent's position w. This dependency ensures that the selected lane change reference path is always correctly positioned to intersect the agent's location, providing a valid connection between the two lanes.
To make this concrete, suppose the agent is at in the first lane and switches to . Then , so the reference path starts at at , passes through at , and ends at at , on the second lane. Suppose instead the agent is at in the second lane and switches to . Then , which starts at , passes through , and ends at on the first lane. In both cases the path is traversed in the direction of increasing , and recovers the agent's own position, which is what makes the reference path usable from wherever the agent happens to be when it commits to the maneuver.
• The set of permitted internal modes for this highway map, , is defined as:
These modes represent the agent’s high-level intentions: to continue in the current lane (Cruise), to switch from Lane 1 to Lane 2 (SwitchLeft), or to switch from Lane 2 to Lane 1 (SwitchRight).
Li et al.
• For this example, Nx is defined as:
where is the current track mode, is the current internal mode, and is the next internal mode. This function encodes the "rules of the road" for this map. The first two cases handle the transition to a cruising state: if an agent's next internal intent is Cruise, it is mapped to the appropriate lane-following track mode ( or ). This applies both to an agent already in the lane and one just completing a lane change. The other two cases define how lane changes are initiated: an agent cruising in a lane that selects a valid switch maneuver (SwitchLeft from Lane 1 or SwitchRight from Lane 2) is mapped to the corresponding transitional track mode ( or ). For all other input combinations, the function is undefined, meaning the transition is not permitted. For instance, attempting to SwitchRight from Lane 1 () has no effect, as no such path exists in the map.
3.2 Agent State Variables
Agents in the scenario are indexed by a finite set I. An individual agent, for , is modeled as a state machine whose state is defined by the values of two distinct types of variables. The first are discrete variables, also called modes, which take values from a finite set and change their state only during discrete transitions. The second are continuous state variables, which are real-valued and evolve continuously over time. A complete valuation of these variables constitutes the full state of an agent. To illustrate these concepts, we will continue our running example in previous section by defining the state variables for a car agent operating on the two-lane highway map. This model captures the behavior of an agent cruising on a straight road that switches to the left lane to avoid a vehicle ahead.
The discrete state, or mode, of an agent is defined by the valuations of two key sets of variables. The first is its set of internal mode variables, denoted . A valuation of these variables represents the agent's private behavioral intent. The second is its set of track mode variables, denoted . A valuation of these variables represents the agent's assigned track mode in the context of the map (e.g., or ), and the values are drawn from the map's global set of track modes, .
For the agent in our example shown in Figure 4, the set of internal mode variables is the singleton set with value space . Similarly, the set of track mode variable, must be drawn from the set of track modes provided in our Highway example.
The collection of all discrete variables for agent is therefore the union of the internal and track mode as . Consequently, the agent's discrete state space—the set of all possible valuations for these variables—is given by the Cartesian product of the respective value spaces: . These formalisms are essential for describing the compatibility between an agent and the map, a topic detailed in Section 3.6.
The continuous state of agent is determined by the valuations of a set of real-valued variables, denoted . This set is itself the union of two groups of variables: . Here, is the set of variables describing the agent's state in relation to the workspace and map's structure (typically including its physical coordinates), while contains all other continuous variables that pertain to the agent's own internal dynamics, such as its velocity or internal timers.
In our example, the set of workspace variables is , which represent the agent's real-valued 2D position. The remaining continuous variables are its speed and orientation, given by the set . The complete set of continuous state variables, , is the union of these two sets, explicitly defined as . A specific continuous state for agent is therefore a valuation of these four variables.
The full state of the agent is then defined by the combination of its continuous and discrete variables. The complete set of all state variables for agent is the union , where is the set of discrete variables defined previously. Consequently, the agent's full state space, the set of all possible valuations, can be expressed as the Cartesian product of the continuous and discrete state spaces: .
3.3 Input and Observable Variables
In Verse, agents interact with each other in a multi-agent scenario via input and observable variables.
Observable Variables. In Verse, each agent exposes a subset of its state variables for other agents to observe. We refer to these as an agent's observable variables. The specific set of variables that an agent is permitted to observe from another agent is denoted by . The contents of this set can depend on both the observing agent and the agent being observed .
For convenience, we define as the complete set of all variables that agent can observe from every agent in the scenario, including itself. This set is formally the union of all pairwise observable sets:
The mechanism that determines which variables are observable is defined by the scenario’s sensor model, which is detailed in Section 3.4.
Input Variables. To compute its next state, an agent relies on a set of input variables. This set, denoted by , comprises all the variables that agent uses for its internal decision logic.
It is crucial to distinguish these input variables from the observable variables . While the two sets are not necessarily identical, a fundamental requirement for any valid scenario is that an agent can only use information it can actually observe. Therefore, the set of an agent's input variables must be a subset of its observable variables. This constraint is formally expressed as:
pass_scenario = Scenario(ScenarioConfig()) Car1 = CarAgent("car1", "passing_simple.py", initial_state=[[0, -0.8, 0, 1.0], [0.1, 0.8, 0, 1.0]], initial_mode=(AgentMode.Normal, TrackMode.T1), Car2 = CarAgent("car1" .... pass_scenario.add_agent(Car1) pass_scenario.add_agent(Car2) ... //Choose one of the following scenario.set_sensor(BaseSensor()) // Scenario with Omniscient Agent scenario.set_sensor(DistSensor()) // Scenario with Distance Agent pass_scenario.set_map(TwoLaneHighWayMap()) traces = scenario.simulate(20, 0.01) traces = scenario.verify(20, 0.01)
Fig. 3. Example Verse script for setting up the two-car highway scenario. Note the selection between different observation models for (lines 10-11).
To illustrate these concepts, let's further expand our two-lane highway example by adding two car agents, (Car1) and (Car2) as shown in Figure 3. We will analyze two different sensor and decision logic configuration for
Li et al.
class agent_mode: {Cruise, SwitchLeft, SwitchRight} class TrackMode: {T0, M01, M10, T1} class State: x, y, v, theta : float agent_mode : agent_mode track_mode : TrackMode
def decisionLogic(ego: State, other: State, map): s_next = s if ego.agent_mode == Cruise and ego.track_mode == other.track_mode and 6 < other.x-ego.x < 8: #start changing to left lane if map.track_exist(ego.track_mode, ego.agent_mode, SwitchLeft): s_next.agent_mode = SwitchLeft s_next.track_mode = map.track(ego.track_mode, ego.agent_mode, SwitchLeft) #change to right lane ... #once lane changes to left lane, return to Cruise if ego.agent_mode == SwitchLeft: if ego.y >= 2.5: s_next.agent_mode = Cruise s_next.track_mode = map.track(ego.track_mode, ego.agent_mode, Cruise) #handle right lane ... return s_next
Fig. 4. Example decision logic for the Omniscient Agent. The function is intended to have access to full states of both ego and other agents.
class AgentMode: {Cruise, SwitchLeft, SwitchRight} class TrackMode: {T0, T1, M10, M01}
class State: x, y, v, theta: float agent_mode: AgentMode track_mode: TrackMode
def decisionLogic(ego: State, dist: float, map): #...
Fig. 5. Simplified decision logic for the Distance Agent. The function signature shows its reliance on a pre-computed dist variable, rather than the full environment.
Omniscient Agent. First, let use the decision logic from Figure 4. This agent's logic is designed to use the full state of both agents. Therefore, its required set of input variables is the union of all state variables from both agents: . We assume has omniscient observation, meaning its set of observable variables is the full states of both agents: . Since is satisfied, the configuration is valid.
Distance Agent. Now, consider a different version of that uses the simpler decision logic from Figure 5, that only requires its own state and the relative distance to , a variable we'll call dist. Its input variables are now . For this to be valid, the relative distance must be explicitly provided to the agent. Therefore, the set of observable variables must be defined to contain and dist, again satisfying the compatibility check .
The set of observable variables serves as the crucial interface between the global state of the scenario and an agent's internal logic. The component responsible for producing these observations is the sensor model, which is the focus of the next section.
3.4 Sensors
As mentioned in Section 3.3, a sensor is a module that provides an agent with its observable information, which is computed from the state of all agents in the scenario. Each agent has its own specific sensor model, denoted .
Formally, the sensor for agent is a function that maps the complete state of the scenario to a set of possible valuations for that agent's observable variables. The sensor function has the following signature:
The key feature of this design is that the sensor’s output is a set of valuations, not necessarily just a single one. This allows the sensor model to represent uncertainty directly. For example, a sensor determining that the distance to another car is within a range (e.g., [10,12] meters) would return the set of all valuations where the distance variable falls within that interval.
3.5 The Agent
We define as the finite index set of agents. An agent is formally defined by a tuple containing its state variables, initial conditions, and dynamics. The components of this tuple define the agent's state, its perception of the world, and its behavior over time . We will now define each of these components.
State Space and Initialization. The agent’s state is defined by its set of state variables, . The agent’s state space is the set of all possible valuations of these variables, denoted . The set of possible initial states for the agent is a subset of this space, denoted .
Perception and Inputs. The agent’s perception is governed by its sensor model, . As defined in Section 3.4, this function takes the full system state and produces a set of valuations for the agent’s observable variables, . The agent’s internal decision logic, in turn, acts upon its set of input variables, , which must be a subset of its observable variables ( ).
Discrete Transitions (Guards and Resets). The agent’s discrete behavior consists of instantaneous transitions between its discrete modes. Each potential transition is governed by a guard and a reset function.
-
The Guard defines the conditions under which a transition can occur. For each pair of discrete modes , the guard specifies a subset of the input value space, . A transition from to is enabled if the agent's current input valuation falls within this set.
-
The Reset defines how the agent’s continuous variables are updated during a discrete transition. For each transition , the reset is a function that maps the agent’s pre-transition state to its new continuous state: .
Continuous Evolution (Flow). While the agent remains in a fixed discrete mode d, its continuous state variables evolve over time. This evolution is described by the agent's flow function, , which determines the resulting continuous state after a given duration of evolution.
Formally, the function takes an initial continuous state, the agent's current discrete mode, and a time duration, and it returns the single continuous state at the end of that duration. The signature is:
The underlying dynamics that this function represents may be specified by a set of ordinary differential equations (ODEs) or, more generally, be given by a black-box simulator.
Li et al.

Fig. 6. Architectural overview of a scenario. The sensor processes the Global System State to produce the set of Observable Variables ( ). The agent receives these observations, and its internal Decision Logic uses a subset of this information, known as its Input Variables ( ), to determine its next action. The Map provides the environmental context for all agents.
3.6 Assembling a Complete Scenario
In the preceding sections, we have defined the essential building blocks of our multi-agent scenario: the static map that provides the environment, the agents with their internal state and behavioral rules (guards, resets, and flows), and the sensors that provide the perceptual link between them. We now formalize how these components are assembled into a complete and coherent scenario.
A scenario in Verse is created by combining a map with a collection of agents, as illustrated in Figure 6. Formally, a scenario is a tuple , consisting of a map and an indexed family of agents coupled with their corresponding sensor.
While this tuple combines the necessary components, a scenario is only considered valid if its parts are consistent. These compatibility rules ensure, for example, that an agent’s decision-making logic only uses information its sensors can actually provide, and that its intended behaviors are permitted by the map. We formalize these requirements as two key compatibility criteria:
The first criterion governs the flow of information between agents. As established in Section 3.3, an agent’s decision logic can only use information that is actually available to it.
Definition 3.1 (I/O Compatibility). An agent is I/O compatible within a scenario if its set of required input variables is a subset of its set of observable variables:
The second criterion ensures that an agent’s capabilities and behaviors align with the structure defined by the map.
Definition 3.2 (Map Compatibility). An agent is compatible with a map if the following conditions hold:
-
Shared Workspace: The agent’s workspace variables and the map’s workspace variables must define the same space, i.e., .
-
Permitted Tactics: Every internal mode the agent can take is permitted by the map, i.e., , and every track mode it can take is one the map provides, i.e., .
-
Admissible transitions: for every pair of agent modes and with , the map permits the change and assigns the track mode the agent claims:
The third condition is what ties an agent's decision logic to the map it is instantiated on. An agent is written without reference to any particular map, so nothing in its own definition prevents it from proposing a lane change that the map does not offer; the condition rules out exactly those scenarios, and Section 4 shows that it is also what makes the guard of the composed automaton well defined. While the scenario model is now complete, it is not yet in a form suitable for rigorous analysis. The next section provides the necessary formalization by mapping the scenario to a hybrid automaton.
4 Verse Scenario to Hybrid Verification
The scenario defined in Section 3.6 provides a high-level description of a multi-agent system. To enable formal analysis, we now define the mapping from a Verse scenario, SC, to its underlying mathematical representation as a hybrid automaton, which we denote . This formalization is crucial as it allows us to apply rigorous verification algorithms developed for hybrid systems to analyze the safety and behavior of the scenario.
Given a scenario , composed of a map and an indexed family of agents, its corresponding hybrid automaton is defined by the tuple:
where the components representing the state space, initial conditions, and dynamics are defined in the following sections.
4.1 State Space and Initialization
The state space of the automaton is composed of continuous and discrete components.
Continuous State Space. The continuous state space of the automaton is the set of all possible valuations of the system's continuous variables:
A valuation represents a complete continuous state of the system. The set of initial continuous states, , is composed of all continuous states that are part of a valid initial configuration of the scenario.
Discrete State Space. The discrete state space, or mode space, is the set of all possible valuations of the system's discrete variables:
A valuation represents a complete discrete state, or mode, of the system. The set of initial modes, , is composed of all discrete modes that are part of a valid initial scenario configuration.
Li et al.
4.2 Automaton Dynamics
An agent’s dynamic behavior is defined by its discrete transitions and continuous evolution. Discrete transitions are given an interleaving semantics: a transition of the composed automaton advances exactly one agent, and agents whose guards are enabled at the same instant are represented by the sequences of single-agent transitions that can be taken at that instant, with no time elapsing between them. Proposition 4.2 states the condition under which this loses nothing relative to a semantics in which such agents move together. The components governing these dynamics are defined as follows.
Guard. The guard for the automaton, G, determines when a discrete transition between two global modes, d and , is allowed. A transition is enabled only if exactly one agent is making a move while all others remain idle.
To define this formally, let a global discrete mode be a tuple of individual agent modes, . A transition from to is enabled for a continuous state if and only if there is exactly one active agent that satisfies the following conditions:
(1) Mode Change: The active agent i changes its discrete mode, i.e., .
(2) Synchronicity: All other agents remain in their current modes, i.e., .
(3) Local Guard Satisfaction: The active agent’s local guard for its transition from to is satisfied. Writing for the full state of the scenario, this means the set of observations produced by its sensor contains at least one valuation permitted by the guard:
(4) Map Admissibility: writing and , the map permits the change and assigns the new track mode:
The set is therefore the set of all continuous states for which such an active agent exists. The map constraints enter the semantics in (4): Without it an agent's decision logic could propose any mode change it liked and the composed automaton would admit it, so a car could switch to a lane that does not exist beside it. Condition (4) forces the reachable mode space to the changes the map actually offers. If is map compatible then the second half of the condition is implied by the first, since the guard is non-empty only for transitions the map admits.
Reset Map. The reset map, , is a function that defines how the system's continuous state is updated during a discrete transition from to .
Reset Map. The reset map, , is a function that defines how the system's continuous state is updated during a discrete transition. The reset's behavior depends on which agent is active in the transition.
By the guard condition above, is defined only when there is exactly one active agent i. Because the sensor is set-valued, a single continuous state may admit several observations that enable the transition, and each may reset the agent differently:
Only the active agent’s continuous variables are written; every other agent’s state remains constant.
Continuous Evolution (Flows). The continuous dynamics of the hybrid automaton are governed by the flow functions of the individual agents. While the system remains in a fixed global discrete mode d, the global continuous state x evolves according to the combined dynamics of all agents running in parallel.
Formally, a function is a valid trajectory for the system starting from a continuous state in a constant mode if, for every agent and for all time , the following condition holds:
Here, denotes the component of the global continuous state corresponding to agent at time , and is the initial continuous state of agent (i.e., the -th component of ). This definition shows how the global system's trajectory is composed from the individual trajectories defined by each agent's flow function, . The component TL is therefore the set of all such pairs representing the valid continuous dynamics of the system. The underlying dynamics this function represents are defined by a simulator. While this is typically a black-box function, analytical "white-box" models, such as ordinary differential equations (ODEs), are also supported by Verse, provided they are executable within its Python environment.
4.3 Formal Semantics as a Hybrid Automaton
The construction of the previous sections maps each component of a scenario to a component of . We summarize the components in the table below.
| Automaton | Determined by | Definition |
|---|---|---|
| X | agents' continuous variables | |
| D | agents' modes, internal and track | |
| agents' initial conditions | projections of | |
| G | guards, sensors, and the map's Nx | one active agent; ; Nx admits the change |
| R | the active agent's reset | on , identity elsewhere |
| TL | agents' flows | for every |
Fix . A -run of SC is a sequence in which each assigns to every agent a function , such that
(1) Initialization. for every agent .
(2) Evolution. for every agent , every , and all .
(3) Interaction. For each there is exactly one agent with ; the others satisfy and . Writing for the state of the scenario at the end of step , there is an observation , the map admits the change, and .
A -run mentions only agents, sensors and the map, and no global mode space, guard or reset.
THEOREM 4.1. Let be a scenario with I/O compatible and map compatible agents. Then is a hybrid automaton in the sense of Definition 1.1 of [18], and for every a sequence is a -run of SC if and only if its componentwise image is a -execution of . Consequently , and SC satisfies a safety assertion exactly when does.
PROOF. The invariant of every control mode is true and the event alphabet is empty, since transitions are autonomous: agents influence one another only through the observations their guards read.
Let send a scenario state to by juxtaposing components. It is a bijection onto , which are the valuations of the unions of the agents' variables, and I/O compatibility leaves no variable of a guard unbound. So it suffices that carry single steps to single steps both ways.
Li et al.
Take a step of a -run. Condition 2 is the condition defining , so . Condition 3 supplies an agent changing mode while the rest stand still, an observation in , and a map-admissible change: the four clauses of . Hence , and the same observation witnesses .
Conversely, membership in TL unpacks to Condition 2 agent by agent, and membership in yields a unique active agent and an observation satisfying its guard, giving Condition 3. Map compatibility makes the track mode named by the one assigns, so the step is realizable by on . Induction along the sequence gives the claim, and the reachable sets agree since corresponding runs end at states identified by .
The compatibility conditions are not vacuous. Without I/O compatibility—say the decision logic branches on other .v while the sensor exposes only dist, as in Section 3.3— constrains a variable no observation binds, is not a bijection, and is not a well-defined subset of . Without map compatibility the guard admits a pair at which is undefined, as the highway map is for SwitchRight from , and the construction admits transitions no agent can take on the map. Verse checks both when a scenario is assembled.
4.4 On the interleaving semantics
A transition of advances one agent, so consider two agents whose guards are enabled by the same observation, as when two cars each detect the other and both decide to change lane. The modeler need not separate observation from action: both orders are behaviors of , and the two occurs at the same real time. Interleaving fixes an order, and the following Proposition states when the order cannot matter.
PROPOSITION 4.2. Suppose for every that the variables modifies are disjoint from . Then for any two agents enabled at the same state, both interleavings reach the same state, and that is the same state a joint transition modeling a simultaneous move would reach.
PROOF. Let and both be enabled at . Taking first changes and writes only variables of , none of which is in by hypothesis. So returns the same observations as before, 's guard is still enabled, its reset evaluates to the same value, and is untouched. Symmetrically with the roles exchanged. Both orders write the same values to disjoint variables, and agree with the simultaneous step, which applies both resets to the pre-transition state.
When some reset does write a variable another agent observes, reads a value that depends on whether has already moved, and the two transition orderings differ. Verse explores both, so analysis stays sound, but its reachable set is then strictly larger than a simultaneous semantics would give. The hypothesis of Proposition 4.2 holds throughout Section 5.
4.5 Sampled-data control
A transition of changes an agent's mode, so a controller that reads a sensor and holds its output within one mode is not a self-loop. It can be written in two ways.
The sampling can go inside the flow: is an arbitrary simulator, so a controller of period is realized by one that recomputes its input at multiples of and holds it in between, leaving the agent in one mode with no transitions. Soundness is unaffected, since Theorem 4.1 requires only that the trajectories of TL agree with , and postCont over-approximates whatever the simulator produces.
Alternatively each sample becomes a transition, via a clock with and a mode variable alternating on , reset to recompute the control and set . The sampling instants are then visible to the analysis, at one transition per sample.
The two modeling styles differ in precision. Sampling inside the flow costs accuracy only when the control is discontinuous in the sampled state, since nearby trajectories then receive different inputs and the fitted discrepancy bound must cover the difference; proportional feedback introduces no such discontinuity, quantizing the actuator does. Making each sample a transition avoids this but re-approximates the reachable set at every sample, which dominates over many periods. Section 5.3 measures both. The flow formulation is preferable unless the sampling instants are themselves of interest.
4.6 Verification algorithms in Verse
To perform verification, we first formalize a system’s behavior over time. We then present the tree-based reachability algorithm implemented in Verse that analyzes these behaviors for safety.
Executions and the Safety Verification Problem. We formalize a system’s behavior as a -execution, which is a time-stepped sequence of trajectories. For a given trajectory , we use the shorthand , , and to denote its initial state , final state , and duration T, respectively. A -execution for a hybrid automaton is then a sequence of labeled trajectories .
This sequence must satisfy three conditions. First, the execution must begin from a valid initial state of the automaton, such that and . Second, each transition in the sequence must satisfy a valid discrete transition. This means that for each trajectory , its endpoint must satisfy the guard condition to enable a jump to the next mode. Consequently, the start point of the next trajectory, , is determined by the reset map . Third, each trajectory segment has a fixed duration , except for the final segment, which can be shorter.
From this definition, we can characterize the set of all reachable states. We define first and last state of an execution as , and the first and last mode as and . The set of reachable states is defined by is an execution of . In addition, we denote the reachable states in a specific mode as and to be the set of reachable states at time .
The safety verification problem is then to determine if this reachable set ever intersects with a predefined set of unsafe states. Denoting the unsafe states for a given mode as , the system is considered safe if and only if for all modes .
Reachability Analysis with Post Operators. To solve this safety problem, Verse’s verify function implements a reachability analysis algorithm that constructs an execution tree. The algorithm relies on two fundamental operators that compute the set of states reachable after a discrete jump or a continuous flow. The discrete post-operator, , calculates the result of a transition between modes and , defined as iff and . The continuous post-operator, , computes the result of continuous evolution within mode for a duration . More specifically, iff , . These operators are lifted to operate on sets of states in the usual way.
The algorithm begins at the root of the execution tree, , and explores reachable states in a breadth-first manner. An edge is created from a vertex to a new vertex if to , iff . This follows the "flow-then-jump" sequence that mirrors the formal definition of an execution. During the construction of this tree, the safety conditions
Li et al.
are checked at each new vertex. In practice, the functions postCont and postDisc compute over-approximations of these sets to ensure soundness, using an approach based on the algorithms in [13].
5 Experiments and Use Cases
Our experimental evaluation is designed to demonstrate both the unique capabilities and the comparative performance of Verse. The evaluation proceeds in two parts. First, we present a series of examples to highlight the novel features of our formalism, particularly its expressive power in modeling complex, multi-agent scenarios. This section serves to qualitatively validate the unique advantages of our approach. Second, we quantitatively benchmark Verse against two state-of-the-art hybrid systems verification tools, CORA [1] and JuliaReach [5]. This comparison, conducted on a suite of standard benchmarks, establishes the computational efficiency and scalability of our tool relative to existing methods. Unless noted otherwise, every measurement reported in this section was taken on an Apple M2 with 8 cores and 24 GB of memory running macOS, single-threaded.
5.1 Important Features of Verse
To showcase the key features and algorithms of Verse, our initial experiments utilize a diverse set of scenarios. These scenarios are constructed from two primary agent models: a 4-dimensional ground vehicle with bicycle dynamics managed by a Stanley controller [20], and a 6-dimensional drone guided by a neural network controller [21]. Furthermore, each agent can be equipped with one of two distinct decision logics. The first is a reactive collision avoidance (CA) logic that directs an agent to switch tracks upon detecting another agent ahead, while the second is a simpler non-player vehicle (NPV) logic where the agent follows its track at a constant speed without reacting to others. We denote these combinations with a shorthand, such as C-CA for a car with collision avoidance or D-NPV for a drone with non-player logic. These agents operate within a varied collection of six maps, including four 2D environments (M1-M4) and two 3D environments (M5-M6). The 2D maps feature configurations of three and five parallel straight tracks (M1 and M2), a set of three parallel curved tracks (M3), and a complex road network imported from OpenDRIVE (M4). The 3D environments are a pair of stacked straight corridors (M5) and a figure-8 circuit (M6), in which the reference tracks cross over themselves in the vertical dimension.
Safety analysis with multiple drones in a 3-d map. The first example is a scenario with two drones—D-CA agent (red) and D-NPV agent (blue)—in map M5. The safety assertion requires agents to always separate by at least 1m. Fig. 7 (left) shows the computed reachable set, its projection on x-position, and on z position. Since the agents are separated in space-time, the scenario is verified safe. These plots are generated using Verse’s plotting functions.

Fig. 7. Left to right: (1) Computed reachtubes for a 2-drone scenario; (2) same reachtube projected on x-dimension, and (3) on z-dimension. Since there is no overlap in space-time, no collision. (4) Reachtube for a 3-drone scenario, the red drone violates the safety condition by entering the unsafe region after moving downward.
assert not (ego.x > 40 and ego.x < 50 and
ego.y > -5 and ego.y < 5 and ego.z > -10 and ego.z < -6), "Unsafe Region"
assert not any(ego.x-other.x < 1 and ego.x-other.x > -1 and
ego.y-other.y < 1 and ego.y-other.y > -1 and
ego.z-other.z < 1 and ego.z-other.z > -1
for other in others), "Safe Separation"
Fig. 8. Safety assertions for three drone scenario.



Fig. 9. Left: running the three car scenario on map with parallel straight lanes. Center: same scenario with a curved map. Right: same scenario with a noisy sensor.
Checking multiple safety assertions. Verse supports multiple safety assertions specified using assert statements. For example, the user can specify unsafe regions (Line 77-78) or safe separation between agents (Line 79-82) as shown in Fig. 8. We add a second D-NPV to the previous scenario and both safety assertions. The result is shown in the rightmost Fig. 7. In this scenario, D-CA violates the safety property by entering the unsafe region after moving downward to avoid collision. The behavior of D-CA after moving upward is not influenced. There is no violation of safe separation. Verse allows users to extract the set of reachable states and mode transitions that leads to a safety violation.
Changing maps. Verse allows users to easily create scenarios with different maps and port agents across compatible maps. We start with a scenario with one C-CA agent (red) and two C-NPV agents (blue, green) in M1. The safety assertion is that the vehicles should be at least 1m apart in both x and y-dimensions. Fig. 9 (left) shows the verification result and safety is not violated. However, if we switch to map M3 by changing one line in the scenario definition, a reachability analysis shows that a safety violation can happen after C-CA merges left Fig. 9 (center). In addition, Verse allows importing map from OpenDRIVE [2] format. An example is shown in Fig. 10 (left).
Adding noisy sensors. Verse supports scenarios with different sensor functions. For example, the user can create a noisy sensor function that mimics a realistic sensor with bounded noise. Such sensor functions are easily added to the scenario using the set_sensor function.
Fig. 9 (right) shows exactly the same three-car scenario with a noisy sensor, which adds noise to the perceived position of all other vehicles. Since the sensed values of other agents only impacts the checking of the guards (and hence the transitions) of the agents, Verse internally bloats the reachable set of positions for the other agents by while checking guards. Compared with the behavior of the same agent with no sensor noise (shown in yellow in Fig 9 (right)), the sensor noise enlarges the region over which the transition can happen, causes enlarged reachtubes for the red agent.
Plugging in different reachability engines. With a little effort, Verse allows users to plug in different reachability tools for the postCont computation. The user will need to modify the interface of
Li et al.

Fig. 10. Left: running the three car scenario on a race track map imported from OpenDrive format. Center: two car scenario verified with DryVR backend. Right: same two car scenario verified with NeuReach backend.
the reachability tool so that given a set of initial states, a mode, and a non negative value , the reachability tool can output the set of reachable states over a -period represented by a set of timed hyperrectangles. Currently, Verse implements computing postCont using DryVR [13], NeuReach [33] and Mixed Monotone Decomposition [8]. A scenario with two car agents in map M1 verified using NeuReach and DryVR is shown in Fig. 10 (center) and (right).
Table 1 reports verification of the examples of this section, together with two standard benchmarks: van-der-pol (Agent V) [16] and spacecraft rendezvous (Agent S) [16]. Every row was run on one machine with peak memory recorded, and the table extended across the agent × map × engine × sensor grid.
Running time grows with the number of discrete states explored, and the seven-agent scenario on M2, with 37 states, finishes in 90 s. Memory usage is almost flat, 356–515 MB, drones scenarios use about 100 MB above cars.
The choice of reachability engine changes more than the running time. NeuReach is one to two orders of magnitude slower than DryVR, since it trains a network per mode, and a looser tube satisfies guards a tighter one does not: on M4 the three-car scenario explores 7 states under DryVR and 49 under NeuReach. Sensing does the same. M3 is unsafe and Verse stops at the first failing assertion, which an exact sensor reaches after four states and m of noise in the first, so that row reports one state rather than a cheaper analysis. Neither #Tr nor Rt reads without the verdict beside it.
5.2 Comparison with Other Tools
In the second part of our evaluation, we quantitatively benchmark Verse against two state-of-the-art hybrid systems verification tools, CORA [1] and JuliaReach [5]. This comparison is conducted on six standard benchmarks from the ARCH competition [17], spanning the system classes the formalism is meant to cover. The suite comprises a high-dimensional linear continuous system (ISSC01), a linear hybrid system (GBX01), two nonlinear continuous systems (CVDP23 and LALO20), and two nonlinear hybrid systems (LOVO21 and SPRE22). Dimensions are reported in Table 2.
Our assessment focuses on two key aspects: the conservatism of the computed reachable sets and the overall runtime. To quantify conservatism we use two size ratios. For a bounded set write for the norm of the diagonal of its bounding box. The Final-to-Initial ratio (F/I) is , measuring precision at the end of the horizon, and the Average-to-Initial ratio (A/I) is over the reach sets of the run, measuring overall tightness. We use the bounding-box diagonal rather than volume because the three tools represent reach sets differently—Verse by hyperrectangles, CORA by
Runtime for NeuReach includes training time.
Table 1. Verification of the examples of Section 5. Columns: number of agents (#), agent type () – C (car), D (drone), V (van der Pol), S (spacecraft), G (gearbox) – map, reachability engine (postCont), whether the sensor is noisy, number of discrete states explored (#Tr), runtime, and peak resident memory. Rows marked † are new in this article and fill out the agent × map × engine × sensor grid. The row marked ‡ was run from the repository branch that produced the conference version, which carries a controller file absent from the current one. Runtimes are not comparable with those of the conference version, which used different hardware, though #Tr reproduces on every row. Timing is taken around verification itself.
| # | Map | postCont | Noisy | #Tr | Rt (s) | Mem (MB) | |
|---|---|---|---|---|---|---|---|
| 2 | C | M1 | DryVR | No | 5 | 3.80 | 360 |
| 3 | C | M1 | DryVR | No | 5 | 6.22 | 364 |
| 3 | C | M1 | DryVR | Yes | 5 | 7.78 | 359 |
| 2 | C | M1 | NeuReach | No | 5 | 204.28 | 515 |
| 7 | C | M2 | DryVR | No | 37 | 90.41 | 387 |
| 3 | C | M3 | DryVR | No | 4 | 9.15 | 357 |
| 3 | C | M4 | DryVR | No | 7 | 41.48 | 361 |
| 2 | D | M5 | DryVR | No | 5 | 5.72 | 465 |
| 3 | D | M5 | DryVR | No | 7 | 12.16 | 463 |
| 2 | D | M5 | NeuReach | No | 5 | 161.03 | 447 |
| # | Map | postCont | Noisy | #Tr | Rt (s) | Mem (MB) | |
|---|---|---|---|---|---|---|---|
| 2 | D | M6 | DryVR | No | 8 | 16.79 | 468 |
| 1 | N/A | DryVR | N/A | 3 | 5.75 | 386 | |
| 1 | S | N/A | DryVR | N/A | 3 | 3.88 | 356 |
| 1 | V | N/A | DryVR | N/A | 1 | 0.04 | 378 |
| 3 | M3 | DryVR | Yes | 1 | 3.46 | 364 | |
| 3 | M3 | NeuReach | No | 1 | 79.62 | 436 | |
| 3 | M4 | DryVR | Yes | 7 | 47.59 | 365 | |
| 3 | M4 | NeuReach | No | 49 | 2003.20 | 439 | |
| 2 | M6 | NeuReach | No | 7 | 412.87 | 476 |
zonotopes, JuliaReach by zonotopes and Taylor models—and the box diagonal is computable from each representation without further over-approximation, so the columns are comparable across tools. The results of this comparison, detailing the conservatism metrics and runtimes for each tool, are presented in Table 2.
Table 2. Comparison of Verse with CORA and JuliaReach on standard ARCH benchmarks (e.g., ISSC01, CVDP23), which are detailed in Sec. 5. The table reports benchmark properties (Dim: dimension, NLN: nonlinear, Hybrid: hybrid system) and performance metrics: Final-to-Initial volume ratio (F/I), Average-to-Initial volume ratio (A/I), and runtime in seconds (Rt). The key takeaway is that Verse is highly competitive, outperforming CORA and JuliaReach in speed and precision on several nonlinear benchmarks (e.g., CVDP23, LALO20). The runs in this table are from the conference version and were produced on an AMD Ryzen 7 5800X with 32 GB running Windows 10, so their runtimes are not comparable with those reported elsewhere in this section. Verse's A/I entries for the three hybrid benchmarks (GBX01, LOVO21, SPRE22) were recomputed after we found that the original script averaged over the final node of the execution tree rather than over the whole tree; the recomputation reproduces the published F/I values, and the corrected A/I is lower in each case. The single-mode rows are unaffected. Absolute values for SPRE22 vary within the sampling noise of the DryVR engine.
| Benchmark | Dim | NLN | Hybrid | Verse | CORA | JuliaReach | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| F/I | A/I | Rt | F/I | A/I | Rt | F/I | A/I | Rt | ||||
| ISSC01 | 273 | n | n | 1.518 | 1.926 | 10.84 | 0.651 | 1.255 | 23.73 | 0.834 | 1.067 | 42.05 |
| GBX01 | 4 | n | y | 1915.321 | 883.5 | 10.59 | 17.596 | 8.812 | 2.34 | 2.180 | 1.391 | 9.66 |
| CVDP23 | 4 | y | n | 1.075 | 0.943 | 0.63 | 0.498 | 0.620 | 296.82 | 1.006 | 0.941 | 8.44 |
| LALO20 | 7 | y | n | 0.028 | 0.383 | 0.858 | 0.100 | 0.670 | 154.02 | 0.051 | 0.570 | 13.42 |
| LOVO21 | 2 | y | y | 15.114 | 10.79 | 5.135 | 19.382 | 8.915 | 17.49 | 1.143 | 1.899 | 3.45 |
| SPRE22 | 4 | y | y | 1.357 | 0.39 | 36.14 | 1.431 | 0.303 | 20.98 | 1.104 | 0.190 | 117.16 |
The comparison results in Table 2 first demonstrate the broad applicability of Verse, which solved all six benchmarks. This suite includes high-dimensional linear systems (ISSC01), linear hybrid systems (GBX01), and a variety of nonlinear continuous (CVDP23, LALO20) and nonlinear hybrid (LOVO21, SPRE22) problems.
Verse's advantage is in runtime, and it is largest on the nonlinear benchmarks. On CVDP23 it finishes in 0.63 s against CORA's 296.82 s, and on LALO20 in 0.858 s against 154.02 s; in the high-dimensional linear case it completes ISSC01 more than twice as fast as CORA and four times faster than JuliaReach.
Li et al.
Precision is the other side of the trade. Verse computes the tightest reachable set of the three tools on LALO20, but on the remaining five benchmarks JuliaReach is tighter, and on ISSC01 and GBX01 CORA is tighter as well. The gap is widest on GBX01, where Verse's F/I ratio is 1915.3 against CORA's 17.6 and JuliaReach's 2.18. The cause is representational: Verse propagates hyperrectangles, which carry no dependency between state variables, whereas CORA and JuliaReach use zonotopes and Taylor models that do. Each discrete transition in a hybrid benchmark re-approximates the guard intersection by an axis-aligned box, so the error compounds across transitions; GBX01, whose impact resets are frequent, is the worst case. The same mechanism produces the degrading separation bound reported in Section 5.4, and it is what motivates the star-set representation discussed in Section 7.
5.3 Sampled-data control
Section 4.5 describes two ways of writing a digital controller that samples and holds within a single mode. We measure both on a second-order plant,
with , , , under a controller running at , where is the position as sampled and held over each period. The initial set is , , the horizon is , and . We run the plant twice: once with the control applied directly, which makes it a continuous function of the sampled state, and once with the actuator quantized to steps of 0.05, which makes it a step function of that state. Table 3 reports all cases, with the F/I and A/I ratios taken over .
Table 3. A controller written with the sampling inside the flow and as an explicit transition per sample, under a continuous and a quantized control law.
| Formulation | Control | Modes | #Tr | Rt (s) | F/I | A/I |
|---|---|---|---|---|---|---|
| sampling in | continuous | 1 | 0 | 0.65 | 1.21 | 1.52 |
| transition per sample | continuous | 2 | 124 | 10.33 | 105.02 | 38.55 |
| sampling in | quantized | 1 | 0 | 0.62 | 3.46 | 3.09 |
| transition per sample | quantized | 2 | 124 | 10.00 | 127.55 | 46.32 |
Quantizing the actuator costs the flow formulation a factor of 2.9 in F/I, from 1.21 to 3.46. This is the penalty for hiding a discontinuity inside : the discrepancy bound must cover the difference between trajectories that fall on opposite sides of a quantization threshold, and it is charged at every sample whether or not the trajectories actually separate. With the continuous control law there is no such threshold and the penalty does not arise.
Making each sample a transition costs a factor of 87 in F/I under the same continuous control law, and is 16 times slower. Each of the 124 transitions re-approximates the reachable set, and over a horizon of a hundred periods that accumulation is an order of magnitude larger than the discontinuity penalty it avoids. The ordering is the same for the quantized law. A controller of this kind should therefore be written inside , and the clock formulation reserved for cases where the sampling instants must be reasoned about rather than merely simulated.
5.4 Multi-agent Comparison with JuliaReach
We compare Verse with JuliaReach [5] on two scalable scenarios in which the discrete mode space, rather than the continuous dimension, is what grows. Such a comparison is constrained by what both tools express: Verse admits a black-box simulator for , whereas set-propagation tools require symbolic dynamics, so both scenarios keep each agent's flow in closed form.
Benchmark A: braking platoon. vehicles travel in a line, each with longitudinal state and three modes: Cruise (), Brake (), and Stopped, entered with the reset . A vehicle brakes when some vehicle ahead lies within , so the guard is an existential quantifier over the other agents. The lead vehicle brakes at time zero and the deceleration propagates down the line as a wave (Fig. 11). The assertion requires that no vehicle come within of the one ahead. The mode space is ; no map is involved.
Benchmark B: lane changes on a map. Three straight lanes (), with car agents using the bicycle dynamics and Stanley controller of Section 5. A car closing to within 3 to 5 m of a slower car ahead changes lane, its track mode passing through or . This benchmark exercises the map abstraction: agent mode and track mode together select the reference path, and admissible changes are those permits. Speeds are set so a lane change commands rad against the controller's 0.61 rad steering limit, so the limit is active during every maneuver.
Method. Both tools are built natively, JuliaReach's compilation time is excluded, and safety checking is inside the timed region for both. JuliaReach is handed the flattened automaton, generated programmatically rather than written by hand, so the comparison measures the size of the object that must exist rather than the effort of typing it. Both tools verify the same assertion and agree on every row of Table 4: all scenarios are safe. For Benchmark A we report the tightest separation the analysis certifies between consecutive vehicles, whose true value 11.5 to 12.9 m is known analytically; the ratios of Table 2 are not meaningful here, as the reachable set is a union over many mode branches.

Fig. 11. Position reacttubes for the four-vehicle platoon: the vehicles come to rest in sequence, and the tube widens down the line as the uncertainty in each braking time accumulates.
Table 4. Comparison of Verse and JuliaReach on multi-agent scenarios. Columns are: number of agents (N), continuous dimension (Dim), and for each tool the discrete states it materializes, runtime (Rt), peak memory (Mem), and the tightest certified separation (Sep, metres; true value 11.5–12.9, larger is tighter). For Verse, “States” is the number of mode tuples the analysis visits; for JuliaReach it is the number of locations the flattened automaton must contain, with the transition count alongside. Both tools report every scenario safe.
| Benchmark | N | Dim | Verse | JuliaReach | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| States | Rt (s) | Mem | Sep | Loc. | Trans. | Rt (s) | Mem | Sep | ||||
| Platoon | 2 | 4 | 4 of 9 | 1.84 | 353 | 11.13 | 9 | 9 | 77.5 | 1327 | 11.88 | 42× |
| Platoon | 3 | 6 | 7 of 27 | 6.22 | 356 | 7.70 | 27 | 45 | 242.6 | 1519 | 11.90 | 39× |
| Platoon | 4 | 8 | 11 of 81 | 21.50 | 359 | 4.26 | 81 | 189 | 446.8 | 1756 | 11.97 | 21× |
| Lane change | 2 | 8 | 5 | 5.62 | 356 | — | 11,025 | 122,580 | 241.4 | 2763 | — | 43× |
Observations. Verse is between 21 and 43 times faster on every row, and the gap in the discrete state space is larger still: at N = 4 on the platoon it visits 11 of 81 mode tuples, and on the lane-change scenario 5, where the flattened automaton contains 11,025 locations and 122,580 transitions. Verse never constructs the product; the mode space is generated from each agent's decision logic as the analysis explores it.
JuliaReach's analysis is more precise; it certifies a separation of about 11.9 m at every N, close to the true value, whereas Verse certifies 11.13, 7.70 and 4.26 m as N grows. Because Verse composes per-agent hyperrectangles, the uncertainty in one vehicle's braking time is inherited by the vehicle
Li et al.
behind it and accumulates along the platoon. This is the same representational limitation behind the conservative ratios of Table 2.
Two properties of Verse’s semantics had to be recovered by hand in the flattened models, neither having a counterpart in an automaton whose guards must be convex. A quantified guard such as “some vehicle ahead is within 18 m” is not convex, so it splits into one transition per sensed agent unless the modeler observes that the platoon ordering makes the immediate predecessor the only relevant neighbour: on the platoon that is the difference between 189 and 351 transitions at N = 4. Urgency requires an invariant negating the guard, again a disjunction and again convex only under the ordering assumption; omitting it in the lane-change model left the branch in which a car does not change lane, and the analysis correctly reported the resulting collision.
Conclusions. On scenarios whose difficulty lies in the discrete structure rather than the continuous dimension, Verse is an order of magnitude faster and materializes a small fraction of the mode space, at the cost of looser reachable sets that degrade as agents accumulate. Both scenarios also required the modeler to supply, by hand and per benchmark, the split of quantified guards and the invariants that make transitions urgent—exactly the steps the translation of Section 4 performs from the agent, map and sensor definitions.
6 Related Works
Formal verification of hybrid systems has traditionally relied on specialized tools such as SpaceEx [14], Flow* [7], dReach [22], C2E2 [10], and CORA [1]. These operate on low-level modeling languages far removed from software development workflows: SpaceEx takes a custom XML format with explicitly flattened automata, while Flow* and dReach use text-based constraint specifications for ODEs and guards, so developers translate code into formulas by hand. They also lack native support for composition. Inter-agent interaction is modeled by action synchronization over shared labels, and abstractions like sensors or maps are not first-class, so sensor logic and map geometry are encoded directly into transition guards.
A more recent wave of tools has moved closer to the development process by supporting models written in general-purpose programming languages. Tools such as Hylaa [3] and JuliaReach [5] support systems defined in Python and Julia, respectively, bridging the language gap for differential equation analysis. Similarly, DryVR [12] enables data-driven verification by combining black-box simulators for continuous dynamics (executable in Python) with a white-box transition graph (often specified in JSON) that defines the discrete mode switching structure.
These bridge the language gap but not the architectural one: they view a system as a monolithic set of differential equations or a single global automaton given by a transition graph, rather than a composition of interacting objects, and so lack agent classes, map objects or sensor interfaces. Verse treats these as first-class modules, with agents as Python objects interacting through sensor interfaces. It shares the multi-agent focus of SceneChecker [32], and adds decision logic in Python together with topological maps that decouple agent intent from geometry.
Verse’s continuous post operator is neither a new set representation nor a new integration scheme. postCont is a pluggable interface whose implementations wrap existing algorithms—DryVR’s simulation-driven discrepancy bounds [13], NeuReach [33], and mixed-monotone decomposition [8]—so on a single continuous system Verse behaves like whichever is plugged in, and the conservatism in Table 2 reflects their hyperrectangle representation. What is new is the layer above: the abstractions of Section 3 and the translation of Section 4, which build the mode space, guards and resets of a multi-agent automaton from per-agent decision logic, a map and sensors. Section 5.4 measures what that buys and costs.
A tool paper on Verse appeared at CAV 2023 [25]. It introduced agents, maps and sensors, the shape of the automaton , and the execution-tree algorithm built from the two post operators, and Section 5 reuses the scenarios it reported on. This article provides the detailed semantics: any guard of requires a mode change to be admissible under Nx, which is partial, and map compatibility constrains an agent's transitions; Theorem 4.1 relates the behaviors of a scenario and of its automaton. Sensors are set-valued, which is what makes bounded-noise sensing sound, and Proposition 4.2 states when the order in which simultaneously enabled agents move cannot matter. Section 5.4 compares Verse with JuliaReach on two scalable multi-agent scenarios, which the ARCH benchmarks do not exercise.
Beyond verification, a rich ecosystem supports creating and testing multi-agent scenarios: Scenic [15] defines scenario distributions probabilistically for guided sampling and falsification, Flow [34] integrates traffic simulators for reinforcement learning, and AAM-GYM [6], GRAIC [27] and CARLA [9] provide environments for air mobility, racing and driving. These rely on sampling-based simulation or falsification, and so give no symbolic reachability or safety guarantee. Verse offers comparable scenario flexibility while retaining set-based analysis.
7 Discussion and Future Works
In this paper, we have presented a complete and rigorous mathematical formalism for the Verse library, bridging the gap between high-level, user-friendly Python scenarios and formal hybrid systems verification. We established the precise mathematical signatures for the core abstractions—Agents, Maps, and Sensors—and defined the I/O and Map compatibility criteria that formally determine whether a scenario is well-posed. Furthermore, we provided the translation algorithm that compiles these high-level scenarios into hybrid automata, enabling the application of sound reachability analysis. Our experimental evaluation demonstrated that this approach is highly expressive, capable of modeling complex, heterogeneous multi-agent systems, and computationally competitive with state-of-the-art tools.
Despite these advances, the current framework has limitations that point toward important future directions. First, regarding perception, the current Sensor abstraction ( ) is a simplified set-valued function. While it can model basic uncertainty intervals, it does not fully capture the complex, state-dependent errors characteristic of modern, machine-learning-based perception pipelines, nor does it account for environmental factors such as lighting or weather. Second, regarding analysis precision, the current reachability engine typically relies on hyperrectangles or similar representations. As observed in our linear benchmarks, this can lead to conservative approximations compared to tools optimized for specific dynamics, potentially limiting its utility for systems with tight safety margins. Third, the formalism does not cover agents whose continuous dynamics are coupled. Each reads only agent i's own state, so interaction is confined to discrete transitions, and a platoon controller that feeds a neighbour's position into the vector field is outside what Verse expresses.
To address these challenges, our future work will focus on two key enhancements. To improve the realism of the sensor model, we plan to integrate perception contracts [24]. This method allows for the rigorous analysis of vision-based control systems by deriving formal contracts for Deep Neural Network (DNN) observers, enabling the automatic identification of Operating Design Domains (ODDs) where system stability is assured. Simultaneously, to address the conservatism in reachability analysis, we aim to incorporate Generalized Star Sets as a core data structure. Preliminary work on "Starred Verse" indicates that this representation can significantly improve precision—reducing reachset diameters by up to 50% in high-dimensional scenarios—by better capturing the dependencies between continuous state variables.
Li et al.
Acknowledgments
We thank the NASA sponsored ULI research center AVIATE at the University of Illinois at Urbana-Champaign for supporting this work. We are also thankful to Bach Viet Hoang for his help with experiments.
References
[1] M. Althoff. 2015. An Introduction to CORA 2015. In Proc. of the Workshop on Applied Verification for Continuous and Hybrid Systems.
[2] Association for Standardization of Automation and Measuring Systems (ASAM). 2021. Open Dynamic Road Information for Vehicle Environment. https://www.asam.net/standards/detail/opendrive/
[3] Stanley Bak and Parasara Sridhar Duggirala. 2017. HyLAA: A Tool for Computing Simulation-Equivalent Reachability for Linear Systems. In Proceedings of the 20th International Conference on Hybrid Systems: Computation and Control (Pittsburgh, Pennsylvania, USA) (HSCC '17). Association for Computing Machinery, New York, NY, USA, 173–178.
[4] Stanley Bak, Hoang-Dung Tran, and Taylor T. Johnson. 2019. Numerical Verification of Affine Systems with up to a Billion Dimensions. In Proceedings of the 22nd ACM International Conference on Hybrid Systems: Computation and Control (Montreal, Quebec, Canada) (HSCC '19). Association for Computing Machinery, New York, NY, USA, 23–32.
[5] Sergiy Bogomolov, Marcelo Forets, Goran Frehse, Kostiantyn Potomkin, and Christian Schilling. 2019. JuliaReach: a toolbox for set-based reachability. In Proceedings of the 22nd ACM International Conference on Hybrid Systems: Computation and Control. 39–44.
[6] Marc Brittain, Luis E. Alvarez, Kara Breeden, and Ian Jessen. 2022. AAM-Gym: Artificial Intelligence Testbed for Advanced Air Mobility. arXiv:2206.04513 [cs.AI]
[7] Xin Chen, Sriram Sankaranarayanan, and Erika Abraham. 2015. Flow* 1.2: More Effective to Play with Hybrid Systems. In ARCH14-15. 1st and 2nd International Workshop on Applied veRification for Continuous and Hybrid Systems (EPiC Series in Computing, Vol. 34), Goran Frehse and Matthias Althoff (Eds.). EasyChair, 152–159.
[8] Samuel Coogan. 2020. Mixed Monotonicity for Reachability and Safety in Dynamical Systems. In 2020 59th IEEE Conference on Decision and Control (CDC). 5074–5085.
[9] Alexey Dosovitskiy, German Ros, Felipe Codevilla, Antonio Lopez, and Vladlen Koltun. 2017. CARLA: An Open Urban Driving Simulator. In Proceedings of the 1st Annual Conference on Robot Learning. 1–16.
[10] Parasara Sridhar Duggirala, Sayan Mitra, Mahesh Viswanathan, and Matthew Potok. 2015. C2E2: A verification tool for stateflow models. In TACAS. Springer, 68–82.
[11] Magnus Egerstedt and Xiaoming Hu. 2002. A hybrid control approach to action coordination for mobile robots. Automatica 38, 1 (2002), 125–130.
[12] Chuchu Fan, Bolun Qi, Sayan Mitra, and Mahesh Viswanathan. 2017. DryVR: Data-Driven Verification and Compositional Reasoning for Automotive Systems. In Computer Aided Verification - 29th International Conference, CAV 2017, Heidelberg, Germany, July 24-28, 2017, Proceedings, Part I. 441–461.
[13] Chuchu Fan, Bolun Qi, Sayan Mitra, and Mahesh Viswanathan. 2017. DryVR: Data-Driven Verification and Compositional Reasoning for Automotive Systems. In Computer Aided Verification (CAV), Rupak Majumdar and Viktor Kunčak (Eds.). Springer, Cham, 441–461.
[14] Goran Frehse, Colas Le Guernic, Alexandre Donzé, Scott Cotton, Rajarshi Ray, Olivier Lebeltel, Rodolfo Ripado, Antoine Girard, Thao Dang, and Oded Maler. 2011. SpaceEx: Scalable Verification of Hybrid Systems. In Computer Aided Verification (CAV). 379–395.
[15] Daniel J. Fremont, Tommaso Dreossi, Shromona Ghosh, Xiangyu Yue, Alberto L. Sangiovanni-Vincentelli, and Sanjit A. Seshia. 2019. Scenic: A Language for Scenario Specification and Scene Generation. In Proceedings of the 40th ACM SIGPLAN Conference on Programming Language Design and Implementation (Phoenix, AZ, USA) (PLDI 2019). Association for Computing Machinery, New York, NY, USA, 63–78.
[16] Luca Geretti, Julien Alexandre Dit Sandretto, Matthias Althoff, Luis Benet, Alexandre Chapoutot, Xin Chen, Pieter Collins, Marcelo Forets, Daniel Freire, Fabian Immler, Niklas Kochdumper, David P. Sanders, and Christian Schilling. 2020. ARCH-COMP20 Category Report: Continuous and Hybrid Systems with Nonlinear Dynamics. In ARCH20. 7th International Workshop on Applied Verification of Continuous and Hybrid Systems (ARCH20) (EPiC Series in Computing, Vol. 74), Goran Frehse and Matthias Althoff (Eds.). EasyChair, 49–75. https://doi.org/10.29007/zkf6
[17] Luca Geretti, Julien Alexandre Dit Sandretto, Matthias Althoff, Luis Benet, Pieter Collins, Marcelo Forets, Elena Ivanova, Yangge Li, Sayan Mitra, Stefan Mitsch, Christian Schilling, Mark Wetzlinger, and Daniel Zhuang. 2023. ARCH-COMP23 Category Report: Continuous and Hybrid Systems with Nonlinear Dynamics. In Proceedings of 10th International
Workshop on Applied Verification of Continuous and Hybrid Systems (ARCH23) (EPiC Series in Computing, Vol. 96), Goran Frehse and Matthias Althoff (Eds.). EasyChair, 61–88. https://doi.org/10.29007/93f2
[18] T.A. Henzinger. 1996. The theory of hybrid automata. In Proceedings 11th Annual IEEE Symposium on Logic in Computer Science. 278–292. https://doi.org/10.1109/LICS.1996.561342
[19] Thomas A. Henzinger. 1996. The Theory of Hybrid Automata. In 11th Annual IEEE Symposium on Logic in Computer Science. 278–292.
[20] Gabriel M. Hoffmann, Claire J. Tomlin, Michael Montemerlo, and Sebastian Thrun. 2007. Autonomous Automobile Trajectory Tracking for Off-Road Driving: Controller Design, Experimental Validation and Racing. In 2007 American Control Conference. 2296–2301.
[21] Radoslav Ivanov, James Weimer, Rajeev Alur, George J Pappas, and Insup Lee. 2019. Verisig: verifying safety properties of hybrid systems with neural network controllers. In Proceedings of the 22nd ACM International Conference on Hybrid Systems: Computation and Control. 169–178.
[22] Soonho Kong, Sicun Gao, Wei Chen, and Edmund Clarke. 2015. dReach: -Reachability Analysis for Hybrid Systems. In Tools and Algorithms for the Construction and Analysis of Systems, Christel Baier and Cesare Tinelli (Eds.). Springer Berlin Heidelberg, Berlin, Heidelberg, 200–205.
[23] Pratyush Kumar, Dip Goswami, Samarjit Chakraborty, Anuradha Annaswamy, Kai Lampka, and Lothar Thiele. 2012. A hybrid approach to cyber-physical systems verification. In Proceedings of the 49th Annual Design Automation Conference. 688–696.
[24] Yangge Li, Chenxi Ji, Jai Anchalia, Yixuan Jia, Benjamin C Yang, Daniel Zhuang, and Sayan Mitra. 2025. Lyapunov Perception Contracts for Operating Design Domains. In Proceedings of the 7th Annual Learning for Dynamics & Control Conference (Proceedings of Machine Learning Research, Vol. 283), Necmiye Ozay, Laura Balzano, Dimitra Panagou, and Alessandro Abate (Eds.). PMLR, 1053–1065. https://proceedings.mlr.press/v283/li25c.html
[25] Yangge Li, Haoqing Zhu, Katherine Braught, Keyi Shen, and Sayan Mitra. 2023. Verse: A Python Library for Reasoning About Multi-agent Hybrid System Scenarios. In Computer Aided Verification, Constantin Enea and Akash Lal (Eds.). Springer Nature Switzerland, Cham, 351–364.
[26] Nancy Lynch, Roberto Segala, Frits Vaandrager, and H. B. Weinberg. 1995. Hybrid I/O automata. In Hybrid Systems III (LNCS, Vol. 1066), T. Henzinger R. Alur and E. Sontag (Eds.). Springer-Verlag, New Brunswick, New Jersey.
[27] Minghao Jiang and Zexiang Liu and Kristina Miller and Dawei Sun and Arnab Datta and Yixuan Jia and Sayan Mitra and Necmiye Ozay. 2021. GRAIC: A simulator framework for autonomous racing. https://popgri.github.io/Race/.
[28] Sayan Mitra. 2021. Verifying cyber-physical systems a path to safe autonomy. The MIT Press.
[29] Rachel Potvin and Josh Levenberg. 2016. Why Google Stores Billions of Lines of Code in a Single Repository. Commun. ACM 59 (2016), 78–87. http://dl.acm.org/citation.cfm?id=2854146
[30] Alastair David Reid, Luke Church, Shaked Flur, Sarah de Haas, Maritza L. Johnson, and Ben Laurie. 2020. Towards making formal methods normal: meeting developers where they are. ArXiv abs/2010.16345 (2020). https://api.semanticscholar.org/CorpusID:226221831
[31] Neha Rungta. 2022. A Billion SMT Queries a Day (Invited Paper). In Computer Aided Verification: 34th International Conference, CAV 2022, Haifa, Israel, August 7–10, 2022, Proceedings, Part I (Haifa, Israel). Springer-Verlag, Berlin, Heidelberg, 3–18. https://doi.org/10.1007/978-3-031-13185-1_1
[32] Hussein Sibai, Navid Mokhlesi, Chuchu Fan, and Sayan Mitra. 2020. Multi-agent Safety Verification Using Symmetry Transformations. In Tools and Algorithms for the Construction and Analysis of Systems, Armin Biere and David Parker (Eds.). Springer, Cham, 173–190.
[33] Dawei Sun and Sayan Mitra. 2022. NeuReach: Learning Reachability Functions from Simulations. In Tools and Algorithms for the Construction and Analysis of Systems - 28th International Conference, TACAS 2022, Held as Part of the European Joint Conferences on Theory and Practice of Software, ETAPS 2022, Munich, Germany, April 2-7, 2022, Proceedings, Part I. 322–337.
[34] Cathy Wu, Aboudy Kreidieh, Kanaad Parvate, Eugene Vinitsky, and Alexandre M. Bayen. 2017. Flow: Architecture and Benchmarking for Reinforcement Learning in Traffic Control. ArXiv abs/1710.05465 (2017).
Received 20 February 2026; revised 18 November 2026