• Aucun résultat trouvé

Exercises

N/A
N/A
Protected

Academic year: 2022

Partager "Exercises"

Copied!
2
0
0

Texte intégral

(1)

Logic for AI Master 1 IFI

Class Assignment #2: Predicate Logic

Andrea G. B. Tettamanzi Université côte d'Azur

[email protected] Academic Year 2019/2020

1 Formalization

Translate the following English sentences into predicate logic sentences:

1. Every person who owns an apartment pays the real estate tax.

2. A hotel is rated one-star if all rooms have shower and WC.

3. A person is a great parent if they have a child who has children.

2 Nomenclature

Tell which qualications among an atom, a literal, ground, open, and closed apply to the following sentences:

1. P(x)∨Q(a), 2. R(x, y), 3. ¬¬R(a, b), 4. ∀x∃yR(x, y), 5. P(a)∧R(a, b), 6. ¬P(a),

7. ¬P(x),

8. P(a)∧ ∃xR(a, x).

3 Herbrand Base

Write the Herbrand base for the following languages:

1. {a, P(·), Q(·)}, 2. {0,1,Even(·),Lt(·,·)}, 3. {a, b, f(·), g(·,·), P(·,·,·)}.

1

(2)

4 Herbrand Models

Given the Herbrand modelI ={P(a), Q(b), R(a, b), S(a, a), S(b, b)}, evaluate the following sen- tences:

1. ∃xR(a, x), 2. ∀x∃yR(x, y), 3. ∀xP(x)⇒Q(x), 4. ∀xS(x, x).

5 Herbrand Entailment

Which of the following entailments hold, using Herbrand semantics?

1. Q(a)|=∀x(P(x)⇒Q(x)),

2. P(a)|=¬Q(b)∧ ∃x(P(x)∧Q(x)).

6 Semantic Trees

Check the Herbrand satisability of the following sentence by applying Herbrand's Theorem:

¬(∀xP(x, a, g(x, b))⇒ ∃y∃zP(f(y), z, g(f(a), b))).

2

Références

Documents relatifs

When in the setup mode, the fixed disk drive is addressed as channel connector 3 through the Adapter Enable/Setup register (hex 0096).. For more pas information about the

True 4- Karim buys milk from the super market... B/ Complete the table:

To remain consistent with the core tenets of interdisciplinarity, that of crossing boundaries and creating common grounds through integration, interdisciplinary practitioners ought

OBJECTIVE To evaluate reasons for telling or not telling patients about a diagnosis of Alzheimer’s disease and to assess the effect of such a decision on

(If this were true, it would raise an interesting and important question of why women tend to have less education or less experience than men, but that is a question about

Certain features of form, like being closed or open, and even interactions between these two basic form aspects, may be formulated algorithmically, i.e.. ready

The introduced semantic framework with the project and raise operators is a basis for future research, including the further elaboration of common and dif- fering properties of

The paper presents an abstract and an RDF-style concrete syntax for ERDF, allowing to represent negative fact statements and supports reasoning with open and closed predicates. We