Download presentation
Presentation is loading. Please wait.
1
TR1413: Discrete Mathematics For Computer Science Lecture 3: Formal approach to propositional logic
2
Introduction A proof is a logical argument that consists of a series of steps using propositions in such a way that the truth of the theorem is established. To establish a valid proof, we have to understand the concept of mathematical logic.
3
Introduction We have discussed the concept of logic in TR1313. However, the discussion in TR1313 was done information, mainly by using truth tables. Most of the problems in mathematics and computer science cannot be proved by using the informal approach. In this course, we will consider a formal approach to logic.
4
Mathematical System Informally, a mathematical system consists of –Undefined terms –Definitions –Axioms
5
Formal Mathematical System Formally, a mathematical system consists of four sets of objects: –An alphabet –A set of wffs –A set of axioms –A set of rules of deduction
6
Alphabet This set consists of the symbols used by the system. This include: –A subset of propositional variables. –A subset of punctuation symbols –A subset of logical operators.
7
wff A set of formulae that are syntactically correct. The formulae use only the symbols defined by the alphabet.
8
Axioms These are basic formulae from which theorems are derived. Accepted without proof.
9
Rules of Deduction Rules which enable new wffs to be derived in the system from existing wffs.
10
Proof and deduction Need to differentiate between proof and deduction. A proof in a formal system is defined to be a sequence of wffs of that system such that each wff is either –An instance of an axiom of the system –A derivable from earlier wffs in the sequence using one of the rules of the system
11
A deduction in a formal system A deduction, on the other hand, starts from certain additional premises or hypotheses in additions to the axioms. Formally, a deduction in a given system can formally be defined to be a sequence of wffs on that system such that each wff is either –An instance of an axiom –One of the additional hypotheses –Derivable from earlier wffs in the sequence using one of the rules of the system.
12
A deduction in a formal system Notation P 1,P 2,…,P n ᅡ Q Meaning: wff Q is deducible from the set of wffs {P 1,P 2,…,P n } The set {P 1,P 2,…,P n } are the hypotheses. Q is the consequent.
13
A deduction in a formal system Sometimes, notation T ᅡ Q is used. Meaning: wff Q is deducible from the hypotheses in set T. If T is an empty set, then ᅡ Q is used to indicate Q is a theorem in the system.
14
Interpretation Interpretation of a wff in a formal system is an assignment of truth- values to each propositional variable of the formula. A tautology is a formula which has truth-value T for all possible interpretation.
15
Deductive Reasoning Consider the following sequence of proposition: –The bug is either in module 17 or in module 81 –The bug is a numerical error –Module 81 has no numerical error Conclusion: The bug is in module 17
16
Example 1.4.11 Represent the argument If 2 = 3, then I ate my hat I ate my hat Therefore 2 = 3
17
Example 1.4.12 Which rule of inference is used? If the computer has 32 megabytes of storage, then it can run “Blast’em”. If the computer can run “Blast’em”, then the sonics will be impressive. Therefore, if the computer has 32 megabytes of storage, then the sonics will be impressive.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.