首 页 - ┆ 小小说社会科学搜榜改进建议哲学宗教政治法律文化科教语言文字医学管理资源艺术资料数理化天文地球专业技术教育资源建筑房地产
当前位置:e书联盟 > 数理化天文地球 > 数学 > 数理统计概率运筹
A-three-valued-semantics-for-logic-programmers.pdf
运行环境:Win9X/Win2000/WinXP/Win2003/
数理语言:简体中文
数理类型:国产软件 - 数学 - 数理统计概率运筹
授权方式:共享版
数理大小:321 KB
推荐星级:
更新时间:2019-12-30 19:41:25
联系方式:暂无联系方式
官方主页:Home Page
解压密码:点击这里
  • 好的评价 此数理真真棒!就请您
      0%(0)
  • 差的评价 此数理真差劲!就请您
      0%(0)

A-three-valued-semantics-for-logic-programmers.pdf介绍

 
Under consideration for publication in Theory and Practice of Logic Programming                   1 
  A three-valued semantics for logic programmers 
                                          LEE NAISH 
                   Department of Computer Science and Software Engineering 
                                     University of Melbourne 
                                         Melbourne 3010 
                                             Australia 
                                    (e-mail: lee@www.book118.com.au) 
           submitted 15 June 2004; revised 30 November 2004; accepted 30 June 2005 
                                           Abstract 
This  paper  describes  a  simpler  way  for  programmers  to  reason  about  the  correctness  of 
their code. The study of semantics of logic programs has shown strong links between the 
model theoretic semantics (truth and falsity of atoms in the programmer’s interpretation 
of a program), procedural semantics (for example, SLD resolution) and ?xpoint semantics 
(which is useful for program analysis and alternative execution mechanisms). Most of this 
work  assumes  that  intended  interpretations  are  two-valued:  a  ground  atom  is  true  (and 
should succeed according to the procedural semantics) or false (and should not succeed). In 
reality, intended interpretations  are less  precise.  Programmers  consider  that  some atoms 
“should  not  occur”or  are  “ill-typed”or  “inadmissible”.  Programmers  don’t  know  and 
don’t care whether such atoms succeed. In this paper we propose a three-valued semantics 
for  (essentially)  pure  Prolog  programs  with  (ground)  negation  as  failure  which  re?ects 
this. The semantics of Fitting is similar but only associates the third truth value with non- 
termination. We provide tools to reason  about correctness of programs without the need 
for unnatural precision or undue restrictions on programming style. As well as theoretical 
results, we  provide a programmer-oriented  synopsis. This  work  has come out  of work  on 
declarative debugging, where it has been recognised that inadmissible calls are important. 
This paper has been accepted to appear in Theory and Practice of Logic Programming. 
KEYWORDS:  Models,         immediate    consequence    operator,  SLDNF  resolution,     negation, 
veri?cation, declarative debugging, inadmissibility 
                                       1  Introduction 
When programming, we often give too little attention to the meaning of our code. 
For these sins of sloth and pride (“I can’t be bothered rechecking everything —I’m sure I got it right”) we are forced to do penance, in the form of debugging. 
During the repetitive tedium we contemplate the relationships between our code, 
its behaviour and our desires: the domain of programming language semantics. Thus 
(in retrospect) it is natural for work on debugging to lead to work on semantics. 
All too often, work on semantics seems to bear little relation to any stage of the 
software life cycle. Here our aim is to provide theoretical support which can allow 
programmers to reason about the correctness of their code more easily. 
2                                     L. Naish 
A-three-valued-semantics-for-logic-programmers.pdf

下载此电子书资料需要扣除0点,

电子书评论评论内容只代表网友观点,与本站立场无关!

   评论摘要(共 0 条,得分 0 分,平均 0 分) 查看完整评论

下载说明

* 即日起,本站所有电子书免费、无限量下载下载,去掉了每日50个下载的限制
* 本站尽量竭尽努力将电子书《A-three-valued-semantics-for-logic-programmers.pdf》提供的版本是完整的,全集下载
* 本站站内提供的所有电子书、E书均是由网上搜集,若侵犯了你的版权利益,敬请来信通知我们!

本类热门下载

相关下载

Copyright © 2005-2020 www.book118.com. All Rights Reserved