International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece
Time: Thursday, 29.10
Room: Room 2
Authors: Masoud Ebrahimi, Jackiie Samuelsson, Carolina Smigan, Abu Naser Masud, Robbert Jongeling, Marjan Sirjani
Abstract: Maritime automation demands formal safety guarantees that simulation cannot provide. The International Regulations for Preventing Collisions at Sea are specified in natural language, and Legata represents a structured DSL encoding of these regulations, yet no bridge from Legata to actor-based model checking previously existed. We develop a four-stage agentic pipeline (Model Abstraction, Property Mapping, Synthesis and Refine, Verification) accepting Legata representations as input, trans- forming them into Rebeca correctness properties under expert oversight. GPT-4o is evaluated under both novice and skillful configurations using a 10-point translation quality metric that assesses syntax correctness, coverage of actors and attributes, hallucination freedom, and simplicity and correctness of logical expressions. The skillful configuration provides the LLM with additional domain knowledge including Rebeca syntax and examples, and improved average correctness from 8.06/10 to 8.72/10, achieving full actor coverage and zero syntax errors. An iterative verification feedback loop using the Rebeca Model Checker was essential, as error messages from running properties against the actor model are used to refine the translation process. One limitation of this work is that clauses including intents, subjective judgment, or incomplete and open-world knowledge of the environment cannot be directly represented as Boolean invariants over the states of our model. This limitation is not specific to our approach and reflects the need for richer models. The contribution is a reusable four-stage agentic pipeline and 10-point evaluation metric for LLM-assisted DSL formalization tasks, and distinguishing expressiveness boundaries.
Paper: 978-3-032-41269-0_3