• 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 #1: Propositional Logic

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

andrea.tettamanzi@univ-cotedazur.fr Academic Year 2021/2022

1 Formalization

Given the following symbols and sentences:

• f = “John is fit”

• l = “John is lucky”

• w= “the weather is good”

• c= “John succeeds in climbing mount Everest”

Formalize the following sentences in propositional logic:

1. John is fit and lucky

2. John is fit but not lucky, and the weather is not good.

3. If John is not fit and lucky, then he does not succeed in climbing mount Everest.

4. John succeeds in climbing mount Everest if he is fit and if the weather is good

5. If the weather is not good but John is lucky and fit, he succeeds in climbing mount Everest 6. If it is the case that the weather is good provided that John is lucky, then John succeeds

in climbing mount Everest if he is fit and lucky.

2 Evaluation of Propositional Sentences

LetI be defined as follows:

constant p q r

truth value F F T Evaluate the following sentences:

1. p⇒q 2. q⇒r 3. r⇒p 4. ¬(q ⇔r)∨p

5. (p⇒(q ⇒r))⇔((p∧q)⇒r) 6. (p⇒q)⇔(¬q⇒ ¬p)

7. ¬q∧(p∨q)∧(q∨r)∧(p⇒ ¬r)

1

(2)

3 Truth Tables

For each of the following sentences, list their properties (i.e., are they valid, satisfiable, contin- gent, falsifiable, or unsatisfiable):

1. p⇒q 2. q⇒r 3. r⇒p 4. ¬(q ⇔r)∨p

5. (p⇒(q ⇒r))⇔((p∧q)⇒r) 6. (p⇒q)⇔(¬q⇒ ¬p)

7. ¬q∧(p∨q)∧(q∨r)∧(p⇒ ¬r)

4 Entailment

Check whether

{¬p⇒q, q⇒p, p⇒(r∧s)} |=p∧r∧s

1. With the truth table method.

2. By refutation, with the Davis-Putnam Algorithm 3. By refutation, with clausal resolution

Compare the three approaches.

Suggestion: you will need a CNF to prove the entailment by refutation; just construct a single sentence from the three premises, then transform that sentence into CNF.

2

Références

Documents relatifs

A simple sequential approach has been used to evaluate the effect of sentence skeletonization (i.e. improvement of sentence sequentiality) in the gene inter- action extraction

The left plot shows the mean CPU time needed by Minisat to solve all the instances of each set, and the right plot shows the ratio of satisfiable instances over the total number

Task 1:Complete the sentences using the simple past form of the verbs in brackets (3.5 marks):.. Yesterday was

Then, in the blockwise conversion algorithm, these m-blocks are converted individually using the standard conversion and for each converted block of polynomials we compute a reduced

Taking into account these ideas, we consider that if we perform transformations in sentences, seeking to make them shorter, keeping the central idea, and replacing words with not

From Phonemes to Sentence Comprehension: A Neurocomputational Model of Sen- tence Processing for Robots.. SBDM2018 Satellite-Workshop on interfaces between Robotics,

ë¤Ï`Ñ Ñiõ Ì×KË«ÌÔæ'ågÌÔÌ‡Ë ØIÙzØIÙ~ÓÔÊMÏ#" ÊMϐÎ?ÖZË Ï`Ð#Ï`Ñ Ï`ìÏ`قÓÍMÐÔË Ùgæ'Ë ÍMÑ ÏIõÎbÙg×~ÓÔÊMÏ$" ÓÔØIÍMË«æ`ÎbÑ

However, coherence model scores are average and range from 1.27 when five features are considered (SUMG5, SUMG6) to a value of 1.38 when shared entities are considered along