SlideShare a Scribd company logo
Rosen 1.3
Propositional Functions
• Propositional functions (or predicates) are
propositions that contain variables.
• Ex: Let P(x) denote x > 3
• P(x) has no truth value until the variable x is
bound by either
– assigning it a value or by
– quantifying it.
Assignment of values
Let Q(x,y) denote “x + y = 7”.
Each of the following can be determined as T or F.
Q(4,3)
Q(3,2)
Q(4,3)  Q(3,2)
[Q(4,3)  Q(3,2)]
Quantifiers
Universe of Discourse, U: The domain of a variable in
a propositional function.
Universal Quantification of P(x) is the
proposition:“P(x) is true for all values of x in U.”
Existential Quantification of P(x) is the proposition:
“There exists an element, x, in U such that P(x) is
true.”
Universal Quantification of P(x)
xP(x)
“for all x P(x)”
“for every x P(x)”
Defined as:
P(x0)  P(x1)  P(x2)  P(x3)  . . . for all xi in U
Example:
Let P(x) denote x2  x
If U is x such that 0 < x < 1 then xP(x) is false.
If U is x such that 1 < x then xP(x) is true.
Existential Quantification of P(x)
xP(x)
“there is an x such that P(x)”
“there is at least one x such that P(x)”
“there exists at least one x such that P(x)”
Defined as:
P(x0)  P(x1)  P(x2)  P(x3)  . . . for all xi in U
Example:
Let P(x) denote x2  x
If U is x such that 0 < x  1 then xP(x) is true.
If U is x such that x < 1 then xP(x) is true.
Quantifiers
xP(x)
•True when P(x) is true for every x.
•False if there is an x for which P(x) is false.
xP(x)
•True if there exists an x for which P(x) is true.
•False if P(x) is false for every x.
Negation (it is not the case)
xP(x) equivalent to xP(x)
•True when P(x) is false for every x
•False if there is an x for which P(x) is true.
 xP(x) is equivalent to xP(x)
•True if there exists an x for which P(x) is false.
•False if P(x) is true for every x.
Examples 2a
Let T(a,b) denote the propositional function “a
trusts b.” Let U be the set of all people in the
world.
Everybody trusts Bob.
xT(x,Bob)
Could also say: xU T(x,Bob)
 denotes membership
Bob trusts somebody.
xT(Bob,x)
Examples 2b
Alice trusts herself.
T(Alice, Alice)
Alice trusts nobody.
x T(Alice,x)
Carol trusts everyone trusted by David.
x(T(David,x)  T(Carol,x))
Everyone trusts somebody.
x y T(x,y)
Examples 2c
x y T(x,y)
Someone trusts everybody.
y x T(x,y)
Somebody is trusted by everybody.
Bob trusts only Alice.
x (x=Alice  T(Bob,x))
Bob trusts only Alice.
x (x=Alice  T(Bob,x))
Let p be “x=Alice”
q be “Bob trusts x”
p q p  q
T T T
T F F
F T F
F F T
True only when
Bob trusts Alice
or Bob does not
trust someone
who is not Alice
Quantification of Two Variables
(read left to right)
xyP(x,y) or yxP(x,y)
•True when P(x,y) is true for every pair x,y.
•False if there is a pair x,y for which P(x,y) is false.
xyP(x,y) or yxP(x,y)
True if there is a pair x,y for which P(x,y) is true.
False if P(x,y) is false for every pair x,y.
Quantification of Two Variables
xyP(x,y)
•True when for every x there is a y for which P(x,y) is true.
(in this case y can depend on x)
•False if there is an x such that P(x,y) is false for every y.
yxP(x,y)
•True if there is a y for which P(x,y) is true for every x.
(i.e., true for a particular y regardless (or independent) of x)
•False if for every y there is an x for which P(x,y) is false.
Note that order matters here
In particular, if yxP(x,y) is true, then xyP(x,y) is true.
However, if xyP(x,y) is true, it is not necessary that yxP(x,y)
is true.
Examples 3a
Let L(x,y) be the statement “x loves y” where U for both
x and y is the set of all people in the world.
Everybody loves Jerry.
xL(x,Jerry)
Everybody loves somebody.
x yL(x,y)
There is somebody whom everybody loves.
yxL(x,y)
Examples 3b1
There is somebody whom Lydia does not love.
xL(Lydia,x)
Nobody loves everybody. (For each person there is at
least one person they do not love.)
xyL(x,y)
There is somebody (one or more) whom nobody loves
y x L(x,y)
Examples 3b2
There is exactly one person whom everybody loves.
xyL(y,x)?
No. There could be more than one person everybody
loves
x{yL(y,x)  w[(yL(y,w))  w=x]}
If there are, say, two values x1 and x2 (or more) for
which L(y,x) is true, the proposition is false.
x{yL(y,x)  w[(yL(y,w))  w=x]}?
xw[(y L(y,w))  w=x]?
Examples 3c
There are exactly two people whom Lynn loves.
x y{xy  L(Lynn,x)  L(Lynn,y)}?
No.
x y{xy  L(Lynn,x)  L(Lynn,y)  z[L(Lynn,z)
(z=x  z=y)]}
Everyone loves himself or herself.
xL(x,x)
There is someone who loves no one besides himself or
herself.
xy(L(x,y)  x=y)
Thinking of Quantification as
Loops
Quantifications of more than one variable
can be thought of as nested loops.
•For example, xyP(x,y) can be thought
of as a loop over x, inside of which we
loop over y (i.e., for each value of x).
• Likewise, xyP(x,y) can be thought of
as a loop over x with a loop over y nested
inside. This can be extended to any
number of variables.
Quantification as Loops
Using this procedure
•xyP(x,y) is true if P(x,y) is true for all values of x,y
as we loop through y for each value of x.
•xyP(x,y) is true if P(x,y) is true for at least one set of
values x,y as we loop through y for each value of x.
…And so on….
Quantification of 3 Variables
Let Q(x,y,z) be the statement “x + y = z”, where x,y,z
are real numbers.
What is the truth values of
•xyzQ(x,y,z)?
•zxyQ(x,y,z)?
Quantification of 3 Variables
Let Q(x,y,z) be the statement “x + y = z”, where x,y,z
are real numbers.
•xyzQ(x,y,z)
is the statement, “For all real numbers x and for all
real numbers y, there is a real number z such that
x + y = z.”
True
Quantification of 3 Variables
Let Q(x,y,z) be the statement “x + y = z”, where x,y,z
are real numbers.
zxyQ(x,y,z)
is the statement, “There is a real number z such that
for all real numbers x and for all real numbers y,
x + y = z.”
False
Examples 4a
Let
P(x) be the statement: “x is a Georgia Tech student”
Q(x) be the statement: “ x is ignorant”
R(x) be the statement: “x wears red”
and U is the set of all people.
No Georgia Tech students are ignorant.
x(P(x) Q(x))
x(P(x) Q(x))
OK by Implication equivalence.
x(P(x)  Q(x))
Does not work. Why?
Examples 4a
x(P(x)  Q(x))
x (P(x)  Q(x)) Negation equivalence
x ( P(x)  Q(x)) Implication equivalence
x (  P(x)   Q(x)) DeMorgans
x ( P(x)   Q(x)) Double negation
Only true if everyone is a GT student and is not ignorant.
No Georgia Tech students are ignorant.
x(P(x) Q(x))
Examples 4a
P(x) be the statement: “x is a Georgia Tech student”
Q(x) be the statement: “ x is ignorant”
R(x) be the statement: “x wears red”
and U is the set of all people.
No Georgia Tech students are ignorant.
x(P(x)  Q(x))
Also works. Why?
Examples 4a
x(P(x)  Q(x))
 x (P(x)  Q(x)) Negation equivalence
x (P(x)  Q(x)) DeMorgan
x (P(x) Q(x)) Implication equivalence
No Georgia Tech students are ignorant.
x(P(x) Q(x))
Examples 4b
Let
P(x) be the statement: “x is a Georgia Tech student”
Q(x) be the statement: “ x is ignorant”
R(x) be the statement: “x wears red”
and U is the set of all people.
All ignorant people wear red.
x(Q(x) R(x))
Examples 4c
Let
P(x) be the statement: “x is a Georgia Tech student”
Q(x) be the statement: “ x is ignorant”
R(x) be the statement: “x wears red”
and U is the set of all people.
No Georgia Tech student wears red.
x(P(x) R(x))
What about this?
x(R(x)  P(x))
Examples 4d
If “no Georgia Tech students are ignorant” and “all
ignorant people wear red”, does it follow that “no
Georgia Tech student wears red?”
x((P(x) Q(x))  (Q(x) R(x)))
NO
Some misguided GT student might wear red!!
This can be shown with a truth table or Wenn diagrams

More Related Content

Similar to X02PredCalculus.ppt

Formal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and QuantifiersFormal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and Quantifiers
Laguna State Polytechnic University
 
Nested loop
Nested loopNested loop
Nested loop
Lal Bdr. Saud
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
blaircomp2003
 
Logic
LogicLogic
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
HumayunNaseer4
 
Universal Quantification DM
Universal Quantification DMUniversal Quantification DM
Universal Quantification DM
Rokonuzzaman Rony
 
FOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptx
Faiz Zeya
 
Use of quantifiers
Use of quantifiersUse of quantifiers
Use of quantifiers
Lakshmi R
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceasimnawaz54
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
Ildar Nurgaliev
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
TejasAditya2
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
yashirraza123
 
Probability statistics assignment help
Probability statistics assignment helpProbability statistics assignment help
Probability statistics assignment help
HomeworkAssignmentHe
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
NaniSarath
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
raksharao
 

Similar to X02PredCalculus.ppt (20)

3 fol examples v2
3 fol examples v23 fol examples v2
3 fol examples v2
 
Formal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and QuantifiersFormal Logic - Lesson 8 - Predicates and Quantifiers
Formal Logic - Lesson 8 - Predicates and Quantifiers
 
Module_5_1.pptx
Module_5_1.pptxModule_5_1.pptx
Module_5_1.pptx
 
Nested loop
Nested loopNested loop
Nested loop
 
Lecture3
Lecture3Lecture3
Lecture3
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Course notes2summer2012
Course notes2summer2012Course notes2summer2012
Course notes2summer2012
 
Logic
LogicLogic
Logic
 
Quantifiers and its Types
Quantifiers and its TypesQuantifiers and its Types
Quantifiers and its Types
 
Universal Quantification DM
Universal Quantification DMUniversal Quantification DM
Universal Quantification DM
 
FOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptxFOLBUKCFAIZ.pptx
FOLBUKCFAIZ.pptx
 
Predicates
PredicatesPredicates
Predicates
 
Use of quantifiers
Use of quantifiersUse of quantifiers
Use of quantifiers
 
Lecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inferenceLecture 3 qualtifed rules of inference
Lecture 3 qualtifed rules of inference
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
 
1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt1606751772-ds-lecture-6.ppt
1606751772-ds-lecture-6.ppt
 
Discreate structure presentation introduction
Discreate structure presentation introductionDiscreate structure presentation introduction
Discreate structure presentation introduction
 
Probability statistics assignment help
Probability statistics assignment helpProbability statistics assignment help
Probability statistics assignment help
 
SESSION-11 PPT.pptx
SESSION-11 PPT.pptxSESSION-11 PPT.pptx
SESSION-11 PPT.pptx
 
Unit 1 quantifiers
Unit 1  quantifiersUnit 1  quantifiers
Unit 1 quantifiers
 

More from MalligaarjunanN

bro_nodejs-1 front end development .pdf
bro_nodejs-1 front end development  .pdfbro_nodejs-1 front end development  .pdf
bro_nodejs-1 front end development .pdf
MalligaarjunanN
 
Microprocessor and microcontroller record.pdf
Microprocessor and microcontroller record.pdfMicroprocessor and microcontroller record.pdf
Microprocessor and microcontroller record.pdf
MalligaarjunanN
 
8087 MICROPROCESSOR and diagram with definition.pdf
8087 MICROPROCESSOR and diagram with definition.pdf8087 MICROPROCESSOR and diagram with definition.pdf
8087 MICROPROCESSOR and diagram with definition.pdf
MalligaarjunanN
 
8089 microprocessor with diagram and analytical
8089 microprocessor with diagram and analytical8089 microprocessor with diagram and analytical
8089 microprocessor with diagram and analytical
MalligaarjunanN
 
English article power point presentation eng.pptx
English article power point presentation eng.pptxEnglish article power point presentation eng.pptx
English article power point presentation eng.pptx
MalligaarjunanN
 
Digital principle and computer design Presentation (1).pptx
Digital principle and computer design Presentation (1).pptxDigital principle and computer design Presentation (1).pptx
Digital principle and computer design Presentation (1).pptx
MalligaarjunanN
 
Technical English grammar and tenses.pptx
Technical English grammar and tenses.pptxTechnical English grammar and tenses.pptx
Technical English grammar and tenses.pptx
MalligaarjunanN
 
Polymorphism topic power point presentation li.pptx
Polymorphism topic power point presentation li.pptxPolymorphism topic power point presentation li.pptx
Polymorphism topic power point presentation li.pptx
MalligaarjunanN
 
Chemistry iconic bond topic chem ppt.pptx
Chemistry iconic bond topic chem ppt.pptxChemistry iconic bond topic chem ppt.pptx
Chemistry iconic bond topic chem ppt.pptx
MalligaarjunanN
 
C programming DOC-20230723-WA0001..pptx
C programming  DOC-20230723-WA0001..pptxC programming  DOC-20230723-WA0001..pptx
C programming DOC-20230723-WA0001..pptx
MalligaarjunanN
 
Chemistry fluorescent topic chemistry.pptx
Chemistry fluorescent topic  chemistry.pptxChemistry fluorescent topic  chemistry.pptx
Chemistry fluorescent topic chemistry.pptx
MalligaarjunanN
 
C programming power point presentation c ppt.pptx
C programming power point presentation c ppt.pptxC programming power point presentation c ppt.pptx
C programming power point presentation c ppt.pptx
MalligaarjunanN
 
Inheritance_Polymorphism_Overloading_overriding.pptx
Inheritance_Polymorphism_Overloading_overriding.pptxInheritance_Polymorphism_Overloading_overriding.pptx
Inheritance_Polymorphism_Overloading_overriding.pptx
MalligaarjunanN
 
Python programming file handling mhhk.pptx
Python programming file handling mhhk.pptxPython programming file handling mhhk.pptx
Python programming file handling mhhk.pptx
MalligaarjunanN
 
Computer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptxComputer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptx
MalligaarjunanN
 
Data structures trees and graphs - Heap Tree.pptx
Data structures trees and graphs - Heap Tree.pptxData structures trees and graphs - Heap Tree.pptx
Data structures trees and graphs - Heap Tree.pptx
MalligaarjunanN
 
Data structures trees and graphs - AVL tree.pptx
Data structures trees and graphs - AVL  tree.pptxData structures trees and graphs - AVL  tree.pptx
Data structures trees and graphs - AVL tree.pptx
MalligaarjunanN
 
Data structures trees - B Tree & B+Tree.pptx
Data structures trees - B Tree & B+Tree.pptxData structures trees - B Tree & B+Tree.pptx
Data structures trees - B Tree & B+Tree.pptx
MalligaarjunanN
 
Computer organisation and architecture .
Computer organisation and architecture .Computer organisation and architecture .
Computer organisation and architecture .
MalligaarjunanN
 
Python programming variables and comment
Python programming variables and commentPython programming variables and comment
Python programming variables and comment
MalligaarjunanN
 

More from MalligaarjunanN (20)

bro_nodejs-1 front end development .pdf
bro_nodejs-1 front end development  .pdfbro_nodejs-1 front end development  .pdf
bro_nodejs-1 front end development .pdf
 
Microprocessor and microcontroller record.pdf
Microprocessor and microcontroller record.pdfMicroprocessor and microcontroller record.pdf
Microprocessor and microcontroller record.pdf
 
8087 MICROPROCESSOR and diagram with definition.pdf
8087 MICROPROCESSOR and diagram with definition.pdf8087 MICROPROCESSOR and diagram with definition.pdf
8087 MICROPROCESSOR and diagram with definition.pdf
 
8089 microprocessor with diagram and analytical
8089 microprocessor with diagram and analytical8089 microprocessor with diagram and analytical
8089 microprocessor with diagram and analytical
 
English article power point presentation eng.pptx
English article power point presentation eng.pptxEnglish article power point presentation eng.pptx
English article power point presentation eng.pptx
 
Digital principle and computer design Presentation (1).pptx
Digital principle and computer design Presentation (1).pptxDigital principle and computer design Presentation (1).pptx
Digital principle and computer design Presentation (1).pptx
 
Technical English grammar and tenses.pptx
Technical English grammar and tenses.pptxTechnical English grammar and tenses.pptx
Technical English grammar and tenses.pptx
 
Polymorphism topic power point presentation li.pptx
Polymorphism topic power point presentation li.pptxPolymorphism topic power point presentation li.pptx
Polymorphism topic power point presentation li.pptx
 
Chemistry iconic bond topic chem ppt.pptx
Chemistry iconic bond topic chem ppt.pptxChemistry iconic bond topic chem ppt.pptx
Chemistry iconic bond topic chem ppt.pptx
 
C programming DOC-20230723-WA0001..pptx
C programming  DOC-20230723-WA0001..pptxC programming  DOC-20230723-WA0001..pptx
C programming DOC-20230723-WA0001..pptx
 
Chemistry fluorescent topic chemistry.pptx
Chemistry fluorescent topic  chemistry.pptxChemistry fluorescent topic  chemistry.pptx
Chemistry fluorescent topic chemistry.pptx
 
C programming power point presentation c ppt.pptx
C programming power point presentation c ppt.pptxC programming power point presentation c ppt.pptx
C programming power point presentation c ppt.pptx
 
Inheritance_Polymorphism_Overloading_overriding.pptx
Inheritance_Polymorphism_Overloading_overriding.pptxInheritance_Polymorphism_Overloading_overriding.pptx
Inheritance_Polymorphism_Overloading_overriding.pptx
 
Python programming file handling mhhk.pptx
Python programming file handling mhhk.pptxPython programming file handling mhhk.pptx
Python programming file handling mhhk.pptx
 
Computer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptxComputer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptx
 
Data structures trees and graphs - Heap Tree.pptx
Data structures trees and graphs - Heap Tree.pptxData structures trees and graphs - Heap Tree.pptx
Data structures trees and graphs - Heap Tree.pptx
 
Data structures trees and graphs - AVL tree.pptx
Data structures trees and graphs - AVL  tree.pptxData structures trees and graphs - AVL  tree.pptx
Data structures trees and graphs - AVL tree.pptx
 
Data structures trees - B Tree & B+Tree.pptx
Data structures trees - B Tree & B+Tree.pptxData structures trees - B Tree & B+Tree.pptx
Data structures trees - B Tree & B+Tree.pptx
 
Computer organisation and architecture .
Computer organisation and architecture .Computer organisation and architecture .
Computer organisation and architecture .
 
Python programming variables and comment
Python programming variables and commentPython programming variables and comment
Python programming variables and comment
 

Recently uploaded

HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 

Recently uploaded (20)

HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 

X02PredCalculus.ppt

  • 2. Propositional Functions • Propositional functions (or predicates) are propositions that contain variables. • Ex: Let P(x) denote x > 3 • P(x) has no truth value until the variable x is bound by either – assigning it a value or by – quantifying it.
  • 3. Assignment of values Let Q(x,y) denote “x + y = 7”. Each of the following can be determined as T or F. Q(4,3) Q(3,2) Q(4,3)  Q(3,2) [Q(4,3)  Q(3,2)]
  • 4. Quantifiers Universe of Discourse, U: The domain of a variable in a propositional function. Universal Quantification of P(x) is the proposition:“P(x) is true for all values of x in U.” Existential Quantification of P(x) is the proposition: “There exists an element, x, in U such that P(x) is true.”
  • 5. Universal Quantification of P(x) xP(x) “for all x P(x)” “for every x P(x)” Defined as: P(x0)  P(x1)  P(x2)  P(x3)  . . . for all xi in U Example: Let P(x) denote x2  x If U is x such that 0 < x < 1 then xP(x) is false. If U is x such that 1 < x then xP(x) is true.
  • 6. Existential Quantification of P(x) xP(x) “there is an x such that P(x)” “there is at least one x such that P(x)” “there exists at least one x such that P(x)” Defined as: P(x0)  P(x1)  P(x2)  P(x3)  . . . for all xi in U Example: Let P(x) denote x2  x If U is x such that 0 < x  1 then xP(x) is true. If U is x such that x < 1 then xP(x) is true.
  • 7. Quantifiers xP(x) •True when P(x) is true for every x. •False if there is an x for which P(x) is false. xP(x) •True if there exists an x for which P(x) is true. •False if P(x) is false for every x.
  • 8. Negation (it is not the case) xP(x) equivalent to xP(x) •True when P(x) is false for every x •False if there is an x for which P(x) is true.  xP(x) is equivalent to xP(x) •True if there exists an x for which P(x) is false. •False if P(x) is true for every x.
  • 9. Examples 2a Let T(a,b) denote the propositional function “a trusts b.” Let U be the set of all people in the world. Everybody trusts Bob. xT(x,Bob) Could also say: xU T(x,Bob)  denotes membership Bob trusts somebody. xT(Bob,x)
  • 10. Examples 2b Alice trusts herself. T(Alice, Alice) Alice trusts nobody. x T(Alice,x) Carol trusts everyone trusted by David. x(T(David,x)  T(Carol,x)) Everyone trusts somebody. x y T(x,y)
  • 11. Examples 2c x y T(x,y) Someone trusts everybody. y x T(x,y) Somebody is trusted by everybody. Bob trusts only Alice. x (x=Alice  T(Bob,x))
  • 12. Bob trusts only Alice. x (x=Alice  T(Bob,x)) Let p be “x=Alice” q be “Bob trusts x” p q p  q T T T T F F F T F F F T True only when Bob trusts Alice or Bob does not trust someone who is not Alice
  • 13. Quantification of Two Variables (read left to right) xyP(x,y) or yxP(x,y) •True when P(x,y) is true for every pair x,y. •False if there is a pair x,y for which P(x,y) is false. xyP(x,y) or yxP(x,y) True if there is a pair x,y for which P(x,y) is true. False if P(x,y) is false for every pair x,y.
  • 14. Quantification of Two Variables xyP(x,y) •True when for every x there is a y for which P(x,y) is true. (in this case y can depend on x) •False if there is an x such that P(x,y) is false for every y. yxP(x,y) •True if there is a y for which P(x,y) is true for every x. (i.e., true for a particular y regardless (or independent) of x) •False if for every y there is an x for which P(x,y) is false. Note that order matters here In particular, if yxP(x,y) is true, then xyP(x,y) is true. However, if xyP(x,y) is true, it is not necessary that yxP(x,y) is true.
  • 15. Examples 3a Let L(x,y) be the statement “x loves y” where U for both x and y is the set of all people in the world. Everybody loves Jerry. xL(x,Jerry) Everybody loves somebody. x yL(x,y) There is somebody whom everybody loves. yxL(x,y)
  • 16. Examples 3b1 There is somebody whom Lydia does not love. xL(Lydia,x) Nobody loves everybody. (For each person there is at least one person they do not love.) xyL(x,y) There is somebody (one or more) whom nobody loves y x L(x,y)
  • 17. Examples 3b2 There is exactly one person whom everybody loves. xyL(y,x)? No. There could be more than one person everybody loves x{yL(y,x)  w[(yL(y,w))  w=x]} If there are, say, two values x1 and x2 (or more) for which L(y,x) is true, the proposition is false. x{yL(y,x)  w[(yL(y,w))  w=x]}? xw[(y L(y,w))  w=x]?
  • 18. Examples 3c There are exactly two people whom Lynn loves. x y{xy  L(Lynn,x)  L(Lynn,y)}? No. x y{xy  L(Lynn,x)  L(Lynn,y)  z[L(Lynn,z) (z=x  z=y)]} Everyone loves himself or herself. xL(x,x) There is someone who loves no one besides himself or herself. xy(L(x,y)  x=y)
  • 19. Thinking of Quantification as Loops Quantifications of more than one variable can be thought of as nested loops. •For example, xyP(x,y) can be thought of as a loop over x, inside of which we loop over y (i.e., for each value of x). • Likewise, xyP(x,y) can be thought of as a loop over x with a loop over y nested inside. This can be extended to any number of variables.
  • 20. Quantification as Loops Using this procedure •xyP(x,y) is true if P(x,y) is true for all values of x,y as we loop through y for each value of x. •xyP(x,y) is true if P(x,y) is true for at least one set of values x,y as we loop through y for each value of x. …And so on….
  • 21. Quantification of 3 Variables Let Q(x,y,z) be the statement “x + y = z”, where x,y,z are real numbers. What is the truth values of •xyzQ(x,y,z)? •zxyQ(x,y,z)?
  • 22. Quantification of 3 Variables Let Q(x,y,z) be the statement “x + y = z”, where x,y,z are real numbers. •xyzQ(x,y,z) is the statement, “For all real numbers x and for all real numbers y, there is a real number z such that x + y = z.” True
  • 23. Quantification of 3 Variables Let Q(x,y,z) be the statement “x + y = z”, where x,y,z are real numbers. zxyQ(x,y,z) is the statement, “There is a real number z such that for all real numbers x and for all real numbers y, x + y = z.” False
  • 24. Examples 4a Let P(x) be the statement: “x is a Georgia Tech student” Q(x) be the statement: “ x is ignorant” R(x) be the statement: “x wears red” and U is the set of all people. No Georgia Tech students are ignorant. x(P(x) Q(x)) x(P(x) Q(x)) OK by Implication equivalence. x(P(x)  Q(x)) Does not work. Why?
  • 25. Examples 4a x(P(x)  Q(x)) x (P(x)  Q(x)) Negation equivalence x ( P(x)  Q(x)) Implication equivalence x (  P(x)   Q(x)) DeMorgans x ( P(x)   Q(x)) Double negation Only true if everyone is a GT student and is not ignorant. No Georgia Tech students are ignorant. x(P(x) Q(x))
  • 26. Examples 4a P(x) be the statement: “x is a Georgia Tech student” Q(x) be the statement: “ x is ignorant” R(x) be the statement: “x wears red” and U is the set of all people. No Georgia Tech students are ignorant. x(P(x)  Q(x)) Also works. Why?
  • 27. Examples 4a x(P(x)  Q(x))  x (P(x)  Q(x)) Negation equivalence x (P(x)  Q(x)) DeMorgan x (P(x) Q(x)) Implication equivalence No Georgia Tech students are ignorant. x(P(x) Q(x))
  • 28. Examples 4b Let P(x) be the statement: “x is a Georgia Tech student” Q(x) be the statement: “ x is ignorant” R(x) be the statement: “x wears red” and U is the set of all people. All ignorant people wear red. x(Q(x) R(x))
  • 29. Examples 4c Let P(x) be the statement: “x is a Georgia Tech student” Q(x) be the statement: “ x is ignorant” R(x) be the statement: “x wears red” and U is the set of all people. No Georgia Tech student wears red. x(P(x) R(x)) What about this? x(R(x)  P(x))
  • 30. Examples 4d If “no Georgia Tech students are ignorant” and “all ignorant people wear red”, does it follow that “no Georgia Tech student wears red?” x((P(x) Q(x))  (Q(x) R(x))) NO Some misguided GT student might wear red!! This can be shown with a truth table or Wenn diagrams