International Symposium on Leveraging Applications of Formal Methods, Verification, and Validation • Kos, Greece
Time: Thursday, 29.10
Room: Room 2
Authors: Thierry Lecomte
Abstract: Large language models accelerate the drafting of formal specifications, parsers, validation rules, and documentation, but they also produce plausible-but-wrong artefacts that erode the certification arguments required by CENELEC EN 50128/50716, DO-178C, IEC 62304 and similar standards. Drawing on CLEARSY's industrial practice across thirty years of B-method engineering and the past eighteen months of LLM-assisted projects (formal data validation for ERTMS/ETCS, safety controllers for machine-learning outputs, rule corpus authoring for the CLEARSY Data Solver, parser and grammar synthesis, and conversational documentation), this presentation extracts a single architectural pattern that has reliably governed every successful deployment: MCP + Oracle + Reviewer. A Model Context Protocol server defines a narrow, logged, typed surface that lets the LLM read project artefacts and propose edits. An authoritative formal toolchain adjudicates each proposal against a fixed reference, such as a B specification, a JSON schema, a UNISIG Subset clause, or a simulator. A human reviewer adjudicates what the toolchain cannot. We instantiate the pattern on four CLEARSY projects, report what scales (rule and document authoring near 100× human throughput), where it silently fails (LLM-generated artefacts that pass formal checks but encode wrong intent), and what to expect from the next generation of coding agents in domains where certification is non-negotiable. The pattern is offered as a candidate baseline for industrial AI-assisted programming under EN 50716 and the EU AI Act.