<< Chapter < Page Chapter >> Page >

Throughout these exercises, a b is simply a shorthand for a b .

Relations and interpretations

Consider the binary relation is-a-factor-of on the domain 1 2 3 4 5 6 .

  1. List all the ordered pairs in the relation.

  2. Display the relation as a directed graph.

  3. Display the relation in tabular form.

  4. Is the relation reflexive? symmetric? transitive?

Got questions? Get instant answers now!

How would you define addsTo as a ternary relation?

  1. Give a prose definition of addsTo x y z in terms of the addition function.
  2. List the set of triples in the relation on the domain 1 2 3 4 .

Got questions? Get instant answers now!

Generalize the previous problem to describe how you can represent any k -ary function as a k 1 -ary relation.

Got questions? Get instant answers now!

Are each of the following formulas valid, i.e. , true for all interpretations? (Remember that the relation names are just names in the formula;don't assume the name has to have any bearing on their interpretation.)

  • For arbitrary a and b in the domain, atLeastAsWiseAs a b atLeastAsWiseAs b a
  • For arbitrary a in the domain, prime a odd a prime a
  • For arbitrary a and b in the domain, betterThan a b betterThan b a
For each, if it is true or false under all interpretations, prove that. For these small examples, a truth table like this one will probably be easier than using Boolean algebra or inference rules.Otherwise, give an interpretation in which it is true, and one in which it is false.
As always, look at trivial and small test cases first. Here, try domains with zero, one, or two elements,and small relations.

Got questions? Get instant answers now!

[Practice problem solution provided.]

Suppose we wanted to represent the count of neighboring pirates with a binary relation, such that when location A has two neighboring pirates, piratesNextTo A 2 will be true. Of course, piratesNextTo A 1 would not be true in this situation. These would be analogous with the propositional WaterWorld propositions A-has-2 and A-has-1 , respectively.

  1. If we only allow binary relations to be subsets of a domain crossed with itself,then what must the domain be for this new relation piratesNextTo ?

  2. If we further introduced another relation, isNumber? , what is a formula that would help distinguishintended interpretations from unintended interpretations? That is, give a formula that is true under all our intendedinterpretations of piratesNextTo but is not true for some

    nonsense
    interpretations we want to exclude. (This will be a formula without an analog in the WaterWorld domain axioms .)

  1. The relation needs to accept locations as well as numbers, so the domain is L , where L is the set of WaterWorld locations. Alternatively, you could use 0 1 2 3 instead of , the set of all natural numbers.

  2. The difficulty is that it's possible to ask about nonsensical combinations like piratesNextTo 17 2 and piratesNextTo W B . Adding isNumber? , any interpretation would be expected to satisfy, for arbitrary a and b , piratesNextTo a b isNumber? b isNumber? a b .

    More interestingly though, imagine we did interpret piratesNextTo over the domain only. We could then pretend that the locations, instead of being named A ,…, Z , were just numbered 1,…,24.While this representation doesn't reflect how we model the problem, it is legal.Exercise for the reader: Write a formula which excludes relation piratesNextTo which can't match this convention!

Got questions? Get instant answers now!

Questions & Answers

how to create a software using Android phone
Wiseman Reply
how
basra
what is the difference between C and C++.
Yan Reply
what is software
Sami Reply
software is a instructions like programs
Shambhu
what is the difference between C and C++.
Yan
yes, how?
Hayder
what is software engineering
Ahmad
software engineering is a the branch of computer science deals with the design,development, testing and maintenance of software applications.
Hayder
who is best bw software engineering and cyber security
Ahmad
Both software engineering and cybersecurity offer exciting career prospects, but your choice ultimately depends on your interests and skills. If you enjoy problem-solving, programming, and designing software syste
Hayder
what's software processes
Ntege Reply
I haven't started reading yet. by device (hardware) or for improving design Lol? Here. Requirement, Design, Implementation, Verification, Maintenance.
Vernon
I can give you a more valid answer by 5:00 By the way gm.
Vernon
it is all about designing,developing, testing, implementing and maintaining of software systems.
Ehenew
hello assalamualaikum
Sami
My name M Sami I m 2nd year student
Sami
what is the specific IDE for flutter programs?
Mwami Reply
jegudgdtgd my Name my Name is M and I have been talking about iey my papa john's university of washington post I tagged I will be in
Mwaqas Reply
yes
usman
how disign photo
atul Reply
hlo
Navya
hi
Michael
yes
Subhan
Show the necessary steps with description in resource monitoring process (CPU,memory,disk and network)
samuel Reply
What is software engineering
Tafadzwa Reply
Software engineering is a branch of computer science directed to writing programs to develop Softwares that can drive or enable the functionality of some hardwares like phone , automobile and others
kelvin
if any requirement engineer is gathering requirements from client and after getting he/she Analyze them this process is called
Alqa Reply
The following text is encoded in base 64. Ik5ldmVyIHRydXN0IGEgY29tcHV0ZXIgeW91IGNhbid0IHRocm93IG91dCBhIHdpbmRvdyIgLSBTdGV2ZSBXb3puaWFr Decode it, and paste the decoded text here
Julian Reply
what to do you mean
Vincent
hello
ALI
how are you ?
ALI
What is the command to list the contents of a directory in Unix and Unix-like operating systems
George Reply
how can i make my own software free of cost
Faizan Reply
like how
usman
hi
Hayder
The name of the author of our software engineering book is Ian Sommerville.
Doha Reply
what is software
Sampson Reply
the set of intruction given to the computer to perform a task
Noor
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Intro to logic. OpenStax CNX. Jan 29, 2008 Download for free at http://cnx.org/content/col10154/1.20
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Intro to logic' conversation and receive update notifications?

Ask