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
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
3.1. INSIEMI 75<br />
Complemento Il complemento <strong>di</strong> X (rispetto a U) è l’<strong>in</strong>sieme degli elementi<br />
<strong>di</strong> U che non appartengono a X:<br />
∼ X = {x ∈ U | x /∈ X}.<br />
Differenza La <strong>di</strong>fferenza <strong>di</strong> X meno Y è l’<strong>in</strong>sieme degli elementi <strong>di</strong> U che<br />
appartengono a X e non a Y :<br />
X \ Y = {x ∈ U | x ∈ X ∧ x /∈ Y }.<br />
Differenza simmetrica La <strong>di</strong>fferenza simmetrica <strong>di</strong> X e Y è l’<strong>in</strong>sieme<br />
degli elementi <strong>di</strong> U che appartengono a X e non a Y o a Y e non a X:<br />
X△Y = {x ∈ U | x ∈ X ⊕ x ∈ Y }.<br />
Intersezione L’<strong>in</strong>tersezione <strong>di</strong> X e Y è l’<strong>in</strong>sieme degli elementi <strong>di</strong> U che<br />
appartengono sia a X sia a Y :<br />
X ∩ Y = {x ∈ U | x ∈ X ∧ x ∈ Y }.<br />
X ∩ Y si legge: “X <strong>in</strong>tersezione Y o “X <strong>in</strong>tersecato con Y o “l’<strong>in</strong>tersezione<br />
<strong>di</strong> X e Y .<br />
Unione L’unione <strong>di</strong> X e Y è l’<strong>in</strong>sieme degli elementi <strong>di</strong> U che appartengono<br />
ad almeno uno dei due <strong>in</strong>siemi X e Y :<br />
X ∪ Y = {x ∈ U | x ∈ X ∨ x ∈ Y }<br />
X ∪ Y si legge: “X unione Y o “X un<strong>it</strong>o a Y o “l’unione <strong>di</strong> X e Y .<br />
L’<strong>in</strong>tersezione <strong>di</strong> X e Y è il più grande <strong>in</strong>sieme che è contenuto sia <strong>in</strong> X sia<br />
<strong>in</strong> Y , nel senso che 4<br />
e<br />
X ∩ Y ⊆ X e X ∩ Y ⊆ Y<br />
se Z ⊆ X e Z ⊆ Y allora Z ⊆ X ∩ Y<br />
mentre l’unione <strong>di</strong> X e Y è il più piccolo <strong>in</strong>sieme che contiene sia X sia Y ,<br />
nel senso che<br />
X ⊆ X ∪ Y e Y ⊆ X ∪ Y<br />
4 Si noti che non occorrono parentesi perché non è possibile <strong>in</strong>terpretare questa formula<br />
come X ∩ (Y ⊆ X) <strong>in</strong> quanto si avrebbe un’operazione tra un <strong>in</strong>sieme e una asserzione —<br />
un errore <strong>di</strong> tipo, si <strong>di</strong>ce <strong>in</strong> logica. Qualche volta le parentesi si mettono per agevolare la<br />
lettura.