简体   繁体   English

一阶逻辑公式

[英]First order logic formula

R(x) is a red block R(x)是红色方块
B(x) is a blue block B(x)是一个蓝色方块
T(x,y) block x is on top of block y T(x,y)块x在块y的顶部

Question: 题:
Write a formula asserting that if no red block is on top of a red block then no red block is on top of itself. 编写一个公式,断言如果没有红色块位于红色块之上,则没有红色块位于其自身之上。

My answer: (Ax)(Ay)(R(x) and R(y) -> ~T(x,y))->(Ax)(R(x)-> ~T(x,x)) 我的答案:(Ax)(Ay)(R(x)和R(y)->〜T(x,y))->(Ax)(R(x)->〜T(x,x))
A = For all A =全部
~ = Not 〜=不
-> = implies -> =暗示

That is a plausible formulation, though not necessarily the most straight-forward translation of the sentence, which, to my mind, is (Ax)(Ay)(T(x,y) -> R(x) -> ~R(y)) -> ~(3x)(R(x) and T(x,x)). 这是一个合理的表述,尽管不一定是句子的最直接的翻译,我认为这是(Ax)(Ay)(T(x,y)-> R(x)->〜R( y))->〜(3x)(R(x)和T(x,x))。 3, here, being the existential quantifier (ie "there exists an"). 3,这里是存在量词(即“存在”)。

对我来说看上去很好。

(Ax)(Ay)(Az){((((R(x)和R(y))->〜T(x,y))->〜T(z,z)}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM