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
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
74 CAPITOLO 3. INSIEMI E ALGEBRE DI BOOLE<br />
Se A[x] è una A che non contiene x, ad esempio ∃y(y 2 = 2), allora A[x] è<br />
vera o falsa <strong>in</strong> U <strong>in</strong><strong>di</strong>pendentemente dalla scelta degli elementi considerati,<br />
per cui se è vera, <strong>in</strong> {x ∈ U | A} ci sono tutti gli elementi <strong>di</strong> U; se è falsa,<br />
nessuno.<br />
Con la notazione {x1, . . . , xn} si <strong>in</strong><strong>di</strong>ca l’<strong>in</strong>sieme i cui elementi sono x1,<br />
. . . , xn.<br />
L’<strong>in</strong>sieme {x, y} si chiama coppia (non or<strong>di</strong>nata) <strong>di</strong> x e y, che sono gli<br />
unici elementi <strong>di</strong> {x, y}: x ∈ {x, y} e y ∈ {x, y} 2 , e <strong>in</strong>oltre<br />
z ∈ {x, y} → z = x ∨ z = y.<br />
Con questa scr<strong>it</strong>tura <strong>in</strong>ten<strong>di</strong>amo che ∀x∀y∀z(z ∈ {x, y} → z = x ∨ z = y) è<br />
vera <strong>in</strong> U, e nel segu<strong>it</strong>o useremo tale forma <strong>di</strong> abbreviazione.<br />
La coppia {x, y} ha due elementi se x = y; altrimenti se x = y ne ha uno<br />
solo, si <strong>in</strong><strong>di</strong>ca {x} e si chiama anche <strong>in</strong>sieme un<strong>it</strong>ario, o s<strong>in</strong>goletto <strong>di</strong> x.<br />
Esempio 3.1.1. Se U = {a, b, c, d} e A[x] è x = a ∨ x = b, l’<strong>in</strong>sieme def<strong>in</strong><strong>it</strong>o<br />
da A[x] <strong>in</strong> U è {a, b}.<br />
Se U è l’<strong>in</strong>sieme dei numeri naturali e A[x] è la con<strong>di</strong>zione “x è <strong>di</strong>visibile<br />
per 2”, l’<strong>in</strong>sieme <strong>di</strong> ver<strong>it</strong>à <strong>di</strong> A[x] è l’<strong>in</strong>sieme dei numeri pari, e tale <strong>in</strong>sieme<br />
è def<strong>in</strong><strong>it</strong>o dalla con<strong>di</strong>zione “x è <strong>di</strong>visibile per 2”.<br />
Un <strong>in</strong>sieme <strong>di</strong> ver<strong>it</strong>à è un sotto<strong>in</strong>sieme <strong>di</strong> U; si <strong>di</strong>ce che X è un sotto<strong>in</strong>sieme<br />
<strong>di</strong> Y , o che è contenuto 3 <strong>in</strong> Y , <strong>in</strong> simboli X ⊆ Y , se ogni elemento <strong>di</strong><br />
X è anche elemento <strong>di</strong> Y : per ogni x, se x ∈ X allora x ∈ Y .<br />
D’ora <strong>in</strong> avanti usiamo le lettere X, Y, . . . per <strong>in</strong><strong>di</strong>care sotto<strong>in</strong>siemi <strong>di</strong> un<br />
<strong>in</strong>sieme U, <strong>in</strong><strong>di</strong>pendentemente dalle formule <strong>in</strong> corrispondenza alle quali sono<br />
<strong>in</strong>trodotte per denotare gli <strong>in</strong>siemi <strong>di</strong> ver<strong>it</strong>à <strong>di</strong> quelle formule.<br />
Qualche volta, raramente, si scrive Y ⊇ X per X ⊆ Y .<br />
Si <strong>di</strong>ce che X è un sotto<strong>in</strong>sieme proprio <strong>di</strong> Y , e si scrive X ⊂ Y , oppure<br />
X Y , se X ⊆ Y ma X = Y .<br />
Se X ⊆ Y e Y ⊆ X allora X e Y hanno gli stessi elementi; questo<br />
per def<strong>in</strong>izione significa che X = Y . Quello che caratterizza gli <strong>in</strong>siemi non<br />
sono le loro eventuali def<strong>in</strong>izioni ma i loro elementi; ad esempio l’<strong>in</strong>sieme dei<br />
triangoli con tre lati uguali e l’<strong>in</strong>sieme dei triangoli con tre angoli uguali sono<br />
lo stesso <strong>in</strong>sieme. Così pure {x, y} = {y, x}, da cui la <strong>di</strong>zione “non or<strong>di</strong>nata”<br />
per la coppia.<br />
Le operazioni <strong>in</strong>siemistiche pr<strong>in</strong>cipali, sui sotto<strong>in</strong>siemi <strong>di</strong> un <strong>in</strong>sieme U,<br />
sono le seguenti:<br />
2 Talvolta si scrive x, y ∈ X per “x ∈ X e y ∈ X”, qu<strong>in</strong><strong>di</strong> x, y ∈ {x, y}.<br />
3 Si <strong>di</strong>st<strong>in</strong>gue tra “essere contenuto <strong>in</strong> un <strong>in</strong>sieme”, che si riferisce a sotto<strong>in</strong>siemi, ed<br />
“appartenere a un <strong>in</strong>sieme”, che si riferisce ad elementi.