Docsity

Derive propositional logic, Exercises of Mathematics

Partial preview of the text

Download Derive propositional logic and more Exercises Mathematics in PDF only on Docsity!

Basic Logic and Proofs

Topic 1

Subtopics

♥ 1.1 Derive propositional logic

♥ 1.2 Derive predicate logic

♥ 1.3 Demonstrate proofs

Derive Propositional Logic

♥ Purpose of proposition logic

♥ Formulae of proposition logic

♥ Compound proposition

♥ Truth Table

♥ Write well-formed proposition

in English.

Purpose of Proposition Logic

♥Logic:

the study of correct

reasoning, especially in

making inferences.

♥In Mathematics:

to prove theorem

♥In Science:

to prove programs, do what

they are supposed to do.

♥Application:

➢ Design of computer

circuits.

➢ Artificial

intelligence.

➢ Computer

programming.

➢ Programming

language.

➢ Design of computing

machines.

Proposition / Statement true false

Purpose of Proposition Logic ♥ Not Proposition : A sentence that gives both truth values or

Purpose of Proposition Logic ♥Example of Proposition: a) Malaysia has 13 states. b) Malaysia has 2 federal territories. c) Sun is hot. d) It is 5 days in a weekdays. e) Johor is located at East Malaysia. f) 31 st July is Malaysia’s Independence Day. g) If X = 5 and X + 6 = 12.

Purpose of Proposition Logic ♥Example of Not Proposition: a) Where is Malaysia? b) Read this sentence carefully. c) X = Y + 5. d) I think the cake is delicious. e) Bring me the books. f) Abradacabra. g) Socrates are brilliant.

EXERCISE 1

State whether the sentences are proposition or not and if

proposition, state the truth value and if not, state the reason.

  1. The earth is round.
  2. 2 + 3 = 6.
  3. Segamat is a big city in Johor.
  4. What a beautiful flower!
  5. Is Mr. Lau tall?
  6. Take two aspirins.
  7. Rainbow has 7 spectral colours.
  8. Goose has 2 legs.
  9. Believe it or not, you never know.
  10. Baba black sheep.

Formulae of Proposition Logic ♥Logical (Sentential) Connective or ♥Logical (Sentential) Operator “is a symbol or word used to connect two or more statements.”

Formulae of Proposition Logic 5 Logical Connectives: ♥Negation (Not) ♥Conjunction (And) ♥Disjunction (Or) ♥ Implication (If… then…) ♥ Biconditional (… if and only if …)

Formulae of Proposition Logic

  1. Negation (Not) ♥Not a connector ♥Turn the TRUE value into FALSE value ♥Turn the FALSE value into TRUE value ♥Symbol : ~ ♥ P : Malaysia does have 13 states. True ♥~P : Malaysia does not have 13 states. False

Formulae of Proposition Logic

  1. Disjunction (Or) ♥Connector : Yes. P or Q ♥Symbol : ∨ 𝐏 𝐐 𝐏 ∨ 𝐐 T T T T F T F T T F F F

Formulae of Proposition Logic

  1. Implication ( if … then … ) ♥Connector : Yes. If P then Q ♥Symbol : → 𝐏 𝐐 𝐏 → 𝐐 T T T T F F F T T F F T