arXiv:2610.19735cs.CLOct 2026

Manuscript Offprint

arXiv:2610.19735

MakSafe: A Spatiotemporal Semantic Framework for Formal Specification and Compliance Checking of Road Vehicle Safety Rules

Maksym Labzhaniia, Julien Deantoni, Marie-Agn{è}s Peraldi-Frati, Fr{é}d{é}ric Mallet

Maksym Labzhaniia, Julien Deantoni, Marie-Agnès Peraldi-Frati, and Frédéric Mallet

Université Côte d'Azur, Inria, CNRS, I3S, Kairos

Sophia Antipolis, France

maksym.labzhaniia@etu.univ-cotedazur.fr, julien.deantoni@inria.fr, {marie-agnes.peraldi, frederic.mallet}@univ-cotedazur.fr

Abstract—Scenario-based validation is essential for automated road vehicles but cannot cover the full variability of open-world traffic. We present MakSafe, a formal spatiotemporal framework for specifying and checking road vehicle safety rules through semantic zones, action-based forecasting, and trace-tree reasoning, avoiding uniform time discretization. We formalize the road network, vehicle states, and occupancy zones, then build executable rules for front-vehicle identification and time-to-collision (TTC) verification. The evaluation combines a trace-dependent case study with a scalability benchmark over traffic density (N), horizon (H), and branch factor (B). MakSafe yields branch-specific verdicts, deriving safe and unsafe outcomes from the same initial scene, and re-evaluates a scenario after a control update. A single rule check stays well below a millisecond across the reported sweep, and longer horizons slow the TTC check.

Index Terms—Autonomous vehicles, SOTIF, spatiotemporal reasoning, safety rules.

I. INTRODUCTION

Advanced Driver Assistance Systems (ADAS) and increasingly autonomous driving functionalities require rigorous mechanisms for specifying and assessing safety. Standards such as ISO 21448 SOTIF and ISO 26262 define development and validation processes for automotive systems, yet the operational validation of driving behaviour remains difficult due to the combinatorial complexity of traffic situations.

Scenario-based validation is today the dominant industrial practice. However, a scenario only captures a finite sequence of scenes (snapshots of the environment and all vehicle states) and consequently, even large scenario libraries cannot guarantee coverage of all future traffic evolutions that may emerge from a given scene. This limitation is especially problematic for systems that must reason about future evolution and interactions among dynamic agents.

Safety rules constitute a complementary abstraction. Instead of validating isolated scenarios, safety rules specify general constraints over acceptable vehicle behaviour. Typical examples include maintaining a minimum time headway, ensuring safe lane-change distances, or preserving collision-free occupancy over a given horizon.

Many existing formal approaches rely on discretized temporal traces and evaluate safety at uniformly sampled times-tamps. While effective, such approaches can incur large computational overheads and may require fine-grained sampling to capture semantically relevant transitions between sampling instants. In this paper, we present MakSafe, a spatiotemporal semantic framework for specification and compliance checking of road vehicle safety rules. MakSafe relies on semantic zones representing relevant spatial occupancy over road networks and performs safety reasoning around decision points induced by actions rather than uniformly discretizing time. The framework supports prospective safety assessment, enabling interpretable, machine-checkable verdicts for predicted future behaviour.

The main contributions of this paper are:

• A formal semantic framework for representing road networks, vehicles, actions, and spatial zones;

• A trace-tree forecasting mechanism that supports action-dependent prospective safety reasoning and branch-specific verdict generation;

• A Haskell implementation with two evaluations: (i) a lane-end time-to-collision (TTC) case study with trace-specific verdicts, and (ii) a scalability benchmark.

We organize the remainder of the paper as follows. Section II summarizes the background and related work. Section III introduces the formal foundations and verification procedures of MakSafe. Section IV presents the lane-end TTC case study and trace-dependent evaluation results. Section V discusses implications and limitations. Section VI concludes.