关系从句逻辑问题:什么是 Herbrand 解释

发布于 2024-09-01 13:47:56 字数 271 浏览 1 评论 0原文

我很难掌握关系从句逻辑,我不确定这是否是提问的地方,但如果有人可以提供以下问题的指导,这将对我的修改有很大帮助。

设 P 为程序:

academic(X); student(X); other_staff(X):-
      works_in(X, university).
:-student(john).
:-other_staff(john).
works_in(john, university)

问题:赫布兰德对 P 的解释是什么?

I'm having a hard time coming to grips with relational clausal logic, and I'm not sure if this is the place to ask but it would be help me so much with revision if anyone could provide guidance with the following questions.

Let P be the program:

academic(X); student(X); other_staff(X):-
      works_in(X, university).
:-student(john).
:-other_staff(john).
works_in(john, university)

Question: Which are the Herbrand interpretations of P?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥抱我好吗 2024-09-08 13:47:56

这不是常规的 Prolog 语法:ISO Prolog 不允许使用“;”运算符位于头部,位于“:-”的左侧。我猜测这意味着“对于 p 来说,p 是学术人员、学生、其他员工中的每一个,p(X) :-works_in(X, University)”。

P 的 Herbrand 解释,称为 Herb(P) 是由程序中的谓词和原子组成的一组句子,这是在程序推理下封闭的最小此类句子集。这包含 P 中断言的事实:在这种情况下,有两个单位谓词,以及可通过应用该子句导出的句子:这里有两个适用的推论,都给出相同的结论,即一个双位谓词。这给出了一个包含三个元素的集合 Herb(P)。

This isn't regular Prolog syntax: ISO Prolog doesn't allow ";" operators in the head, to the left of the ":-". I'm guessing that this means "For p is each of academic, student, other_staff, p(X) :- works_in(X, university)".

The Herbrand interpretation of P, call it Herb(P) is a set of sentences made up from the predicates and atoms in the program, which is the least such set of sentences closed under inference from the program. This contains the facts asserted in P: in this case there are two one-place predicates, and the sentences derivable from applying the clause: here there are two inferences applicable, both giving the same conclusion, a two-place predicate. This gives a set, Herb(P), with three elements.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文