通过结构化自然语言的 formalisation 实现 coherence:一个 FRETish 的案例研究
Coherency through formalisations of Structured Natural Language, A case study on FRETish
AI总结:
本文提出通过 formalisation 实现 coherence 的新指南,分析 NASA 的 FRET 工具,将 FRETish 转换为 MTL 并通过模型检查证明等价性。
摘要:
Formalisation 是将系统需求用形式语言书写的进程。这些需求大多源自自然语言。在形式方法领域,formalisation 通常被视为验证过程中最微妙和复杂的步骤之一。formalisation 工具和环境常常选择各种要求描述的层次:自然语言、技术语言、图表示和形式语言等。在文献中,有各种最佳实践的准则来指导需求formalisation的过程。本文提出一个新的指南:通过formalisation实现coherence。该指南指出,上述不同的formalisation层次应大致遵循相同的逻辑结构。这一原则在LLMs被提示执行可通过结构化自然语言形式工具检查的推理任务的场景中尤为重要。基于coherence,我们分析了NASA的Formal Requirement Elicitation Tool FRET,并提出了一种替代的自动翻译,将受控自然语言FRETish转换为MTL的形式语言。我们比较了我们的翻译与原始翻译,并通过模型检查证明等价性。一些统计数据似乎支持新翻译。正如预期的那样,翻译过程产生了有趣的反思,并揭示了不一致之处,我们进行了呈现和讨论。
英文摘要:
Formalisation is the process of writing system requirements in a formal language. These requirements mostly originate in Natural Language. In the field of Formal Methods, formalisation is often identified as one of the most delicate and complicated steps in the verification process. Not seldomly, formalisation tools and environments choose various levels of requirement descriptions: Natural Language, Technical Language, Diagram Representations and Formal Language, to mention a few. In the literature, there are various maxims and principles of good practice to guide the process of requirement formalisation. In this paper we propose a new guideline: Coherency through Formalisations. The guideline states that the different levels of formalisation mentioned above should roughly follow the same logical structure. The principle seems particularly relevant in the setting where LLMs are prompted to perform reasoning tasks that can be checked by formal tools using Structured Natural Language to act as an intermediate layer bridging both paradigms. In the light of coherency, we analyze NASA's Formal Requirement Elicitation Tool FRET and propose an alternative automated translation of the Controlled Natural Language FRETish to the formal language of MTL. We compare our translation to the original translation and prove equivalence using model checking. Some statistics are performed which seem to favor the new translation. As expected, the translation process yielded interesting reflections and revealed inconsistencies which we present and discuss.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。