arXiv:2610.35680cs.FLOct 2026

Manuscript Offprint

arXiv:2610.35680

Verse: Semantics and Verification of Hybrid Multi-Agent Scenarios

Yangge Li, Katherine Braught, Alex Yuan, Sayan Mitra

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.

  1. 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.