Predicate Logic
Represent the following statements as formulas of Predicate Calculus, stating the
intended interpretation of any predicates and constants that you use. You should
give two versions of each formula, one using the existential quantifier and one
using the universal quantifier .
i. Someone who writes novels is a novelist.
ii. All novels are books.
iii. All novelists, poets and journalists are writers.
iv. Poets are not the only writers.
v. Some novelists are American and some are Indian.
vi. Not all writers are American or Indian.
Encode the following facts as Prolog clauses. NB you may need to code more than
one clause for each numbered sentence. You should keep the queries (i-v) below in
mind when deciding how to structure your clauses.
1. Olga Tokarczuk is Polish and wrote the novel Flights.
2. Martha Gellhorn was an American novelist and journalist.
3. Sylvia Plath was American and wrote a poem called Ariel.
4. Arundhati Roy is an Indian activist and novelist.
5. George Eliot was British and wrote the novel Middlemarch.
Use your Prolog implementation to derive answers to the following queries, based on the
information given in 15 above. You may need to encode some of your answers to Question
2(c) and/or other reasonable general statements as Prolog clauses, in addition to your
encodings of 1-5 above. Explain your results.
i. Give the name of a British writer.
ii. Is Tokarczuk a novelist?
iii. Was Gellhorn a poet?
iv. Name an American writer who was not a journalist.
v. Give the nationality of a writer who is also an activist.
You can place an order similar to this with us. You are assured of an authentic custom paper delivered within the given deadline besides our 24/7 customer support all through.
Latest completed orders:
# | topic title | discipline | academic level | pages | delivered |
---|---|---|---|---|---|
6
|
Writer's choice
|
Business
|
University
|
2
|
1 hour 32 min
|
7
|
Wise Approach to
|
Philosophy
|
College
|
2
|
2 hours 19 min
|
8
|
1980's and 1990
|
History
|
College
|
3
|
2 hours 20 min
|
9
|
pick the best topic
|
Finance
|
School
|
2
|
2 hours 27 min
|
10
|
finance for leisure
|
Finance
|
University
|
12
|
2 hours 36 min
|