Questions tagged [relations]

For questions concerning partial orders, equivalence relations, properties of relations (transitive, symmetric, etc), a composition of relations, or anything else concerning a relation on a set.

A relation $R$ on a set $X \times Y$ (sometimes also called a relation between $X$ and $Y$) is any subset of $X\times Y$. So a relation is any set of ordered pairs $(x,y)$ such that $x\in X$ and $y \in Y$. Often we write $x\mathrel R y$ instead of $(x,y)\in R$. Sometimes we say a relation is defined on a single set $X$, but this just means that we're letting the relation $R$ be a subset of $X \times X$.

Here are some examples of relations:

  • For a very abstract example of a relation, take $X = \{1,2,3\}$ and $Y = \{a,b,c,d\}$, and let $R = \{(1,b),(3,c),(3,d),(2,c),(2,d)\}$. This $R$ is a relation on $X \times Y$. Fun fact, there are $2^{12}$ distinct relations you could put on $X \times Y$.

  • A function $f\colon X\to Y$ can be defined as a relation on $X \times Y$. The pairs in $X \times Y$ that are members of the relation are the input-output pairs $(x, f(x))$.

  • A partial order is a relation that mimics the notion of one element being greater/less than the other. An example of a partial order is the relation $\leq$ on $\mathbf{Z} \times \mathbf{Z}$ where for two integers $n$ and $m$ we say $n \leq m$ if $n$ is less than or equal to $m$.

  • Given a set $X$, let $\mathcal{P}(X)$ denote the set of all subsets of $X$. We can define a partial order $\subseteq$ on $\mathcal{P}(X)$ by saying that for two susbsets $A$ and $B$ of $X$, $A \subseteq B$ if $A$ is a subset of $B$.

  • An equivalence relation is a relation that mimics the notion of two things being "equal". For example, on the set $\mathbf{Z}$ of integers let's define the relation $\equiv_{37}$ on $\mathbf{Z}\times \mathbf{Z}$ by saying $a\equiv_{37} b$ if both $a$ and $b$ give the same remainder when divided by $37$. If $a \equiv_{37} b$ we say that $a$ and $b$ are congruent modulo $37$.

  • Let $T$ be the set of all triangles in the plane. An example of an equivalence relation on $T$ is the relation of two triangles being congruent.

4661 questions
1
vote
1 answer

Finding the equivalence class of a relation

Let $A=\{0,1\}^8$ with equivalence relation $R$ on $A$ as $R=\{(u,v)∈A×A|\text{u and v have the same number of entries equal to 0}\}$ How do I find $[(0, 0, 1, 0, 1, 1, 0, 1)]$ (the equivalence class for $a = (0, 0, 1, 0, 1, 1, 0, 1) \in A$)?
user41419
1
vote
2 answers

How many relations are there on the set $\{a, b, c, d\}$ that contain the pair $(a, a)$?

The number of relations between sets can be calculated using $2^{mn}$ where $m$ and $n$ represent the number of members in each set, thus total is $2^{16}$ . Now how do I go ahead calculate only those that contains $(a, a)$ There are $4 \cdot 4=16$…
Neer
  • 674
  • 3
  • 9
  • 22
1
vote
2 answers

Proving a relation is an equivalence relation

Let $A = \{0, 1\}^8$. Define the relation $R$ on $A$ as $R = \{ (u, v) \in A \times A | \text{u and v have the same number of entries equal to 0}\}$ How can I show that $R$ is an equivalence relation on $A$? I know that $R$ must be reflexive,…
user41419
1
vote
1 answer

How do I prove that if a relation $R$ on set $A$ is symmetric, a new relation $R^1 = (A\times A) - R$ is also symmetric?

I am confused about this problem, because I would have assumed that $R^1$ is not symmetric. If $(x,y)\in R$, then $(y,x)\in R$, would neither of these be in $R^1$?
1
vote
1 answer

How to determine a in r - in a function of relations

I'm pretty stuck on the following question $f$ on $\mathbb{R}$ given by $xfy\Leftrightarrow (y(2x-3)-3x=y(x^2-2x)-5x^3)$ is a function. Let $g$ be the restriction of $f$ to $\mathbb{Z}^+$, implying $g(n) = f(n),\,n \in\mathbb{Z}^+$ Determine $a\in…
Alek Oliver
  • 65
  • 1
  • 3
  • 10
1
vote
1 answer

Determining properties of a relation on the set of all propositions.

Let $P$ denote the set of all propositions. Define a relation $R$ on $P$ by $φRψ$ if and only if $φ ⇔ ¬ψ$ Determine the properties of the above relation; reflexivity, Symmetry, antisymmetry, transivity
Bayyls
  • 77
1
vote
2 answers

Why isn't $\{(1, 1), (1, 2), (2, 1)\}$ transitive

I've been given a set of relations on $\{1,2,3,4\}$ \begin{align*} R1 &= {(1, 1), (1, 2), (2, 1), (2, 2), (3, 4), (4, 1), (4, 4)}\\ R2 &= {(1, 1), (1, 2), (2, 1)}\\ R3 &= {(1, 1), (1, 2), (1, 4), (2, 1), (2, 2), (3, 3), (4, 1), (4, 4)}\\ R4 &= {(2,…
1
vote
0 answers

Determine the compositions $ R \circ S \ and \ S \circ R $ of two relations R and S

Determine the compositions $ R \circ S \ and \ S \circ R $ of two relations R and S given by $ S=\{(x,y): \sqrt{|x|} \leq y \} \\ R= \{(x,y): x^{2}+y^{2} \leq 1 \} $. $$ $$ I have found $ R \circ S=\{(x,z) : |z| \leq 1-x^{2} \}$. But I am not…
MAS
  • 10,638
1
vote
1 answer

Algebraic Relations of the product of 2 real numbers

I found this question and answer on a model paper. However I believe the answer is wrong. Can you help me understand please? Question: 1. Consider the relation R on the set of real numbers R defined by xRy if and only if xy is a rational number. i.…
Sanone
  • 61
1
vote
0 answers

bijection from $\mathbb{Z}\times\mathbb{Z}_{2}\rightarrow\mathbb{Z}$

I wish to prove there does not exist a bijection relation $$F:\mathbb{Z}\times\mathbb{Z}_{2}\rightarrow\mathbb{Z}$$ Im thinking that there is more elements in $\mathbb{Z}\times\mathbb{Z}_{2}$ but both sets have an infinite number of elements so Im…
1
vote
2 answers

How two elements relate in this poset?

I have encountered a relation that I couldn't really get my head around it and understand what it does. The relation is on the set of partial functions from a set S to a set T: $f \le g \Leftrightarrow \operatorname{dom}(f) \subseteq…
Zed
  • 159
  • 1
  • 12
1
vote
2 answers

Transitivity of a relation on a set.

My book says the answer is B. But how. I understand that the relation is reflexive as (a,a) belongs to R for all a belonging to the given set. Furthermore I understand that the relation is not reflexive as (a,b) belongs to R does not imply that…
1
vote
2 answers

Must antisymmetric relation also be irreflexive

On Polish Wikipedia article on binary relations one can find the following statement: "a relation is antisymmetric iif it is irreflexive and transitive". Is it correct? Does a given relation have to be irreflexive to be antisymmetric? As far as I…
Szpilona
  • 151
1
vote
2 answers

Equivalence Relations of Power Sets

I am trying to understand how $\mathrm W$ is an equivalence relation. Let $A = \{1,2,3,4,5,6,7\}$ and $B = \{1,2,3,4\}$. Let $\mathrm W$ be the relation on $P(A)$ defined by: \begin{equation} \forall X, Y \in P(A), X \mathrm R Y \Leftrightarrow |X…
C. E.
  • 13
1
vote
3 answers

Why is the definition of relation as set of ordered pairs incomplete?

Let $S$ and $T$ be sets or classes. Let $S×T$ be their Cartesian product, ${\{(s,t):s{\in}S {\land}t{\in}T}\}$ Many sources will then define relation on $S×T$ to be any set $R$ such that $R{\subseteq}S×T$. However, according to this website, that…
asdasdf
  • 769