0% found this document useful (0 votes)
90 views

Unit 2 Reference Material PDF

The document provides an overview of propositional logic and predicate logic. It discusses propositional logic, including definitions of statements, truth values, connectives, and truth tables. It also covers well-formed formulas, tautologies, and equivalence of formulas. For predicate logic, it defines predicates, variables, quantifiers, and valid formulas.

Uploaded by

Razin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Unit 2 Reference Material PDF

The document provides an overview of propositional logic and predicate logic. It discusses propositional logic, including definitions of statements, truth values, connectives, and truth tables. It also covers well-formed formulas, tautologies, and equivalence of formulas. For predicate logic, it defines predicates, variables, quantifiers, and valid formulas.

Uploaded by

Razin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 124

Discrete Mathematics

Propositional Logic
Unit 2
• Propositional Logic
• Definition, Statements & Notation, Truth Values, Connectives, Statement
Formulas & Truth Tables,
• Well-formed Formulas, Tautologies,
• Equivalence of Formulas, Duality Law, Tautological Implications,
• Predicate Logic
• Definition of Predicates;
• Statement functions, Variables, Quantifiers, Predicate Formulas, Free &
Bound Variables;
• The Universe of Discourse, Examples, Valid Formulas & Equivalences,
Examples
Propositional Logic
• The rules of logic give precise meaning to mathematical statements.
These rules are used to distinguish between valid and invalid
mathematical arguments.
• These rules are used in the design of computer circuits, the
construction of computer programs, the verification of the
correctness of programs, and many more.
Proposition
• A proposition is a declarative sentence (that is, a sentence that
declares a fact) that is either true or false, but not both.
• Example:
• Washington, D.C., is the capital of the United States of America.
• Toronto is the capital of Canada.
• 1 + 1 = 2.
• 2 + 2 = 3.
Proposition
• A proposition is a declarative sentence (that is, a sentence that
declares a fact) that is either true or false, but not both.
• Example:
• Washington, D.C., is the capital of the United States of America.
• Toronto is the capital of Canada.
• 1 + 1 = 2.
• 2 + 2 = 3.
• Propositions 1 and 3 are true, whereas 2 and 4 are false
Propositions
• What time is it?
• Read this carefully.
• x + 1 = 2.
• x + y = z.
Propositions
• What time is it?
• Read this carefully.
• x + 1 = 2.
• x + y = z.
• Sentences 1 and 2 are not propositions
• they are not declarative sentences.
• Sentences 3 and 4 are not propositions
• they are neither true nor false.
• Note that each of sentences 3 and 4 can be turned into a proposition if we
assign values to the variables.
Proposition
• Letters are used to denote propositional variables (or statement
variables).
• The conventional letters used for propositional variables are:
• p, q, r, s,…
• The truth value of a proposition is true, denoted by T, if it is a true
proposition
• The truth value of a proposition is false, denoted by F, if it is a false
proposition.
• Many mathematical statements are constructed by combining one or
more propositions and are called compound propositions.
• Formed from existing propositions using logical operators.
Negation
Example
• Find the negation of the proposition
• “Michael’s PC runs Linux”
• The negation is
• “It is not the case that Michael’s PC runs Linux.”
• This negation can be more simply expressed as
• “Michael’s PC does not run Linux.”
• The negation operator constructs a new proposition from a
single existing proposition.
Conjunction
• Let p and q be propositions. The conjunction of p and q, denoted by p
∧ q, is the proposition “p and q.”
• The conjunction p ∧ q is true when both p and q are true and is false
otherwise.
Example
• Find the conjunction of the propositions p and q where
• p is the proposition “Rebecca’s PC has more than 16 GB free hard disk space” and
• q is the proposition “The processor in Rebecca’s PC runs faster than 1 GHz.”
• Solution: The conjunction of these propositions, p ∧ q, is the proposition
• “Rebecca’s PC has more than 16 GB free hard disk space, and the processor
in Rebecca’s PC runs faster than 1 GHz.”
• This conjunction can be expressed more simply as “Rebecca’s PC has more
than 16 GB free hard disk space, and its processor runs faster than 1 GHz.”
• For this conjunction to be true, both conditions given must be true. It is
false, when one or both conditions are false.
Disjunction
• Let p and q be propositions. The disjunction of p and q, denoted by p
∨ q, is the proposition “p or q.”
• The disjunction p ∨ q is false when both p and q are false and is true
otherwise.
• Find the disjunction of the propositions p and q where
• p is the proposition “Rebecca’s PC has more than 16 GB free hard disk space”
and
• q is the proposition “The processor in Rebecca’s PC runs faster than 1 GHz.”
• “Rebecca’s PC has at least 16 GB free hard disk space, or the
processor in Rebecca’s PC runs faster than 1 GHz.”
• A disjunction is true when at least one of the two propositions is true.
Exclusive OR
• Let p and q be propositions. The exclusive or of p and q, denoted by p
⊕ q, is the proposition that is true when exactly one of p and q is
true and is false otherwise.
Conditional Statement
• Let p and q be propositions. The conditional statement p → q is the
proposition “if p, then q.”
• The conditional statement p → q is false when p is true and q is false,
and true otherwise.
• In the conditional statement p → q,
• p is called the hypothesis (or antecedent or premise)
• q is called the conclusion (or consequence).
Conditional Statements
• The statement p → q is called a conditional statement because p → q
asserts that q is true on the condition that p holds.
• A conditional statement is also called an implication.
Conditional Statements
• “if p, then q”
• “p implies q”
• “if p, q”
• “p only if q”
• “p is sufficient for q”
• “a sufficient condition for q is p”
• “q if p”
• “q whenever p”
• “q when p”
• “q is necessary for p”
• “a necessary condition for p is q”
• “q follows from p”
• “q unless ¬p”
Conditional Statements

the statement p → q is true when both p and q are true and


when p is false.
Biconditionals
• Let p and q be propositions. The biconditional statement p ↔ q is the
proposition “p if and only if q.”
• The biconditional statement p ↔ q is true when p and q have the
same truth values and is false otherwise.
• Biconditional statements are also called bi-implications.
the statement p ↔ q is true when both the conditional statements p → q
and q → p are true and is false otherwise.
Example
• Let p be the statement “Maria learns discrete mathematics” and q the
statement “Maria will find a good job.”
• Solution:
• p → q: If Maria learns discrete mathematics, then she will find a good job.
• The proposition q → p is called the converse of p → q.
• The contrapositive of p → q is the proposition ¬q → ¬p.
• The proposition ¬p → ¬q is called the inverse of p → q.
Example
• What are the contrapositive, the converse, and the inverse of the
conditional statement “The home team wins whenever it is raining?”
Solution:
• Conditional statement p → q can be rewritten as “If it is raining, then
the home team wins.”
• Contrapositive is “If the home team does not win, then it is not
raining.”
• Converse is “If the home team wins, then it is raining.”
• Inverse is “If it is not raining, then the home team does not win.”
Example
• Let p be the statement “You can take the flight,” and let q be the
statement “You buy a ticket.”
• p ↔ q: “You can take the flight if and only if you buy a ticket.”
Example
• Construct the truth table of the compound proposition
• (p ∨ ¬q) → (p ∧ q).
Precedence of Logical Operators
Example
• “You can access the Internet from campus only if you are a computer
science major or you are not a freshman.” Translate an English
sentence into a logical expression.
• Let a represent “You can access the Internet from campus” c
represent “You are a computer science major” and f represent "You
are a freshman”.
• a → (c ∨ ¬f )
Example
• “You cannot ride the roller coaster if you are under 4 feet tall unless
you are older than 16 years old.” Translate an English sentence into a
logical expression.
• Let q represent “You can ride the roller coaster” r represent “You are
under 4 feet tall” and s represent “You are older than 16 years old”.
• (r ∧ ¬s) → ¬q
Classifying compound propositions
• Classification of compound propositions according to their possible
truth values are as follows:
• A compound proposition that is always true, no matter what the truth
values of the propositional variables that occur in it, is called a
tautology.
• A compound proposition that is always false is called a contradiction.
• A compound proposition that is neither a tautology nor a
contradiction is called a contingency.
Example
• The truth table p ∨ ¬p is always true, it is a tautology.
• The truth table p ∧ ¬p is always false, it is a contradiction.
Logical Equivalences
• Compound propositions that have the same truth values in all
possible cases are called logically equivalent.
• The compound propositions p and q are called logically equivalent if p
↔ q is a tautology.
• The notation p ≡ q denotes that p and q are logically equivalent.
Example
• Show that ¬(p ∨ q) and ¬p ∧ ¬q are logically equivalent.
Example
• Show that p → q and ¬p ∨ q are logically equivalent.
Example
• Show that p → q and ¬p ∨ q are logically equivalent.
• 2n rows are required if a compound proposition involves n
propositional variables
Questions
• Show that p ∨ (q ∧ r) and (p ∨ q) ∧ (p ∨ r) are logically equivalent. This
is the distributive law of disjunction over conjunction.
Logical Equivalences
• T denotes the compound proposition that is always true.
• F denotes the compound proposition that is always false.

• Identity laws
•p∧T≡p
•p∨F≡p
• Domination laws
•p∨T≡T
•p∧F≡F
• Idempotent laws
•p∨p≡p
•p∧p≡p
• Double negation law
• ¬(¬p) ≡ p
• Commutative laws
• p∨q≡q∨p
• p∧q≡q∧p
• Associative laws
• (p ∨ q) ∨ r ≡ p ∨ (q ∨ r)
• (p ∧ q) ∧ r ≡ p ∧ (q ∧ r)
• Distributive laws
• p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
• p ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
• De Morgan’s laws
• ¬(p ∧ q) ≡ ¬p ∨ ¬q
• ¬(p ∨ q) ≡ ¬p ∧ ¬q
• Absorption laws
• p ∨ (p ∧ q) ≡ p
• p ∧ (p ∨ q) ≡ p
• Negation laws
• p ∨ ¬p ≡ T
• p ∧ ¬p ≡ F
Logical Equivalences Involving Conditional
Statements.
• p → q ≡ ¬p ∨ q
• p → q ≡ ¬q → ¬p
• p ∨ q ≡ ¬p → q
• p ∧ q ≡ ¬(p → ¬q)
• ¬(p → q) ≡ p ∧ ¬q
• (p → q) ∧ (p → r) ≡ p → (q ∧ r)
• (p → r) ∧ (q → r) ≡ (p ∨ q) → r
• (p → q) ∨ (p → r) ≡ p → (q ∨ r)
• (p → r) ∨ (q → r) ≡ (p ∧ q) → r
Logical Equivalences Involving Biconditional
Statements
• p ↔ q ≡ (p → q) ∧ (q → p)
• p ↔ q ≡ ¬p ↔ ¬q
• p ↔ q ≡ (p ∧ q) ∨ (¬p ∧ ¬q)
• ¬(p ↔ q) ≡ p ↔ ¬q
Example
• Show that ¬(p → q) and p ∧ ¬q are logically equivalent.
• ¬(p → q) ≡ ¬(¬p ∨ q)
• ≡ ¬(¬p) ∧ ¬q by the second De Morgan law
• ≡ p ∧ ¬q by the double negation law
Example
• Show that (p ∧ q) → (p ∨ q) is a tautology.
Example
• Show that (p ∧ q) → (p ∨ q) is a tautology.
• (p ∧ q) → (p ∨ q) ≡ ¬(p ∧ q) ∨ (p ∨ q)
• ≡ (¬p ∨ ¬q) ∨ (p ∨ q) by the first De Morgan law
• ≡ (¬p ∨ p) ∨ (¬q ∨ q) by the associative and commutative laws for
disjunction
• ≡T∨T
•≡T
Example
• Show that ¬(p ∨ (¬p ∧ q)) and ¬p ∧ ¬q are logically equivalent by
developing a series of logical equivalences.
Example
• Show that ¬(p ∨ (¬p ∧ q)) and ¬p ∧ ¬q are logically equivalent by
developing a series of logical equivalences.
• ¬(p ∨ (¬p ∧ q)) ≡ ¬p ∧ ¬(¬p ∧ q) by the second De Morgan law
• ≡ ¬p ∧ [¬(¬p) ∨ ¬q] by the first De Morgan law
• ≡ ¬p ∧ (p ∨ ¬q) by the double negation law
• ≡ (¬p ∧ p) ∨ (¬p ∧ ¬q) by the second distributive law
• ≡ F ∨ (¬p ∧ ¬q) because ¬p ∧ p ≡ F
• ≡ (¬p ∧ ¬q) ∨ F by the commutative law for disjunction
• ≡ ¬p ∧ ¬q by the identity law for F
• Consequently ¬(p ∨ (¬p ∧ q)) and ¬p ∧ ¬q are logically equivalent.
Unit 2
• Predicate Logic
• Definition of Predicates;
• Statement functions, Variables, Quantifiers, Predicate Formulas, Free &
Bound Variables;
• The Universe of Discourse, Examples, Valid Formulas & Equivalences,
Examples
Predicate Logic
• Propositional logic cannot adequately express the meaning of all
statements in mathematics and in natural language.
• For example, suppose that we know that “Every computer connected
to the university network is functioning properly.”
• No rules of propositional logic allow us to conclude the truth of the
statement “MATH3 is functioning properly,”
• Predicate logic is a more powerful type of logic.
• It can be used to express the meaning of a wide range of statements
in mathematics and computer science in ways that permit us to
reason and explore relationships between objects.
Predicate
• Statements involving variables, such as
• “x > 3,”
• “x = y + 3,”
• “x + y = z,”
• “computer x is under attack by an intruder,”
• “computer x is functioning properly,”
• are often found in mathematical assertions, in computer programs,
and in system specifications.
• These statements are neither true nor false when the values of the
variables are not specified.
Predicate
• The statement “x is greater than 3” has two parts.
• 1) the variable x, is the subject of the statement.
• 2) the predicate, “is greater than 3”
• It refers to a property that the subject of the statement can have.
• We can denote the statement “x is greater than 3” by P(x), where P
denotes the predicate “is greater than 3” and x is the variable.
• The statement P(x) is also said to be the value of the propositional
function P at x.
• Once a value has been assigned to the variable x, the statement P(x)
becomes a proposition and has a truth value.
Example
• Let P(x) denote the statement “x > 3.” What are the truth values of
P(4) and P(2)?
• Solution:
• The statement P(4) by setting x = 4 in the statement “x > 3.” is “4 > 3,”
and is true.
• However, P(2), which is the statement “2 > 3,” is false.
Example
• Let Q(x, y) denote the statement “x = y + 3.” What are the truth values
of the propositions Q(1, 2) and Q(3, 0)?
• Solution:
• To obtain Q(1, 2), set x = 1 and y = 2 in the statement Q(x, y).
• Hence, Q(1, 2) is the statement “1 = 2 + 3,” which is false.
• The statement Q(3, 0) is the proposition “3 = 0 + 3,” which is true.
• A statement involving the n variables x1, x2,...,xn can be denoted by P
(x1, x2,...,xn).
• A statement of the form P (x1, x2,...,xn) is the value of the
propositional function P at the n-tuple (x1, x2,...,xn), and P is also
called an in-place predicate or an n-ary predicate.
• Predicates are also used to establish the correctness of computer
programs, that is, to show that computer programs always produce
the desired output when given valid input.
• The statements that describe valid input are known as preconditions.
• The conditions that the output should satisfy when the program has
run are known as postconditions.
• When the variables in a propositional function are assigned values, the
resulting statement becomes a proposition with a certain truth value.
• Quantification is another important way to create a proposition from a
propositional function.
• Quantification expresses the extent to which a predicate is true over a
range of elements.
• In English, the words
• all,
• some,
• many,
• none, and
• few
are used in quantifications.
• We will focus on two types of quantification here:
• universal quantification
• which tells us that a predicate is true for every element under consideration, and
• existential quantification,
• which tells us that there are one or more elements under consideration for which the
predicate is true.
• The area of logic that deals with predicates and quantifiers are called
predicate calculus.
Universe of Discourse
• Many mathematical statements assert that a property is true for all
values of a variable in a particular domain, called the domain of
discourse (or the universe of discourse), often just referred to as the
domain.
• Such a statement is expressed using universal quantification.
• The universal quantification of P(x) for a particular domain is the
proposition that asserts that P(x) is true for all values of x in this
domain.
• Note that the domain specifies the possible values of the variable x.
• The meaning of the universal quantification of P(x) changes when we
change the domain.
• The domain must always be specified when a universal quantifier is
used.
• The universal quantification of P(x) is the statement
• “P(x) for all values of x in the domain.”
• The notation ()P(x) or ∀xP(x) denotes the universal quantification of
P(x).
• ∀ is called the universal quantifier.
• ∀xP (x) as
• “for all xP(x)”
• “for every xP(x)”
• An element for which P(x) is false is called a counterexample of ∀x P
(x).
Example
• Let P (x) be the statement “x + 1 > x.”
• What is the truth value of the quantification ∀xP(x), where the
domain consists of all real numbers?
• Solution:
• Because P(x) is true for all real numbers x, the quantification ∀xP(x) is
true.
• Note that if the domain is empty, then ∀xP(x) is true for any
propositional function P(x)
• because there are no elements x in the domain for which P (x) is false.
• Let P(x) is a propositional function
• A statement ∀xP(x)is false if and only if
• P(x) is not always true when x is in the domain.
• A single counterexample is all we need to establish that ∀xP(x) is
false.
• Let Q(x) be the statement “x < 2.” What is the truth value of the
quantification ∀xQ(x), where the domain consists of all real numbers?
• Solution:
• Q(x) is not true for every real number x, because, for instance, Q(3) is
false.
• That is, x = 3 is a counterexample for the statement ∀xQ(x).
• Thus ∀xQ(x) is false.
• When all the elements in the domain can be listed—say, x1, x2,..., xn it
follows that the universal quantification
• ∀xP(x) is the same as the conjunction P (x1) ∧ P (x2) ∧···∧ P (xn),
• This conjunction is true if and only if P (x1), P (x2), . . . , P (xn) is all true.
THE EXISTENTIAL QUANTIFIER
• Many mathematical statements assert that there is an element with a
certain property.
• Such statements are expressed using existential quantification.
• A proposition that is true if and only if P(x) is true for at least one
value of x in the domain.
THE EXISTENTIAL QUANTIFIER
• The existential quantification of P(x) is the proposition
• “There exists an element x in the domain such that P(x).”
• We use the notation ∃xP(x) for the existential quantification of
P(x).
• ∃ is called the existential quantifier.
• A domain must always be specified when a statement ∃x P(x) is
used.
• The meaning of ∃x P(x) changes when the domain changes.
Example
• Let P(x) denote the statement “x > 3.” What is the truth value of the
quantification ∃xP(x), where the domain consists of all real numbers?
• Solution:
• Because “x > 3” is sometimes true—for instance, when x = 4
• The existential quantification of P(x), which is ∃xP(x), is true.
• In General, an implicit assumption is made that all domains of
discourse for quantifiers are nonempty.
• If the domain is empty, then ∃xQ(x) is false whenever Q(x) is a
propositional function because when the domain is empty, there can
be no element x in the domain for which Q(x) is true.
• When all elements in the domain can be listed—say, x1, x2,...,xn—
the existential quantification ∃xP(x) is the same as the disjunction P
(x1) ∨ P (x2) ∨···∨ P (xn),
• because this disjunction is true if and only if at least one of P (x1), P (x2), . . . , P
(xn) is true.
• What do the statements ∀x < 0 (x2 > 0), ∀y = 0 (y3 = 0), and ∃z > 0 (z2
= 2) mean, where the domain in each case consists of the real
numbers?
• Solution:
• The statement ∀x < 0 (x2 > 0) states that for every real number x with
x < 0, x2 > 0.
• It states, “The square of a negative real number is positive.”
• This statement is the same as ∀x(x < 0 → x2 > 0).
Example
• The statement ∀y = 0 (y3 = 0) states that for every real number y with
y = 0, we have y3 = 0.
• It states, “The cube of every nonzero real number is nonzero.”
• This statement is equivalent to ∀y(y = 0 → y3 = 0).
Example
• Statement ∃z > 0 (z2 = 2)
• There exists a real number z with z > 0 such that z2 = 2.
• It states, “There is a positive square root of 2.”
• This statement is equivalent to ∃z(z > 0 ∧ z2 = 2).
Precedence
• The quantifiers ∀ and ∃ have higher precedence than all logical
operators from propositional calculus.
• For example,
• ∀xP(x) ∨ Q(x) is the disjunction of ∀xP(x) and Q(x).
• In other words, it means (∀xP(x)) ∨ Q(x) rather than ∀x(P(x) ∨ Q(x)).
Example
• Symbolize the statement “All men are giants.”
• G(x): x is a giant
• M(x): x is a man

• (∀x)(M(x)→G(x))
Example
• G(x,y): x is taller than y.
• “For any x and y, if x is taller than y, then it is not true that y is taller
than x.”
• The statement can be symbolized as:
Example
• G(x,y): x is taller than y.
• “For any x and y, if x is smaller than y, then it is not true that y is taller
than x.”
• The statement can be symbolized as:
• (x)(y)(G(x,y)→ ¬ G(y,x))
Example
• Every apple is red.
• For all x, if x is an apple, then x is red.
• A(x): x is an apple.
• R(x): x is red.
• The statement can be symbolized as:
Example
• Every apple is red.
• For all x, if x is an apple, then x is red.
• A(x): x is an apple.
• R(x): x is red.
• The statement can be symbolized as:

• (x)(A(x)→R(x))
Example
• There exists a man.
• Symbolize the statement.
Example
• There exists a man.
• Symbolize the statement.
• M(x): x is a man.
• (∃x)(M(x))
Example
• Some men are clever.
• “There exists an x such that x is a man and x is clever”
• M(x): x is a man.
• C(x): x is clever.
• Symbolize the statement.
Example
• Some men are clever.
• “There exists an x such that x is a man and x is clever.”
• M(x): x is a man.
• C(x): x is clever.
• Symbolize the statement.
• (∃x)(M(x) ∧ C(x))
Example
• Some real numbers are rational.
• R_1(x): x is a real number.
• R_2(x): x is rational.
• Symbolize the statement.
• (∃x)(R_1(x) ∧ R_2(x))
Example
• Some real numbers are rational.
• R_1(x): x is a real number.
• R_2(x): x is rational.
• Symbolize the statement.
• (∃x)(R_1(x) ∧ R_2(x))
Predicate Formula
• P (x1, x2,...,xn) denotes an n-place predicate formula in which letter P
is an n-place predicate and x1, x2,...,xn are individual variables.
• In general, P (x1, x2,...,xn) is called an atomic formula of predicate
calculus.
• Example:
• Q(x)
• P(x,y)
• A(x,y,z)
Well – Formed Formulas
• A well-formed formula of predicate calculus is obtained by using the
following rules:
• An atomic formula is a well-formed formula.
• If A is a well-formed formula, then (negation) A is a well-formed formula.
• If A and B are well-formed formulas, then (A ∧ B), (A ↔ B), (A→B), and (A ∨
B) are well-formed formulas.
• If A is a well-formed formula and x is any variable, then (x)A and (∃ x)A are
well-formed formulas.
• Only those formulas obtained by using the above rules are well-formed
formulas.
Free and Bound Variables
• Given a formula containing a part of the form (x)(P(x)) or (∃x)P(x) is
called an x-bound part of the formula.
• Any occurrence of x in an x-bound part of a formula is called a bound
occurrence of x.
• Any occurrence of x or of any variable that is not a bound occurrence
is called a free occurrence.
• The formula P(x) either in (x)P(x) or in (∃x)P(x) is scope of a
quantifier.
• When a quantifier is used on the variable x, we say that this
occurrence of the variable is bound.
• An occurrence of a variable that is not bound by a quantifier or set
equal to a particular value is said to be free.
• All the variables that occur in a propositional function must be bound
or set equal to a particular value to turn it into a proposition.
• This can be done using a combination of universal quantifiers,
existential quantifiers, and value assignments.
• (x)P(x,y)
• P(x,y) is the scope of the quantifier.
• Both occurrence of x are bound occurrences.
• y is a free occurrences.
• (x)(P(x)→Q(x))
• The scope of an identifier is P(x)→Q(x)
• All occurrences of x are bound.
• (∃x)P(x) ∧ Q(x)
• The scope of (∃x) is P(x).
• The last occurrence of x in Q(x) is free.
Example
• ∃x(x + y = 1)
• The variable x is bound by the existential quantification ∃x.
• The variable y is free because it is not bound by a quantifier and no value is
assigned to this variable.
• Therefore, in the statement ∃x(x + y = 1),
• x is bound, but y is free.
Example
• P(x): x is a person.
• F(x,y): x is the father of y.
• M(x,y): x is the mother of y.

• Write the predicate “x is the father of the mother of y.”


Example
• P(x): x is a person.
• F(x,y): x is the father of y.
• M(x,y): x is the mother of y.

• Write the predicate “x is the father of the mother of y.”


• We name a person called z as the mother of y.
• In other words, x is the father of z and z is the mother of y.
Example
• P(x): x is a person.
• F(x,y): x is the father of y.
• M(x,y): x is the mother of y.

• Write the predicate “x is the father of the mother of y.”


• We name a person called z as the mother of y.
• In other words, x is the father of z and z is the mother of y.
• (∃z)(P(z) ∧ F(x,z) ∧ M(z,y))
Example
• Symbolize the expression “All the world loves a lover”.
• P(x): x is a person.
• L(x): x is a lover.
• R(x,y): x loves y.
Example
• Symbolize the expression “All the world loves a lover.”
• In other words, “Everybody loves a lover.”
• P(x): x is a person.
• L(x): x is a lover.
• R(x,y): x loves y.

• (x)(P(x)→(y)(P(y) ∧ L(y) → R(x, y)))


The Universe of Discourse
• Many mathematical statements assert that a property is true for all
values of a variable in a particular domain, called the domain of
discourse (or the universe of discourse), often just referred to as the
domain.
• Limits the class of individuals or objects.
• Note that the domain specifies the possible values of the variable.
• If the discussion refers to human beings only, then the universe of
discourse is the class of human beings.
Example
• Given any positive integer, there is a greater positive integer.
• Symbolize this statement with and without using the set of positive
integers as the universe of discourse.
Example
• Given any positive integer, there is a greater positive integer.
• Symbolize this statement with and without using the set of positive
integers as the universe of discourse.
• For all x, there exists a y such that y is greater than x.
• G(x,y): x is greater than y.
• (x)(∃y)G(y,x)
Example
• Given any positive integer, there is a greater positive integer.
• Symbolize this statement with and without using the set of positive
integers as the universe of discourse.
• For all x, there exists a y such that y is greater than x.
• G(x,y): x is greater than y.
• (x)(∃y)G(y,x)
• P(x): x is a positive integer.
• (x)(P(x)→(∃y)(P(y) ∧ G(y,x)))
Duality Law
• Two formulas, A and A* are said to be duals of each other if either
one can be obtained from the other by replacing ∧ by ∨ and ∨ by ∧.
• The connectives ∨ and ∧ are also called duals of each other.
• If the formula A contains the special variables T or F, then A*, its dual
is obtained by replacing T by F and F by T.
Examples
• (P ∨ Q) ∧ R
• (P ∧ Q) ∨ R
• (P ∧Q) ∨ T
• (P ∨ Q) ∧ F
Valid Formulas and Equivalences
• Let A and B be any two predicate formulas defined over a common
universe of discourse E. If for every assignment of object names from
the universe of discourse E to each of the variables appearing in A
and B, the resulting statements have the same truth values, then the
predicate formulas A and B are said to be logically equivalent over E.
• Represented as A ⇔ B.
• If A has the truth value T for at least one combination of truth values
assigned to P1, P2, …, Pn, then A is said to be satisfiable.
• The problem of determining, in a finite number of steps, whether a
given statement formula is a tautology or a contradiction or at least
satisfiable is known as decision problem.
Disjunctive Normal Forms
• A product of the variables and their negations in a formula is called an
elementary product.
• A sum of the variables and their negations is called an elementary
sum.

• Let P and Q be two atomic variables.


• P, ¬P ∧ Q , ¬Q ∧ P ∧ ¬P are examples of elementary products
• P, ¬P ∨ Q , ¬Q ∨ P ∨ ¬P are examples of elementary sums.
Necessary and sufficient condition
• For elementary product to be identically false,
• It contain at least one pair of factors in which one is the negation of the other.
• For elementary sum to be identically true,
• It contain at least one pair of factors in which one is the negation of the other.
Normal Forms
• Conjunctive Normal Form (CNF)
• Disjunctive Normal Form (DNF)
Disjunctive Normal Form
• A formula which is equivalent to a given formula and which consists
of a sum of elementary products is called a disjunctive normal form of
the given formula.
Conjunctive Normal Form
• A formula which is equivalent to a given formula and which consists
of a product of elementary sums is called a conjunctive normal form
of the given formula.
References
• K. H. Rosen, Discrete Mathematics and its applications, Tata
McGrawHill, 7th Ed., 2007.
• J. P. Trembley and R. Manohar, Discrete Mathematical Structures with
Applications to Computer Science.

You might also like