4
我正在学习COQ,我被困在书练习之一。这本书没有给我一个解决方案,所以我不知道该怎么办。我已经完成了第一个。我必须将这些语句谓词逻辑翻译:解决这个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
。
你能帮忙吗?非常感谢!
“The book”是[Coq'Art](http://labri.fr/perso/casteran/CoqArt/index.html),我说得对吗? – minopret