Propositional logic Flashcards
Types of logic
Propositional logic
Predicate or first order logic
Propositional logic (definition)
A propositional logic is a declarative statement.
It must be either TRUE or FALSE.
It cannot be both TRUE and FALSE.
Choose if following are proposition or not
a.) John loves CSE 191
b.) 2+3
c.) 2+x=3
d.) 2+x>3
e.) sun rises from west
a.) John loves CSE 191- Proposition
b.) 2+3 - Non proposition
c.) Solve 2+x=3 - Non proposition
d.) 2+x>3 - non proposition
e.) sun rises from west - Proposition
Another name of propositional logic
Boolean logic
Tautology
A propositional formula which is always true
Contradiction
A propositional which is always failed
Valid sentence
Tautology
Statements which are ______________ are not propositions.
Statements which are questions, commands, or opinions are not propositions.
Connectives
Connectives can be said as logical operator which connects two sentences.
Types of propositions
Two types of propositions:
1.) Atomic propositions
2.) Compound propositions
Atomic propositions
(Also example)
Atomic propositions are the simple propositions that consist of a single proposition symbol. These are the sentences which must be either true or false.
Ex: Today is monday
Compound propositions
(Also example)
Compound propositions are constructed by combining simpler or atomic propositions, using parentheses and logical connectives.
Ex: Today is Monday and I am going to Goa.
Operators (5)
¬ negation
^ and
v or
→implication
⟺ bidirectional implication
Negation ¬
* Definition
* Example
* Unitary/binary
* generate new proposition or not
* Truth table
Suppose p is proposition
The negation of p is ¬p
ex- p: Today is Monday
¬p: Today is not Monday
Unitary
Generate new proposition
And
* symbol
* another name
* unary/binary
* truth table
Conjuction
binary
Disjuction
* Type
About each type:
* symbol
* unary/binary
* truth table
Type: Inclusive or and exclusive or
Inclusive OR
* v
* binary
Exclusive OR (XOR)
* ⊕ or ⊻
* binary
⊕ expressed other operators
p⊕q is same as ¬(p⟺q)
→
* name
* truth table
* what is p and q in p→q
→
* implication
* p is antecedant and q is consequent in p→q
Terminology for implication (7)
p→q
* if p, then q
* q, if p
* p, only if q
* p implies q
* p is sufficient for q
* q is necessary for p
* q follows from p
p→q equivalent to (2)
p→q = ¬pvq
p→q = ¬q→¬p