10.06.2013 Views

Logica Matematica Corso di Laurea in Informatica ... - Mbox.dmi.unict.it

Logica Matematica Corso di Laurea in Informatica ... - Mbox.dmi.unict.it

Logica Matematica Corso di Laurea in Informatica ... - Mbox.dmi.unict.it

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

4.3. FORME NORMALI CONGIUNTIVE 105<br />

Esercizio 4.3.12. Verificare, ai f<strong>in</strong>i dell’applicazione delle trasformazioni<br />

con le leggi <strong>di</strong>stributive, che è<br />

(A ∨ B) ∧ (C ∨ D) ≡ (A ∧ C) ∨ (A ∧ D) ∨ (B ∧ C) ∨ (B ∧ D)<br />

e analogamente<br />

(A ∧ B) ∨ (C ∧ D) ≡ (A ∨ C) ∧ (A ∨ D) ∧ (B ∨ C) ∧ (B ∨ D).<br />

Esercizio 4.3.13. Verificare che (¬p ∧ q) ∨ (p ∧ q) ≡ q ≡ (¬p ∨ q) ∧ (p ∨ q).<br />

Notare che la forma <strong>di</strong>sgiuntiva <strong>di</strong> s<strong>in</strong>istra si trasforma nella forma congiuntiva<br />

<strong>di</strong> destra sost<strong>it</strong>uendo ∧ con ∨ e ∨ con ∧.<br />

Trovare un controesempio che mostri che questo non è sempre vero;<br />

spiegare perché succede <strong>in</strong> questo caso.<br />

Esercizio 4.3.14. Verificare come si trasforma, applicando le leggi <strong>di</strong> De<br />

Morgan, la negazione <strong>di</strong> una forma normale congiuntiva (rispettivamente<br />

<strong>di</strong>sgiuntiva) <strong>in</strong> una forma normale <strong>di</strong>sgiuntiva (rispettivamente congiuntiva).<br />

Esercizio 4.3.15. Spiegare, utilizzando le leggi <strong>di</strong> De Morgan e la legge della<br />

doppia negazione, perché cnf(A) ≡ ¬dnf(¬A) e dnf(A) ≡ ¬cnf(¬A).<br />

L’osservazione fornisce un altro modo per ottenere la forma normale <strong>di</strong>sgiuntiva,<br />

o congiuntiva, <strong>di</strong> una proposizione. Se si vuole ad esempio la forma<br />

normale <strong>di</strong>sgiuntiva <strong>di</strong> A, si può provare a vedere se non sia relativamente<br />

facile ottenere cnf(¬A); ottenuta questa, la si nega e si applica De Morgan;<br />

spesso si ev<strong>it</strong>a così l’applicazione ripetuta delle leggi <strong>di</strong>stributive.<br />

Errore frequente: lo studente ha trovato dnf(A) e per ottenere cnf(A) <br />

nega dnf(A) e applica De Morgan, ricordando malamente l’esercizio 4.3.15,<br />

perché ottiene sì una forma congiuntiva, ma quella della negazione: cnf(¬A).<br />

È forse il residuo dell’idea <strong>di</strong> premettere due negazioni, usandone una per trasformare<br />

dnf <strong>in</strong> cnf con De Morgan: ¬¬dnf(A), ¬(¬dnf(A)), ¬cnf(¬A).<br />

Di quella esterna però ci si <strong>di</strong>mentica — se si tenesse conto dell’altra negazione,<br />

una nuova applicazione <strong>di</strong> De Morgan riporterebbe a dnf(A). Due<br />

negazioni consecutive non possono creare nulla <strong>di</strong> nuovo.<br />

Esercizio 4.3.16. In riferimento alle osservazioni del precedente esercizio,<br />

trovare la forma normale <strong>di</strong>sgiuntiva e congiuntiva e confrontare i <strong>di</strong>versi<br />

mo<strong>di</strong> per ottenerle, per le proposizioni<br />

(p → q) → (r → ¬p)<br />

p ∨ q → ¬p ∨ q<br />

p ∨ (q ∧ r) → (¬r → p).<br />

Esercizio 4.3.17. Discutere e spiegare perché non si adotta {¬, ⊕, ∧} per<br />

la def<strong>in</strong>izione delle forme normali <strong>di</strong>sgiuntive, nonostante l’esercizio 4.1.6.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!