DBMS | Armstrong’s Axioms in Functional Dependency

Prerequisite – Functional Dependencies
The term Armstrong axioms refers to the sound and complete set of inference rules or axioms, introduced by William W. Armstrong, that is used to test logical implication of functional dependencies. If F is a set of functional dependencies then the closure of F, denoted as F^+, is the set of all functional dependencies logically implied by F. Armstrong’s Axioms are a set of rules, that when applied repeatedly, generates a closure of functional dependencies.

Axioms –

  1. Axiom of reflexivity – If {displaystyle A} is a set of attributes and {displaystyle B} is subset of {displaystyle C}, then {displaystyle C} holds {displaystyle B}. If {displaystyle Bsubseteq A} then {displaystyle A	o B} This property is trivial property.
  2. Axiom of augmentation – If {displaystyle A	o B} holds and {displaystyle Y} is attribute set, then {displaystyle AY	o BY} also holds. That is adding attributes in dependencies, does not change the basic dependencies. If {displaystyle A	o B}, then {displaystyle AC	o BC} for any {displaystyle C}.
  3. Axiom of transitivity – Same as the transitive rule in algebra, if {displaystyle A	o B} holds and {displaystyle B	o C} holds, then {displaystyle A	o C} also holds. {displaystyle A	o B} is called as {displaystyle A} functionally that determines {displaystyle B}. If  {displaystyle X	o Y} and {displaystyle Y	o Z}, then {displaystyle X	o Z}

Secondary Rules –

These rules can be derived from the above axioms.

  1. Union – If {displaystyle A	o B} holds and {displaystyle A	o C} holds, then {displaystyle A	o BC} holds. If {displaystyle X	o Y} and {displaystyle X	o Z} then {displaystyle X	o YZ}
  2. Composition – If {displaystyle A	o B} and {displaystyle X	o Y} holds, then {displaystyle AX	o BY} holds.
  3. Decomposition – If {displaystyle A	o BC} holds then {displaystyle A	o B} and {displaystyle A	o C} hold. If {displaystyle X	o YZ} then {displaystyle X	o Y} and {displaystyle X	o Z}
  4. Pseudo Transitivity – If {displaystyle A	o B} holds and {displaystyle BC	o D} holds, then {displaystyle AC	o D} holds. If {displaystyle X	o Y} and {displaystyle YZ	o W} then {displaystyle XZ	o W}.

Why armstrong axioms refers to the Sound and Complete?
By sound, we mean that given a set of functional dependencies F specified on a relation schema R, any dependency that we can infer from F by using the primry rules of amrmstrong axioms holds in every relation state r of R that satisfies the dependencies in F.
By complete, we mean that using primary rules of amrstrong axioms repeatedly to infer dependencies until no more dependencies can be inferred results in the complete set of all possible dependencies that can be inferred from F.

References –
Armstrong’s axioms – Wikipedia

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.

This article is attributed to GeeksforGeeks.org

You Might Also Like

leave a comment



load comments

Subscribe to Our Newsletter