Prima di parlare di insiemi serve un linguaggio per dire vero o falso. Le proposizioni, combinate con i connettivi logici e lette attraverso le tavole di verità, sono i mattoni di ogni dimostrazione. Vedremo le equivalenze fondamentali (fra cui le leggi di De Morgan), il modo di negare i quantificatori e il parallelo che rende la logica e l’algebra degli insiemi due facce dello stesso oggetto.
Before talking about sets we need a language for saying true or false. Propositions, combined with the logical connectives and read through truth tables, are the building blocks of every proof. We shall see the fundamental equivalences (among them De Morgan’s laws), how to negate the quantifiers and the parallel that makes logic and the algebra of sets two faces of the same object.
Prima di parlare di insiemi serve un linguaggio per dire vero o falso. Le proposizioni sono i mattoni di ogni dimostrazione: saperle combinare con i connettivi e leggerne la tavola di verità è il prerequisito di tutta l’algebra (le operazioni tra insiemi rispecchiano la logica), di tutta la geometria (“se… allora…”) e di tutto lo studio di funzione (” continua e derivabile…”).
Definizione — Proposizione
Una proposizione è un’asserzione di cui si può dire, senza ambiguità, se è vera (V, oppure ) o falsa (F, oppure ).
“Roma è in Italia” è una proposizione (vera); “Il numero è bello” non lo è, perché non se ne può stabilire con certezza il valore di verità.
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Proposizione
Before talking about sets we need a language for saying true or false. Propositions are the building blocks of every proof: knowing how to combine them with connectives and how to read their truth table is the prerequisite for all of algebra (the operations between sets mirror logic), for all of geometry (“if… then…”) and for the whole study of functions (” continuous and differentiable…”).
Definition — Proposition
A proposition is an assertion for which one can say, without ambiguity, whether it is true (T, or ) or false (F, or ).
“Rome is in Italy” is a proposition (true); “The number is beautiful” is not, because its truth value cannot be established with certainty.
Links
Topics: Set theory
Concepts: Proposition
A partire da una o più proposizioni ne possiamo costruire di nuove usando i connettivi logici. I cinque connettivi fondamentali, con il loro simbolo e il modo di leggerli, sono i seguenti.
| Simbolo | Nome | Si legge |
|---|---|---|
| negazione (NOT) | “non “ | |
| congiunzione (AND, “et”) | ” e “ | |
| disgiunzione (OR, “vel”) | ” o (o entrambi)“ | |
| implicazione | ”se allora “ | |
| doppia implicazione | ” se e solo se ” |
Ogni connettivo trasforma i valori di verità delle proposizioni di partenza in un nuovo valore di verità: il modo sistematico per descriverlo è la tavola di verità.
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Congiunzione · Connettivi logici · Disgiunzione · Doppia implicazione · Implicazione · Negazione
Starting from one or more propositions we can build new ones using the logical connectives. The five fundamental connectives, with their symbol and how to read them, are the following.
| Symbol | Name | Read as |
|---|---|---|
| negation (NOT) | “not “ | |
| conjunction (AND, “et”) | ” and “ | |
| disjunction (OR, “vel”) | ” or (or both)“ | |
| implication | ”if then “ | |
| double implication | ” if and only if ” |
Each connective transforms the truth values of the starting propositions into a new truth value: the systematic way to describe this is the truth table.
Links
Topics: Set theory
Concepts: Conjunction · Logical connectives · Disjunction · Double implication · Implication · Negation
La tavola di verità elenca tutte le combinazioni possibili dei valori di verità delle proposizioni di partenza e, per ciascuna, il valore del connettivo. Con due proposizioni e i casi da esaminare sono quattro.
Proprietà — Tavola di verità dei connettivi
p & q & \lnot p & p\land q & p\lor q & p\Rightarrow q & p\Leftrightarrow q \\ \hline V & V & F & V & V & V & V \\ V & F & F & F & V & F & F \\ F & V & V & F & V & V & F \\ F & F & V & F & F & V & V \end{array}$$
Osserviamo le regole essenziali: la congiunzione è vera solo quando lo sono entrambe; la disgiunzione è falsa solo quando lo sono entrambe; la doppia implicazione è vera quando e hanno lo stesso valore di verità.
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Connettivi logici · Tavola di verita
Competenze: Ragionare per casi
The truth table lists all the possible combinations of the truth values of the starting propositions and, for each, the value of the connective. With two propositions and there are four cases to examine.
Property — Truth table of the connectives
p & q & \lnot p & p\land q & p\lor q & p\Rightarrow q & p\Leftrightarrow q \\ \hline V & V & F & V & V & V & V \\ V & F & F & F & V & F & F \\ F & V & V & F & V & V & F \\ F & F & V & F & F & V & V \end{array}$$
We observe the essential rules: the conjunction is true only when both are; the disjunction is false only when both are; the double implication is true when and have the same truth value.
Links
Topics: Set theory
Concepts: Logical connectives · Truth table
Skills: Reasoning by cases
L’implicazione è il connettivo che all’inizio sorprende di più, perché il suo comportamento nei casi in cui l’ipotesi è falsa non corrisponde all’intuizione del linguaggio comune.
Osservazione — L'implicazione è strana solo all'inizio
La riga curiosa della tavola di verità è la terza: se l’ipotesi è falsa, l’implicazione è vera. “Se piove allora prendo l’ombrello” resta vera anche nei giorni in cui non piove: in quei giorni la promessa non viene messa alla prova.
L’implicazione è falsa solo quando è vera ma è falsa: è l’unico caso in cui mi si può “cogliere in fallo”.
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Implicazione
The implication is the connective that surprises the most at first, because its behaviour in the cases where the hypothesis is false does not match the intuition of everyday language.
Remark — The implication is strange only at first
The curious row of the truth table is the third: if the hypothesis is false, the implication is true. “If it rains then I take my umbrella” remains true even on the days when it does not rain: on those days the promise is not put to the test.
The implication is false only when is true but is false: it is the only case in which I can be “caught out”.
Links
Topics: Set theory
Concepts: Implication
Accanto al “vel” latino (l’OR inclusivo, che ammette anche il caso di entrambe vere) esiste un secondo “o”: l‘“aut”, che esclude il caso in cui entrambe siano vere.
Esempio — "Aut" esclusivo (XOR)
La disgiunzione esclusiva, ” oppure ma non entrambi”, si denota e ha la seguente tavola: È l‘“aut” del latino, contrapposto al “vel”. Lo ritroveremo, sotto forma di insieme, nella differenza simmetrica .
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Disgiunzione · Disgiunzione esclusiva
Alongside the Latin “vel” (the inclusive OR, which also admits the case of both being true) there exists a second “or”: the “aut”, which excludes the case in which both are true.
Example — Exclusive "aut" (XOR)
The exclusive disjunction, ” or but not both”, is denoted and has the following table: It is the Latin “aut”, contrasted with “vel”. We shall meet it again, in the form of a set, in the symmetric difference .
Links
Topics: Set theory
Concepts: Disjunction · Exclusive disjunction
Due formule sono equivalenti () se hanno la stessa tavola di verità: in ogni riga assumono lo stesso valore. Le equivalenze permettono di riscrivere una condizione complicata in una più semplice, senza cambiarne il significato.
Proprietà — Equivalenze logiche fondamentali
- Doppia negazione: .
- Leggi di De Morgan: e .
- Implicazione come “or”: .
- Contrapposizione: (alla base delle dimostrazioni per assurdo).
- Doppia implicazione: .
Le leggi di De Morgan dicono che negare una congiunzione equivale a fare la disgiunzione delle negazioni, e viceversa: la negazione “scambia” e . Le ritroveremo, identiche, come leggi che scambiano intersezione e unione tra gli insiemi.
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Contrapposizione · Equivalenza logica · Leggi di de morgan
Competenze: Dimostrare
Persone: Augustus De Morgan
Two formulae are equivalent () if they have the same truth table: in every row they take the same value. Equivalences allow a complicated condition to be rewritten as a simpler one, without changing its meaning.
Property — Fundamental logical equivalences
- Double negation: .
- De Morgan’s laws: and .
- Implication as an “or”: .
- Contraposition: (the basis of proofs by contradiction).
- Double implication: .
De Morgan’s laws say that negating a conjunction is equivalent to taking the disjunction of the negations, and vice versa: negation “swaps” and . We shall meet them again, identical, as laws that swap intersection and union between sets.
Links
Topics: Set theory
Concepts: Contraposition · Logical equivalence · De Morgan’s laws
Skills: Proving
People: Augustus De Morgan
Per stabilire se due formule sono equivalenti basta costruire le rispettive colonne nella tavola di verità e confrontarle riga per riga: se coincidono ovunque, le formule sono equivalenti.
Esempio — Verifica con la tavola di verità
Dimostriamo che confrontando le colonne:
p & q & p\Rightarrow q & \lnot p\lor q \\ \hline V & V & V & V \\ V & F & F & F \\ F & V & V & V \\ F & F & V & V \end{array}$$ Le due colonne coincidono in tutte le righe: dunque le due formule sono equivalenti.
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Equivalenza logica · Tavola di verita
Competenze: Dimostrare · Ragionare per casi
To establish whether two formulae are equivalent it is enough to build the respective columns in the truth table and compare them row by row: if they coincide everywhere, the formulae are equivalent.
Example — Checking with the truth table
Let us prove that by comparing the columns:
p & q & p\Rightarrow q & \lnot p\lor q \\ \hline V & V & V & V \\ V & F & F & F \\ F & V & V & V \\ F & F & V & V \end{array}$$ The two columns coincide in all the rows: hence the two formulae are equivalent.
Links
Topics: Set theory
Concepts: Logical equivalence · Truth table
Skills: Proving · Reasoning by cases
Osservazione — Insight linguistico
Nelle dimostrazioni i quantificatori universale (“per ogni”) ed esistenziale (“esiste almeno uno”) si negano scambiandosi di posto, mentre la proposizione interna viene negata: Esempio: la negazione di “ogni mattina prendo il caffè” non è “nessuna mattina prendo il caffè”, ma “esiste una mattina in cui non prendo il caffè” (Esty, cap. 3).
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Quantificatori
Remark — Linguistic insight
In proofs the universal quantifier (“for all”) and the existential quantifier (“there exists at least one”) are negated by swapping places, while the inner proposition is negated: Example: the negation of “every morning I have a coffee” is not “no morning I have a coffee”, but “there exists a morning on which I do not have a coffee” (Esty, ch. 3).
Links
Topics: Set theory
Concepts: Quantifiers
In sintesi — Parallelo logica ↔ insiemi
La logica delle proposizioni e l’algebra degli insiemi sono lo stesso oggetto, scritto con due notazioni diverse:
Logica Insiemi Diagramma di Venn complementare esterno del cerchio intersezione sovrapposizione unione somma dei cerchi differenza simmetrica “a mezzaluna” inclusione tutto dentro (sempre vero) universo rettangolo intero (sempre falso) vuoto nulla
Questo dizionario è la chiave di lettura di tutto il capitolo: ogni proprietà logica ha un gemello insiemistico e viceversa.
Collegamenti
Argomenti: Teoria degli insiemi
Concetti: Connettivi logici · Diagramma di venn
Persone: John Venn
In summary — Parallel logic ↔ sets
Propositional logic and the algebra of sets are the same object, written with two different notations:
Logic Sets Venn diagram complement outside of the circle intersection overlap union sum of the circles symmetric difference “crescent-shaped” inclusion entirely inside (always true) universe the whole rectangle (always false) empty set nothing
This dictionary is the key to reading the whole chapter: every logical property has a set-theoretic twin and vice versa.
Links
Topics: Set theory
Concepts: Logical connectives · Venn diagram
People: John Venn