๐ ุงูุฌุฒุก ุงูุฃูู - Propositional Logic
๐ Slide: Proposition
๐ Explanation
ุงูู
Proposition
ูู ุฌู
ูุฉ ุฎุจุฑูุฉ (declarative sentence) ุจุชููู ุฅู
ุง
True
ุฃู
False
ุ ููู ู
ุด ุงูุงุชููู ู
ุน ุจุนุถ
๐ก Examples:
-
"Toronto is the capital of Canada" (True)
. -
"1 + 1 = 2" (True)
.
๐ Slide: Which of these sentences are propositions?
๐ Explanation
ุฎูููุง ูุฎุชุจุฑ ุงูุฌู ู ุฏู ุนุดุงู ูุนุฑู ุฅูู ูููู ูุนุชุจุฑ proposition:
-
"2 + 3 = 6"
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉ ูุงููุชูุฌุฉ ุจุชุงุนุชูุง False. ูุจูู ุฏู proposition.
-
-
"x + 5 = 7"
-
ุงูุฌู ูุฉ ุฏู ู ุด proposition ูุฃู ููู ุชูุง (True ุฃู False) ุจุชุนุชู ุฏ ุนูู ููู ุฉ ุงูู xุ ูู ู ูู ุชููู True ุฃู False.
-
-
"What time is it?"
-
ุฏู ุฌู ูุฉ ุงุณุชููุงู ูุฉุ ู ุด ุฌู ูุฉ ุฎุจุฑูุฉุ ูู ุด proposition.
-
-
"Answer this question"
-
ุฏู ุฃู ุฑุ ู ุด ุฌู ูุฉ ุฎุจุฑูุฉุ ูู ุด proposition.
-
-
"Today is Friday"
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉ ู ู ูู ุชููู True ุฃู Falseุ ูุจุงูุชุงูู ูู proposition.
-
๐ Homework Problem:
๐ Explanation
ููุฌุงูุจ ุนูู ู ุดููุฉ ุงููุงุฌุจ ุฏู ู ุน ุจุนุถ ุนุดุงู ูููู ุฃูุชุฑ. ููุดูู ุฅูู ู ู ุงูุฌู ู ุฏู proposition ูููุญุฏุฏ ููู ุชูุง (True ุฃู False):
-
"London is in Denmark."
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉ ูุงููุชูุฌุฉ ุจุชุงุนุชูุง False. ูุจูู ุฏู proposition.
-
-
"Do your Homework."
-
ุฏู ุฃู ุฑุ ู ุด ุฌู ูุฉ ุฎุจุฑูุฉุ ูู ุด proposition.
-
-
"India wins the match by 2 runs."
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉุ ูู ู ูู ุชููู True ุฃู Falseุ ูุจูู ุฏู proposition.
-
-
"x is an even number."
-
ู ุด proposition ูุฃู ููู ุชูุง ุจุชุนุชู ุฏ ุนูู ุงูู x.
-
-
"5 is an odd number."
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉ ูุงููุชูุฌุฉ ุจุชุงุนุชูุง True. ูุจูู ุฏู proposition.
-
-
"Rahul."
-
ู ุด ุฌู ูุฉ ูุงู ูุฉุ ูู ุด proposition.
-
-
"7 + 5 + 7 = 10"
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉ ูุงููุชูุฌุฉ ุจุชุงุนุชูุง False. ูุจูู ุฏู proposition.
-
-
"The moon is made of cheese."
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉ ูุงููุชูุฌุฉ ุจุชุงุนุชูุง False. ูุจูู ุฏู proposition.
-
-
"The only odd prime number is 2."
-
ุฏู ุฌู ูุฉ ุฎุจุฑูุฉ ูุงููุชูุฌุฉ ุจุชุงุนุชูุง False. ูุจูู ุฏู proposition.
-
-
"God bless you!"
-
ุฏู ุฏุนุงุกุ ู ุด ุฌู ูุฉ ุฎุจุฑูุฉุ ูู ุด proposition.
-
๐ ุงูุฌุฒุก ุงูุซุงูู - Compound Propositions & Logical Operators
๐ Slide: Compound Proposition
๐ Explanation
ุงูู
Compound Proposition
: ูู
proposition
ุฌุฏูุฏ ุจูุชูููู ู
ู
proposition
ูุงุญุฏ ุฃู ุฃูุชุฑ ู
ูุฌูุฏููุ ุนู ุทุฑูู ุงุณุชุฎุฏุงู
logical operators
ุฃู ุซูุฉ ููู operators:
-
ยฌ (Negation)
-
โง ( Conjunction )
-
โจ ( Disjunction )
-
โ ( Exclusive OR )
-
โ ( Conditional / Implication )
-
โ ( Biconditional )
๐ Slide: Negation (ยฌp)
๐ Definition
ุงูู Negation ูู ุนูุณ ููู ุฉ ุงูู proposition. ูู ุงูู p ููู ุชูุง Trueุ ูุจูู ุงูู ยฌp ููู ุชูุง False. ูู ุงูู p ููู ุชูุง Falseุ ูุจูู ุงูู ยฌp ููู ุชูุง True.
๐ก Example:
-
ูู ุงูู p: "Today is Friday" (ููู ุชูุง True).
-
ูุจูู ุงูู ยฌp: "Today is not Friday" (ููู ุชูุง
False )
.
Truth Table:
๐ Slide: Conjunction (p โง q)
๐ Definition
ุงูู
Conjunction
ูู ุฑุจุท ุงุชููู
propositions
ุจุจุนุถ ุจุงุณุชุฎุฏุงู
ุงูู
operator
"โง"
Conjunction
ุจุชููู ููู
ุชูุง
True
ุจุณ ูู ุงูุงุชููู
propositions
ุงููู ูููุง (p ู q) ูุงููุง
True
๐ก Example:
-
ูู ุงูู p: "Today is Friday"
-
ููู ุงูู q: "It is raining today"
-
ูุจูู ุงูู p โง q: "Today is Friday and it is raining today"
.
Truth Table:
๐ Slide: Disjunction (p โจ q)
๐ Definition
ุงูู
Disjunction
ูู ุฑุจุท ุงุชููู
propositions
ุจุจุนุถ ุจุงุณุชุฎุฏุงู
ุงูู
operator
"โจ"
Disjunction
ุจุชููู ููู
ุชูุง
True
ูู ุฃู ูุงุญุฏุฉ ู
ู ุงูู
propositions
ุงููู ูููุง ูุงูุช
True
๐ก Example:
-
ูู ุงูู p: "Today is Friday"
-
ููู ุงูู q: "It is raining today"
-
ูุจูู ุงูู p โจ q: "Today is Friday or it is raining today"
.
Truth Table:
๐ Slide: Exclusive OR (p โ q)
๐ Definition
ุงูู
Exclusive OR
ูู ุฑุจุท ุงุชููู
propositions
ุจุจุนุถ ุจุงุณุชุฎุฏุงู
ุงูู
operator
"โ"
Exclusive OR
ุจุชููู ููู
ุชูุง
True
ูู ูุงุญุฏุฉ ุจุณ ู
ู ุงูู
propositions
ุงููู ูููุง ูุงูุช
True
ุ ู
ุด ุงูุงุชููู ู
ุน ุจุนุถ
๐ก Example:
-
ูู ุงูู p: "Soup comes with the meal"
-
ููู ุงูู q: "Salad comes with the meal"
-
ูุจูู ุงูู p โ q: "Soup or salad comes with the meal but not both"
.
Truth Table:
๐ Slide: Conditional Statement (p โ q)
๐ Definition
ุงูู
Conditional Statement
ุงููู ูู ุงูู
Implication
ุ ูู ุฌู
ูุฉ ุจุชุชูููู ู
ู ุงุชููู
propositions
ุจู
operator
"โ"
-
ุงูู p ุจูุณู ููุง hypothesis ุฃู ุงููุฑุถูุฉ.
-
ุงูู q ุจูุณู ููุง conclusion ุฃู ุงููุชูุฌุฉ. ุงูู
Conditional Statement ุจุชููู False ุจุณ ูู ุญุงูุฉ ูุงุญุฏุฉ: ูู ุงูู hypothesis (p) ูุงูุช True ูุงูู conclusion (q) ูุงูุช False
.
๐ก Example:
-
ูู ุงูู p: "you get 100 on the final"
-
ููู ุงูู q: "you will get an A"
-
ูุจูู ุงูู p โ q: "If you get 100 on the final then you will get an A"
.
Truth Table:
๐ Slide: Biconditionals (p โ q)
๐ Definition
ุงูู
Biconditional Statement
ูู ุฑุจุท ุงุชููู
propositions
ุจุจุนุถ ุจุงุณุชุฎุฏุงู
ุงูู
operator
"โ"
Biconditional
ุจูููู
True
ูู ุงูู
propositions
ุงูุงุชููู (p ู q) ูููู
ููุณ ุงูู
truth value
(ูุนูู ุงูุงุชููู True ุฃู ุงูุงุชููู False)
๐ก Example:
-
ูู ุงูู p: "You can take the flight"
-
ููู ุงูู q: "You buy a ticket"
-
ูุจูู ุงูู p โ q: "You can take the flight iff you buy a ticket"
.
Truth Table:
๐ ุงูุฌุฒุก ุงูุซุงูุซ - Truth tables of compound propositions
๐ Slide: Precedence of logical operators
๐ Explanation
ูู ุฃู ู ุนุงุฏูุฉ ูููุง ุฃูุชุฑ ู ู operatorุ ุจูู ุดู ุนูู ุชุฑุชูุจ ู ุนูู ุนุดุงู ูุนุฑู ูุญู ุงูู ุนุงุฏูุฉ:
-
Parentheses ( )
-
Negation ยฌ
-
Conjunction โง
-
Disjunction โจ
-
Exclusive OR โ
-
Conditional โ
-
Biconditional โ
๐ Problem:
๐ Explanation
ุชุนุงูู ูุนู ู ุงูู
truth table
ููู
ุนุงุฏูุฉ ุฏู: (p โจ ยฌq) โ (p โง q)
ุงูุญู: ุนุดุงู ูุญู ุงูู ุนุงุฏูุฉ ุฏูุ ููู ุดู ุฎุทูุฉ ุจุฎุทูุฉ ุจุงูุชุฑุชูุจ ุงููู ููู. ุฃูู ุญุงุฌุฉ ููุญุณุจ ุงูู ยฌq. ูุจุนุฏูู ููุญุณุจ (p โจ ยฌq). ูุจุนุฏูู ููุญุณุจ (p โง q). ููู ุงูุขุฎุฑ ููุญุณุจ ุงููุชูุฌุฉ ุงูููุงุฆูุฉ ููู ุตู.
Truth Table:
ุงูุฌู ู ุงููู ุจุชุนุจุฑ ุนู p โ q (Conditional Statement)
ุงูุฌู ู ุฏู ูููุง ู ุนูุงูุง ูุงุญุฏ: "ุฅุฐุง ูุงู p ุตุญูุญุ ูุฅู q ุตุญูุญ".
-
if p, then q
-
ู ุซุงู: If you study, then you will pass the exam.
-
-
if p, q
-
ู ุซุงู: If you study, you will pass the exam.
-
-
p implies q
-
ู ุซุงู: Studying implies passing the exam.
-
-
p is sufficient for q
-
ู ุซุงู: Studying is a sufficient condition for passing the exam.
-
(ูุนูู ุฅูู ุชุฐุงูุฑ ูุงูู ุนุดุงู ุชูุฌุญุ ููู ู ู ูู ูููู ููู ุทุฑู ุชุงููุฉ ูููุฌุงุญ ุบูุฑ ุงูู ุฐุงูุฑุฉ).
-
-
q if p
-
ู ุซุงู: You will pass the exam if you study.
-
-
q whenever p
-
ู ุซุงู: You will pass the exam whenever you study.
-
-
q is necessary for p
-
ู ุซุงู: Passing the exam is a necessary condition for studying.
-
(ูุนูู ุนุดุงู p (ุงูู ุฐุงูุฑุฉ) ุชุญุตูุ ูุงุฒู q (ุงููุฌุงุญ) ูููู ู ู ููุ ุฃู ุฅู ุงููุฌุงุญ ุดุฑุท ุถุฑูุฑู ููู ุฐุงูุฑุฉ).
-
-
a necessary condition for p is q
-
ู ุซุงู: A necessary condition for studying is passing the exam.
-
-
p only if q
-
ู ุซุงู: You study only if you pass the exam.
-
(ุฏู ู ุนูุงู ุฅู ูู ุงููุฌุงุญ ู ุง ุญุตูุดุ ูุจูู ุงูู ุฐุงูุฑุฉ ู ุง ุญุตูุชุด).
-
ุงูุฌู ู ุงููู ุจุชุนุจุฑ ุนู p โ q (Biconditional Statement)
ุงูุฌู ู ุฏู ูููุง ู ุนูุงูุง ูุงุญุฏ: "p ุตุญูุญ ุฅุฐุง ูููุท ุฅุฐุง ูุงู q ุตุญูุญ".
-
p if and only if q
-
ู ุซุงู: You can get a loan if and only if you have good credit.
-
-
p is necessary and sufficient for q
-
ู ุซุงู: Having good credit is a necessary and sufficient condition for getting a loan.
-
(ุฏู ู ุนูุงู ุฅู ุงูุดุฑุทูู ู ุฑุชุจุทูู ุจุจุนุถ ุจุดูู ูุงู ู. ูู ุงูุฃูู ุญุตูุ ูุจูู ุงูุชุงูู ูุงุฒู ูุญุตูุ ููู ุงูุฃูู ู ุง ุญุตูุดุ ูุจูู ุงูุชุงูู ูู ุงู ู ุง ุญุตูุด).
-
-
if p then q, and conversely
-
ู ุซุงู: If you have good credit then you can get a loan, and conversely.
-
-
p iff q (ุงุฎุชุตุงุฑ ูู if and only if)
ุฃุชู ูู ุฃู ุชููู ูุฐู ุงููุงุฆู ุฉ ูู ู ุง ููุช ุชุจุญุซ ุนูู. ุฅุฐุง ูุงู ูุฏูู ุฃู ุฃุณุฆูุฉ ุฃุฎุฑูุ ุฃูุง ู ูุฌูุฏ ููู ุณุงุนุฏุฉ.
๐ ุงูุฌุฒุก ุงูุฑุงุจุน - Propositional Equivalences
๐ Slide: Definitions
๐ Explanation
ููุชููู ุนูู ุฃููุงุน ุงูู propositions:
-
Tautology : ูู compound proposition ุฏุงูู ุงู ููู ุชู True
. -
Contradiction : ูู compound proposition ุฏุงูู ุงู ููู ุชู False
. -
Contingency : ูู compound proposition ูุง ูู tautology ููุง ูู contradiction
.
๐ Slide: Tautology Examples
๐ Explanation
ุชุนุงูู ูุซุจุช ุฅู ุงูู ุนุงุฏูุฉ ุฏู: p โง q โ p ูู
tautology
ุจุงุณุชุฎุฏุงู
ุงูู
truth table
ุงูุญู: ููุนู ู ุงูู truth table ููุดูู ูู ูู ุงูููู ูู ุงูุนู ูุฏ ุงูุฃุฎูุฑ ุทูุนุช Trueุ ูุจูู ูู tautology.
Truth Table:
ุจู ุง ุฅู ูู ุงูููู ูู ุงูุนู ูุฏ ุงูุฃุฎูุฑ ุทูุนุช Trueุ ูุจูู ุงูู ุนุงุฏูุฉ ุฏู ูุนูุงู tautology.
๐ Slide: Logical Equivalences
๐ Definition
ุงูู
compound propositions
ุจูููู ุนูููู
logical equivalent
ูู ุงูู
biconditional
(p โ q) ุจุชุงุนุชูู
ุทูุนุช
tautology
ุงูู
notation
ุงููู ุจูุณุชุฎุฏู
ู ุนุดุงู ูููู ุฅู ุงูู p ู q ูู
ุง
logical equivalent
ูู p โก q
๐ Problem:
๐ Explanation
ุงุซุจุช ุฅู ยฌ(p โจ q) ู ยฌp โง ยฌq ูู ุง
logical equivalent
ุจุงุณุชุฎุฏุงู
ุงูู
truth table
ุงูุญู: ุนุดุงู ูุซุจุช ุฏูุ ููุดูู ูู ุงูุนู ูุฏ ุจุชุงุน ยฌ(p โจ q) ูู ูู ููุณ ุงูุนู ูุฏ ุจุชุงุน ยฌp โง ยฌq. ูู ุทูุนูุง ุฒู ุจุนุถ ุจุงูุธุจุทุ ูุจูู ูู ุง logical equivalent.
Truth Table:
ุจู ุง ุฅู ุงูุนู ูุฏ ุจุชุงุน ยฌ(p โจ q) ู ยฌp โง ยฌq ู ุชุทุงุจูููุ ูุจูู ุงูู ุนุงุฏูุชูู ุฏูู ูุนูุงู logical equivalent.
๐ ุงูุฌุฒุก ุงูุฎุงู ุณ - Predicates and Quantifiers
๐ Slide: What are Predicates?
๐ Explanation
ุงูู Predicate ูู ุฌุฒุก ู ู ุงูุฌู ูุฉ ุจูุตู ุงูู subject (ุงูู ูุถูุน) ูุจูุญุชูู ุนูู variable (ู ุชุบูุฑ). ูู ุง ุงูู variable ุฏู ุจูุงุฎุฏ ููู ุฉ ู ุนููุฉุ ุงูุฌู ูุฉ ูููุง ุจุชุชุญูู ูู proposition (ุฌู ูุฉ ุฎุจุฑูุฉ) ููู ุชูุง ุจุชุจูู True ุฃู False.
๐ก Examples:
-
ูู ุงูุฌู ูุฉ "x is greater than 3":
-
ุงูู predicate ูู "is greater than 3".
-
ุงูู variable ูู x.
-
ูู ุง ูููู P(x) ูู ุงูุฌู ูุฉ "x is greater than 3"ุ
-
ูู ุญุทููุง ู ูุงู x ููู ุฉ ุฒู 4ุ ูุชุจูู P(4): "4 is greater than 3" โ ุฏู proposition ููู ุชูุง True.
-
ูู ุญุทููุง ู ูุงู x ููู ุฉ ุฒู 2ุ ูุชุจูู P(2): "2 is greater than 3" โ ุฏู proposition ููู ุชูุง False.
-
๐ Slide: Quantifiers
๐ Explanation
ุงูู Quantifiers ูู ููู ุงุช ุจุชุญุฏุฏ ุงููู ูุฉ (ูู ุดุฎุต ุฃู ูู ุดูุก) ุงููู ุงูุฌู ูุฉ ุจุชูุทุจู ุนูููู .
ููู ููุนูู ุฃุณุงุณููู:
-
Universal Quantifier (โ):
-
ุฏู ู ุนูุงู "ููู" ุฃู "For all".
-
ูู ุง ุจูุณุชุฎุฏู ุงูู โx P(x)ุ ู ุนูุงูุง ุฅู ุงูุฌู ูุฉ P(x) ุจุชููู ุตุญูุญุฉ ููู ููู ุฉ ู ู ููุฉ ููู x.
-
-
Existential Quantifier (โ):
-
ุฏู ู ุนูุงู "ููุฌุฏ" ุฃู "There exists".
-
ูู ุง ุจูุณุชุฎุฏู ุงูู โx P(x)ุ ู ุนูุงูุง ุฅู ุงูุฌู ูุฉ P(x) ุจุชููู ุตุญูุญุฉ ุนูู ุงูุฃูู ูููู ุฉ ูุงุญุฏุฉ ู ู ุงูู x.
-
๐ Slide: โx P(x)
๐ Definition
ุงูู Universal Quantifier ุจูุนุจุฑ ุนู ููุฑุฉ "ููู" ุฃู "For all". ุงูุฌู ูุฉ โx P(x) ุจุชููู True ูู ุงูู predicate P(x) ุตุญูุญ ููู ููู ุฉ ู ู ุงูู x ูู ุงูู domain of discourse (ุงููุทุงู ุงููู ุจูุดุชุบู ููู).
๐ก Example:
-
ูู ุงูู domain of discourse ูู ูู ุงูู integers (ุงูุฃุนุฏุงุฏ ุงูุตุญูุญุฉ).
-
ู ุงูู P(x) ูู ุงูุฌู ูุฉ "x + 1 > x".
-
ูู โx P(x) ุตุญูุญุฉุ
-
ุชุนุงูู ูุฌุฑุจ ุฃู ุนุฏุฏ ุตุญูุญุ 5 ู ุซูุงู: 5 + 1 > 5 โ 6 > 5 (True).
-
ูู ุฌุฑุจูุง ุฃู ุนุฏุฏ ุตุญูุญ ุชุงููุ ูููุงูููุง ุฏุงูู ุงู ุตุญูุญุฉ.
-
ูุจูู ุงูุฌู ูุฉ ุฏู True.
๐ Slide: โx P(x)
๐ Definition
ุงูู Existential Quantifier ุจูุนุจุฑ ุนู ููุฑุฉ "ููุฌุฏ" ุฃู "There exists". ุงูุฌู ูุฉ โx P(x) ุจุชููู True ูู ุงูู predicate P(x) ุตุญูุญ ุนูู ุงูุฃูู ูููู ุฉ ูุงุญุฏุฉ ู ู ุงูู x ูู ุงูู domain of discourse.
๐ก Example:
-
ูู ุงูู domain of discourse ูู ูู ุงูู integers (ุงูุฃุนุฏุงุฏ ุงูุตุญูุญุฉ).
-
ู ุงูู P(x) ูู ุงูุฌู ูุฉ "x > 0".
-
ูู โx P(x) ุตุญูุญุฉุ
-
ุฏู ู ุนูุงู "ูู ููุฌุฏ ุนูู ุงูุฃูู ุนุฏุฏ ุตุญูุญ ูุงุญุฏ ุฃูุจุฑ ู ู 0ุ"
-
ุงูุฅุฌุงุจุฉ ูู ุฃูููุ ููู ุฃุนุฏุงุฏ ุฒู 1 ู 5 ู 100ุ ูู ุฏู ุฃุนุฏุงุฏ ุฃูุจุฑ ู ู ุงูุตูุฑ.
-
ูุจูู ุงูุฌู ูุฉ ุฏู True.
-
ููู ูู ุงูู P(x) ูุงูุช "x = x + 1"ุ ูู โx P(x) ุตุญูุญุฉุ
-
ูู ููู ุนุฏุฏ ุตุญูุญ ุจูุณุงูู ููุณู ุฒุงุฆุฏ ูุงุญุฏุ ุงูุฅุฌุงุจุฉ ูู ูุฃ.
-
ูุจูู ุงูุฌู ูุฉ ุฏู False.
๐ ุงูุฌุฒุก ุงูุณุงุฏุณ - Nested Quantifiers
๐ Slide: Nested Quantifiers
๐ Explanation
ุงูู Nested Quantifiers ูู ุจุจุณุงุทุฉ ูู ุง ุจูุณุชุฎุฏู ุฃูุชุฑ ู ู quantifier ูู ุฌู ูุฉ ูุงุญุฏุฉ.
๐ก Example:
-
ุงูุฌู ูุฉ โx โy (x + y = 0)
-
ุฏู ู ุนูุงูุง: "ููู xุ ููุฌุฏ y ุจุญูุซ ุฅู ู ุฌู ูุนูู ูุณุงูู 0".
-
ูู ุงูู domain of discourse ูู ูู ุงูู integers (ุงูุฃุนุฏุงุฏ ุงูุตุญูุญุฉ)ุ ุงูุฌู ูุฉ ุฏู ูุชููู True.
-
ูุฃู ููู ุนุฏุฏ ุตุญูุญ (x)ุ ููู ุฏุงูู ุงู ุนุฏุฏ ุตุญูุญ ุชุงูู (y = -x) ุจูุฎููู ุงูู ุฌู ูุน ูุณุงูู ุตูุฑ.
๐ Slide: Examples of Nested Quantifiers
๐ Explanation
ุชุนุงูู ูุดูู ุฃู ุซูุฉ ุชุงููุฉ:
-
โx โy (x + y = y + x)
-
ุฏู ู ุนูุงูุง "ููู x ูููู yุ x + y = y + x".
-
ุฏู ุจูุณู ููุง commutative property of addition (ุฎุงุตูุฉ ุงูุฅุจุฏุงู ููุฌู ุน)ุ ูุฏู ุฏุงูู ุงู ุตุญูุญุฉ.
-
ูุจูู ุงูุฌู ูุฉ ุฏู True.
-
-
โx โy (x + y = 0)
-
ุฏู ู ุนูุงูุง "ููู xุ ููุฌุฏ y ุจุญูุซ ุฅู x + y = 0".
-
ุฒู ู ุง ููููุง ูุจู ูุฏูุ ุงูุฌู ูุฉ ุฏู True.
-
-
โx โy (x + y = 0)
-
ุฏู ู ุนูุงูุง "ููุฌุฏ xุ ุจุญูุซ ุฅู ููู yุ x + y = 0".
-
ูุนูู ูู ููู ุฑูู ูุงุญุฏ (x) ูู ุฌู ุนูุงู ุนูู ุฃู ุฑูู ุชุงูู ูู ุงูุฏููุง (y) ุงููุชูุฌุฉ ูุชุทูุน ุตูุฑุ
-
ูุฃุ ู ููุด ุฑูู ุจูุญูู ุงูุดุฑุท ุฏู.
-
ูุจูู ุงูุฌู ูุฉ ุฏู False.
-
๐ ุงูุฌุฒุก ุงูุณุงุจุน - Rules of Inference
๐ Slide: What are Rules of Inference?
๐ Explanation
ุงูู Rules of Inference ูู ู ุฌู ูุนุฉ ู ู ุงูููุงุนุฏ ุงููู ุจูุณุชุฎุฏู ูุง ุนุดุงู ูุทูุน conclusion (ูุชูุฌุฉ) ู ูุทููุฉ ู ู ู ุฌู ูุนุฉ ู ู ุงูู premises (ุงูู ููุฏู ุงุช) ุงููู ุนุงุฑููู ุฅููุง True. ุงูู Rules of Inference ุฏู ูู ุฃุณุงุณ ุงูุงุณุชูุชุงุฌ ุงูู ูุทูู.
๐ Slide: Modus Ponens
๐ Definition
ูุงุนุฏุฉ Modus Ponens (ุทุฑููุฉ ุงูุฅุซุจุงุช) ุจุชููู: ูู ูุงู ุนูุฏูุง premise ุจูููู "ุฅุฐุง ูุงู p ุตุญูุญุ ูุฅู q ุตุญูุญ" (p โ q)ุ ูุนูุฏูุง ูู ุงู premise ุชุงูู ุจูููู "p ุตุญูุญ"ุ ูุฅููุง ููุฏุฑ ูุณุชูุชุฌ ุฅู "q ุตุญูุญ".
ุงูุดูู ุงูุฑู ุฒู: (p โ q) p โโโ โด q
๐ก Example:
-
premise: "If it is Monday, then the store is open." (p โ q)
-
premise: "It is Monday." (p)
-
conclusion: "The store is open." (q)
-
ุจู ุง ุฅู ุงูู ูุฏู ุชูู ุงูุฃููููู ุตุญุ ูุจูู ุงููุชูุฌุฉ ุงูุซุงูุซุฉ ูุงุฒู ุชููู ุตุญ.
-
๐ Slide: Modus Tollens
๐ Definition
ูุงุนุฏุฉ Modus Tollens (ุทุฑููุฉ ุงูููู) ุจุชููู: ูู ูุงู ุนูุฏูุง premise ุจูููู "ุฅุฐุง ูุงู p ุตุญูุญุ ูุฅู q ุตุญูุญ" (p โ q)ุ ูุนูุฏูุง ูู ุงู premise ุชุงูู ุจูููู "q ููุณ ุตุญูุญูุง" (ยฌq)ุ ูุฅููุง ููุฏุฑ ูุณุชูุชุฌ ุฅู "p ููุณ ุตุญูุญูุง" (ยฌp).
ุงูุดูู ุงูุฑู ุฒู: (p โ q) ยฌq โโโ โด ยฌp
๐ก Example:
-
premise: "If you have a fever, then you are sick." (p โ q)
-
premise: "You are not sick." (ยฌq)
-
conclusion: "You do not have a fever." (ยฌp)
-
ุจู ุง ุฅู ุงูู ูุฏู ุชูู ุงูุฃููููู ุตุญุ ูุจูู ุงููุชูุฌุฉ ุงูุซุงูุซุฉ ูุงุฒู ุชููู ุตุญ.
-
๐ Slide: Hypothetical Syllogism
๐ Definition
ูุงุนุฏุฉ Hypothetical Syllogism (ุงูููุงุณ ุงูุงูุชุฑุงุถู) ุจุชููู: ูู ูุงู ุนูุฏูุง premise ุจูููู "ุฅุฐุง ูุงู p ุตุญูุญุ ูุฅู q ุตุญูุญ" (p โ q)ุ ูุนูุฏูุง ูู ุงู premise ุชุงูู ุจูููู "ุฅุฐุง ูุงู q ุตุญูุญุ ูุฅู r ุตุญูุญ" (q โ r)ุ ูุฅููุง ููุฏุฑ ูุณุชูุชุฌ ุฅู "ุฅุฐุง ูุงู p ุตุญูุญุ ูุฅู r ุตุญูุญ" (p โ r).
ุงูุดูู ุงูุฑู ุฒู: (p โ q) (q โ r) โโโ โด (p โ r)
๐ก Example:
-
premise: "If I work hard, then I will get a promotion." (p โ q)
-
premise: "If I get a promotion, then I will get a raise." (q โ r)
-
conclusion: "If I work hard, then I will get a raise." (p โ r)
-
ุจู ุง ุฅู ุงูู ูุฏู ุชูู ุงูุฃููููู ุตุญุ ูุจูู ุงููุชูุฌุฉ ุงูุซุงูุซุฉ ูุงุฒู ุชููู ุตุญ.
-
๐ Slide: Disjunctive Syllogism
๐ Definition
ูุงุนุฏุฉ Disjunctive Syllogism (ุงูููุงุณ ุงูุงููุตุงูู) ุจุชููู: ูู ูุงู ุนูุฏูุง premise ุจูููู "p ุฃู q ุตุญูุญ" (p โจ q)ุ ูุนูุฏูุง ูู ุงู premise ุชุงูู ุจูููู "p ููุณ ุตุญูุญูุง" (ยฌp)ุ ูุฅููุง ููุฏุฑ ูุณุชูุชุฌ ุฅู "q ุตุญูุญ".
ุงูุดูู ุงูุฑู ุฒู: (p โจ q) ยฌp โโโ โด q
๐ก Example:
-
premise: "The car is red or the car is blue." (p โจ q)
-
premise: "The car is not red." (ยฌp)
-
conclusion: "The car is blue." (q)
-
ุจู ุง ุฅู ุงูู ูุฏู ุชูู ุงูุฃููููู ุตุญุ ูุจูู ุงููุชูุฌุฉ ุงูุซุงูุซุฉ ูุงุฒู ุชููู ุตุญ.
-
๐ Slide: Addition
๐ Definition
ูุงุนุฏุฉ Addition (ุงูุฌู ุน) ูู ูุงุนุฏุฉ ุจุณูุทุฉ ุฌุฏุงู. ุจุชููู: ูู ูุงู ุนูุฏูุง premise ุจูููู ุฅู "p ุตุญูุญ"ุ ูุฅููุง ููุฏุฑ ูุณุชูุชุฌ ุฅู "p ุฃู q ุตุญูุญ" (p โจ q).
ุงูุดูู ุงูุฑู ุฒู: p โโโ โด p โจ q
๐ก Example:
-
premise: "I am happy." (p)
-
conclusion: "I am happy or I am sad." (p โจ q)
-
ุจู ุง ุฅู ุงูู ูุฏู ุฉ ุงูุฃููู ุตุญุ ูุจูู ุงููุชูุฌุฉ ุงูุซุงููุฉ ูุงุฒู ุชููู ุตุญุ ูุฃู "p โจ q" ุจุชููู ุตุญ ูู ูุงุญุฏุฉ ุจุณ ู ููู ุตุญ.
-
๐ Slide: Simplification
๐ Definition
ูุงุนุฏุฉ Simplification (ุงูุชุจุณูุท) ุจุชููู: ูู ูุงู ุนูุฏูุง premise ุจูููู "p ู q ุตุญูุญ" (p โง q)ุ ูุฅููุง ููุฏุฑ ูุณุชูุชุฌ ุฅู "p ุตุญูุญ".
ุงูุดูู ุงูุฑู ุฒู: p โง q โโโ โด p
๐ก Example:
-
premise: "It is cold and it is raining." (p โง q)
-
conclusion: "It is cold." (p)
-
ุจู ุง ุฅู ุงูู ูุฏู ุฉ ุงูุฃููู ุตุญุ ูุจูู ุงููุชูุฌุฉ ุงูุซุงููุฉ ูุงุฒู ุชููู ุตุญ.
-
ุชู ุงู ุ ูููู ู ุดุฑุญ ุขุฎุฑ ุฌุฒุก ู ู ู ูู ุงูู PowerPoint.
๐ ุงูุฌุฒุก ุงูุซุงู ู - Propositional Functions
๐ Slide: Propositional Functions
๐ Explanation
ุงูู Propositional Function ูู ุงุณู ุชุงูู ููู predicate. ูู ุจุจุณุงุทุฉ ุฌู ูุฉ ุจุชุญุชูู ุนูู variable (ู ุชุบูุฑ) ุฃู ุฃูุชุฑ. ุงูุฌู ูุฉ ุฏู ู ุด ุจุชููู proposition ุญููููุฉ ุบูุฑ ูู ุง ูู ุงูู variables ุงููู ูููุง ุชุงุฎุฏ ููู ุฉ ู ุนููุฉ ู ู ุงูู domain ุจุชุงุนูุง.
๐ก Example:
-
ูู ุนูุฏูุง ุงูุฌู ูุฉ P(x): "x is a student in this class"
-
ุงูู domain ุจุชุงุนูุง ูู ูู ุงููุงุณ.
-
ููุง P(x) ู ุด proposition ูุฃู ููู ุชูุง True ุฃู False ุจุชุนุชู ุฏ ุนูู ุงูู x.
-
ููู ูู ูููุง P( "Ahmed")ุ ูุชุจูู "Ahmed is a student in this class".
-
ุฏู ูุฏู ุจูุช proposition ุญููููุฉุ ููู ุชูุง ู ู ูู ุชููู True ุฃู False.
๐ Slide: Propositional Functions with multiple variables
๐ Explanation
ุงูู Propositional Functions ู ู ูู ุชุญุชูู ุนูู ุฃูุชุฑ ู ู variable.
๐ก Example:
-
ูู ุนูุฏูุง Q(x, y): "x + y = 2"
-
ุงูู domain ุจุชุงุนูุง ูู ูู ุงูุฃุนุฏุงุฏ ุงูุตุญูุญุฉ.
-
ููุง Q(x, y) ู ุด propositionุ ูุฃู ููู ุชูุง ุจุชุนุชู ุฏ ุนูู ููู x ู y.
-
ูู ูููุง Q(1, 1)ุ ูุชุจูู "1 + 1 = 2"ุ ูุฏู proposition ููู ุชูุง True.
-
ูู ูููุง Q(1, 2)ุ ูุชุจูู "1 + 2 = 2"ุ ูุฏู proposition ููู ุชูุง False.
๐ Slide: Translating from English to Logic
๐ Explanation
ุฏูููุชู ููุชุนูู ุฅุฒุงู ูุญูู ุงูุฌู ู ู ู ุงููุบุฉ ุงูุฅูุฌููุฒูุฉ ูู logical expressions (ุชุนุจูุฑุงุช ู ูุทููุฉ).
๐ก Example:
-
ุงูุฌู ูุฉ: " Every student in this class has taken a course in Discrete Mathematics."
-
ุงูุฃููุ ููุนุฑูู ุงูู predicates ูุงูู domain:
-
ุงูู domain ูู ูู ุงูุทูุงุจ ูู ุงููุตู ุฏู.
-
ุงูู C(x) ูู ุงูู predicate "x has taken a course in Discrete Mathematics".
-
-
ุงูุฌู ูุฉ ุฏู ู ุนูุงูุง "ููู ุทุงูุจ (x) ูู ุงููุตูุ x ุฃุฎุฏ ููุฑุณ ุงูู Discrete Mathematics".
-
ูุจูู ุงูู logical expression ูู: โx C(x).
๐ Slide: Problem
๐ Explanation
ููุชู ุฑู ุนูู ุชุฑุฌู ุฉ ุงูุฌู ู ุฏู ูู logical expressions:
-
"Some students in this class have visited Mexico."
-
ุงูู domain ูู ูู ุงูุทูุงุจ ูู ุงููุตู ุฏู.
-
ุงูู M(x) ูู ุงูู predicate "x has visited Mexico".
-
"Some" ู ุนูุงูุง "ููุฌุฏ ุนูู ุงูุฃูู ูุงุญุฏ"ุ ูุจูู ููุณุชุฎุฏู ุงูู existential quantifier.
-
ุงูู logical expression: โx M(x).
-
-
"Every student in this class has taken a course in Java or Python."
-
ุงูู domain ูู ูู ุงูุทูุงุจ ูู ุงููุตู ุฏู.
-
ุงูู J(x) ูู ุงูู predicate "x has taken a Java course".
-
ุงูู P(x) ูู ุงูู predicate "x has taken a Python course".
-
"Every" ู ุนูุงูุง "ููู"ุ ูููุณุชุฎุฏู ุงูู "or".
-
ุงูู logical expression: โx (J(x) โจ P(x)).
-
-
"There is a student in this class who has not taken a course in Java and has visited Mexico."
-
ุงูู domain: ูู ุงูุทูุงุจ ูู ุงููุตู ุฏู.
-
ุงูู J(x): "x has taken a Java course".
-
ุงูู M(x): "x has visited Mexico".
-
"There is a student" ู ุนูุงูุง "ููุฌุฏ"ุ ูููุณุชุฎุฏู "and" ู "not".
-
ุงูู logical expression: โx (ยฌJ(x) โง M(x)).
-
ุฃูุงุฏูู ูุฉ Acadezi ุชุชู ูู ุงู ุชููู ุงุณุชูุฏุช ู ูุง ุชูุณู ุชุดุงุฑู ู ุน ุงุตุฏูุงุฆู ููุงุณุชูุงุฏุฉ ู ูุง ุชุชุฑุฏุฏ ูู ุงูุชูุงุตู ู ุนูุง ุงุฐ ู ุญุชุงุฌ ุณุคุงู! ๐