The s-semantics makes it possible to explicitly deal with variables in program answers. So it seems suitable for programs using nonground data structures, like open lists. However it is difficult to find published examples of using the s-semantics to reason about particular programs. Here we apply s-semantics to prove correctness and completeness of Fr\"uhwirth's $n$ queens program. This is compared with a proof, published elsewhere, based on the standard semantics and Herbrand interpretations.
翻译:S- semantics 使得在程序解答中明确处理变量成为可能。 因此它似乎适合使用非地面数据结构的程序, 如开放列表 。 但是很难找到使用 s- semantics 来解释特定程序的例子 。 我们在这里应用 S- sericics 来证明 Fr\ “ uhwirth” $n Q 程序的正确性和完整性 。 这与根据标准语义和Herbrand 解释在别处公布的证明比较 。