<< Chapter < Page Chapter >> Page >

In that same board , is location W safe? What is your informal reasoning? (List all your small steps.)Similarly for location P .

Got questions? Get instant answers now!

Give a domain axiom of WaterWorld which was omitted in the ellipses in the WaterWorld domain axioms .

Got questions? Get instant answers now!

Even allowing for ellision, the list of WaterWorld domain axioms is incomplete, in a sense. The game reports how many pirates exist in total, butthat global information is not reflected in the propositions or axioms.

First, assume we only use the default WaterWorld board size and number of pirates, i.e. , five. Give samples of the additional axioms that we need.

Next, generalize your answer to model the program's ability to play the game with a different number of pirates.

Got questions? Get instant answers now!

Give one WFF which meets all three conditions:

  • true in all WaterWorld boards(
    A theorem of WaterWorld
    )
  • not already listed as one of the WaterWorld domain axioms , and
  • not a tautology of propositional logic (can be made false in some truth assignment,though it may not be a truth assignment which satisfies the waterworld axioms).

Got questions? Get instant answers now!

Reasoning with truth tables

When writing truth tables, please list rows in the order used in all examples:FF, FT, TF, TT. For three-input tables, use the above four lines preceded by F,then the above four lines preceded by T.

In a truth table for two inputs, provide a column for each of the sixteen possible distinct functions. Give a small formula for each of these functions.

These functions will include those for ∧, ∨, and the other connectives whose truth tables you've already seen .

Got questions? Get instant answers now!

[Practice problem solution provided.]

Write the truth table for xnor , the negation of exclusive-or,What is a more common name for this Boolean function?

Truth table for xnor
φ ψ xnor xnor φ ψ

This is the

equals
for Booleans. It is also represented by the connective if-and-only-if .

If you said something like

the both-or-neither function
, that's not quite good enough,as it's a roundabout way of expressing the simple idea of equivalence.Granted, it takes some practice to internalize Booleans as values, and that equality is as valid for them as for any other value.

Got questions? Get instant answers now!

How many years would it take to build a truth table for a formula with 1000 propositions?Assume it takes 1 nanosecond to evaluate each formula.

A formula with 1000 propositions clearly isn't something you would create by hand. However, such formulas easily arise whenmodeling the behavior of a program with a 1000-element data structure.

Got questions? Get instant answers now!

Use truth tables to answer each of the following. Showing whether the connectives obey such properties via truth tables is one way ofestablishing which equivalences or inference rules we should use.

  1. Show whether ⇒ is commutative.

  2. Show whether ⊕ is commutative.

  3. Show whether ⊕ is associative.

  4. Prove that ∧ distributes over ∨: φ ψ θ φ ψ φ θ

    This version is left-distributivity. Right-distributivity follows from this plus the commutativityof ∧.
  5. Prove that ∨ distributes over ∧: φ ψ θ φ ψ φ θ

  6. Show whether ∧ or ∨ distribute over ⇒.

  7. Show whether ⇒ distributes over ∧ or ∨.

  8. Show whether ∧ or ∨ distribute over ⊕.

  9. Show whether ⊕ distributes over ∧ or ∨.

Got questions? Get instant answers now!

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