0

For my thesis I'm trying to think of an intuitive example to illustrate properties of different relations.

For a set of family members $S = \{\texttt{A1}, \texttt{A2}, \dots, \texttt{C3}\}$, I created the following family tree...

Family tree

...and defined the following relations...

$$ \begin{aligned} R_\textrm{mother} & = \{(\texttt{A1},\texttt{B1}),(\texttt{A1},\texttt{B2}),(\texttt{A3},\texttt{B3}),(\texttt{B2},\texttt{C1}),(\texttt{B2},\texttt{C2}),(\texttt{B2},\texttt{C3})\}\\ R_\textrm{father} & = \{(\texttt{A2},\texttt{B1}),(\texttt{A2},\texttt{B2}),(\texttt{A4},\texttt{B3}),(\texttt{B3},\texttt{C1}),(\texttt{B3},\texttt{C2}),(\texttt{B3},\texttt{C3})\}\\ R_\textrm{parent} & = R_\textrm{mother} \cup R_\textrm{father} \end{aligned} $$

Is there a convenient way to (recursively) construct a transitive set $R_\textrm{ancestor}$ from $R_\textrm{parent}$ (or from the others) that includes relations such as $(\texttt{A1},\texttt{C1})$ and $(\texttt{B3}, \texttt{C2})$, as in, if $(x,y)$ and $(y,z)$ are elements of $R_\textrm{parent}$, then $(x,z) \in R_\textrm{ancestor}$? (notice that $R_\textrm{parent} \subseteq R_\textrm{ancestor}$)

I want to keep the solution as general as possible. I'd also be open to change the naming system of the family members, i.e., using some $a_{ij}$ indexing system where $i$ describes the generation or "row" of the family tree and $j$ its "column".

I also thought of creating two functions $m,f: S \rightarrow S$ that, for a given person $s$, return their mother or father respectively, thus $(m(s),s) \in R_\textrm{mother}$ and $(f(s),s) \in R_\textrm{father}$. However I'm not sure how to notate the recursive behavior in a set.

Asaf Karagila
  • 393,674

1 Answers1

1

So, Rosen's 2017 published "Handbook of discrete and combinatorial mathematics", page 44 shows how a corresponding closure is notated.

relation set matrix
reflexive closure $R\cup\{(s,s):s\in S\}$ $M_R \vee I_n$
symmetric closure $R \cup R^{-1}$ $M_R \vee M_{R^{-1}}$
transitive closure $\bigcup_{i=1}^n R^i$ $M_R \vee M_R^{[2]} \vee \dots \vee M_R^{[n]}$

$n$ is the number of elements $|S|$. $R^i$ is the $i$-th power of $R$ on set $S$, where $R^0 = \{(s,s) | s \in S\} = I_S$, $R^1 = R$ and $R^n = R^{n-1} \circ R$ for all integers $n > 1$. $R \circ R$ is a composition, a binary relation on $S$ where $a (R \circ R) c$ if and only if there is an element $b \in S$ such that $aRb$ and $bRc$.

  • As it’s currently written, your answer is unclear. Please [edit] to add additional details that will help others understand how this addresses the question asked. You can find more information on how to write good answers in the help center. – Community Mar 23 '22 at 22:06