Armstrong’s Axioms (Inference Rules)
๐ Armstrong’s Axioms (Inference Rules)
Armstrong’s axioms are a set of rules used to infer new functional dependencies (FDs) from a given set of dependencies F.
๐ They help us compute closure (F⁺) — all possible dependencies that logically follow from F.
๐ Key Properties
✅ Soundness
- Any FD derived using these rules is always correct
- It will hold in every valid relation that satisfies F
✅ Completeness
- Using these rules, we can derive all possible FDs
-
That means:
Armstrong’s axioms are sufficient to compute F⁺ (closure of F)
⚙️ Basic Armstrong’s Axioms (Core Rules)
๐น IR1: Reflexivity Rule
๐ Statement:
If:
Then:
๐ก Meaning:
- A set of attributes determines itself and its subsets
๐ธ Type:
- Produces trivial functional dependencies
✔ Example:
๐น IR2: Augmentation Rule
๐ Statement:
If:
Then:
๐ก Meaning:
- If a dependency holds, adding the same attributes to both sides keeps it valid
✔ Example:
๐น IR3: Transitivity Rule
๐ Statement:
If:
Then:
๐ก Meaning:
- Functional dependencies can be chained
✔ Example:
๐ Important Concepts
๐ธ Trivial vs Non-trivial FD
-
Trivial FD:
-
Non-trivial FD:
๐ Derived Rules (From Armstrong’s Axioms)
These rules are not basic, but can be derived using IR1–IR3.
๐น IR4: Decomposition Rule
๐ Statement:
๐ก Meaning:
- Break RHS into smaller parts
๐น IR5: Union Rule
๐ Statement:
๐ก Meaning:
- Combine multiple dependencies into one
๐น IR6: Pseudotransitive Rule
๐ Statement:
๐ก Meaning:
- A generalized form of transitivity with extra attributes
⚠️ Important Notes
- These rules must be applied carefully
- Common misunderstandings:
❌ Not Always True:
❌ Not Always True:
How Designers Use Armstrong’s Axioms
- Start with given FDs (F)
- Apply IR1, IR2, IR3 repeatedly
-
Derive:
- New FDs
- Attribute closures
-
Use results for:
- Normalization
- Schema design
- Eliminating redundancy
Summary
“Armstrong’s axioms are a complete and sound set of rules used to infer all possible functional dependencies from a given set, forming the foundation for database normalization and design.”
๐ Quick Recap Table
| Rule | Name | Idea |
|---|---|---|
| IR1 | Reflexivity | Subset dependency |
| IR2 | Augmentation | Add attributes to both sides |
| IR3 | Transitivity | Chain dependencies |
| IR4 | Decomposition | Split RHS |
| IR5 | Union | Combine RHS |
| IR6 | Pseudotransitive | Extended transitivity |
Comments
Post a Comment