Docsity

Propositional and Predicate Calculus: Group Assignment - Prof. arfer, Exercises of Mathematics

Toggle sidebar
bg1
MATH 251
Fall 2025 Name: Class Number:
Group Assignment for Module 2: Propositional and
Predicate Calculus
Due: Sunday 28 Sept. 2025 at 11:59pm
Introduction/Objectives: As will be the case for all group assignments, you will work in a small group
(minimum of 3 students, maximum of 5 students). Each group should only make one submission
per part of this assignment, which will be submitted to Canvas.
This Group Assignment consists of six exercises. The ob jectives of this assignment are as follows:
•Learn about adequate sets of logical connectives
•Learn about DNF in order to show that {¬,∧,∨} is adequate
•Use DeMorgan’s Laws and Double negation to show that {¬,∧} as well as {¬,∨} are adequate
•Show that {O}(where Ois NOR), and {Z}(where Zis NAND) are both adequate
This group assignment includes a great deal of information/explanations. Make sure to read all
of the information carefully before attempting to complete each exercise. Try to work together with
your group to understand the information.
Note: In order to make this assignment easier to read, the formulas will not be written correctly
as actual/formal WFFs. For example, any capital letter may be used to represent a propositional
symbol rather than just using the Pi’s. For example, you may see (P∧Q) (technically not a WFF
as neither Pnor Qare symbols in our language), instead of the more formal WFF (P0∧P1).
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Propositional and Predicate Calculus: Group Assignment - Prof. arfer and more Exercises Mathematics in PDF only on Docsity!

Fall 2025 Name: Class Number:

Group Assignment for Module 2: Propositional and

Predicate Calculus

Due: Sunday 28 Sept. 2025 at 11:59pm

Introduction/Objectives: As will be the case for all group assignments, you will work in a small group (minimum of 3 students, maximum of 5 students). Each group should only make one submission per part of this assignment, which will be submitted to Canvas.

This Group Assignment consists of six exercises. The objectives of this assignment are as follows:

  • Learn about adequate sets of logical connectives
  • Learn about DNF in order to show that {¬, ∧, ∨} is adequate
  • Use DeMorgan’s Laws and Double negation to show that {¬, ∧} as well as {¬, ∨} are adequate
  • Show that {O} (where O is NOR), and {Z} (where Z is NAND) are both adequate

This group assignment includes a great deal of information/explanations. Make sure to read all of the information carefully before attempting to complete each exercise. Try to work together with your group to understand the information.

Note: In order to make this assignment easier to read, the formulas will not be written correctly as actual/formal WFFs. For example, any capital letter may be used to represent a propositional symbol rather than just using the Pi’s. For example, you may see (P ∧ Q) (technically not a WFF as neither P nor Q are symbols in our language), instead of the more formal WFF (P 0 ∧ P 1 ).

Fall 2025 Name: Class Number:

When we introduced the language of Propositional Calculus, we were given the logical connectives ¬, ∧, ∨, ⇒, and ⇔. ‘¬’ is a unary connective as it only acts on a single formula, while the others are binary connectives, as they each combine/connect two formulas. The truth value interpretations of formulas using these connectives are defined by the truth tables given below:

P ¬P

P Q (P ∧ Q)

P Q (P ∨ Q)

P Q (P ⇒ Q)

P Q (P ⇔ Q)

We could extend the languge of Propositional Calculus to include symbols to represent additional connectives. For example, we could include the symbols ‘⇐’ (ONLY IF), ‘Y’ (XOR), ‘Z’ (NAND), and ‘O’ (NOR) to represent additional connectives, and we could use the following truth tables to define the truth value interpretations of formulas using these symbols:

P Q (P ⇐ Q) 0 0 1 0 1 0 1 0 1 1 1 1

P Q (P Y Q)

P Q (P Z Q)

P Q (P OQ)

As there are 16 possible columns (when we have two propositional symbols), there are 16 possible binary logical connectives with distinct truth value interpretations. These 16 possible columns can be seen in the table below:

P Q 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 0 0 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 1 0 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1

Fall 2025 Name: Class Number:

Column Is Given By The Formula 1 (P ∧ ¬P ) 2 (P OQ) 3 ¬(P ⇐ Q) 4 ¬P 5 ¬(P ⇒ Q) 6 ¬Q 7 (P Y Q) 8 (P Z Q) 9 (P ∧ Q) 10 (P ⇔ Q) 11 Q 12 (P ⇒ Q) 13 P 14 (P ⇐ Q) 15 (P ∨ Q) 16 (¬P ∨ P )

From this, we see that we can produce a formula for every possible column of a truth table (with two propositional symbols) using the logical connectives: ¬, ∧, ∨, ⇒, ⇔, ⇐, O, Y, and Z. As we are able to create a formula for every possible column, we say that this collection of logical connectives is complete or is adequate.

It turns out that the collection of logical connectives {¬, ∧, ∨, ⇒, ⇔} is complete/adequate as well, so we don’t need to add the symbols ⇐, O, Y, and Z to the language to create formulas for every one of the 16 columns.

Exercise 1. Create a formula for each of the 16 columns only using the (normal) connectives ¬, ∧, ∨, ⇒, and ⇔. Hints: We have already found formulas that only use these symbols for all except five of the sixteen columns. Negating formulas may also be of use.

Suppose that we have a (partial) truth table that only has the columns for the propositional symbols, i.e., the letters, and one additional column. Another way of stating that a set of logical connectives is complete/adequate is that no matter how the additional column is filled in, we can create a formula using only the connectives in the collection such that the formula has the given column.

Example: The set {¬} is not complete. If ‘¬’ is our only connective, then the only formulas we can create will have the form^1 :

P ¬P ¬¬P (^1) P could be a different logical symbol.

Fall 2025 Name: Class Number:

¬¬¬P

¬¬¬¬P

Using the rules of double negation, all of these formulas are either equivalent to P or ¬P.

Suppose we want to create a formula that satisfies the following (partial) truth table:

A B (Need this Formula) 0 0 0 0 1 1 1 0 1 1 1 1

If we only have the connective ‘¬’, we only have four possible formulas (up to equivalence), namely A, ¬A, B, and ¬B. (As ‘¬’ is unary, we can’t create a formula containing both A and B.)

A B ¬A ¬B (Need this Formula) 0 0 1 1 0 0 1 1 0 1 1 0 0 1 1 1 1 0 0 1

Notice that none of these will give the desired column, so that {¬} is not complete.

Example: The set {∧, ∨} is not complete. To see this, consider the (partial) truth table:

A (Need this Formula) 0 0 1 0

In this case we only have one propositional symbol to work with, and two logical connectives. Some formulas we could create include:

A

(A ∧ A)

(A ∨ A)

((A ∧ A) ∧ A)

((A ∨ A) ∧ A)

((A ∧ A) ∨ A)

((A ∨ A) ∨ A)

(A ∧ (A ∧ A))

(A ∧ (A ∨ A))

((A ∧ A) ∧ (A ∨ A))

(A ∧ (A ∧ (A ∨ A)))

(A ∧ ((A ∧ A) ∨ A))

Notice that when A is true, all of these formulas will be true, so we will never be able to get a formula with the column we desire (due to the bottom row of the truth table). Hence, we have that {∧, ∨} is not complete.

Fall 2025 Name: Class Number:

In this case, we have three rows that we want the formula to be true for, so we will have three subformulas:

(¬A ∧ ¬B) (A ∧ ¬B) (A ∧ B)

Then, we have that a formula in DNF that will have the requested column will be:

(¬A ∧ ¬B) ∨ (A ∧ ¬B) ∨ (A ∧ B)

Example: Consider the following (partial) truth table:

P Q R S (Need this Formula) 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 0 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 1 0 1 1 1 1 1 0 0 0 1 1 0 1 0 1 1 1 0 0 1 1 1 1 0

There are only two rows which are true, so we have the following formula in DNF:

(P ∧ ¬Q ∧ ¬R ∧ ¬S) ∨ (P ∧ ¬Q ∧ R ∧ S)

This formula will have the desired column in its truth table.

Note: In the case that the last column in the partial truth table has no ‘true’ rows, the formula needed will be a contradiction, so you may use the formula ‘A ∧ ¬A’ where A is any one of the propositional symbols listed in the table. To include all of the propositional symbols listed (in- stead of just one), you could create a subformula of the previous form for each symbol, and connect them with ‘∨’. For example, if the symbols listed were P , Q and R, you could use the formula: (P ∧ ¬P ) ∨ (Q ∧ ¬Q) ∨ (R ∧ ¬R).

Fall 2025 Name: Class Number:

Exercise 3. Find a formula in DNF that satisfies the following truth table.

A B C (Need this Formula) 0 0 0 1 0 0 1 0 0 1 0 0 0 1 1 1 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 0

As we can create a formula for any given column using only the connectives in the collection {¬, ∧, ∨} using the above process to produce a DNF formula, we have that this collection is com- plete. While we already saw that the collection {∧, ∨} is not complete, it turns out that the collection {¬, ∧} is complete, as is the collection {¬, ∨}.

The trick to see this is that if we have a formula that uses the connectives in {¬, ∧, ∨}, we can create an equivalent formula which changes all ∧ to ∨ or vice versa using double negation and De- Morgan’s laws.

If we want to change ∧ to ∨:

A ∧ B ¬¬(A ∧ B) ¬(¬A ∨ ¬B)

If we want to change ∨ to ∧:

A ∨ B ¬¬(A ∨ B) ¬(¬A ∧ ¬B)

Example: Find an equivalent formula to (A ∧ ¬B ∧ C) ∨ (A ∧ B ∧ C) ∨ (¬A ∧ B ∧ ¬C) which only uses the connectives ‘¬’ and ‘∨’.

In this case we need to change all of the ∧ to ∨.

(A ∧ ¬B ∧ C) ∨ (A ∧ B ∧ C) ∨ (¬A ∧ B ∧ ¬C) ¬¬(A ∧ ¬B ∧ C) ∨ ¬¬(A ∧ B ∧ C) ∨ ¬¬(¬A ∧ B ∧ ¬C) ¬(¬A ∨ ¬¬B ∨ ¬C) ∨ ¬(¬A ∨ ¬B ∨ ¬C) ∨ ¬(¬¬A ∨ ¬B ∨ ¬¬C) ¬(¬A ∨ B ∨ ¬C) ∨ ¬(¬A ∨ ¬B ∨ ¬C) ∨ ¬(A ∨ ¬B ∨ C)

Example: Find an equivalent formula to (A ∧ ¬B ∧ C) ∨ (A ∧ B ∧ C) ∨ (¬A ∧ B ∧ ¬C) which only uses the connectives ‘¬’ and ‘∧’.

Fall 2025 Name: Class Number:

It turns out that {Z} is also complete (The truth table for Z (NAND) was given earlier and given again below). To show this we only need to find a way to ‘rewrite’ ¬ and either ∧ or ∨ using only Z so that we can change any formula into an equivalent formula that only uses Z.

P Q P Z Q 0 0 1 0 1 1 1 0 1 1 1 0

Exercise 6. Note: In this problem, parentheses will be very important. (a) Find a formula equivalent to ¬A which only uses the connective Z. (b) Find a formula equivalent to A ∧ B which only uses the connective Z. (Hint: There is a reason ‘Z’ is called ‘NAND’) (c) Find a formula equivalent to A ∨ B which only uses the connective Z. (Hint: Change A ∨ B to a formula using only ∧ and ¬, and use parts (a) and (b))

Aside: This completeness of {O} and {Z} is useful in the construction of digital computers.