Proof - Projection distribution over set union

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I've just started databases and have exercise to proof that projection$(pi)$ is distributive over set union$(bigcup)$. But I suck in proofs and don't really know how to proof that:
$pi_alpha( R bigcup S) = pi_alpha(R) bigcup pi_alpha(S) $
It's just to obvious and I don't know how to proof it.
References:
Definition of $bigcup: A bigcup B = x : x in A vee x in B $
Property of $pi $ $pi_alpha(pi_beta (R)) = pi_alpha(R) \where alpha subseteq beta $
relation-algebra
add a comment |Â
up vote
0
down vote
favorite
I've just started databases and have exercise to proof that projection$(pi)$ is distributive over set union$(bigcup)$. But I suck in proofs and don't really know how to proof that:
$pi_alpha( R bigcup S) = pi_alpha(R) bigcup pi_alpha(S) $
It's just to obvious and I don't know how to proof it.
References:
Definition of $bigcup: A bigcup B = x : x in A vee x in B $
Property of $pi $ $pi_alpha(pi_beta (R)) = pi_alpha(R) \where alpha subseteq beta $
relation-algebra
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I've just started databases and have exercise to proof that projection$(pi)$ is distributive over set union$(bigcup)$. But I suck in proofs and don't really know how to proof that:
$pi_alpha( R bigcup S) = pi_alpha(R) bigcup pi_alpha(S) $
It's just to obvious and I don't know how to proof it.
References:
Definition of $bigcup: A bigcup B = x : x in A vee x in B $
Property of $pi $ $pi_alpha(pi_beta (R)) = pi_alpha(R) \where alpha subseteq beta $
relation-algebra
I've just started databases and have exercise to proof that projection$(pi)$ is distributive over set union$(bigcup)$. But I suck in proofs and don't really know how to proof that:
$pi_alpha( R bigcup S) = pi_alpha(R) bigcup pi_alpha(S) $
It's just to obvious and I don't know how to proof it.
References:
Definition of $bigcup: A bigcup B = x : x in A vee x in B $
Property of $pi $ $pi_alpha(pi_beta (R)) = pi_alpha(R) \where alpha subseteq beta $
relation-algebra
asked Feb 26 '14 at 10:51
Machiaweliczny
1716
1716
add a comment |Â
add a comment |Â
1 Answer
1
active
oldest
votes
up vote
0
down vote
I'm not sure about the notation, but I'll make an effort...
Say, tuples of $R$ have properties $R_1timescdotstimes R_n$ and tuples of $S$ have properties $S_1timescdotstimes S_m$. Without loss of generality, we assume $nleq m$.
Let $xinpi_a(Rcup S)$, where $asubseteq1,ldots,n$. Then
$$forall iin a, x_iinpi_i(Rcup S)text, where $x=prod_iin ax_i$Leftrightarrow\
forall iin a, x_iin R_icup S_iLeftrightarrow\
forall iin a, x_iin R_itext or x_iin S_iLeftrightarrow\
forall iin a, x_iin R_itext or forall iin a, x_iin S_iLeftrightarrow\
xinpi_a(R)text or xinpi_a(S)Leftrightarrow\
xinpi_a(R)cuppi_a(S)$$
Hence $pi_a(Rcup S)=pi_a(R)cuppi_a(S)$.
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
I'm not sure about the notation, but I'll make an effort...
Say, tuples of $R$ have properties $R_1timescdotstimes R_n$ and tuples of $S$ have properties $S_1timescdotstimes S_m$. Without loss of generality, we assume $nleq m$.
Let $xinpi_a(Rcup S)$, where $asubseteq1,ldots,n$. Then
$$forall iin a, x_iinpi_i(Rcup S)text, where $x=prod_iin ax_i$Leftrightarrow\
forall iin a, x_iin R_icup S_iLeftrightarrow\
forall iin a, x_iin R_itext or x_iin S_iLeftrightarrow\
forall iin a, x_iin R_itext or forall iin a, x_iin S_iLeftrightarrow\
xinpi_a(R)text or xinpi_a(S)Leftrightarrow\
xinpi_a(R)cuppi_a(S)$$
Hence $pi_a(Rcup S)=pi_a(R)cuppi_a(S)$.
add a comment |Â
up vote
0
down vote
I'm not sure about the notation, but I'll make an effort...
Say, tuples of $R$ have properties $R_1timescdotstimes R_n$ and tuples of $S$ have properties $S_1timescdotstimes S_m$. Without loss of generality, we assume $nleq m$.
Let $xinpi_a(Rcup S)$, where $asubseteq1,ldots,n$. Then
$$forall iin a, x_iinpi_i(Rcup S)text, where $x=prod_iin ax_i$Leftrightarrow\
forall iin a, x_iin R_icup S_iLeftrightarrow\
forall iin a, x_iin R_itext or x_iin S_iLeftrightarrow\
forall iin a, x_iin R_itext or forall iin a, x_iin S_iLeftrightarrow\
xinpi_a(R)text or xinpi_a(S)Leftrightarrow\
xinpi_a(R)cuppi_a(S)$$
Hence $pi_a(Rcup S)=pi_a(R)cuppi_a(S)$.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
I'm not sure about the notation, but I'll make an effort...
Say, tuples of $R$ have properties $R_1timescdotstimes R_n$ and tuples of $S$ have properties $S_1timescdotstimes S_m$. Without loss of generality, we assume $nleq m$.
Let $xinpi_a(Rcup S)$, where $asubseteq1,ldots,n$. Then
$$forall iin a, x_iinpi_i(Rcup S)text, where $x=prod_iin ax_i$Leftrightarrow\
forall iin a, x_iin R_icup S_iLeftrightarrow\
forall iin a, x_iin R_itext or x_iin S_iLeftrightarrow\
forall iin a, x_iin R_itext or forall iin a, x_iin S_iLeftrightarrow\
xinpi_a(R)text or xinpi_a(S)Leftrightarrow\
xinpi_a(R)cuppi_a(S)$$
Hence $pi_a(Rcup S)=pi_a(R)cuppi_a(S)$.
I'm not sure about the notation, but I'll make an effort...
Say, tuples of $R$ have properties $R_1timescdotstimes R_n$ and tuples of $S$ have properties $S_1timescdotstimes S_m$. Without loss of generality, we assume $nleq m$.
Let $xinpi_a(Rcup S)$, where $asubseteq1,ldots,n$. Then
$$forall iin a, x_iinpi_i(Rcup S)text, where $x=prod_iin ax_i$Leftrightarrow\
forall iin a, x_iin R_icup S_iLeftrightarrow\
forall iin a, x_iin R_itext or x_iin S_iLeftrightarrow\
forall iin a, x_iin R_itext or forall iin a, x_iin S_iLeftrightarrow\
xinpi_a(R)text or xinpi_a(S)Leftrightarrow\
xinpi_a(R)cuppi_a(S)$$
Hence $pi_a(Rcup S)=pi_a(R)cuppi_a(S)$.
edited Feb 27 '14 at 21:46
answered Feb 27 '14 at 17:36
frabala
2,0241019
2,0241019
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f691058%2fproof-projection-distribution-over-set-union%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password