arXiv:2610.40042cs.SEOct 2026

Manuscript Offprint

arXiv:2610.40042

UPPAAi: Towards LLM-Assisted Modeling, Verification, Analysis and Synthesis

Peter Dolog, Kim G. Larsen, Marius Mikučionis, Frederik F. K. Rasmussen

Peter Dolog 1^{1} ID^{ID}, Kim G. Larsen 1^{1} ID^{ID}, Marius Mikučionis 1^{1} ID^{ID}, and Frederik F. K. Rasmussen 1^{1} ID^{ID}

Aalborg University, Aalborg, Denmark {dolog,kgl,marius,ffkr}@cs.aau.dk

Abstract. For more than three decades, UPPAAL has supported the modelling and analysis of real-time and cyber-physical systems. Yet building a suitable model, formalising the intended properties, choosing analysis techniques and interpreting counterexamples remain iterative tasks that demand substantial expertise. Large language models (LLMs) can offer plausible explanations and even solutions, but they are not necessarily correct. We present UPPAAI, an extension of UPPAAL in which users construct, explain, debug and specify models in dialogue with an LLM. The guiding principle is that the user requests, the LLM proposes, explains and orchestrates, and UPPAAL verifies. UPPAAI exposes the UPPAAL editor, queries and verifier through a Tools API. We report on seven case studies, from explaining to a newcomer to learning a controller, covering timed automata, stochastic hybrid automata and strategy learning. LLMs proved to be extremely helpful in not just generating solutions but also pro-actively suggesting relevant UPPAAL features it was not asked about.

Keywords: Model checking · Timed automata · Large language models · UPPAAL · AI-assisted formal methods

1 Introduction

Large language models (LLMs) have become capable generators of software, producing code, tests and documentation of often remarkable quality from informal descriptions. Their fundamental weakness is equally well known: plausibility is not correctness. LLMs excel at proposing artefacts that look right, but are far less reliable at establishing that those artefacts satisfy subtle concurrency, synchronisation and real-time requirements, which are precisely the properties that embedded and safety-critical systems depend on. A growing body of work therefore embeds LLMs in loops in which an external critic evaluates the generated artefacts and its feedback drives repair [16], a practice recently termed loop engineering [14]. A key lesson is that such a loop is only as strong as its critic [10]: self-evaluation by LLMs is unreliable [15], whereas sound external evaluators have enabled striking results [17,18,5,19].

In this paper we instantiate this loop for timed systems with a sound and exhaustive critic: the model checker UPPAAL [1]. We present UPPAAI, an extension

P. Dolog, K. G. Larsen, M. Mikučionis, F. F. K. Rasmussen

inspects and edits the model directly

Figure

Fig. 1: The UPPAAI loop: the LLM generates, the model checker acts as the critic, and the user remains in control of the requirements and the model.

of UPPAAL in which a user constructs, explains, debugs and specifies models in dialogue with an LLM (Fig. 1). The LLM proposes templates, clocks, invariants, synchronisations and queries; UPPAAL checks them; and the resulting verdicts and counterexamples are explained to the user and drive the next refinement. Beyond yes/no verification, the same loop covers quantitative questions through statistical model checking (UPPAAL SMC) and the learning of controllers through UPPAAL STRATEGO [4,12]. The design follows one principle: the LLM proposes, explains and orchestrates, but UPPAAL verifies. The LLM contributes language understanding, domain knowledge, abstraction and explanation; UPPAAL contributes formal semantics, exhaustive exploration, statistical estimates and counterexamples. Claims about correctness, performance or synthesised strategies are accepted only when an executable formal or statistical analysis supports them.

Why this matters. Each step from informal requirements to a verified model has traditionally required specialist expertise. With the LLM acting as a formal-methods mediator, an engineer can state a requirement in natural language, obtain a candidate model and query, and still ask why a clock was introduced or whether the query captures what was meant. Counterexamples, which traditionally demanded expertise to interpret, can be explained causally and lead to proposed repairs that the user can accept or reject. If building a model and checking a property becomes this cheap, model checking can support requirements engineering, architecture exploration and teaching, and not only the late-stage validation of critical components. Finally, as code becomes cheap, trusted specifications become the scarce resource. A validated UPPAAL model can serve as a semantic anchor between intent and implementation: LLM-generated code can be tested for conformance against it [13], or replaced by controllers synthesised from it [4]. Autonomous software-engineering agents can adopt the same pattern of generation checked against executable formal semantics as part of their own reasoning [3].

What does not become automatic. Verifying a model is not verifying the real system, and an LLM can confidently construct the wrong abstraction, state a vacuous property, or weaken a query until it passes. The difficulty thus shifts partly from checking to model validity. UPPAAI addresses this in several ways. The user can observe, inspect, edit and undo changes in the familiar UPPAAL editor while the assistant can detect edits the user made in the meantime. A property can for example only be trusted after it had failed on a deliberately broken variant of the model. The intended benefit is therefore not only productivity. Beyond asking whether a property holds, the engineer can ask what the model should be, which properties matter, what a counterexample means, and what follows if a requirement changes.

Related approaches. LLMs have been coupled with proof assistants [5] and program verifiers [19] to generate proofs and verified programs. There the specification is given and the critic checks the generated artefact against it. In our setting the LLM also writes the model and the properties, so the critic checks a model whose fidelity is itself in question. This is why UPPAAI keeps the user in charge of the requirements, makes every change visible in an interactive modelling tool, and asks for the provenance of each claim to be stated.

Contributions.

– A Tools API that exposes UPPAAL’s model editing, query management and verification to LLMs (Sect. 3).

– Two integration workflows, an external agentic client via MCP and an embedded chat via langchain4j, together with an analysis of their trade-offs (Sect. 3).

– Seven case studies with Claude connected via MCP, starting from existing models and from scratch, with users ranging from newcomers to experienced modellers, and covering timed automata, stochastic hybrid automata, continuous-time Markov chains, ODEs and strategy learning (Sect. 4).

– A cross-case discussion of the recurring patterns: where the verifier corrected the assistant, which claims rested on the assistant’s argument rather than on a tool result, and which limitations of the tool interface shaped the work (Sect. 5).

Outline. Section 2 summarises the features of UPPAAL for modelling and specification that the LLM must master. Section 3 presents the Tools API and the two integration workflows. Section 4 reports on the case studies, Section 5 evaluates and reflects upon the case studies and Section 6 concludes.