Una relazione mette in corrispondenza coppie di elementi. A seconda delle proprietà di cui gode — riflessiva, simmetrica, antisimmetrica, transitiva — si ottengono le due grandi famiglie: le relazioni di equivalenza, che partizionano un insieme in classi, e le relazioni d’ordine, totali o parziali, che si visualizzano con il diagramma di Hasse.

A relation puts pairs of elements into correspondence. Depending on the properties it enjoys — reflexive, symmetric, antisymmetric, transitive — one obtains the two great families: equivalence relations, which partition a set into classes, and order relations, total or partial, which are visualised with the Hasse diagram.

Una relazione tra due insiemi mette in corrispondenza coppie di elementi: è il primo passo verso il concetto di funzione.

Definizione — Relazione

Una relazione è un insieme di “frecce” che collegano elementi di un insieme (insieme di partenza) a elementi di un altro insieme (insieme di arrivo).

Esempio — La relazione "ha avuto un cucciolo con"

Sia A={George, Rufus, Albert, Jack}A=\{\text{George, Rufus, Albert, Jack}\} e B={Susie, Prilly, Jay, Jill, Nerina}B=\{\text{Susie, Prilly, Jay, Jill, Nerina}\}. La relazione f ⁣:ABf\colon A\to B definita da ”aa ha avuto un cucciolo con bb” si rappresenta con delle frecce:

Ogni freccia collega un elemento di AA a un elemento di BB.

La stessa relazione si può scrivere in modi equivalenti:

  • Coppie ordinate: {(George, Susie),(George, Prilly),(Rufus, Jay),(Jack, Jay),(Jack, Jill)}\{(\text{George, Susie}),\,(\text{George, Prilly}),\,(\text{Rufus, Jay}),\,(\text{Jack, Jay}),\,(\text{Jack, Jill})\}.
  • Rappresentazione cartesiana: ogni freccia corrisponde a un punto del piano, con AA sull’asse orizzontale e BB sull’asse verticale.

Collegamenti

Argomenti: Teoria degli insiemi
Concetti: Coppia ordinata · Piano cartesiano · Relazione

A relation between two sets puts pairs of elements into correspondence: it is the first step towards the concept of a function.

Definition — Relation

A relation is a set of “arrows” that connect elements of one set (the domain set) to elements of another set (the codomain set).

Example — The relation "had a puppy with"

Let A={George, Rufus, Albert, Jack}A=\{\text{George, Rufus, Albert, Jack}\} and B={Susie, Prilly, Jay, Jill, Nerina}B=\{\text{Susie, Prilly, Jay, Jill, Nerina}\}. The relation f ⁣:ABf\colon A\to B defined by ”aa had a puppy with bb” is represented by arrows:

Each arrow connects an element of AA to an element of BB.

The same relation can be written in equivalent ways:

  • Ordered pairs: {(George, Susie),(George, Prilly),(Rufus, Jay),(Jack, Jay),(Jack, Jill)}\{(\text{George, Susie}),\,(\text{George, Prilly}),\,(\text{Rufus, Jay}),\,(\text{Jack, Jay}),\,(\text{Jack, Jill})\}.
  • Cartesian representation: each arrow corresponds to a point of the plane, with AA on the horizontal axis and BB on the vertical axis.

Topics: Set theory
Concepts: Ordered pair · Cartesian plane · Relation

Quando una relazione lega un insieme a sé stesso (R ⁣:AAR\colon A\to A) può godere di alcune proprietà notevoli, che la classificano in famiglie importanti.

Proprietà — Proprietà di una relazione

Una relazione RR su un insieme AA può essere:

  • Riflessiva: per ogni aAa\in A, aRaa\mathbin{R} a (ogni elemento è in relazione con sé stesso).
  • Simmetrica: se aRba\mathbin{R} b allora bRab\mathbin{R} a (a ogni freccia corrisponde la freccia opposta).
  • Antisimmetrica: se aRba\mathbin{R} b e bRab\mathbin{R} a allora a=ba=b (frecce di andata e ritorno solo sul cappio).
  • Transitiva: se aRba\mathbin{R} b e bRcb\mathbin{R} c allora aRca\mathbin{R} c.

Una relazione riflessiva, simmetrica e transitiva è una relazione di equivalenza; una riflessiva, antisimmetrica e transitiva è una relazione d’ordine.

Le due combinazioni danno origine alle due grandi famiglie di relazioni che studieremo: le equivalenze, che raggruppano gli elementi simili, e gli ordini, che li mettono in fila.

Collegamenti

Argomenti: Teoria degli insiemi
Concetti: Relazione · Relazione d ordine · Relazione di equivalenza

When a relation links a set to itself (R ⁣:AAR\colon A\to A) it may enjoy some notable properties, which classify it into important families.

Property — Properties of a relation

A relation RR on a set AA can be:

  • Reflexive: for every aAa\in A, aRaa\mathbin{R} a (every element is related to itself).
  • Symmetric: if aRba\mathbin{R} b then bRab\mathbin{R} a (every arrow has a corresponding opposite arrow).
  • Antisymmetric: if aRba\mathbin{R} b and bRab\mathbin{R} a then a=ba=b (arrows there and back only on the loop).
  • Transitive: if aRba\mathbin{R} b and bRcb\mathbin{R} c then aRca\mathbin{R} c.

A reflexive, symmetric and transitive relation is an equivalence relation; a reflexive, antisymmetric and transitive one is an order relation.

The two combinations give rise to the two great families of relations we shall study: equivalences, which group together similar elements, and orders, which line them up.

Topics: Set theory
Concepts: Relation · Order relation · Equivalence relation

Le relazioni di equivalenza “raggruppano” gli elementi che condividono una proprietà. Ogni elemento aa identifica la sua classe di equivalenza [a]={xA:xRa}.[a]=\{x\in A : x\mathbin{R} a\}. L’insieme delle classi forma una partizione di AA: ogni elemento appartiene a esattamente una classe.

Esempio — Resto della divisione per 33

Su Z\mathbb{Z} poniamo aRba\mathbin{R} b se aba-b è multiplo di 33. È una relazione di equivalenza (si verificano le tre proprietà). Le classi sono tre: [0]={,3,0,3,6,},[1]={,2,1,4,7,},[2]={,1,2,5,8,}.[0]=\{\ldots,-3,0,3,6,\ldots\},\quad [1]=\{\ldots,-2,1,4,7,\ldots\},\quad [2]=\{\ldots,-1,2,5,8,\ldots\}. Ogni intero appartiene a una sola classe, individuata dal resto (00, 11 o 22) nella divisione per 33. È il primo passo dell’aritmetica modulare.

Collegamenti

Argomenti: Teoria degli insiemi
Concetti: Classe di equivalenza · Partizione · Relazione di equivalenza

Equivalence relations “group together” the elements that share a property. Each element aa identifies its equivalence class [a]={xA:xRa}.[a]=\{x\in A : x\mathbin{R} a\}. The set of classes forms a partition of AA: each element belongs to exactly one class.

Example — Remainder of division by 33

On Z\mathbb{Z} we set aRba\mathbin{R} b if aba-b is a multiple of 33. It is an equivalence relation (the three properties can be checked). There are three classes: [0]={,3,0,3,6,},[1]={,2,1,4,7,},[2]={,1,2,5,8,}.[0]=\{\ldots,-3,0,3,6,\ldots\},\quad [1]=\{\ldots,-2,1,4,7,\ldots\},\quad [2]=\{\ldots,-1,2,5,8,\ldots\}. Every integer belongs to exactly one class, determined by the remainder (00, 11 or 22) upon division by 33. This is the first step of modular arithmetic.

Topics: Set theory
Concepts: Equivalence class · Partition · Equivalence relation

L’altra grande famiglia di relazioni utili è quella dell’ordine: ci permette di dire ”aa viene prima di bb”. La proprietà chiave è l’antisimmetria: se aba\le b e bab\le a allora a=ba=b (al posto della simmetria delle equivalenze).

Definizione — Ordine totale e parziale

Una relazione RR su AA è una relazione d’ordine (parziale) se è riflessiva, antisimmetrica e transitiva. Si dice d’ordine totale se in aggiunta, per ogni a,bAa,b\in A, vale aRba\mathbin{R} b oppure bRab\mathbin{R} a (ogni coppia è confrontabile). Altrimenti l’ordine si dice parziale.

Esempio — Ordine totale su R\mathbb{R}

La relazione \le su R\mathbb{R} è di ordine totale: dati due reali, sai sempre qual è il più piccolo. La retta è un’immagine fisica dell’ordine totale, in cui ogni punto è confrontabile con ogni altro.

Esempio — Ordine parziale: "divide" su N\mathbb{N}

Su N={1,2,3,}\mathbb{N}=\{1,2,3,\ldots\} poniamo aba\preceq b se aa divide bb (cioè b=kab=ka per qualche kNk\in\mathbb{N}).

  • Riflessiva: aa divide aa.
  • Antisimmetrica: se aba\mid b e bab\mid a (con a,b>0a,b>0) allora a=ba=b.
  • Transitiva: se aba\mid b e bcb\mid c allora aca\mid c.

Però 22 non divide 33 e 33 non divide 22: le coppie di “primi diversi” non sono confrontabili. È un ordine parziale.

Esempio — Ordine parziale: inclusione \subseteq tra insiemi

La relazione "ABA\subseteq B" sull’insieme delle parti P(X)\mathcal{P}(X) è un ordine parziale. Per esempio {1}{1,2}\{1\}\subseteq\{1,2\}, ma {1}\{1\} e {2}\{2\} non sono confrontabili.

Collegamenti

Argomenti: Teoria degli insiemi
Concetti: Inclusione · Ordine parziale · Ordine totale · Relazione d ordine

The other great family of useful relations is that of order: it lets us say ”aa comes before bb”. The key property is antisymmetry: if aba\le b and bab\le a then a=ba=b (in place of the symmetry of equivalences).

Definition — Total and partial order

A relation RR on AA is an (partial) order relation if it is reflexive, antisymmetric and transitive. It is called a total order if, in addition, for every a,bAa,b\in A, either aRba\mathbin{R} b or bRab\mathbin{R} a holds (every pair is comparable). Otherwise the order is called partial.

Example — Total order on R\mathbb{R}

The relation \le on R\mathbb{R} is a total order: given two reals, you always know which is the smaller. The line is a physical picture of the total order, in which every point is comparable with every other.

Example — Partial order: "divides" on N\mathbb{N}

On N={1,2,3,}\mathbb{N}=\{1,2,3,\ldots\} we set aba\preceq b if aa divides bb (that is, b=kab=ka for some kNk\in\mathbb{N}).

  • Reflexive: aa divides aa.
  • Antisymmetric: if aba\mid b and bab\mid a (with a,b>0a,b>0) then a=ba=b.
  • Transitive: if aba\mid b and bcb\mid c then aca\mid c.

However 22 does not divide 33 and 33 does not divide 22: pairs of “distinct primes” are not comparable. It is a partial order.

Example — Partial order: inclusion \subseteq between sets

The relation "ABA\subseteq B" on the power set P(X)\mathcal{P}(X) is a partial order. For instance {1}{1,2}\{1\}\subseteq\{1,2\}, but {1}\{1\} and {2}\{2\} are not comparable.

Topics: Set theory
Concepts: Inclusion · Partial order · Total order · Order relation

Osservazione — Diagramma di Hasse

Per visualizzare un ordine parziale finito si disegna il diagramma di Hasse: ogni elemento è un punto e si tracciano archi tra aa e bb solo se aba\prec b e non esiste alcun cc tale che acba\prec c\prec b (relazioni di copertura). Sotto, il diagramma dei divisori di 1212 con la relazione “divide”:

I divisori di 1212 ordinati per divisibilità: 11 in basso, 1212 in alto.

L’11 sta in basso (divide tutti), il 1212 in alto (multiplo di tutti). I rami che si separano — per esempio 22 e 33 sopra 11 — dichiarano l’incomparabilità: la relazione è parziale.

Collegamenti

Argomenti: Teoria degli insiemi
Concetti: Diagramma di hasse · Ordine parziale
Persone: Hasse

Observation — Hasse diagram

To visualise a finite partial order one draws the Hasse diagram: each element is a point and edges are drawn between aa and bb only if aba\prec b and there exists no cc such that acba\prec c\prec b (covering relations). Below, the diagram of the divisors of 1212 with the relation “divides”:

The divisors of 1212 ordered by divisibility: 11 at the bottom, 1212 at the top.

The 11 sits at the bottom (it divides everything), the 1212 at the top (a multiple of everything). The branches that separate — for example 22 and 33 above 11 — declare incomparability: the relation is partial.

Topics: Set theory
Concepts: Hasse diagram · Partial order
People: Hasse