Propositional logic Flashcards

1
Q

Types of logic

A

Propositional logic
Predicate or first order logic

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

Propositional logic (definition)

A

A propositional logic is a declarative statement.
It must be either TRUE or FALSE.
It cannot be both TRUE and FALSE.

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

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

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

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

Another name of propositional logic

A

Boolean logic

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

Tautology

A

A propositional formula which is always true

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

Contradiction

A

A propositional which is always failed

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

Valid sentence

A

Tautology

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

Statements which are ______________ are not propositions.

A

Statements which are questions, commands, or opinions are not propositions.

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

Connectives

A

Connectives can be said as logical operator which connects two sentences.

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

Types of propositions

A

Two types of propositions:
1.) Atomic propositions
2.) Compound propositions

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

Atomic propositions
(Also example)

A

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

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

Compound propositions
(Also example)

A

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.

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

Operators (5)

A

¬ negation
^ and
v or
→implication
⟺ bidirectional implication

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

Negation ¬
* Definition
* Example
* Unitary/binary
* generate new proposition or not
* Truth table

A

Suppose p is proposition
The negation of p is ¬p

ex- p: Today is Monday
¬p: Today is not Monday

Unitary

Generate new proposition

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

And
* symbol
* another name
* unary/binary
* truth table

A

Conjuction
binary

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

Disjuction
* Type

About each type:
* symbol
* unary/binary
* truth table

A

Type: Inclusive or and exclusive or

Inclusive OR
* v
* binary

Exclusive OR (XOR)
* ⊕ or ⊻
* binary

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

⊕ expressed other operators

A

p⊕q is same as ¬(p⟺q)

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


* name
* truth table
* what is p and q in p→q

A


* implication
* p is antecedant and q is consequent in p→q

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

Terminology for implication (7)

A

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

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

p→q equivalent to (2)

A

p→q = ¬pvq
p→q = ¬q→¬p

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


* name
* unary/binary operator
* keyword
* p⟺q same as ?
* truth table
* how to remember truth table

A


* bidirectional implication
* binary operator
* keyword: if only if
* p⟺q same as p→q and q→p taken together.
* same:True

22
Q

precedence of operators

A
23
Q

type of formulas in propositional logic

A
24
Q

Logical consequence

A

A formula ϕ is said to be logical consequence of another formula ψ if whenever ψ is True, ϕ must also be True.
This means the truth of ψ guarantees the truth of ϕ symolically, ψ ⊨ ϕ

25
Q

De Morgan law (propositional logic)

A
26
Q

Distributivity (propositional logic)

A
27
Q

Contrapositives (propositional logic)

A
28
Q

Identity law (propositional logic)

A
29
Q

Domination laws (propositional logic)

A
30
Q

Idempotent laws

A
31
Q

Double negation laws

A
32
Q

Commutative laws

A
33
Q

Associative laws

A
34
Q

Absorption laws

A
35
Q

Negation laws

A
36
Q

Logical equivalences involving biconditional statements

A
37
Q

Number of propositional models

A

Number of propositional models = 2ⁿᵘᵐᵇᵉʳ ᵒᶠ ᵖʳᵒᵖᵒˢᶦᵗᶦᵒⁿˢ

[2^(number of propositions)]

38
Q

Entailment

A

α ⊨β (alpha entails beta)
In every model in which sentence α is true, sentence β is also true.
entailment is not proposition but it is relation

39
Q

Model checking

A
40
Q

Model checking is not an efficient algorithm because_____

A

Model checking is not an efficient algorithm because it has to consider every possible model before giving the answer.

41
Q

Inference in propositional logic

A

Inference rules allow us to generate new information based on existing knowledge without considering every possible model.
Inference is the process of deriving new sentences from old ones.

42
Q

Inference rules are represented as

A
43
Q

What is premise and conclusion in inference rules

A

The premise is whatever the knowledge we have, and the conclusion is what knowledge can be generated based on the premise.

44
Q

Modus ponens

A
45
Q

And elimination

A
46
Q

Double negation elimination

A
47
Q

Implication elimination

A
48
Q

Biconditional elimination

A
49
Q

De Morgans law as inference

A
50
Q

Distributive property as inference

A
51
Q

Resolution as inference

A
52
Q
A