Logic 变成否定形式
我不熟悉逻辑,也喜欢学习人工智能。我很难把下面的句子转换成否定形式。我已经试过了,但仍有困惑。请帮助我以下结果是否正确Logic 变成否定形式,logic,negation,first-order-logic,Logic,Negation,First Order Logic,我不熟悉逻辑,也喜欢学习人工智能。我很难把下面的句子转换成否定形式。我已经试过了,但仍有困惑。请帮助我以下结果是否正确 (i) If you can swim across the river then you can swim to the island. (ii) If the connector is loose or it is unplugged machine will not work. 我的作品 (i) If you can't swim across the river
(i) If you can swim across the river then you can swim to the island.
(ii) If the connector is loose or it is unplugged machine will not work.
我的作品
(i) If you can't swim across the river then you can't swim to the island
¬ swim(across_the_river) → ¬ swim(island)
(ii) If the connector is not loose or it is plugged machine will work.
¬ [ loose(connector) ∨ unplugged (connector) ] → ¬ not_work(machine)
“如果你能游过河,你就可以游到岛上去。”
让我们把“你可以游过河”的命题A和“你可以游到岛上”的命题B分别称为
然后原句对应A->B
这类练习的想法是,你“分解”这些含义->并获得只有“不”、“和”和“或”的公式
我们可以通过注意以下几点开始分解:
- “A->B”与“(不是A)或B”(定义->)
- “not(P或Q)”与“(not P)和(not Q)”相同
这再一次直观地否定了原始命题,因为这基本上是说这两个条件导致机器不工作是不正确的。一个句子是否定形式是什么意思?请在你的帖子中添加一个定义,以避免混淆。我投票将这个问题作为离题题来结束,因为它是关于逻辑/数学的,而不是直接关于编程/编码/编程工具/软件算法的。