Propositional and First Order Logic Flashcards
Proposition
A declarative sentence, either true or false.
Connectives
- Negation
- Conjunction
- Disjunction
- exclusive or
- Implication
- Bi-Implication
Negation
If p is a proposition, then the negation of p is denoted by ~p( not p)
Conjunction
P^Q, p and q. True when both true otherwise false.
Disjunction.
P v Q, P or Q. False when both false otherwise true.
Exclusive Or
P XOR Q, False when both T or F, otherwise true (for diff values)
Implication
P –> Q, p: Hypothesis, Antecedent, Premise. Q : Conclusion, Consequence.
True if the premise is false and P n Q both true.
False when P is true and Q is false.
Bi Implication.
P Q, P–>Q and Q –> P.
Implication truth table confusion ka known explanation.
You might wonder that why is p–> q true when p is false. This is because the implication guarantees that when p and q are true then the implication is true. But the implication does not guarantee anything when the premise p is false. There is no way of knowing whether or not the implication is false since p did not happen.
This situation is similar to the “Innocent until proven Guilty” stance, which means that the implication p\rightarrow q is considered true until proven false. Since we cannot call the implication p\rightarrow q false when p is false, our only alternative is to call it true.
This follows from the Explosion Principle which says-
“A False statement implies anything”
The question…
https://www.geeksforgeeks.org/gate-gate-cs-2015-set-1-question-24/
De Morgans law
~( p^q) = ~p v ~q
~(p v q) = ~p ^ ~q
De Morgan’s laws extend to
¬(p1 ∨ p2 ∨ ⋯ ∨ pn) ≡ (¬p1 ∧ ¬p2 ∧ ⋯ ∧ ¬pn)
and
¬(p1 ∧ p2 ∧ ⋯ ∧ pn) ≡ (¬p1 ∨ ¬p2 ∨ ⋯ ∨ ¬pn).
Special Conditional Statements
p –> q (Implication)
q –> p (Converse)
~q –> ~p (Contra+ve)
~p –> ~q (Inverse)
Special Conditional Statements relation
p –> q = ~q –>~p
q –> q = ~p –> ~q
Implicit Use of Bi Conditional
“If you complete your homework, then you can go out and play”. What is really meant is “You can go out and play if and only if you complete your homework”. This statement is logically equivalent to two statements, “If you complete your homework, then you can go out and play” and “You can go out and play only if you complete your homework”.
Precedence
~ > “^” > “v” > “–> “ > “”