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:

X ⊇ Y

Then:

X → Y

๐Ÿ’ก Meaning:

  • A set of attributes determines itself and its subsets

๐Ÿ”ธ Type:

  • Produces trivial functional dependencies

✔ Example:

{A, B} → A

๐Ÿ”น IR2: Augmentation Rule

๐Ÿ“Œ Statement:

If:

X → Y

Then:

XZ → YZ

๐Ÿ’ก Meaning:

  • If a dependency holds, adding the same attributes to both sides keeps it valid

✔ Example:

A → B ⇒ AC → BC

๐Ÿ”น IR3: Transitivity Rule

๐Ÿ“Œ Statement:

If:

X → Y Y → Z

Then:

X → Z

๐Ÿ’ก Meaning:

  • Functional dependencies can be chained

✔ Example:

Dept_no → Mgr_ssn Mgr_ssn → Mgr_phone ⇒ Dept_no → Mgr_phone

๐Ÿ“Œ Important Concepts

๐Ÿ”ธ Trivial vs Non-trivial FD

  • Trivial FD:

    X → Y where Y ⊆ X
  • Non-trivial FD:

    Y ⊄ X

๐Ÿ” Derived Rules (From Armstrong’s Axioms)

These rules are not basic, but can be derived using IR1–IR3.


๐Ÿ”น IR4: Decomposition Rule

๐Ÿ“Œ Statement:

X → YZ ⇒ X → Y and X → Z

๐Ÿ’ก Meaning:

  • Break RHS into smaller parts

๐Ÿ”น IR5: Union Rule

๐Ÿ“Œ Statement:

X → Y and X → Z ⇒ X → YZ

๐Ÿ’ก Meaning:

  • Combine multiple dependencies into one

๐Ÿ”น IR6: Pseudotransitive Rule

๐Ÿ“Œ Statement:

X → Y and WY → Z ⇒ WX → Z

๐Ÿ’ก Meaning:

  • A generalized form of transitivity with extra attributes

⚠️ Important Notes

  • These rules must be applied carefully
  • Common misunderstandings:

❌ Not Always True:

X → A and Y → B ≠ XY → AB

❌ Not Always True:

XY → A ≠ X → A or Y → A

How Designers Use Armstrong’s Axioms

  1. Start with given FDs (F)
  2. Apply IR1, IR2, IR3 repeatedly
  3. Derive:
    • New FDs
    • Attribute closures
  4. 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

RuleNameIdea
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

Popular posts from this blog

Database Management Systems DBMS PCCST402 Semester 4 KTU CS 2024 Scheme

Data Models, Schemas and Instances

Introduction to Database Management System -DBMS