31.4 KB · commit 40bb182
← Previous: T08.2: Functional Dependencies and Attribute Classification | 🏠 Index | Next: T08.4: Attribute Closure and Finding Candidate Keys →
Topic: T08 — Normalization & Functional Dependencies | Priority: ⭐ High-Yield Candidate | Exam Frequency: 0/7 finals (0 marks) Sources: Silberschatz 7e Ch. 7 (§7.4.1, pp. 320–322) · Lecture Deck 06 (Slides 18–24) · Raidah Class Notes (p. 20)
Armstrong's axioms provide the formal inference system used to reason about functional dependencies in relational databases. Although this subtopic has not appeared as an isolated derivation in past semester finals, it forms the theoretical foundation of attribute closures (T08.4), canonical covers (T08.5), and dependency preservation (T08.11). Both RUET lecture slides (Deck 06, Slides 18–24) and student class notes dedicate extensive coverage to these inference rules. Future exams can readily test the statement of these axioms, the concepts of soundness and completeness, or the formal proofs of secondary rules such as Union, Decomposition, and Pseudotransitivity.
Logically Implied: A functional dependency f is logically implied by a set of functional dependencies F on relation R if every valid table instance r(R) that satisfies all rules in F also satisfies f.
Closure of a Set of Functional Dependencies (F+): The closure of F, written as F+, is the complete set of all functional dependencies that include F and every dependency logically implied by F.
Soundness and Completeness: An inference system like Armstrong's axioms is sound if every dependency it derives from F actually holds in F+. It is complete if it can derive every valid dependency in F+ starting from F.
Reflexivity Rule: If α is a set of attributes and β⊆α, then α→β always holds. This rule generates trivial functional dependencies.
Augmentation Rule: If α→β holds and γ is any set of attributes, then adding γ to both sides gives a valid dependency γα→γβ.
Transitivity Rule: If α→β holds and β→γ holds, then α→γ also holds.
When we design a database table, we start with a given list F of functional dependencies that come directly from real-world rules. However, those starting rules automatically force other hidden dependencies to be true as well. When a new dependency must hold whenever all dependencies in F hold, we say it is logically implied by F.
For example, consider the schema:
R(A,B,C)Suppose we know two rules:
A→BandB→CIn any valid table, if two rows share the same A value, the first rule forces them to share the same B value. Then, because they share the same B value, the second rule forces them to share the same C value. As a result, A→C is automatically true, and the set of all such implied rules is called the closure of F, written as F+.
Proving implied rules by comparing rows one by one is slow and awkward on large tables. Instead, in 1974, William W. Armstrong gave us three simple symbolic rules (called Armstrong's axioms) that let us treat functional dependencies like algebra and derive every possible implied rule in F+.
Armstrong showed that just three basic rules are enough to find every logically implied functional dependency. In the notation below, Greek letters (α,β,γ,δ) stand for sets of attributes, and writing two letters side by side like αβ is shorthand for their union α∪β (so combining {A} and {B} is written simply as AB).
If β is a subset of α, then α functionally determines β:
If β⊆α, then α→βBecause Student_ID⊆{Student_ID,Name}, this dependency is always true (a trivial dependency).
If α→β holds, then attaching the same extra set of attributes γ to both sides produces another valid functional dependency:
If α→β, then αγ→βγThen attaching Course_ID to both sides gives:
{Student_ID,Course_ID}→{Student_Name,Course_ID}If α functionally determines β, and β functionally determines γ, then α functionally determines γ:
If α→β and β→γ, then α→γThen chaining them together gives:
Student_ID→Department_NameArmstrong's axioms have two major theoretical guarantees that make them reliable for database design:
┌──────────────────────────────────────────────┐
│ Armstrong's Axioms │
└──────────────────────┬───────────────────────┘
│
┌───────────────────────┴───────────────────────┐
▼ ▼
┌───────────────┐ ┌───────────────┐
│ Soundness │ │ Completeness │
└───────┬───────┘ └───────┬───────┘
│ │
▼ ▼
"No false dependencies" "No missing dependencies"
Every derived dependency is Every logically implied
guaranteed to hold in every legal dependency can be proven
instance. (100% Correct) using these 3 rules. (100% Full)
Even though Armstrong's three primary axioms can prove anything in F+, doing every proof with only those three steps can feel like doing multiplication by adding numbers one at a time. To speed up everyday work, we use three handy shortcut rules: Union, Decomposition, and Pseudotransitivity.
Each shortcut rule is proven directly from Armstrong's three primary axioms.
Intuitively, if α determines β and α also determines γ, we can merge those two arrows into a single rule where α determines both together:
If α→β and α→γ, then α→βγ■ (Proof complete)
Example from Lecture Deck 06 (Slide 21): If Student_ID→Name and Student_ID→Department, then we can combine them into:
Student_ID→{Name,Department}Decomposition is the reverse of the Union rule. If α determines a combined group of attributes on the right-hand side, it also determines each part of that group on its own:
If α→βγ, then α→β and α→γ■ (Proof complete)
Example from Lecture Deck 06 (Slide 22): If Student_ID→{Name,Department}, then we can split the right side into:
Student_ID→NameandStudent_ID→DepartmentThink of pseudotransitivity as a plug-in substitution rule. If α determines β, and β teams up with γ to determine δ, then you can substitute α in place of β on the left side:
If α→β and γβ→δ, then αγ→δ■ (Proof complete)
Example from Lecture Deck 06 (Slide 23): If:
Student_ID→Dept_IDand{Dept_ID,Semester}→FacultyThen substituting Student_ID for Dept_ID gives:
{Student_ID,Semester}→FacultyThe following table summarizes all six rules as presented in Lecture Deck 06 (Slide 24) and Silberschatz 7e (§7.4.1):
| Rule Name | Classification | Formal Statement | Practical Meaning |
|---|---|---|---|
| Reflexivity | Primary Axiom | If β⊆α, then α→β | Any attribute set determines its own subsets. |
| Augmentation | Primary Axiom | If α→β, then αγ→βγ | Adding the same attributes to both sides preserves validity. |
| Transitivity | Primary Axiom | If α→β and β→γ, then α→γ | Dependencies can be chained together sequentially. |
| Union | Secondary Rule | If α→β and α→γ, then α→βγ | Multiple dependencies with the same determinant can be merged. |
| Decomposition | Secondary Rule | If α→βγ, then α→β and α→γ | A composite dependent can be split into individual attributes. |
| Pseudotransitivity | Secondary Rule | If α→β and γβ→δ, then αγ→δ | A determinant can substitute for a component in another dependency. |
Consider the relation schema:
R(A,B,C,G,H,I)Given the functional dependency set F:
Let us derive three non-trivial dependencies that belong to F+:
Predicted Format: Semester Final Question (4 Marks)
Question:
Define Armstrong's axioms. State and explain the three fundamental axioms of functional dependencies with proper examples.
Full Answer:
Armstrong's axioms are a set of sound and complete inference rules first proposed by William W. Armstrong in 1974. They are used to test and derive all functional dependencies logically implied by a given set of functional dependencies F.
Let α, β, and γ denote sets of attributes in a relation schema R:
Explanation: A set of attributes uniquely determines its own component values. Example: In a student database, {Roll,Name}→Roll is always valid because Roll∈{Roll,Name}.
Explanation: If α uniquely specifies β, then knowing both α and γ uniquely specifies both β and γ. Example: If Roll→Name, then adding Dept to both sides yields:
{Roll,Dept}→{Name,Dept}Explanation: Functional determination propagates through intermediate attributes. Example: If Roll→Dept_ID and Dept_ID→Dept_Head, then:
Roll→Dept_HeadPredicted Format: Semester Final Question (5 Marks)
Question:
State the Union rule, Decomposition rule, and Pseudotransitivity rule. Prove the Union rule and Decomposition rule using Armstrong's three primary axioms.
Full Answer:
Let α,β,γ,δ be sets of attributes:
Given:
To Prove:
α→βγStep-by-Step Derivation:
■ (Union rule proven)
Given:
α→βγTo Prove:
α→βandα→γStep-by-Step Derivation:
■ (Decomposition rule proven)
Predicted Format: Semester Final / Class Test Question (3 Marks)
Question:
What is meant by the terms "soundness" and "completeness" in the context of Armstrong's axioms? Why do we use secondary rules if Armstrong's axioms are already complete?
Full Answer:
An inference system is sound if every functional dependency derived by applying the rules is guaranteed to hold in all legal relation instances satisfying the initial set of dependencies F.
An inference system is complete if repeated application of the rules can derive every functional dependency that is logically implied by F.
Although Armstrong's three primary axioms (Reflexivity, Augmentation, Transitivity) are mathematically complete, using only those three rules can make derivations long and complicated.
Source: Silberschatz 7e · Chapter 7 (Practice Exercise 7.4)
Exam Relevance: High-Probability Future Exam Drill (Armstrong Axioms are starred ⭐ in syllabus)
Key Tested Concept: Derivation of secondary inference rules using Reflexivity, Augmentation, and Transitivity.
Problem Statement:
Using Armstrong's axioms, prove the soundness of the union rule:
If α→β and α→γ, then α→βγ.
Model Exam-Style Solution:
Given Dependencies:
Step-by-Step Derivation:
Conclusion: The union rule is mathematically sound and derived strictly using Augmentation and Transitivity. ■
💡 RUET Exam Takeaway: Instructors award full marks when each line explicitly states which primary axiom was applied. Do not jump directly from α→β and α→γ to α→βγ without the intermediate αβ augmentation bridge!
Source: Silberschatz 7e · Chapter 7 (Practice Exercise 7.5)
Exam Relevance: High-Probability Future Exam Drill
Key Tested Concept: Derivation of the pseudotransitivity rule using Augmentation and Transitivity.
Problem Statement:
Using Armstrong's axioms, prove the soundness of the pseudotransitivity rule:
If α→β and γβ→δ, then αγ→δ.
Model Exam-Style Solution:
Given Dependencies:
Step-by-Step Derivation:
Conclusion: The pseudotransitivity rule holds soundly under Armstrong's axioms. ■
💡 RUET Exam Takeaway: Always state the commutativity of set union (βγ=γβ) when matching the RHS of the augmented FD to the LHS of the second FD.
Source: Silberschatz 7e · Chapter 7 (Exercise 7.25)
Exam Relevance: High-Probability Foundational Theory Drill
Key Tested Concept: Proving soundness of Reflexivity, Augmentation, and Transitivity directly from the definition of a functional dependency.
Problem Statement:
Using the formal definition of a functional dependency (t1[α]=t2[α]⟹t1[β]=t2[β] for all tuples t1,t2∈r), prove that Armstrong's three primary axioms are sound:
- Reflexivity rule
- Augmentation rule
- Transitivity rule
Model Exam-Style Solution:
Proof of Reflexivity Rule (β⊆α⟹α→β):
Proof of Augmentation Rule (α→β⟹αγ→βγ):
Proof of Transitivity Rule (α→β and β→γ⟹α→γ):
💡 RUET Exam Takeaway: Soundness proofs require starting from arbitrary tuples t1,t2∈r satisfying t1[LHS]=t2[LHS] and showing that t1[RHS]=t2[RHS] must follow.
Source: Silberschatz 7e · Chapter 7 (Exercise 7.27)
Exam Relevance: High-Probability Future Exam Drill
Key Tested Concept: Proof of decomposition (projectivity) rule using Armstrong's axioms.
Problem Statement:
Using Armstrong's axioms, prove the soundness of the decomposition (or projectivity) rule:
If α→βγ, then α→β and α→γ.
Model Exam-Style Solution:
Given Dependency:
Step-by-Step Derivation:
Conclusion: Both α→β and α→γ hold, proving the decomposition rule is sound. ■
💡 RUET Exam Takeaway: Never decompose the left-hand side! βγ→α DOES NOT imply β→α. Decomposition applies strictly to the right-hand side.
← Previous: T08.2: Functional Dependencies and Attribute Classification | 🏠 Index | Next: T08.4: Attribute Closure and Finding Candidate Keys →