Propositional and First Order Logic Flashcards

1
Q

Proposition

A

A declarative sentence, either true or false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Connectives

A
  1. Negation
  2. Conjunction
  3. Disjunction
  4. exclusive or
  5. Implication
  6. Bi-Implication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Negation

A

If p is a proposition, then the negation of p is denoted by ~p( not p)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Conjunction

A

P^Q, p and q. True when both true otherwise false.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Disjunction.

A

P v Q, P or Q. False when both false otherwise true.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Exclusive Or

A

P XOR Q, False when both T or F, otherwise true (for diff values)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Implication

A

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Bi Implication.

A

P Q, P–>Q and Q –> P.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Implication truth table confusion ka known explanation.

A

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”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

The question…

A

https://www.geeksforgeeks.org/gate-gate-cs-2015-set-1-question-24/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

De Morgans law

A

~( 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).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Special Conditional Statements

A

p –> q (Implication)
q –> p (Converse)
~q –> ~p (Contra+ve)
~p –> ~q (Inverse)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Special Conditional Statements relation

A

p –> q = ~q –>~p

q –> q = ~p –> ~q

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Implicit Use of Bi Conditional

A

“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”.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Precedence

A

~ > “^” > “v” > “–> “ > “”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Types of propositions based on Truth values

A

Tautology: Always True ( p v ~p )
Contradiction: Always False ( p ^ ~p)
Contingency: Nor tautology nor contradiction. (p v q)

17
Q

Identity Law

A

p ^ T = p

p v F = p

18
Q

Domination Laws

A

p ^ F = F

p v T = T

19
Q

Idempotent Laws

A

p v p = p

p ^ p = p

20
Q

Double negation Law

A

~( ~p) = p

21
Q

Commutative Law

A

p v q = q v p

p ^ q = q ^ p

22
Q

Associative Law

A

( p v q ) v r = p v ( q v r )

p ^ q ) ^ r = p ^ ( q ^ r

23
Q

Distributive Law

A
p ^ ( q v r ) = ( p ^ q ) v ( p ^ r )
p v ( q ^ r ) = ( p v q ) ^ ( p v r )
24
Q

Absorption Laws

A
p ^ ( p v q ) = p
p v ( p ^ q ) = p
25
Q

Negation laws

A

p ^ ~p = F

p V ~p = T