Sentence Having a Given Truth Table

Example 1: Find a sentence which has the following truth table:

PQ
TTT
TFT
FTT
FFF

Steps:

  1. Mark lines which are T in the last column.
  2. Basic conjunction of P and Q.
  3. Required sentence is the disjunction of the above basic conjunctions.
PQBasic conjunction
TTTP ∧ Q
TFTP ∧ ~Q
FTT~P ∧ Q
FFF

Required sentence: (P ∧ Q) ∨ (P ∧ ~Q) ∨ (~P ∧ Q)

Example 2

Find a sentence having the truth table below:

PQR
TTTT
TTFF
TFTF
TFFT
FTTF
FTFT
FFTF
FFFF

Solution

PQRBasic conjunction
TTTTP ∧ Q ∧ R
TTFF
TFTF
TFFTP ∧ ~Q ∧ ~R
FTTF
FTFT
FFTF
FFFF

Required sentence is (P ∧ Q ∧ R) ∨ (P ∧ ~Q ∧ ~R)

Example 3

Find a sentence having the following truth table and simplify it.

PQ
TTT
TFF
FTT
FFT

Solution

PQBasic conjunction
TTTP ∧ Q
TFF
FTT~P ∧ Q
FFT~P ∧ ~Q

The required sentence is (P ∧ Q) ∨ (~P ∧ Q) ∨ (~P ∧ ~Q)

To simplify:

(P ∧ Q) ∨ (~P ∧ Q) ∨ (~P ∧ ~Q) = (P ∧ Q) ∨ [~P ∧ (Q ∨ ~Q)] (distributive law)

= (P ∧ Q) ∨ [~P ∧ t] (complement law)

= (P ∧ Q) ∨ ~P (identity)

= (P ∨ ~P) ∧ (~P ∨ Q) (distributive)

= t ∧ (~P ∨ Q) (complement)

= ~P ∨ Q (identity)

Note: P → Q ≡ ~P ∨ Q

Questions

  1. For each of the following truth tables (a), (b), and (c), construct a compound sentence having that truth table.
PQR(a)(b)(c)
TTTTTF
TTFFTT
TFTTTT
TFFFTT
FTTFFF
FTFFFF
FFTFFF
FFFFFT

Solution

PQR(a)(b)(c)Basic conjunction of (a)Basic conjunction of (b)Basic conjunction of (c)
TTTTTFP ∧ Q ∧ RP ∧ Q ∧ R
TTFFTTP ∧ Q ∧ ~R
TFTTTTP ∧ ~Q ∧ R
TFFFTTP ∧ ~Q ∧ ~R
FTTFFF
FTFFFF
FFTFFF
FFFFFT~P ∧ ~Q ∧ ~R

→ The required sentence for (a) is (P ∧ Q ∧ R) ∨ (P ∧ ~Q ∧ R)

ecolebooks.com

→ The required sentence for (b) is (P ∧ Q ∧ R) ∨ (P ∧ Q ∧ ~R) ∨ (P ∧ ~Q ∧ R) ∨ (P ∧ ~Q ∧ ~R)

→ The required sentence for (c) is (P ∧ Q ∧ ~R) ∨ (P ∧ ~Q ∧ R) ∨ (~P ∧ ~Q ∧ ~R)

  1. i) Construct a truth table for ~ (P → Q)
  2. ii) Write a compound sentence having that truth table (involving ~, ∧, ∨)
  1. Repeat for the following sentences:
    1. ~P → ~Q
    2. ~P ∧ Q

More Questions

  1. Find a compound sentence having components P and Q which is true if and only if exactly one of its components P, Q is true.
  2. Find a compound sentence having components P, Q, and R which is true only if exactly two of P, Q, and R are true.
  3. Give an example of a sentence having one component which is always true.
  4. Give an example of a compound sentence having one component which is always false.
  5. Use laws of algebra of propositions to simplify ~ (P ∨ Q) ∧ (~P ∧ Q).
  6. Show that P → Q and ~P ∨ Q are logically equivalent.
  7. If Apq = P ∧ Q and Np = ~P, write the following without ~ and ∧:
    1. ~ (P ∧ Q)
    2. ~ (P ∧ ~Q)
    3. ~ (~P ∧ Q)
    4. ~ (P ∧ ~Q)

Questions

  1. Rewrite the following without using the conditional:
    1. If it is cold, he wears a hat.
    2. If productivity increases, then wages rise.
  2. Determine the truth value of the following:
    1. 2 + 2 = 4 if and only if 3 + 6 = 9
    2. 2 + 2 = 4 if and only if 5 + 1 = 2
    3. 1 + 1 = 2 if and only if 3 + 2 = 8
    4. 1 + 2 = 5 if and only if 3 + 1 = 4
  3. Prove by truth table:
    1. ~ (P → Q) ≡ P ∧ ~Q
    2. ~ (P → Q) ≡ ~P ∧ Q
  4. Prove the conditional distributes over conjunction, i.e., [P → (Q ∧ R)] ≡ (P → Q) ∧ (P → R).
  5. Let P denote “it is cold” and Q denote “it rains”. Write the following statements in symbolic form:
    1. It rains only if it is cold.
    2. A necessary condition for it to be cold is that it rains.
    3. A sufficient condition for it to be cold is that it rains.
    4. It never rains when it is cold.
    1. Write the inverse of the converse of the conditional “If a quadrilateral is a square then it is a rectangle”.
    2. Write the inverse of the converse of the contrapositive of “If the diagonals of the rhombus are perpendicular then it is a square”.

Logical Implications

A proposition P is said to logically imply a proposition Q if P → Q is a tautology.

Example

Show that P logically implies P ∨ Q.

Solution: Construct a truth table for P → (P ∨ Q).

PQP ∨ QP → (P ∨ Q)
TTTT
TFTT
FTTT
FFFT

Since column 4 is a tautology, P logically implies P ∨ Q.

Arguments

An argument in logic is a declaration that a given set of propositions P₁, P₂, P₃, …, Pₙ called premises yields another proposition Q called a conclusion. Such an argument is denoted by P₁, P₂, …, Pₙ ⊢ Q.

Example of an argument

If I like mathematics, then I will study. Either I study or I fail. But I failed; therefore, I do not like mathematics.

Validity of an Argument

Validity of an argument is determined as follows:

  • An argument P₁, P₂, …, Pₙ ⊢ Q is valid if Q is true whenever all the premises P₁, P₂, …, Pₙ are true.
  • Validity of an argument is also determined if and only if the proposition (P₁ ∧ P₂ ∧ … ∧ Pₙ) → Q is a tautology.

Example

Prove whether the following argument is valid or not: P, P → Q ⊢ Q.

Solution: Draw a truth table for [(P ∧ (P → Q)) → Q].

PQP → QP ∧ (P → Q)[(P ∧ (P → Q)) → Q]
TTTTT
TFFFT
FTTFT
FFTFT

Since column 5 is a tautology, the argument is valid.

Questions

  1. Use the truth table to show whether the given argument is valid or not: P → Q, Q → R ⊢ P → R.
  2. Symbolize the given argument and then test its validity:

    If I like mathematics, then I will study. Either I study or I fail. But I failed; therefore, I do not like mathematics.

Solution:

Let P ≡ I like mathematics, Q ≡ I will study, R ≡ I fail.

Then the given argument is: P → Q, Q ∨ R, R ⊢ ~P.

Testing the validity of [(P → Q) ∧ (Q ∨ R) ∧ R] → ~P.

PQRP → QQ ∨ R(P → Q) ∧ (Q ∨ R) ∧ R~P[(P → Q) ∧ (Q ∨ R) ∧ R] → ~P
TTTTTTFF
TTFTTFFT
TFTFTFFT
TFFFFFFT
FTTTTTTT
FTFTTFTT
FFTTTTTT
FFFTFFTT

Since column 8 is not a tautology, the given argument is not valid.

Questions

  1. Translate the following arguments in symbolic form and then test their validity:
    1. If London is not in Denmark, then Paris is not in France. But Paris is in France, therefore London is in Denmark.
    2. If I work, I cannot study. Either I work or I pass mathematics. I passed mathematics; therefore, I studied.
    3. If I buy books, I lose money. I bought books; therefore, I lost money.
  2. Determine the validity of:
    1. P → Q, ~Q ⊢ ~P
    2. ~P → Q, P ⊢ ~Q
    3. [P → ~Q], R → Q, R ⊢ ~P

Electrical Network

An electrical network is an arrangement of wires and switches that accomplish a particular task, e.g., lighting a lamp, turning a motor, etc.

The figure below shows an electrical network:

Electrical Network

When the switch P is closed, the current flows between T₁ and T₂.

The above network simplifies to the following network:

Simplified Network

Relationship between statement in logic and network

Logic and Network Relationship

A Series and Parallel Connection of Switches

A series connection of switches

The following switches are connected in series:

Series Switches

The current flows between T₁ and T₂ when both switches are closed, i.e., when P ∧ Q is true.

A parallel connection of switches

Parallel Switches

The current will flow when either one of the switches is closed.

Current flows when P ∨ Q is true.

Example

Consider the electrical network below:

Electrical Network Example

  1. Construct a compound statement presenting the network above.
  2. Find possible switch settings that will allow the current to flow between T₁ and T₂.

Solution

Note:

  1. Current flows between T₁ and T₂ when switch P is closed, i.e., P is true OR
  2. The current flows between T₁ and T₂ when switches Q and R are closed, i.e., Q ∧ R is true.

The required compound statement is P ∨ (Q ∧ R).

To find possible switch settings, draw a truth table for P ∨ (Q ∧ R):

PQRQ ∧ RP ∨ (Q ∧ R)Current flows (Yes/No)
TTTTTYes
TTFFTYes
TFTFTYes
TFFFTYes
FTTTTYes
FTFFFNo
FFTFFNo
FFFFFNo

From Statements to Network

Example

Draw a network for the statement (P ∨ Q) ∧ (R ∧ S).

Solution:

The corresponding network is shown below:

Network for (P ∨ Q) ∧ (R ∧ S)

Questions

  1. Draw networks for the following statements:
    1. [P ∨ Q ∧ (R ∧ S)]
    2. [(P ∧ Q) ∧ (R ∨ S)]
    3. [P ∨ (Q ∧ S) ∨ (R ∧ T)]
    4. (Q ∨ (R ∨ S) ∨ P)
    5. [P ∨ (Q ∧ (R ∧ S))]

Complex Switches

These operate as follows:

  1. When one switch is closed, the other one closes also.
  2. When one switch is closed, the other one opens.

Refer to the diagram:

Complex Switches

The compound relating to flow of electrical current is given by:

(P ∧ Q) ∨ [P ∧ (~Q ∨ R)]

To find possible switch settings that will allow the current to flow between T₁ and T₂:

  • Draw a truth table for (P ∧ Q) ∨ [P ∧ (~Q ∨ R)].
PQRP ∧ Q~Q~Q ∨ RP ∧ (~Q ∨ R)(P ∧ Q) ∨ [P ∧ (~Q ∨ R)]
TTTTFTTT
TTFTFFFT
TFTFTTTT
TFFFTTTT
FTTFFTFF
FTFFFFFF
FFTFTTFF
FFFFTTFF

Possible switch settings

PQR
ClosedClosedClosed
ClosedClosedOpen
ClosedOpenClosed
ClosedOpenOpen
OpenClosedClosed
OpenClosedOpen
OpenOpenClosed
OpenOpenOpen

Example

Without using a truth table, draw a sample network for the statement:

(P ∧ Q) ∨ [P ∧ (~Q ∨ R)]

Solution

(P ∧ Q) ∨ [P ∧ (~Q ∨ R)] = P ∧ (Q ∨ (~Q ∨ R)) (distributive law)

= P ∧ ((Q ∨ ~Q) ∨ R) (associative law)

= P ∧ (t ∨ R) (complement law)

= P ∧ t (identity)

= P (identity)

The statement simplifies to P.

The corresponding network is as follows:

Simplified Network

For a statement which on simplifying ends upon F, the network drawn is as follows:

Network for False Statement

For a statement which upon simplifying yields to T, the network is drawn as follows:

Network for True Statement

Questions

  1. For each of the networks shown below, find a compound statement that represents it.

Network 1
Network 2
Network 3

  1. For each of these sentences, draw a simple network:
    1. P ∧ (~Q → ~P)
    2. ~(P ∨ Q) → R
    3. P ∧ ~P
  2. Given a truth table:
PQR
TTTF
TTFT
TFTT
TFFT
FTTT
FTFT
FFTT
FFFT



');}
Bc0138c3d2dab0944d91d638547c2715

subscriber

4 Comments

  • Fc607c95382f72d936e3209ea2a6ae41

    Mohd ismail, February 11, 2025 @ 7:55 amReply

    I need good note

  • Fc607c95382f72d936e3209ea2a6ae41

    Mohd ismail, February 11, 2025 @ 7:53 amReply

    Good note

  • Ab8e498691c2f86070f3a367b392ba6e

    Eno, May 7, 2024 @ 9:15 pmReply

    It’s good notice

  • 80e93ee911d8831d9434f318d807662d

    Johnson Patasi, April 20, 2024 @ 5:38 pmReply

    Revisions

Leave a Reply

Your email address will not be published. Required fields are marked *

Accept Our Privacy Terms.*