Blood Relations – Advanced Reasoning Notes
(MIT‑Level, “Reasoning Ability” – Theoretical & Algorithmic View)
Goal – Learn to formalize, analyze, and solve family‑relation puzzles (often called blood‑relation or family tree problems) using rigorous logic, graph theory, and constraint‑satisfaction techniques.
1. Foundations
1.1 Why “Blood Relations” is a Logic Puzzle
- Relational data: Each statement describes a relationship between two people (e.g. “A is the son of B”).
- Transitivity: Some relationships propagate (e.g. if A is the son of B, and B is the father of C, then A is the grandson of C).
- Contradiction detection: A valid family tree cannot contain cycles of odd length (e.g., “X is the son of Y” and “Y is the son of X”).
1.2 Basic Terminology
| Term | Formal definition | Example |
|---|---|---|
| Person | Atom in domain (P). | (p_1, p_2, \dots) |
| Relation | Binary predicate on (P). | father(x,y), mother(x,y) |
| Ancestry | Transitive closure of parent. |
ancestor(x,y) |
| Consanguinity | Relationship via blood (no marriage or adoption). | blood_relation(x,y) |
| Kinship Graph | Directed graph (G = (P, E)) where edges encode parent → child. | parent(p_i,p_j) as edge (p_i \to p_j). |
2. Formal Models
2.1 First‑Order Logic (FOL) Representation
Let ( \mathcal{L} = { \text{father}(x,y), \text{mother}(x,y) }).
Define:
-
Parent
[ \text{parent}(x,y) ;\equiv; \text{father}(x,y) \lor \text{mother}(x,y) ] -
Child
[ \text{child}(x,y) ;\equiv; \text{parent}(y,x) ] -
Grandparent
[ \text{grandparent}(x,y) ;\equiv; \exists z,(\text{parent}(x,z) \land \text{parent}(z,y)) ] -
Ancestry (transitive closure)
[ \text{ancestor}(x,y) ;\equiv; \text{parent}(x,y) \lor \exists z,(\text{parent}(x,z) \land \text{ancestor}(z,y)) ]
A puzzle is a set ( \Phi ) of ground atoms (e.g., father(A,B), mother(C,D)) plus background axioms (the above).
Goal: deduce all other atomic facts that are logically entailed by ( \Phi \cup \text{axioms} ).
2.2 Graph‑Theoretic View
- Vertices: People (P).
- Edges:
parent(p_i,p_j)directed from parent to child. - Properties:
- Acyclic: A biological family tree is a rooted forest (no directed cycles).
- In‑degree ≤ 2: Each person has at most two parents (biological father & mother).
- Consistency: No individual can be both a father and a mother (unless we allow multiple genders or pseudonyms).
The transitive closure of the graph gives all ancestor/descendant relations.
3. Deduction Techniques
| Technique | Use‑case | Key Idea | Complexity |
|---|---|---|---|
| Forward chaining | Expand known facts using rules | Apply rules to known atoms to derive new ones | Linear in the number of rules × facts |
| Backward chaining | Resolve a query against known facts | Search for a proof tree ending in known facts | Exponential in worst case |
| Constraint propagation | Narrow possibilities based on local constraints | Use domain reduction (e.g., a child must have at least one parent in the set) | Polynomial for tree‑structured constraints |
| Resolution | Deduce contradictions or entailments | S‑kolemization + unification | NP‑complete in general |
3.1 Example: Forward Chaining for Ancestry
Given:
father(A,B)
father(B,C)
mother(C,D)
Rules:
parent(x,y) :- father(x,y).
parent(x,y) :- mother(x,y).
ancestor(x,y) :- parent(x,y).
ancestor(x,y) :- parent(x,z), ancestor(z,y).
Derivation steps:
parent(A,B)fromfather(A,B).parent(B,C)fromfather(B,C).parent(C,D)frommother(C,D).ancestor(A,B)from rule