使用行为、等价和SMT求解器的规范构造
Specification Construction Using Behaviours, Equivalences, and SMT Solvers
摘要:
我们提出了一种方法来编写和检查规范,包括使用行为的量词,即,输入输出对。我们的方法需要用户输入以下信息:(1)有限数量的查询的答案,每个查询向用户呈现一些行为,用户响应通知行为是否“正确”;以及(2)“等价”理论(公式集),其表示关于哪些行为对相对于规范是等效的用户意见;以及(3)“词汇表”,即,一组公式,为编写规范提供基本的构建块。或者,用户可以指定一个类型论和一个简单的关系语法,我们的方法可以生成词汇表和等价理论。我们的方法使用可满足性模理论求解器自动生成行为。由于编写规范包括形式化最初非正式的想法,因此根据定义,必须至少有一个“初始”步骤,其中用户以特定的方式形式化非正式的概念。这一步是提供等价理论和词汇表,我们称之为原始形式化步骤。我们认为,这是相当容易写一个等价的理论和词汇比从头开始写一个完整的正式规范,我们提供了实验证据,这种说法。我们还展示了如何词汇表可以构建分层,在一个级别的规范提供词汇材料的下一个级别。
英文摘要:
We propose a method to write and check a specification including quantifiers using behaviors, i.e., input-output pairs. Our method requires the following input from the user: (1) answers to a finite number of queries, each of which presents some behavior to the user, who responds informing whether the behavior is "correct" or not; and (2) an "equivalence" theory (set of formulae), which represents the users opinion about which pairs of behaviors are equivalent with respect to the specification; and (3) a "vocabulary", i.e., a set of formulae which provide the basic building blocks for the specification to be written. Alternatively, the user can specify a type theory and a simple relational grammar, and our method can generate the vocabulary and equivalence theories. Our method automatically generates behaviors using a satisfiability modulo theory solver. Since writing a specification consists of formalizing ideas that are initially informal, there must, by definition, be at least one "initial" step where an informal notion is formalized by the user in an ad hoc manner. This step is the provision of the equivalence theory and vocabulary; we call it the primitive formalization step. We contend that it is considerably easier to write an equivalence theory and vocabulary than to write a full-blown formal specification from scratch, and we provide experimental evidence for this claim. We also show how vocabularies can be constructed hierarchically, with a specification at one level providing vocabulary material for the next level.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。