我正在学习 COQ,但我被困在书中的一个练习中。这本书没有给我一个解决方案,所以我不知道该怎么做。虽然我已经完成了第一个。我必须将这些语句转换为谓词逻辑:
h0 : Everybody knows somebody
h1 : Nobody doesn't know anybody.
h2 : Everybody knows somebody
h3 : A footballer is known by everybody.
h4 : Footballers only know footballers.
h5 : There is somebody who only knows one person.
代码:
Section Stadium.
Variable Fans : Set.
Variable Knows : Fans -> Fans -> Prop.
Variable Footballer : Fans -> Prop.
Hypothesis h0 : forall x: Fans, exists y: Fans, Knows x y.
End Stadium
.
你能帮忙吗?非常感谢!