Skip to main content

2.2 Relational Properties: Reflexivity, Symmetry, Transitivity & Antisymmetry

πŸ“šModule 02: Binary Relations & ClosuresTopic 2.2: Relational Properties: Reflexivity, Symmetry & Transitivity⏱️5 min read
🎯High-Yield For:Semester Exams β€’ GATE CSE β€’ Technical Interviews

πŸ’‘ Core Intuition: The 3-Second Mental Model​

🍳 The Everyday Analogy: Social Connections & Family Bloodlines​

Imagine analyzing relationships among people in a social community:

  1. Reflexive ("Has the same blood type as"): Every single person has the exact same blood type as themselves (x R xx \, R \, x). In a network graph, every vertex has a self-loop.
  2. Irreflexive ("Is strictly taller than"): No person can be strictly taller than themselves. Self-loops are strictly forbidden!
  3. Symmetric ("Is a sibling of"): If Alice is a sibling of Bob, Bob is guaranteed to be a sibling of Alice. Every forward arrow implies a reverse arrow (a⇆ba \leftrightarrows b).
  4. Anti-Symmetric ("Is a biological ancestor of"): If Alice is an ancestor of Bob, Bob cannot possibly be an ancestor of Alice unless they are the exact same individual! Bidirectional cycles between distinct people are strictly prohibited.
  5. Asymmetric ("Is strictly older than"): If Alice is older than Bob, Bob cannot be older than Alice, and no person is older than themselves (zero self-loops and zero bidirectional arrows).
  6. Transitive ("Is an ancestor of"): If Alice is an ancestor of Bob, and Bob is an ancestor of Charlie, Alice is guaranteed to be an ancestor of Charlie (aβ†’bβ†’cβ€…β€ŠβŸΉβ€…β€Šaβ†’ca \to b \to c \implies a \to c).

πŸ’» Bridging to Computer Science: Equivalence Partitioning & Partial Orders​

In computer science, relations are categorized by these foundational properties to form algebraic structures:

  • Equivalence Relations (Reflexive + Symmetric + Transitive): Partition datasets into disjoint equivalence classes, used in SQL GROUP BY, compiler register allocation, and DFA state minimization.
  • Partial Orders / Posets (Reflexive + Anti-Symmetric + Transitive): Model dependency graphs, build pipelines (Makefiles, Docker layers), and task scheduling.

πŸ”„ Reflexive & Irreflexive Relations​

A binary relation on a set AA is evaluated primarily on how it handles diagonal identity pairs (x,x)(x, x) where both coordinates match.

πŸ“–Definition 2.6: Reflexive & Irreflexive Relationsdefinition

Let RR be a binary relation on set AA:

  1. Reflexive Relation: βˆ€x∈A,(x,x)∈Rβ€…β€ŠβŸΊβ€…β€ŠΞ”AβŠ†R\forall x \in A, \quad (x, x) \in R \iff \Delta_A \subseteq R Requirement: Every single diagonal pair (x,x)(x, x) must be present in RR. Additional non-diagonal pairs are allowed.
  2. Irreflexive Relation: βˆ€x∈A,(x,x)βˆ‰Rβ€…β€ŠβŸΊβ€…β€ŠRβˆ©Ξ”A=βˆ…\forall x \in A, \quad (x, x) \notin R \iff R \cap \Delta_A = \emptyset Requirement: Zero diagonal pairs are permitted. Not even a single self-loop may exist.
πŸ“Formula 2.3: Combinatorial Counting for Reflexivityformula

For a set AA containing ∣A∣=n|A| = n elements, the Cartesian product AΓ—AA \times A contains n2n^2 total pairs:

  • Diagonal Pairs: Exactly nn pairs of the form (x,x)(x, x).
  • Non-Diagonal Pairs: Exactly n2βˆ’n=n(nβˆ’1)n^2 - n = n(n-1) pairs of the form (x,y)(x, y) where xβ‰ yx \neq y.
  1. Total Number of Reflexive Relations: All nn diagonal pairs must be present (1n=11^n = 1 choice). Each of the n(nβˆ’1)n(n-1) non-diagonal pairs has 2 choices (in or out): Nreflexive=1nΓ—2n(nβˆ’1)=2n(nβˆ’1)=2n2βˆ’nN_{\text{reflexive}} = 1^n \times 2^{n(n-1)} = 2^{n(n-1)} = 2^{n^2 - n}
  2. Total Number of Irreflexive Relations: All nn diagonal pairs must be absent (1n=11^n = 1 choice). Each non-diagonal pair has 2 choices: Nirreflexive=1nΓ—2n(nβˆ’1)=2n(nβˆ’1)=2n2βˆ’nN_{\text{irreflexive}} = 1^n \times 2^{n(n-1)} = 2^{n(n-1)} = 2^{n^2 - n}
  3. Neither Reflexive Nor Irreflexive Relations: Relations containing at least one diagonal pair, but not all nn diagonal pairs: Nneither=2n2βˆ’2β‹…2n2βˆ’n(forΒ nβ‰₯2)N_{\text{neither}} = 2^{n^2} - 2 \cdot 2^{n^2 - n} \quad (\text{for } n \ge 2)

Foundational Invariants of Reflexivity​

  • Extremal Relations:
    • The smallest reflexive relation is the identity relation Ξ”A={(x,x)∣x∈A}\Delta_A = \{(x, x) \mid x \in A\} with cardinality nn.
    • The largest reflexive relation is the universal relation AΓ—AA \times A with cardinality n2n^2.
    • The smallest irreflexive relation is the empty relation βˆ…\emptyset with cardinality 00.
    • The largest irreflexive relation is (AΓ—A)βˆ’Ξ”A(A \times A) - \Delta_A with cardinality n2βˆ’nn^2 - n.
  • Intersection and Union:
    • If R1R_1 and R2R_2 are reflexive, then R1βˆͺR2R_1 \cup R_2 and R1∩R2R_1 \cap R_2 are both reflexive.
    • If R1R_1 and R2R_2 are irreflexive, then R1βˆͺR2R_1 \cup R_2 and R1∩R2R_1 \cap R_2 are both irreflexive.
  • Complementation Duality:
    • RR is reflexive if and only if its complement RcR^c is irreflexive.
  • Supersets and Subsets:
    • Any superset of a reflexive relation is reflexive.
    • Any subset of an irreflexive relation is irreflexive.

Diagnostic Evaluation: Reflexive vs Irreflexive​

The following table evaluates classic candidate relations over set A={1,2,3}A = \{1, 2, 3\} to demonstrate why Reflexivity and Irreflexivity are not logical opposites (relations can be neither, or for A=βˆ…A = \emptyset, both!):

Relation on A={1,2,3}A = \{1, 2, 3\}Reflexive?Irreflexive?Structural Verification Rule
AΓ—AA \times AYesNoContains all 3 diagonal pairs: (1,1),(2,2),(3,3)(1, 1), (2, 2), (3, 3).
βˆ…\emptysetNoYesContains zero diagonal elements.
{(1,1),(2,2),(3,3)}\{(1, 1), (2, 2), (3, 3)\}YesNoIdentity relation Ξ”A\Delta_A: contains all diagonals and nothing else.
{(1,2),(2,3),(1,3)}\{(1, 2), (2, 3), (1, 3)\}NoYesStrictly off-diagonal pairs; zero self-loops.
{(1,1),(1,2),(2,1),(2,2)}\{(1, 1), (1, 2), (2, 1), (2, 2)\}NoNoHas (1,1),(2,2)(1, 1), (2, 2) but misses (3,3)(3, 3) (Neither!).
{(1,1),(2,2),(3,3),(1,3),(2,1)}\{(1, 1), (2, 2), (3, 3), (1, 3), (2, 1)\}YesNoContains all 3 diagonals plus additional non-diagonal edges.
{(1,3),(2,1),(2,3),(3,2)}\{(1, 3), (2, 1), (2, 3), (3, 2)\}NoYesZero diagonal elements present.

βš–οΈ Symmetric, Antisymmetric & Asymmetric Relations​

How a relation handles directional reversals (a,b)β†’(b,a)(a, b) \to (b, a) defines its symmetry classification.

Symmetric vs Anti-Symmetric vs Asymmetric Relations

Comparing directional pairing requirements across discrete relations

Symmetric

Symmetric Relation

πŸ”„
Dominant Architecture / DomainUndirected Graph Edges (a ⇄ b)
  • β€’If (a, b) ∈ R, then (b, a) must also be in R.
  • β€’Algebraic matrix invariant: M_R = (M_R)^T (symmetric matrix) and R = R⁻¹.
  • β€’Zero constraints on diagonal elements: self-loops may be present or absent freely.
  • β€’Total count: 2^(n(n+1)/2).
"Symmetry demands mutual reciprocity: whenever a forward path exists, the reverse path must exist."
Antisymmetric

Anti-Symmetric Relation

πŸ›‘οΈ
Dominant Architecture / DomainPosets & Hierarchies (a ≀ b)
  • β€’If (a, b) ∈ R and (b, a) ∈ R, then a must equal b.
  • β€’For distinct elements a β‰  b, at most one of (a, b) or (b, a) can be present.
  • β€’Diagonal elements (a, a) are fully permitted without penalty: (R ∩ R⁻¹) βŠ† Ξ”_A.
  • β€’Total count: 2^n Β· 3^(n(n-1)/2).
"Antisymmetry forbids 2-cycles between distinct nodes, but freely allows self-loops."
Asymmetric

Asymmetric Relation

⚑
Dominant Architecture / DomainStrict Partial Orders (a < b)
  • β€’If (a, b) ∈ R, then (b, a) is strictly forbidden: (b, a) βˆ‰ R.
  • β€’Every asymmetric relation is both Anti-Symmetric AND Irreflexive.
  • β€’Zero diagonal elements are permitted: R ∩ R⁻¹ = βˆ….
  • β€’Total count: 3^(n(n-1)/2).
"Asymmetry forbids all reciprocity and strictly outlaws self-loops."
πŸ“–Definition 2.7: Symmetry Formal Predicatesdefinition
  1. Symmetric Relation: βˆ€a,b∈A,(a,b)∈Rβ€…β€ŠβŸΉβ€…β€Š(b,a)∈Rβ€…β€ŠβŸΊβ€…β€ŠR=Rβˆ’1\forall a, b \in A, \quad (a, b) \in R \implies (b, a) \in R \iff R = R^{-1}
  2. Anti-Symmetric Relation: βˆ€a,b∈A,((a,b)∈R∧(b,a)∈R)β€…β€ŠβŸΉβ€…β€Ša=bβ€…β€ŠβŸΊβ€…β€Š(R∩Rβˆ’1)βŠ†Ξ”A\forall a, b \in A, \quad \Big( (a, b) \in R \land (b, a) \in R \Big) \implies a = b \iff (R \cap R^{-1}) \subseteq \Delta_A
  3. Asymmetric Relation: βˆ€a,b∈A,(a,b)∈Rβ€…β€ŠβŸΉβ€…β€Š(b,a)βˆ‰Rβ€…β€ŠβŸΊβ€…β€ŠR∩Rβˆ’1=βˆ…\forall a, b \in A, \quad (a, b) \in R \implies (b, a) \notin R \iff R \cap R^{-1} = \emptyset
πŸ“Formula 2.4: Combinatorial Counting for Symmetry Variantsformula

For a set AA of cardinality nn, the n2n^2 pairs partition into nn diagonal pairs and n(nβˆ’1)2\frac{n(n-1)}{2} unordered non-diagonal pairs { (a,b),(b,a) }\{\,(a, b), (b, a)\,\}:

  1. Total Number of Symmetric Relations: Each of the nn diagonal pairs has 2 choices (2n2^n). Each of the n(nβˆ’1)2\frac{n(n-1)}{2} symmetric pairs has 2 choices (both in or both out): Nsymmetric=2nΓ—2n(nβˆ’1)2=2n+n(nβˆ’1)2=2n(n+1)2N_{\text{symmetric}} = 2^n \times 2^{\frac{n(n-1)}{2}} = 2^{n + \frac{n(n-1)}{2}} = 2^{\frac{n(n+1)}{2}}
  2. Total Number of Anti-Symmetric Relations: Each diagonal pair has 2 choices (2n2^n). Each unordered pair has 3 mutually exclusive choices: (i) only (a,b)∈R(a, b) \in R, (ii) only (b,a)∈R(b, a) \in R, or (iii) neither in RR: Nantisymmetric=2nΓ—3n(nβˆ’1)2N_{\text{antisymmetric}} = 2^n \times 3^{\frac{n(n-1)}{2}}
  3. Total Number of Asymmetric Relations: All nn diagonal pairs must be absent (1n=11^n = 1). Each unordered pair has 3 choices: Nasymmetric=1nΓ—3n(nβˆ’1)2=3n(nβˆ’1)2N_{\text{asymmetric}} = 1^n \times 3^{\frac{n(n-1)}{2}} = 3^{\frac{n(n-1)}{2}}
  4. Total Number of Reflexive and Symmetric Relations: All nn diagonals fixed in (11), each unordered pair has 2 choices: NreflexiveΒ &Β symmetric=2n(nβˆ’1)2N_{\text{reflexive \& symmetric}} = 2^{\frac{n(n-1)}{2}}

Diagnostic Decision Matrix on a Three-Element Set​

The following table demonstrates the precise boundaries between symmetry classifications:

Relation on A={1,2,3}A = \{1, 2, 3\}SymmetricAnti-SymmetricAsymmetricReason / Structural Witness
AΓ—AA \times AYesNoNoHas (1,2)(1, 2) and (2,1)(2, 1) with 1β‰ 21 \neq 2
βˆ…\emptysetYesYesYesVacuously satisfies all three definitions
{(1,1),(2,2),(3,3)}\{(1, 1), (2, 2), (3, 3)\}YesYesNoContains diagonals, which breaks asymmetry
{(1,2),(2,3),(1,3)}\{(1, 2), (2, 3), (1, 3)\}NoYesYesZero reciprocal pairs and zero diagonals
{(1,1),(1,2),(2,1)}\{(1, 1), (1, 2), (2, 1)\}YesNoNoReciprocal pair (1,2)(1, 2) and (2,1)(2, 1) with 1β‰ 21 \neq 2
{(1,1),(1,2)}\{(1, 1), (1, 2)\}NoYesNoAnti-symmetric, but (1,1)(1, 1) breaks asymmetry

⛓️ Transitive Relations: Multi-Hop Reachability Invariants​

A relation is transitive if indirect reachability through an intermediate hop implies direct connectivity.

πŸ“–Definition 2.8: Transitive Relationdefinition

A relation RR on set AA is transitive if and only if:

βˆ€a,b,c∈A,((a,b)∈R∧(b,c)∈R)β€…β€ŠβŸΉβ€…β€Š(a,c)∈R\forall a, b, c \in A, \quad \Big( (a, b) \in R \land (b, c) \in R \Big) \implies (a, c) \in R

In relational composition terminology:

RΒ isΒ transitiveβ€…β€ŠβŸΊβ€…β€Š(R∘R)βŠ†RR \text{ is transitive} \iff (R \circ R) \subseteq R

The Vacuous Truth Trap in Transitivity​

Students often make mistakes by assuming that a relation must contain three pairs to be transitive. If the condition (a,b)∈R∧(b,c)∈R(a, b) \in R \land (b, c) \in R is never met, the premise is False, and transitivity holds vacuously!

  • R1={(1,2)}R_1 = \{(1, 2)\} on {1,2,3}\{1, 2, 3\}:
    • We have (1,2)∈R1(1, 2) \in R_1. Is there any pair starting with 22? No.
    • The premise (a,b)∈R∧(b,c)∈R(a, b) \in R \land (b, c) \in R is never satisfied.
    • Conclusion: R1R_1 is Transitive (vacuously true!).
  • R2={(1,2),(2,3)}R_2 = \{(1, 2), (2, 3)\}:
    • Here (1,2)∈R2(1, 2) \in R_2 and (2,3)∈R2(2, 3) \in R_2.
    • For transitivity, (1,3)(1, 3) must be in R2R_2.
    • Since (1,3)βˆ‰R2(1, 3) \notin R_2, R2R_2 is NOT Transitive.
  • R3={(1,2),(2,1)}R_3 = \{(1, 2), (2, 1)\}:
    • (1,2)∈R3(1, 2) \in R_3 and (2,1)∈R3β€…β€ŠβŸΉβ€…β€Š(1,1)(2, 1) \in R_3 \implies (1, 1) is required!
    • (2,1)∈R3(2, 1) \in R_3 and (1,2)∈R3β€…β€ŠβŸΉβ€…β€Š(2,2)(1, 2) \in R_3 \implies (2, 2) is required!
    • Since neither (1,1)(1, 1) nor (2,2)(2, 2) is present, R3R_3 is NOT Transitive.

Number of Transitive Relations​

Unlike reflexivity and symmetry, there is no simple closed-form formula for the total number of transitive relations on an nn-element set. The sequence grows rapidly (OEIS sequence A006905):

Set Size ∣A∣=n\vert A \vert = nTotal Relations (2n22^{n^2})Total Transitive Relations
n=0n = 020=12^0 = 111
n=1n = 121=22^1 = 222
n=2n = 224=162^4 = 161313
n=3n = 329=5122^9 = 512171171
n=4n = 4216=65,5362^{16} = 65{,}5363,9943{,}994
n=5n = 5225=33,554,4322^{25} = 33{,}554{,}432154,303154{,}303

πŸ›οΈ Master Taxonomy & Counting Reference Table​

The following master reference table synthesizes the algebraic signatures, matrix conditions, and closed-form counting formulas for all primary relational properties on a set of cardinality nn:

PropertyDefining Mathematical PredicateMatrix Invariant (MRM_R)SmallestLargestTotal Relations on Set of Size nn
Reflexiveβˆ€x∈A,β€…β€Š(x,x)∈R\forall x \in A, \; (x, x) \in RDiagonal entries all 1Ξ”A\Delta_A (nn)AΓ—AA \times A (n2n^2)2n2βˆ’n2^{n^2 - n}
Irreflexiveβˆ€x∈A,β€…β€Š(x,x)βˆ‰R\forall x \in A, \; (x, x) \notin RDiagonal entries all 0βˆ…\emptyset (00)(AΓ—A)βˆ’Ξ”A(A \times A) - \Delta_A (n2βˆ’nn^2 - n)2n2βˆ’n2^{n^2 - n}
Symmetric(a,b)∈Rβ€…β€ŠβŸΉβ€…β€Š(b,a)∈R(a, b) \in R \implies (b, a) \in RMR=(MR)TM_R = (M_R)^T (Symmetric)βˆ…\emptyset (00)AΓ—AA \times A (n2n^2)2n(n+1)22^{\frac{n(n+1)}{2}}
Anti-Symmetric(a,b),(b,a)∈Rβ€…β€ŠβŸΉβ€…β€Ša=b(a, b), (b, a) \in R \implies a = b(R∩Rβˆ’1)βŠ†Ξ”A(R \cap R^{-1}) \subseteq \Delta_Aβˆ…\emptyset (00)Cardinality n(n+1)2\frac{n(n+1)}{2}2nβ‹…3n(nβˆ’1)22^n \cdot 3^{\frac{n(n-1)}{2}}
Asymmetric(a,b)∈Rβ€…β€ŠβŸΉβ€…β€Š(b,a)βˆ‰R(a, b) \in R \implies (b, a) \notin RR∩Rβˆ’1=βˆ…R \cap R^{-1} = \emptyset (No self-loops)βˆ…\emptyset (00)Cardinality n(nβˆ’1)2\frac{n(n-1)}{2}3n(nβˆ’1)23^{\frac{n(n-1)}{2}}
Refl & SymmReflexive ∧\land SymmetricMR=(MR)TM_R = (M_R)^T with diag 1Ξ”A\Delta_A (nn)AΓ—AA \times A (n2n^2)2n(nβˆ’1)22^{\frac{n(n-1)}{2}}
Transitive(a,b),(b,c)∈Rβ€…β€ŠβŸΉβ€…β€Š(a,c)∈R(a, b), (b, c) \in R \implies (a, c) \in RMRβŠ™MR≀MRM_R \odot M_R \le M_Rβˆ…\emptyset (00)AΓ—AA \times A (n2n^2)No closed formula (OEIS A006905)

🌍 Real-World Engineering Context​

  1. Git Commit History as a Strict Partial Order: In Git, commits form a Directed Acyclic Graph (DAG). The relation "is an ancestor of" is irreflexive (a commit is not its own parent), asymmetric (no two distinct commits can be ancestors of each other), and transitive (parent of parent is ancestor). This makes Git history a strict partial order.
  2. Database Transaction Schedules (Conflict Serializability): In database engines, conflict serializability is verified by constructing a precedence graph. Transactions Ti→TjT_i \to T_j represent conflict dependencies. The schedule is serializable if and only if the transitive closure of this relation contains no self-loops (i.e. is acyclic).
  3. Role-Based Access Control (RBAC) Hierarchies: Role inheritance in enterprise software is modeled as a partial order (reflexive, anti-symmetric, transitive). If Admin subsumes Editor and Editor subsumes Viewer, transitivity guarantees that Admin automatically inherits Viewer permissions.

πŸ“ Step-by-Step Worked Examples​

Example 1: Property Evaluation of Concrete Relations​

Problem Statement:
Let A={1,2,3}A = \{1, 2, 3\}. Evaluate Reflexivity, Irreflexivity, Symmetry, Antisymmetry, Asymmetry, and Transitivity for:

R={(1,1),β€…β€Š(2,2),β€…β€Š(3,3),β€…β€Š(1,2),β€…β€Š(2,3),β€…β€Š(1,3)}R = \{(1, 1), \; (2, 2), \; (3, 3), \; (1, 2), \; (2, 3), \; (1, 3)\}

Step-by-Step Solution:

  1. Reflexivity:
    • Check all diagonal pairs: (1,1)∈R(1, 1) \in R, (2,2)∈R(2, 2) \in R, and (3,3)∈R(3, 3) \in R.
    • All three are present. Reflexive: Yes.
  2. Irreflexivity:
    • Requires zero diagonal pairs. Since all diagonals exist: Irreflexive: No.
  3. Symmetry:
    • We have (1,2)∈R(1, 2) \in R. For symmetry, (2,1)(2, 1) must be in RR.
    • Since (2,1)βˆ‰R(2, 1) \notin R: Symmetric: No.
  4. Antisymmetry:
    • For all distinct pairs aβ‰ ba \neq b, check if both (a,b)(a, b) and (b,a)(b, a) exist.
    • (1,2)∈R(1, 2) \in R but (2,1)βˆ‰R(2, 1) \notin R.
    • (2,3)∈R(2, 3) \in R but (3,2)βˆ‰R(3, 2) \notin R.
    • (1,3)∈R(1, 3) \in R but (3,1)βˆ‰R(3, 1) \notin R.
    • No distinct pair exhibits two-way reciprocity. Anti-Symmetric: Yes.
  5. Asymmetry:
    • Requires anti-symmetry AND irreflexivity (no diagonals).
    • Because (1,1)∈R(1, 1) \in R: Asymmetric: No.
  6. Transitivity:
    • (1,2)∈R(1, 2) \in R and (2,3)∈Rβ€…β€ŠβŸΉβ€…β€Š(1,3)∈R(2, 3) \in R \implies (1, 3) \in R (present!).
    • All other combinations trivially satisfy the condition. Transitive: Yes.

Key Takeaway:
Because this relation is Reflexive, Anti-Symmetric, and Transitive, it is a Partial Order Relation (POSET) (specifically, the standard ≀\le relation on {1,2,3}\{1, 2, 3\}!).


Example 2: Combinatorial Counting of Relations with Mixed Properties​

Problem Statement:
Let AA be a set with ∣A∣=4|A| = 4 elements. Determine the exact number of relations on AA that are:

  1. Reflexive.
  2. Symmetric.
  3. Reflexive and Symmetric simultaneously.
  4. Anti-Symmetric.

Step-by-Step Solution:

Given n=4n = 4:

  1. Reflexive Relations: Nreflexive=2n(nβˆ’1)=24Γ—3=212=4,096N_{\text{reflexive}} = 2^{n(n-1)} = 2^{4 \times 3} = 2^{12} = 4{,}096
  2. Symmetric Relations: Nsymmetric=2n(n+1)2=24Γ—52=210=1,024N_{\text{symmetric}} = 2^{\frac{n(n+1)}{2}} = 2^{\frac{4 \times 5}{2}} = 2^{10} = 1{,}024
  3. Reflexive and Symmetric Simultaneously: All 4 diagonals must be present (11). The 4Γ—32=6\frac{4 \times 3}{2} = 6 symmetric non-diagonal pairs each have 2 choices (both in or both out): NreflΒ &Β symm=2n(nβˆ’1)2=26=64N_{\text{refl \& symm}} = 2^{\frac{n(n-1)}{2}} = 2^6 = 64
  4. Anti-Symmetric Relations: Each of the 4 diagonals has 2 choices (24=162^4 = 16). Each of the 6 unordered pairs has 3 choices (36=7293^6 = 729): Nantisymmetric=24Γ—36=16Γ—729=11,664N_{\text{antisymmetric}} = 2^4 \times 3^6 = 16 \times 729 = 11{,}664

Key Takeaway:
Decomposing the n2n^2 elements into nn diagonal slots and n(nβˆ’1)2\frac{n(n-1)}{2} symmetric partner slots simplifies all relational counting derivations.


Example 3: Verifying Matrix and Algebraic Invariants​

Problem Statement:
Let RR be an anti-symmetric relation on set AA. Prove algebraically that R∩Rβˆ’1βŠ†Ξ”AR \cap R^{-1} \subseteq \Delta_A.

Step-by-Step Solution:

  1. Let (x,y)∈R∩Rβˆ’1(x, y) \in R \cap R^{-1} be an arbitrary element.
  2. By definition of set intersection: (x,y)∈Rand(x,y)∈Rβˆ’1(x, y) \in R \quad \text{and} \quad (x, y) \in R^{-1}
  3. By definition of inverse relation: (x,y)∈Rβˆ’1β€…β€ŠβŸΊβ€…β€Š(y,x)∈R(x, y) \in R^{-1} \iff (y, x) \in R
  4. Substituting back: (x,y)∈Rand(y,x)∈R(x, y) \in R \quad \text{and} \quad (y, x) \in R
  5. Because RR is given to be anti-symmetric, the definition states that: βˆ€a,b∈A,β€…β€Š((a,b)∈R∧(b,a)∈R)β€…β€ŠβŸΉβ€…β€Ša=b\forall a, b \in A, \; \Big( (a, b) \in R \land (b, a) \in R \Big) \implies a = b
  6. Therefore, x=yx = y.
  7. Since x=yx = y, the pair is of the form (x,x)(x, x), which belongs to the diagonal identity relation Ξ”A\Delta_A: (x,y)=(x,x)βˆˆΞ”A(x, y) = (x, x) \in \Delta_A
  8. Since every element of R∩Rβˆ’1R \cap R^{-1} belongs to Ξ”A\Delta_A, we conclude: R∩Rβˆ’1βŠ†Ξ”AR \cap R^{-1} \subseteq \Delta_A

Key Takeaway:
The intersection of any relation with its inverse isolates all two-way reciprocal paths. For anti-symmetric relations, those paths can only exist on the main diagonal.


🎯 Exam & Interview Pitfall Check​

Core Conceptual Questions

Question 1: "Can a relation be neither reflexive nor irreflexive? Can it be both?"
Key Focus Points:

  • Neither: Yes! A relation is neither if it contains some diagonal pairs, but not all of them. For example, on A={1,2}A = \{1, 2\}, R={(1,1)}R = \{(1, 1)\} has (1,1)(1, 1) so it is not irreflexive, but lacks (2,2)(2, 2) so it is not reflexive.
  • Both: A relation can be both reflexive and irreflexive if and only if the underlying set A=βˆ…A = \emptyset. When AA is empty, Ξ”A=βˆ…\Delta_A = \emptyset. The empty relation βˆ…\emptyset trivially satisfies both definitions vacuously! For any non-empty set, reflexive and irreflexive are strictly mutually exclusive.

Question 2: "What is the difference between Anti-Symmetric and Asymmetric relations?"
Key Focus Points:

  • Diagonal Pairs: Anti-symmetric relations permit diagonal pairs (x,x)(x, x) without penalty. Asymmetric relations strictly forbid all diagonal pairs.
  • Algebraic Link: An asymmetric relation is identical to an anti-symmetric relation that is also irreflexive (Asymmetric≑Anti-Symmetric∧Irreflexive\text{Asymmetric} \equiv \text{Anti-Symmetric} \land \text{Irreflexive}).
  • Subset Inclusion: Every asymmetric relation is anti-symmetric, but not every anti-symmetric relation is asymmetric.
Common Interview Traps: Architectural Trade-Offs

Trap 1: If R₁ and Rβ‚‚ are anti-symmetric, is their union R₁ βˆͺ Rβ‚‚ always anti-symmetric?
Answer: No! Let R1={(1,2)}R_1 = \{(1, 2)\} and R2={(2,1)}R_2 = \{(2, 1)\} on {1,2}\{1, 2\}. Both R1R_1 and R2R_2 are anti-symmetric individually. But their union is R1βˆͺR2={(1,2),(2,1)}R_1 \cup R_2 = \{(1, 2), (2, 1)\}, which contains a 2-cycle between distinct elements and is therefore symmetric, not anti-symmetric. Their intersection R1∩R2R_1 \cap R_2, however, is always anti-symmetric.

Trap 2: Is the empty relation βˆ… symmetric, anti-symmetric, and transitive?
Answer: Yes, to all three! Because βˆ…\emptyset contains zero elements, the antecedent for symmetry, anti-symmetry, and transitivity is always False. Under propositional logic, Fβ€…β€ŠβŸΉβ€…β€ŠP\mathbf{F} \implies P is universally True. Hence, βˆ…\emptyset is vacuously symmetric, anti-symmetric, asymmetric, and transitive!


πŸ’¬

Discussion & Doubts