测试灌水版 #275602 层

几道逻辑问题

楼主 · 1 楼
小弟初学逻辑,以下几道题作了半天居然都不对,大家帮忙看看。

1.All squares, except for at most one, are at the right of all triangles.
Relation-identifiers: Triangle, Square, RightOf

2.There are at most two figures which lie in the front of the same square.
Relatie-identifiers: Square, FrontOf

3.At most one figure is in the front of each square that lies at the right of
the figure.
Relatie-identifiers: Square, RightOf, FrontOf
2 楼
题目已经做出来了,呵呵。以下通过软件验证了,有兴趣的朋友可以看看。

1. (∀x)(∀y){Square(x) ∧ Square(y) ∧ (∃s)(Triangle(s) ∧ ¬RightOf(x,s) ) ∧ (∃t)(Triangle(t) ∧ ¬RightOf(y,t) ) → x = y }

2. (∀x)(∀y)(∀z){ (∃t)(Square(t) ∧FrontOf(x,t)∧ FrontOf(y,t) ∧ FrontOf(z,t)) → (x = y ∨ y = z ∨ z = x) }

3. (∀x)(∀y){(∀s)(Square(s) ∧ RightOf(s,x) → FrontOf(x,s) ) ∧ (∀t)(Square(t) ∧ RightOf(t,y) → FrontOf(y,t) ) → x = y }