Download presentation
Presentation is loading. Please wait.
Published byRodger Norris Modified over 9 years ago
1
The Foundations Logic and Proofs by raedRASHEED 2014
2
1.1 Propositional Logic A proposition is a declarative sentence (that is, a sentence that declares a fact) that is either true or false, but not both. EXAMPLE 1 All the following declarative sentences are propositions. 1.Washington, D.C., is the capital of the United States of America. 2.Toronto is the capital of Canada. 3.1 + 1 = 2. 4.2 + 2 = 3. Propositions 1 and 3 are true, whereas 2 and 4 are false.
3
1.1 Propositional Logic Some sentences that are not propositions are given in Example 2. EXAMPLE 2 Consider the following sentences. 1.What time is it? 2.Read this carefully. 3.x + 1 = 2. 4.x + y = Z. Sentences 1 and 2 are not propositions because they are not declarative sentences. Sentences 3 and 4 are not propositions because they are neither true nor false.
4
1.1 Propositional Logic
5
TABLE 1 The Truth Table for the Negation of a Proposition. TF FT
6
1.1 Propositional Logic
8
The Truth Table for the Conjunction and Disjunction of Two Propositions TABLE 2 The Truth Table for the Conjunction of Two Propositions TABLE 3 The Truth Table for the Disjunction of Two Propositions TTTTTT TFFTFT FTFFTT FFFFFF
9
1.1 Propositional Logic
10
The Truth Table for the Exclusive Or and Conditional Statement of Two Propositions TABLE 2 The Truth Table for the Exclusive Or of Two Propositions TABLE 3 The Truth Table for the Conditional Statement of Two Propositions TTFTTT TFTTFF FTTFTT FFFFFT
11
1.1 Propositional Logic
15
TTT TFF FTF FFT
16
Truth Tables of Compound Propositions ( ⋁ ¬)→( ⋀ ) TTFTTT TFTTFF FTFFFT FFTTFF
17
1.1 Propositional Logic Precedence of Logical Operators TABLE 8 Precedence of Logical Operators 1 2 3 4 5
18
1.1 Propositional Logic
20
Logic and Bit Operations DEFINITION 7 A bit string is a sequence of zero or more bits. The length of this string is the number of bits in the string. TABLE 9 Table for the Bit Operators OR, AND, and XOR. 00000 01101 10101 11110
21
1.1 Propositional Logic EXAMPLE 21 Find the bitwise OR, bitwise AND, and bitwise XOR of the bit strings 0110110110 and 1100011101. (Here, and throughout this book, bit strings will be split into blocks of four bits to make them easier to read.) Solution: The bitwise OR, bitwise AND, and bitwise XOR of these strings are obtained by taking the OR, AND, and XOR of the corresponding bits, respectively. This gives us 01 1011 0110 11 0001 1101 11 1011 1111bitwise OR 01 0001 0100 bitwise AND 10 1010 1011 bitwise XOR
22
1.2 Propositional Equivalences
23
DEFINITION 1 A compound proposition that is always true, no matter what the truth values of the propositions that occur in it, is called a tautology. A compound proposition that is always false is called a contradiction. A compound proposition that is neither a tautology nor a contradiction is called a contingency. TABLE 1 Examples of a Tautology and a Contradiction. TFTF FTTF TABLE 2 De Morgan's Laws.
24
1.2 Propositional Equivalences
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.