• No results found

Negation of Quantifiers

N/A
N/A
Protected

Academic year: 2020

Share "Negation of Quantifiers"

Copied!
56
0
0

Loading.... (view fulltext now)

Full text

(1)

Discrete Structures

Predicate Logic 2

Dr. Muhammad Humayoun

Assistant Professor

COMSATS Institute of Computer Science, Lahore.

mhumayoun@ciitlahore.edu.pk

(2)

Negation of Quantifiers

(3)

Negation of Quantifiers

(4)

Negation of Quantifiers

(5)

Exercise

B(x): “x is a baby”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

(6)

Exercise

B(x): “x is a baby”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

(7)

Exercise

B(x): “x is a baby”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

(8)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are ignorant.

It is not the case that there exists an x such that x

is a professor and x is ignorant.

(9)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are ignorant.

[There is no such professor who is ignorant]

[It is not the case that there is an x such that x is a

professor and x is ignorant.]

(10)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are ignorant.

[There is no such professor who is ignorant]

[It is not the case that there is an x such that x is a

professor and x is ignorant.]

(11)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are ignorant.

[There is no such professor who is ignorant]

[It is not the case that there is an x such that x is a

professor and x is ignorant.]

(12)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are ignorant.

(13)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

All ignorant people are vain.

For all people x, if x is ignorant then x is vain.

It is logically equivalent to

(14)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

All ignorant people are vain.

For all people x, if x is ignorant then x is vain.

It is logically equivalent to

(15)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

All ignorant people are vain.

For all people x, if x is ignorant then x is vain.

It is logically equivalent to

(16)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

All ignorant people are vain.

For all people x, if x is ignorant then x is vain.

It is logically equivalent to

(17)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

All ignorant people are vain.

For all people x, if x is ignorant then x is vain.

It is logically equivalent to

(18)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are vain

It is not the case that there is an x such that x is professor and x is vain.

(19)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are vain

It is not the case that there is an x such that x is professor and x is vain.

(20)

Exercise

professor(x): “x is a professor”

ignorant(x): “x is ignorant”

vain(x): “x is vain”

Universe: The set of all people.

No professors are vain

It is not the case that there is an x such that x is professor and x is vain.

(21)

Precedence of Quantifiers

The quantifiers and have higher

precedence then all logical operators from

propositional calculus.

(22)

Quantifiers with Restricted Domain

(23)

Quantifiers with Restricted Domain

(24)

Quantifiers with Restricted Domain

(25)

Quantifiers with Restricted Domain

(26)

Nested Quantifiers

For all , there exists a such that”.Example:

(27)

Nested Quantifiers

For all , there exists a such that”.  Example:

 where and are integers

 There exists an x such that for all , is true”

 Example:

(28)

Meanings of multiple quantifiers

Suppose = “x likes y.”

Domain of x: {St1, St2}; Domain of y: {DS, Calculus}

true for all x, y pairs.

true for at least one x, y pair.

For every value of x we can find a (possibly

different) y so that P(x,y) is true.

There is at least one x for which P(x,y) is

(29)

Meanings of multiple quantifiers

Suppose = “x likes y.”

Domain of x: {St1, St2}; Domain of y: {DS, Calculus}

true for all x, y pairs.

true for at least one x, y pair.

For every value of x we can find a (possibly

different) y so that P(x,y) is true.

There is at least one x for which P(x,y) is

(30)

Meanings of multiple quantifiers

Suppose = “x likes y.”

Domain of x: {St1, St2}; Domain of y: {DS, Calculus}

true for all x, y pairs.

true for at least one x, y pair.

For every value of x we can find a (possibly different) y so that P(x,y) is true.

There is at least one x for which P(x,y) is

(31)

Meanings of multiple quantifiers

Suppose = “x likes y.”

Domain of x: {St1, St2}; Domain of y: {DS, Calculus}

true for all x, y pairs.

true for at least one x, y pair.

For every value of x we can find a (possibly different) y so that P(x,y) is true.

(32)
(33)

Example

Domain: Real numbers

True/False???

For all real numbers x and for all real numbers y

there is a real number z such that .

True

True/False???

There is a real number z such that for all real

(34)

Example

Domain: Real numbers

True/False???

For all real numbers x and for all real numbers y

there is a real number z such that .

True

True/False???

There is a real number z such that for all real

(35)

Example

Domain: Real numbers

True/False???

For all real numbers x and for all real numbers y

there is a real number z such that .

True

True/False???

There is a real number z such that for all real

numbers x and for all real numbers y it is true that .

(36)

Example

Domain: Real numbers

True/False???

For all real numbers x and for all real numbers y

there is a real number z such that .

True

True/False???

There is a real number z such that for all real

numbers x and for all real numbers y it is true that .

(37)

From Nested Quantifiers to English

F (a, b): “a and b are friends”

Domain: All students in COMSATS.

There is a student x such that for all students y and all

students z other than y, if x and y are friends and x and z are friends, then y and z are not friends.

There is a student none of whose friends are also

(38)

From Nested Quantifiers to English

F (a, b): “a and b are friends”

Domain: All students in COMSATS.

There is a student x such that for all students y and all

students z other than y, if x and y are friends and x and z are friends, then y and z are not friends.

There is a student none of whose friends are also

(39)

From English to Nested Quantifiers

"If a person is female and is a parent, then this

person is someone's mother“

For every person x , if person x is female and person x is a parent, then there exists a person y such that person x is the mother of person y.“

F(x): “x is female”P(x): “x is a parent“

(40)

From English to Nested Quantifiers

"If a person is female and is a parent, then this

person is someone's mother“

For every person x , if person x is female and person x is a parent, then there exists a person y such that person x is the mother of person y.“

F(x): “x is female”P(x): “x is a parent“

(41)

The sum of two positive integers is always

positive.

What is domain above?Integers

(42)

The sum of two positive integers is always

positive.

What is domain above?Integers

(43)

The sum of two positive integers is always

positive.

What is domain above?Integers

(44)

Everyone has exactly one best friend

For every person x , person x has exactly one best

friend.

B(x,y): “x has best friend y”

(45)

Everyone has exactly one best friend

For every person x , person x has exactly one best

friend.

B(x,y): “x has best friend y”

(46)

Everyone has exactly one best friend

For every person x , person x has exactly one best

friend.

B(x,y): “x has best friend y”

(47)

Everyone has exactly one best friend

For every person x , person x has exactly one best

friend.

B(x,y): “x has best friend y”

(48)

Everyone has exactly one best friend

For every person x , person x has exactly one best

friend.

B(x,y): “x has best friend y”

(49)

Everyone has exactly one best friend

For every person x , person x has exactly one best

friend.

B(x,y): “x has best friend y”

(50)

There is a woman who has taken a flight on

every airline in the world.

Domains: people airlines flightsW(x): x is a woman

F(x, f): x has taken flight f

A(f, a): flight f belongs to airline a

(51)

There is a woman who has taken a flight on

every airline in the world.

Domains: woman airlines flightsP(w, f): Woman w has taken flight f

Q(f, a): flight f belongs to airline a

(52)

There is a woman who has taken a flight on

every airline in the world.

Domains: woman airlines flightsP(w, f): Woman w has taken flight f

Q(f, a): flight f belongs to airline a

(53)

There is a woman who has taken a flight on

every airline in the world.

Domains: woman airlines flights

(54)

Bound and free variables

A variable is bound if it is known or quantified.

Otherwise, it is free.

Examples:

P(x) x is free

P(5) x is bound to 5

x P(x) x is bound by quantifier

(55)
(56)

References

Related documents

Keywords used to perform the literature search included terms commonly used by researchers and service providers working with children with DCD: clumsy, developmental

The current study attempts to shed light on the language produced among bilingual students of different language acquisition backgrounds focusing on the

This study was conducted in the hope of evaluating a professional learning community within an English language institute in Iran to detect the threats to its survival from

In doing so, the Board considered the process that it follows in reviewing and approving the Fund’s investment advisory agreement and sub-advisory contracts and the information that

Colorado Judicial District 18 which covers Arapahoe, Douglas, Elbert and Lincoln Counties provides another great example of how juvenile diversion and restorative justice

associating suicide with mental imbalance. There is certainly a history of pregnant women’s sui- cides, although the explanations that some fami- lies have offered of suicide, such

5 Discussion 112 APPENDICES 112 A Testing random effects in the linear mixed model using approximate Bayes factors 113 A.1 Marginal distributions for testing a random