Docsity

Construct Valid Arguments - Discrete Mathematics - Lecture Slides, Slides of Discrete Mathematics

Partial preview of the text

Download Construct Valid Arguments - Discrete Mathematics - Lecture Slides and more Slides Discrete Mathematics in PDF only on Docsity!

Discrete Mathematics

CS 2610

August 19, 2008

2

Agenda

Propositional logic Logical equivalences Predicate logic

4

Logic

Logic is a discipline that studies the principles and

methods used to construct valid arguments.

An argument is valid if the conclusion follows

logically from the truth of the premises.

Logic is the foundation for expressing formal

proofs in all branches of mathematics.

5

Propositional Logic

Propositional Logic is the logic of compound

statements built from simpler statements

using Logical Boolean connectives.

The truth value of a proposition is true, denoted by T , if it is true, and false, denoted by F it is false

A proposition is a declarative sentence that is either

TRUE or FALSE (not both).

7

Implication

Some terminology, for an implication p → q

Its converse is: q → p.

Its inverse is: ¬ p → ¬ q.

Its contrapositive is: ¬q → ¬ p

8

Biconditional

Biconditional operator (↔): Partly similar to the English usage of “If and only if.”

The biconditional p ↔ q is true when q and p have

the same truth values and false otherwise.

10

Truth Tables

The truth values of compound propositions can be determined using a truth table that includes a row for every possible combination of truth values.

p q ¬p ¬p →q T T F T

T F F T

F T T T

F F T F

11

Logic and Bit Operations

A bit is a binary digit: 0 or 1.

Bits are usually used to represent truth values.  By convention: 0 represents “false”; 1 represents “true”. Bit operations correspond to logical operators, replacing false by 0 and true by 1 A Bit String is an ordered sequence of bits.

13

Propositional Equivalences

A tautology is a proposition that is always true.

 Ex.: p ∨ ¬ p

F

T

T

F

p ¬ p p ∨ ¬ p

T

T

14

Propositional Equivalences

A contradiction is a proposition that is always

false.

 Ex.: p ∧ ¬ p

F

T

T

F

p ¬ p p ∧ ¬ p

F F

16

Logical Equivalence

If p and q are propositions, then p is logically

equivalent to q if and only if their truth tables

are the same.

 “p is equivalent to q.” is denoted by p ≡ q

p, q are logically equivalent if their biconditional

p ↔ q is a tautology.

17

Logical Equivalences

  • Identity

p ∧ T ≡ p

p ∨ F ≡ p

  • Domination

p ∨ T ≡ T

p ∧ F ≡ F

  • Idempotent

p ∨ p ≡ p

p ∧ p ≡ p

  • Double negation

¬(¬ p) ≡ p

19

Logical Equivalences

  • Distributive:

p ∨ (q ∧ r ) ≡ (p ∨ q ) ∧ (p ∨ r )

p ∧ (q ∨ r ) ≡ (p ∧ q ) ∨ (p ∧ r )

  • De Morgan’s:

¬(p ∧ q ) ≡ ¬ p ∨ ¬ q (De Morgan’s I)

¬(p ∨ q ) ≡ ¬ p ∧ ¬ q (De Morgan’s II)

20

Logical Equivalences

  • Absorption:

p ∨ (p ∧ q ) ≡ p

p ∧ (p ∨ q ) ≡ p

  • Negation:

p ∧ ¬ p ≡ F

p ∨ ¬ p ≡ T

  • A useful LE involving →:

p → q ≡ ¬ p ∨ q