dbTalk Databases Forums  

Re: relational lattices from boolean algebra perspective

comp.databases.theory comp.databases.theory


Discuss Re: relational lattices from boolean algebra perspective in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
paul c
 
Posts: n/a

Default Re: relational lattices from boolean algebra perspective - 11-06-2009 , 07:09 PM






Vadim Tropashko wrote:
Quote:
http://vadimtropashko.wordpress.com/relational-lattice/
How does one express de Morgan's Law in relational lattice terms?

Reply With Quote
  #2  
Old   
Vadim Tropashko
 
Posts: n/a

Default Re: relational lattices from boolean algebra perspective - 11-06-2009 , 08:21 PM






On Nov 6, 5:09 pm, paul c <toledobythe... (AT) oohay (DOT) ac> wrote:
Quote:
Vadim Tropashko wrote:
http://vadimtropashko.wordpress.com/relational-lattice/

How does one express de Morgan's Law in relational lattice terms?
x + y = (x' ^ y')'.

where "^" is natural join, "'" is relation complement, and "+" is
outer union (aka D&D <OR>). One have to express x+y in lattice terms
to rewrite de Morgan's Law in pure lattice terms:

x + y = (x ^ (y v R11)) v (y ^ (x v R11)).

The other counterpart of boolean negation is relational inversion
("'") which complements relation attributes and makes "the best
effort" to preserve relation content. It honors de Morgan as well
(although with some twist!):

x` + y` = (x v y)`.

A composition of complement and inversion satisfies de Moragan law in
lattice terms literally:

(x ^ y)'` = x'` v y'`.

Several other interesting RL identities:

x = (x + y) * (x + y`').
x = (x ^ y) v (x ^ y'`).

The second one is generalisation of "Fundanetal Decomposition
Identity" (FDI)

x = (x ^ R00) v (x ^ R11).

which informally asserts that any relation is inner union of its
header and content. Given that complement obeys double negation law,
FDI can be rewritten as:

x'' = (x ^ R00) v (x ^ R11).

The dual identity:

x`` = (x v R11) ^ (x v R00).

also holds, while it can't be reduced to dual to FDI. The duality is
skewed in subtle way, making RL much more interesting than Boolean
Algebra!

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.