Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design Lucia Moura

Winter 2009

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Review of Concepts

Truth assignments, tautologies and satisfiability Definition Let X be a set of propositions (also called propositional variables). A truth assignment (to X) is a function τ : X → {true, f alse} that assigns to each propositional variable a truth value. If the truth value of a compound propositional (or propositional formula) under truth assignment τ is true, we say that τ satisfies P , otherwise we say that τ falsifies P . A compound proposition P is a tautology if every truth assignment satisfies P . A compound proposition P is satisfiable if there is a truth assignment that satisfies P . A compound proposition P is unsatisfiable (or a contradiction) if it is not satisfiable. there is a truth assignment that satisfies P . CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Review of Concepts

Examples: tautology, satisfiable, unsatisfiable

For each of the following compound propositions determine if it is tautology, satisfiable or unsatisfiable: (x ∨ y) ∧ ¬x ∧ ¬y z ∨ y ∨ x ∨ (¬x ∧ ¬y ∧ ¬z) (x → y) ↔ (¬x ∨ y)

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Review of Concepts

Logical implication and logical equivalence

Definition A compound proposition p logically implies a compound proposition q (denoted p ⇒ q) if p → q is a tautology. Two compound propositions p and q are logically equivalent (denoted p ≡ q, or p ⇔ q ) if p ↔ q is a tautology.

Theorem Two compound propositions p and q are logically equivalent if and only if p logically implies q and q logically implies p.

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Review of Concepts

Summary of important logical equivalences

Textbook’s Table 6: identity, domination, idempotent, double negation, commutative, associative, distributive, De Morgan’s, absorption and negation laws (page 24). Table 7: logical equivalences involving conditional statements and Table 8: logical equivalences involving biconditionals (page 25).

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Normal forms for compound propositions

Normal forms for compound propositions A literal is a compound proposition that consists of a proposition or the negation of a proposition. A term is a literal or the conjunction (and) of two or more literals. A clause is a literal or the disjunction (or) of two or more literals.

Definition A compound proposition is in disjunctive normal form (DNF) if it is a term or a disjunction of two or more terms. A compound proposition is in conjunctive normal form (CNF) if it is a clause or a conjunction of two or more clauses.

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Normal forms for compound propositions

Disjunctive normal form (DNF)

1 2 3 4 5 6 7 8

x F F F F T T T T

y F F T T F F T T

z F T F T F T F T

x ∨ y → ¬x ∧ z T T F T F F F F

The formula is satisfied by the truth assignment in row 1 or by the truth assignment in row 2 or by the truth assignment in row 4. So, its DNF is : (¬x ∧ ¬y ∧ ¬z) ∨ (¬x ∧ ¬y ∧ z) ∨ (¬x ∧ y ∧ z) CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Normal forms for compound propositions

Conjunctive normal form (CNF) 1 2 3 4 5 6 7 8

x F F F F T T T T

y F F T T F F T T

z F T F T F T F T

x ∨ y → ¬x ∧ z T T F T F F F F

The formula is not satisfied by the truth assignment in row 3 and in row 5 and in row 6 and in row 7 and in row 8. So:, it is log. equiv. to: ¬(¬x∧y ∧¬z)∧¬(x∧¬y ∧¬z)∧¬(x∧¬y ∧z)∧¬(x∧y ∧¬z)∧¬(x∨y ∨z) apply DeMorgan’s law to obtain its CNF: (x ∨ ¬y ∨ z) ∧ (¬x ∨ y ∨ z) ∧ (¬x ∨ y ∨ ¬z) ∧ (¬x ∨ ¬y ∨ z) ∧ (¬x ∧ ¬y ∧ ¬z) CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Boolean functions and digital circuits

Boolean functions and the design of digital circuits Let B = {f alse, true} (or B = {0, 1}). A function f : B n → B is called a boolean function of degree n.

Definition A compound proposition P with propositions x1 , x2 , . . . , xn represents a Boolean function f with arguments x1 , x2 , . . . , xn if for any truth assignment τ , τ satisfies P if and only if f (τ (x1 ), τ (x2 ), . . . , τ (xn )) = true.

Theorem Let P be a compound proposition that represents a boolean function f . Then, a compound proposition Q also represents f if and only if Q is logically equivalent to P .

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Boolean functions and digital circuits

Complete set of connectives (functionally complete) Theorem Every boolean formula can be represented by a compound proposition that uses only connectives {¬, ∧, ∨}. Proof: use DNF or CNF! This is the basis of circuit design: In digital circuit design, we are given a functional specification of the circuit and we need to construct a hardware implementation. functional specification = number n of inputs + number m of outputs + describe outputs for each set of inputs (i.e. m boolean functions!) Hardware implementation uses logical gates: or-gates, and-gates, inverters. The functional specification corresponds to m boolean functions which we can represent by m compound propositions that uses only {¬, ∧, ∨}, that is, its hardware implementation uses inverters, and-gates and or-gates. CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

Review of Concepts

Normal forms for compound propositions

Boolean functions and digital circuits

Boolean functions and digital circuits

Boolean functions and digital circuits

Consider the boolean function represented by x ∨ y → ¬x ∧ z. Give a digital circuit that computes it, using only {∧, ∨, ¬}. Give a digital circuit that computes it, using only {∧, ¬}. Is this always possible? Why? Give a digital circuit that computes it, using only {∨, ¬}. Is this always possible? Why?

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design

Lucia Moura

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal ...

Propositional Logic: normal forms, boolean functions and circuit design. Lucia Moura. Winter 2009. CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal forms, boolean functions and circuit design. Lucia Moura .... boolean function of degree n. Definition. A compound proposition P with propositions x1,x2,...

159KB Sizes 2 Downloads 121 Views

Recommend Documents

CSI2101 Discrete Structures Winter 2009: Propositional Logic: normal ...
Normal forms for compound propositions. Boolean functions and digital circuits. Review of Concepts. Truth assignments, tautologies and satisfiability. Definition. Let X be a set of propositions (also called propositional variables). A truth assignmen

ACTUALITY IN PROPOSITIONAL MODAL LOGIC 1 ...
Lj begins with A. By Lemma 3.1(4), D(V k j=1 Lj ∨ Vm j=k+1 Lj) is strictly equiv- alent to D(A V k j=1 Lj ∨ Vm j=k+1 Lj). By Lemma 3.2, this is strictly equivalent to.

Winter Camp 2009 Buffet contest
Let n ≥ 2 be an integer and Tn be the number of non-empty subsets S of {1,2,...,n} .... 3 . Similarly, y3 z3+8. + z+2. 27. + z2−2z+4. 27. ≥ y. 3 and z3 x3+8. + x+2.

DISCRETE MATHEMATICS STRUCTURES WITH APPLICATION TO ...
Write the converse, inverse and contrapositive of the implication “If two integers ... STRUCTURES WITH APPLICATION TO COMPUTER SCIENCE.pdf. Page 1 of ...

Coarse-graining of protein structures for the normal ...
Mar 1, 2007 - forms.1–3 It is essential to understand the protein dynamics that provides the information ... mode analysis (NMA) has been an alternative to MD simulation. NMA has enabled ... tion by minimization of anharmonic potential energy, whic

Auto-segmentation of normal and target structures in ... -
Radiation Medicine Program, Princess Margaret Hospital, Toronto, Ontario M5G 2M9, Canada. Vladimir ... ometrical metric, the median symmetric Hausdorff distance (HD), which is .... Next, the mean landmark positions and the covariance ma-.

Auto-segmentation of normal and target structures in ... -
ment training. II. METHODS. The auto-segmentation method developed in this work is a multistep approach, which can be divided into two major steps. (i) Model ...

Hein, Prolog Experiments in Discrete Mathematics, Logic, and ...
Hein, Prolog Experiments in Discrete Mathematics, Logic, and Computability.pdf. Hein, Prolog Experiments in Discrete Mathematics, Logic, and Computability.

pdf-0745\discrete-mathematical-structures-5th-edition-by-bernard ...
Retrying... Download. Connect more apps... Try one of the apps below to open or edit this item. pdf-0745\discrete-mathematical-structures-5th-edition-by-bernard-kolman-robert-c-busby-sharon-cutler-ross.pdf. pdf-0745\discrete-mathematical-structures-5