Propositional Logic Flashcards

1
Q

What is logic

A
  • Science of valid reasoning → Aristotle
  • Reasoning - constructing arguments based off conclusions about them so that the arguments presented are valid
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

where is logic used in comp sci

A
  • Used in computer circuit design where each digital gate is represented by a ********logical connective********
  • Data model for programming languages and systems
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are the applications of logic

A
  • deductive systems
  • expert systems and AI
  • correctness programs
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what are deductive systems

A
  • Rule based approaches can be developed in PROLOG (a logic programming language)
  • Facts and rules declared as horn clauses
    • Similar to predicate logic
    • To declare new facts and rules using original facts
    • Infer certain facts from previous facts and chain them together
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How is logic used in expert systems and AI?

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

How is logic used in correctness programs?

A
  • Semantics of programming langages such as declaration of types
  • Theorem provers (To test theories correctness)
  • Verification and validation of programs (Is the compiler correct)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is propositional logic?

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

How do you represent proopositions?

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

What are simple propositions?

A

Simple Proposition - Cannot be broken up into sub-propositions

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

What are compound propositions?

A

Compound Propositions - Can be broken down into sub-propositions

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

What are logical connectives?

A

**Combines simple propositions → compound proposition**

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

How does propositonal connectives work in terms of p and q?

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

How does truth tables work with propositional logic?

A
  • Help express complicated propositions
  • Helps combine expressions
  • Set out all possible truth value combinations for the simple components
  • Then shows each value of the compound statement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does p -> q work in a truth table?

A

if p … , then q …

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

How does p <-> q work in a truth table?

A

if p … then q … , and conversly

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

What is tautologies?

A
  • Used to construct arguments and proof
  • Tautology - statement that must be TRUE
  • As all possible combinations lead to the statment being TRUE
17
Q

What is condradictions?

A
  • Used to construct argurments and proof
  • Statement must be FALSE
  • All possible combinations must be FALSE