Propositional logic Flashcards

(52 cards)

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

23
Q

type of formulas in propositional logic

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
De Morgan law (propositional logic)
26
Distributivity (propositional logic)
27
Contrapositives (propositional logic)
28
Identity law (propositional logic)
29
Domination laws (propositional logic)
30
Idempotent laws
31
Double negation laws
32
Commutative laws
33
Associative laws
34
Absorption laws
35
Negation laws
36
Logical equivalences involving biconditional statements
37
Number of propositional models
Number of propositional models = 2ⁿᵘᵐᵇᵉʳ ᵒᶠ ᵖʳᵒᵖᵒˢᶦᵗᶦᵒⁿˢ [2^(number of propositions)]
38
Entailment
α ⊨β (alpha entails beta) In every model in which sentence α is true, sentence β is also true. entailment is not proposition but it is relation
39
Model checking
40
Model checking is not an efficient algorithm because_____
Model checking is not an efficient algorithm because it has to consider every possible model before giving the answer.
41
Inference in propositional logic
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
Inference rules are represented as
43
What is premise and conclusion in inference rules
The premise is whatever the knowledge we have, and the conclusion is what knowledge can be generated based on the premise.
44
Modus ponens
45
And elimination
46
Double negation elimination
47
Implication elimination
48
Biconditional elimination
49
De Morgans law as inference
50
Distributive property as inference
51
Resolution as inference
52