SlideShare a Scribd company logo
1 of 18
NEXT: Table Of Context
Application of Logic and Proof
With Example
LOGIC PROOFS APPLICATION
OF LOGIC AND
PROOFS
TABLE OF CONTENTS
 What Is Logic?
 Logical Operations
 Examples Of Logics
 What Is Proofs?
 Types Of Proofs
 Example Of Proofs
 Application Of Logic And Proofs With Example
CONTENTS OF THIS TEMPLATE
LOGIC
What Is Logic?
Logic means reasoning. The reasoning may be a
legal opinion or mathematical confirmation.
We apply certain logic in Mathematics. Basic
Mathematical logics are a negation,
conjunction, and disjunction. The symbolic
form of mathematical logic is, ‘~’ for
negation ‘^’ for conjunction and ‘ v ‘ for
disjunction
Logic Operations
We can join two
statements by
“AND” operand. It is
also known as a
conjunction. Its
symbolic form is “∧“.
In this operator, if
anyone of the
statement is false,
then the result will
be false. If both the
statements are true,
then the result will
be true. It has two or
more inputs but only
one output.
Conjuction(AND) Truth Table For And(^)
Input 1 Input 2 Output
A B A^B
T T T
T F F
F T F
F F F
Logic Operations
We can join two
statements by “OR”
operand. It is also
known as
disjunction. It’s
symbolic form is “∨”.
In this operator, if
anyone of the
statement is true,
then the result is
true. If both the
statements are false,
then the result will
be false. It has two
or more inputs but
only one output
Disjunction(OR) Truth Table For Or(V)
Input 1 Input 2 Output
A B AVB
T T T
T F T
F T T
F F F
Logical Operations
Negation is an
operator which gives
the opposite
statement of the
given statement. It is
also known as NOT,
denoted by “∼”. It is
an operation that
gives the opposite
result. If the input is
true, then the output
will be false. If the
input is false, then
the output will be
true. It has one input
and one output
Negation(NOT) Truth Table For Not(∼)
Input 1 Output
A NEGATION(~A)
T F
F T
Example Of Logic(AND)
Write the truth table values of conjunction for the given two statements
A: x is an even number
B: x is a prime number
Solution:
Given: A: x is an even number
B: x is a prime number
Let assume the different x values to prove the conjunction truth table
X Value A B (A^B)
X=2 T T T
X=4 T F F
X=3 F T F
X=9 F F F
Example Of Logic(OR)
Write the truth table values of disjunction for the given two statements
A: p is divisible by 2
B: p is divisible by 3
Solution:
Given: A: P is divisible by 2
B: P is divisible by 3
Let assume the different x values to prove the disjunction truth table
Value Of P A B (AVB)
P=12 T T T
P=4 T F T
P=9 F T T
P=7 F F F
Example Of Logic(NOT)
Find the negation of the given statement “ a number 6 is an even number”
Solution:
Let “S” be the given statement
S = 6 is an even number
Therefore, the negation of the given statement is
∼S = 6 is not an even number.
Therefore, the negation of the statement is “ 6 is not an even number”
PROOFS
What Is Proofs?
A proof is a logical argument that tries to show
that a statement is true. In math, and
computer science, a proof has to be well
thought out and tested before being
accepted. But even then, a proof can
be discovered to have been wrong. There are
many different ways to go about proving
something, we’ll discuss 3 methods: direct
proof, proof by contradiction, proof by
induction.
Types Of Proofs
Prove that if m+n and n+p are even integers where m, sp are integers, then m+p is even.
Solution: Given: If m+n is even and n+p is even then m+p
is even.
P: m+n is even and n + p is even.
Q: m+p is even.
1. Hypothesis: Assume that P is true.
2 Analysis: If m+n is even then m + n = 2s, for some integer 's If n + p is even then n+p=2t, for
some integer 't'.
m+p = (m + n) + (n+p) - 2n
=2s +2t-2n
=2(s+t-n)
3. Conclusion: We observe that R.H.S. value of m+p is divisible
This means that m+p is an even integer.
ie, P->Q is true.
Direct Proofs
Direct proofs lead from the hypothesis of a theorem to son. In a direct
proof, we assume that P is true and use anions dditions, and previous
theorems, together with rules of inference, to show that must also be true.
Examples
Types Of Proofs
Example 1. Prove that if n is an integer and 5n+2 is odd, then n is odd.
Solution: P:n is an integer and 5+2 is odd.
Q:n is odd.
To prove p→ q is true it is enough to prove ~q->~ P is true.
1. Hypothesis:
Since P->Q its contrapositive.
~q-~p are logically equivalent.
So assume that ~q is true.
ie., n is even.
2 Analysis: If n is even, then n = 2k, for some integer k.
5n+2=5 (2k) +2
= 2 (5k) + 2
= 2 (5k+1)
3. Conclusion:
We observe that R.HS value of 5n+ 2 is divisible by 2.,This means that Sn +2 is an even
integer.
ie, P is true.
~q->~ p is true.
Proof By
Contrapostion
A proof by contraposition is sometimes called an indirect proof. It will
make use of the fact that the conditional statement P→ Q can he proved by
showing that its contrapositive, ~q->~p is true
Examples
● 1) Translating English Sentences into logical statements
● Like any other human language, English sentences can be
ambiguous. This ambiguity might lead to uninformed
decision-making and other fatal errors. To remove this
ambiguity, we can translate these English sentences into
logical expressions with the help of Propositional Logic. Note
that sometimes this may include making a few assumptions
based on the sentence’s intended meaning.
● Example: Given a sentence “You can purchase this book if
you have $20 or $10 and a discount coupon.” Now, this is a
bit complex to be understood at once. So we translate this
into a logical expression that will make it simple to
understand. Let a, b, c, and d represent the sentences “You
can purchase this book.“, “You have $20.“, “You have $10.“,
and “You have a discount coupon.” respectively. Then the
given sentence can be translated to (b ∨ (c ∧ d) -> a, which
simply means that “if you either have $20 or $10, along with
a discount coupon, then you can purchase the book.
Applications in Logic and Proof
● Boolean Searches
● Another important application of propositional logic
is Boolean searches. These searches use techniques from
propositional logic. Logical connectives are used extensively
in searches of large collections of information, such as
indexes of Web Pages. In Boolean searches, the connective
AND is used to find records that contain both of the two
terms, the connective OR is used to find records that have
either one or both of the terms, and the connective NOT,
also written as AND NOT, is used when we need to exclude
a particular search term.
● Example: Some web search engines support web page
searching that uses Boolean techniques. For instance, if we
want to look for web pages about hiking in West Alps, then
we can look for pages matching
WEST AND ALPS AND HIKING. And if we want web pages
about hiking in the Alps, but not in West Alps, then we can
search for pages matching the record
HIKING AND ALPS AND NOT(WEST AND ALPS).
Applications in Logic and Proof
CREDITS: This presentation template was created by
Slidesgo, including icons by Flaticon, and
infographics & images by Freepik
THANKS
DONE BY:
BHARATH G

More Related Content

Similar to DM(1).pptx

20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptxssuser92109d
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxPriyalMayurManvar
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Artificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logicArtificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logicTaymoor Nazmy
 
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Ashish Duggal
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategyallyn joy calcaben
 
Mathmatical reasoning
Mathmatical reasoningMathmatical reasoning
Mathmatical reasoningindu psthakur
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proofAbdur Rehman
 
Aa - Module 1 Fundamentals_2.pdf
Aa  - Module 1  Fundamentals_2.pdfAa  - Module 1  Fundamentals_2.pdf
Aa - Module 1 Fundamentals_2.pdfAayushSharma261
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statementsAbdur Rehman
 

Similar to DM(1).pptx (20)

20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Artificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logicArtificial intelligent Lec 5-logic
Artificial intelligent Lec 5-logic
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
Artificial Intelligence (AI) | Prepositional logic (PL)and first order predic...
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 
Logic
LogicLogic
Logic
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Discrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order LogicDiscrete Math Lecture 02: First Order Logic
Discrete Math Lecture 02: First Order Logic
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
 
Mathmatical reasoning
Mathmatical reasoningMathmatical reasoning
Mathmatical reasoning
 
Logic.pptx
Logic.pptxLogic.pptx
Logic.pptx
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Aa - Module 1 Fundamentals_2.pdf
Aa  - Module 1  Fundamentals_2.pdfAa  - Module 1  Fundamentals_2.pdf
Aa - Module 1 Fundamentals_2.pdf
 
DMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptxDMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptx
 
3 computing truth tables
3   computing truth tables3   computing truth tables
3 computing truth tables
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statements
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 

Recently uploaded

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersChitralekhaTherkar
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptxPoojaSen20
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 

Recently uploaded (20)

Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Micromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of PowdersMicromeritics - Fundamental and Derived Properties of Powders
Micromeritics - Fundamental and Derived Properties of Powders
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
PSYCHIATRIC History collection FORMAT.pptx
PSYCHIATRIC   History collection FORMAT.pptxPSYCHIATRIC   History collection FORMAT.pptx
PSYCHIATRIC History collection FORMAT.pptx
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 

DM(1).pptx

  • 1. NEXT: Table Of Context Application of Logic and Proof With Example
  • 2. LOGIC PROOFS APPLICATION OF LOGIC AND PROOFS TABLE OF CONTENTS
  • 3.  What Is Logic?  Logical Operations  Examples Of Logics  What Is Proofs?  Types Of Proofs  Example Of Proofs  Application Of Logic And Proofs With Example CONTENTS OF THIS TEMPLATE
  • 5. What Is Logic? Logic means reasoning. The reasoning may be a legal opinion or mathematical confirmation. We apply certain logic in Mathematics. Basic Mathematical logics are a negation, conjunction, and disjunction. The symbolic form of mathematical logic is, ‘~’ for negation ‘^’ for conjunction and ‘ v ‘ for disjunction
  • 6. Logic Operations We can join two statements by “AND” operand. It is also known as a conjunction. Its symbolic form is “∧“. In this operator, if anyone of the statement is false, then the result will be false. If both the statements are true, then the result will be true. It has two or more inputs but only one output. Conjuction(AND) Truth Table For And(^) Input 1 Input 2 Output A B A^B T T T T F F F T F F F F
  • 7. Logic Operations We can join two statements by “OR” operand. It is also known as disjunction. It’s symbolic form is “∨”. In this operator, if anyone of the statement is true, then the result is true. If both the statements are false, then the result will be false. It has two or more inputs but only one output Disjunction(OR) Truth Table For Or(V) Input 1 Input 2 Output A B AVB T T T T F T F T T F F F
  • 8. Logical Operations Negation is an operator which gives the opposite statement of the given statement. It is also known as NOT, denoted by “∼”. It is an operation that gives the opposite result. If the input is true, then the output will be false. If the input is false, then the output will be true. It has one input and one output Negation(NOT) Truth Table For Not(∼) Input 1 Output A NEGATION(~A) T F F T
  • 9. Example Of Logic(AND) Write the truth table values of conjunction for the given two statements A: x is an even number B: x is a prime number Solution: Given: A: x is an even number B: x is a prime number Let assume the different x values to prove the conjunction truth table X Value A B (A^B) X=2 T T T X=4 T F F X=3 F T F X=9 F F F
  • 10. Example Of Logic(OR) Write the truth table values of disjunction for the given two statements A: p is divisible by 2 B: p is divisible by 3 Solution: Given: A: P is divisible by 2 B: P is divisible by 3 Let assume the different x values to prove the disjunction truth table Value Of P A B (AVB) P=12 T T T P=4 T F T P=9 F T T P=7 F F F
  • 11. Example Of Logic(NOT) Find the negation of the given statement “ a number 6 is an even number” Solution: Let “S” be the given statement S = 6 is an even number Therefore, the negation of the given statement is ∼S = 6 is not an even number. Therefore, the negation of the statement is “ 6 is not an even number”
  • 13. What Is Proofs? A proof is a logical argument that tries to show that a statement is true. In math, and computer science, a proof has to be well thought out and tested before being accepted. But even then, a proof can be discovered to have been wrong. There are many different ways to go about proving something, we’ll discuss 3 methods: direct proof, proof by contradiction, proof by induction.
  • 14. Types Of Proofs Prove that if m+n and n+p are even integers where m, sp are integers, then m+p is even. Solution: Given: If m+n is even and n+p is even then m+p is even. P: m+n is even and n + p is even. Q: m+p is even. 1. Hypothesis: Assume that P is true. 2 Analysis: If m+n is even then m + n = 2s, for some integer 's If n + p is even then n+p=2t, for some integer 't'. m+p = (m + n) + (n+p) - 2n =2s +2t-2n =2(s+t-n) 3. Conclusion: We observe that R.H.S. value of m+p is divisible This means that m+p is an even integer. ie, P->Q is true. Direct Proofs Direct proofs lead from the hypothesis of a theorem to son. In a direct proof, we assume that P is true and use anions dditions, and previous theorems, together with rules of inference, to show that must also be true. Examples
  • 15. Types Of Proofs Example 1. Prove that if n is an integer and 5n+2 is odd, then n is odd. Solution: P:n is an integer and 5+2 is odd. Q:n is odd. To prove p→ q is true it is enough to prove ~q->~ P is true. 1. Hypothesis: Since P->Q its contrapositive. ~q-~p are logically equivalent. So assume that ~q is true. ie., n is even. 2 Analysis: If n is even, then n = 2k, for some integer k. 5n+2=5 (2k) +2 = 2 (5k) + 2 = 2 (5k+1) 3. Conclusion: We observe that R.HS value of 5n+ 2 is divisible by 2.,This means that Sn +2 is an even integer. ie, P is true. ~q->~ p is true. Proof By Contrapostion A proof by contraposition is sometimes called an indirect proof. It will make use of the fact that the conditional statement P→ Q can he proved by showing that its contrapositive, ~q->~p is true Examples
  • 16. ● 1) Translating English Sentences into logical statements ● Like any other human language, English sentences can be ambiguous. This ambiguity might lead to uninformed decision-making and other fatal errors. To remove this ambiguity, we can translate these English sentences into logical expressions with the help of Propositional Logic. Note that sometimes this may include making a few assumptions based on the sentence’s intended meaning. ● Example: Given a sentence “You can purchase this book if you have $20 or $10 and a discount coupon.” Now, this is a bit complex to be understood at once. So we translate this into a logical expression that will make it simple to understand. Let a, b, c, and d represent the sentences “You can purchase this book.“, “You have $20.“, “You have $10.“, and “You have a discount coupon.” respectively. Then the given sentence can be translated to (b ∨ (c ∧ d) -> a, which simply means that “if you either have $20 or $10, along with a discount coupon, then you can purchase the book. Applications in Logic and Proof
  • 17. ● Boolean Searches ● Another important application of propositional logic is Boolean searches. These searches use techniques from propositional logic. Logical connectives are used extensively in searches of large collections of information, such as indexes of Web Pages. In Boolean searches, the connective AND is used to find records that contain both of the two terms, the connective OR is used to find records that have either one or both of the terms, and the connective NOT, also written as AND NOT, is used when we need to exclude a particular search term. ● Example: Some web search engines support web page searching that uses Boolean techniques. For instance, if we want to look for web pages about hiking in West Alps, then we can look for pages matching WEST AND ALPS AND HIKING. And if we want web pages about hiking in the Alps, but not in West Alps, then we can search for pages matching the record HIKING AND ALPS AND NOT(WEST AND ALPS). Applications in Logic and Proof
  • 18. CREDITS: This presentation template was created by Slidesgo, including icons by Flaticon, and infographics & images by Freepik THANKS DONE BY: BHARATH G