I am trying to understand whether the following query is domain-independent:
{t : ∀x ∀y ( (x≠y ∧ R(t,x) ∧ T(t,y)) → S(x,y) )
I think that this query is domain-independent because the left side of →
forces it to be in every domain. Is that so?
I am trying to understand whether the following query is domain-independent:
{t : ∀x ∀y ( (x≠y ∧ R(t,x) ∧ T(t,y)) → S(x,y) )
I think that this query is domain-independent because the left side of →
forces it to be in every domain. Is that so?
I guess
→
is intended as material implication.Then we can convert the predicate in the given query, using Boolean algebra equivalences:
p → q
==¬p ∨ q
-- so need to negate the LHS of implication¬(p1 ∧ p2)
==¬p1 ∨ ¬p2
-- note the LHS of the given implication is a conjunction¬(x ≠ y)
==x = y
Then (omitting superfluous parens):
( (x≠y ∧ R(t,x) ∧ T(t,y)) → S(x,y) )
==
( x=y ∨ ¬R(t,x) ∨ ¬T(t,y) ∨ S(x,y) )
Observations:
x=y
is Domain Dependent:x, y
are universally quantified, the equality test doesn't require them to be drawn from any relation.¬R(t,x)
and¬T(t,y)
are negations of relation membership, so are Domain Dependent.S(x,y)
is a relation membership, so is Domain Independent -- but since it's only one of the disjuncts, it doesn't rescue the overall query.(I can't tell what "forces it [what?] to be in every domain" is trying to say.)
At that link to Boolean Algebra, note what it says about Material Implication aka Material Conditional (I've changed the variable names to reflect the workings here.):
In other words, if the LHS expression is false, membership in
S(x,y)
can be ignored, soS(x,y)
fails to constrainx,y
. Then thatt
appears only inR(t,x)
andT(t,y)
is no help in constrainingt
: both those appearances are on LHS of the implication.Edit: 'fails to constrain' here means fails to limit
x,y
ort
to range over values appearing in tuples in ground relations.