Logical Statements and Their Negations: And, Or, Implication, Equivalence, and Quantifiers, Study notes of Computer Science

The basics of logical statements, their negations, and the relationships between them, including conjunction (and), disjunction (or), implication, equivalence, and quantifiers. It covers the symbolic notation, the rules for negations, and the demorgan laws.

Typology: Study notes

Pre 2010

Uploaded on 08/04/2009

koofers-user-yxr
koofers-user-yxr 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Statement is a sentence that has a logical value (true or false)
From statements pand qwe can derive the following statements:
-pand q (symbolic notation: pq’)
-por q (symbolic notation: pq’)
-‘If pthen q’, equivalently: pimplies q (symbolic notation: pq or pq’).
-‘Not p (symbolic notation: ¬p)
For an implication pq we have two related implications:
-the converse, qp
-the contrapositive, ¬p ¬q
An implication and its contrapositive always have the same logical value.
Equivalence. pq means the same as ‘(pq)(qp)’. The logical value of pq is
true if pand qhave the same logical value (both true or both false). The statements p
if and only if q’, piff q and pis equivalent to q all mean pq’.
Rules for negations. The following pairs of statements always have the same logical value:
-¬(pq)’ and ¬p ¬q
-¬(pq)’ and ¬p ¬q
-¬(pq)’ and p ¬q
-¬¬p and p
The first two rules above are called the deMorgan Laws.
Statements with quantifiers (for every.../there exists...). Below, p(x) is a statement depend-
ing on a variable x.
-‘For each x,p(x)’ (symbolic notation: xp(x)’)
-‘There exists xsuch that p(x)’ (symbolic notation: xp(x)’)
Negations of statements with quantifiers. The following pairs of statements have the same
logical value:
-¬∀xp(x)’ and x¬p(x)’
-¬∃xp(x)’ and x¬p(x)’
1

Partial preview of the text

Download Logical Statements and Their Negations: And, Or, Implication, Equivalence, and Quantifiers and more Study notes Computer Science in PDF only on Docsity!

Statement is a sentence that has a logical value (true or false) From statements p and q we can derive the following statements:

  • ‘p and q’ (symbolic notation: ‘p ∧ q’)
  • ‘p or q’ (symbolic notation: ‘p ∨ q’)
  • ‘If p then q’, equivalently: ‘p implies q’ (symbolic notation: ‘p → q’ or ‘p ⇒ q’).
  • ‘Not p’ (symbolic notation: ¬p)

For an implication ‘p → q’ we have two related implications:

  • the converse, ‘q → p’
  • the contrapositive, ‘¬p → ¬q’ An implication and its contrapositive always have the same logical value. Equivalence. ‘p ↔ q’ means the same as ‘(p → q) ∧ (q → p)’. The logical value of ‘p ↔ q’ is true if p and q have the same logical value (both true or both false). The statements ‘p if and only if q’, ‘p iff q’ and ‘p is equivalent to q’ all mean ‘p ↔ q’. Rules for negations. The following pairs of statements always have the same logical value:
  • ‘¬(p ∨ q)’ and ‘¬p ∧ ¬q’
  • ‘¬(p ∧ q)’ and ‘¬p ∨ ¬q’
  • ‘¬(p → q)’ and ‘p ∧ ¬q’
  • ‘¬¬p’ and ‘p’ The first two rules above are called the deMorgan Laws. Statements with quantifiers (for every.../there exists...). Below, p(x) is a statement depend- ing on a variable x.
  • ‘For each x, p(x)’ (symbolic notation: ‘∀xp(x)’)
  • ‘There exists x such that p(x)’ (symbolic notation: ‘∃xp(x)’)

Negations of statements with quantifiers. The following pairs of statements have the same logical value:

  • ‘¬∀xp(x)’ and ‘∃x¬p(x)’
  • ‘¬∃xp(x)’ and ‘∀x¬p(x)’