MMW and COMPUTER PROGRAMMING
MMW and COMPUTER PROGRAMMING
Logic
Logic is the study of reasoning and argumentation. It involves the
principles and methods used to distinguish valid from invalid reasoning,
focusing on how conclusions are drawn from premises.
Logic is regarded as one of the oldest intellectual disciplines in the
history of humanity. It was the Greek philosopher Aristotle who
pioneered logical reasoning. Throughout centuries, logic has immensely
influenced other fields such as philosophy, mathematics, science,
engineering, business, and law, to name a few.
Mathematical Logic
Basically, mathematical logic is a subfield of mathematics exploring the
applications of formal logic to mathematics. Critical thinking or logical
thinking is the process in which one uses logic and reasoning consistently to
conclude, which is an important foundational skill of Mathematics. It is used as
a process to evaluate and separate truth from falsehood, reasonable from
unreasonable beliefs.
Propositional
Logic
Propositions
• A proposition is a statement that has a truth value.
• Two possible truth values associated with propositions:
True (T or 1)
False (F or 0)
if p, then q
p implies q
𝐩 → 𝐪:
Conditional/ q only if p
if..., then → right arrow p→q If 2 is even, then 2 is prime.
Implication q if p
2 is prime if 2 is even.
q whenever p
q is necessary for p
p if and only if q
double-headed 𝐩 𝐪:
Biconditional if and only if p q p implies q, and q
arrow 2 is even if and only if 2 is prime.
implies p
Translate the following propositions into symbols.
p : Today is a holiday. ~ (not) ⋀ (and)
q : We have no classes today. ⋁ (or) → (implies)
r : We need to review our lessons. (if and only if)
p: 5 > 3
q: 5 is odd.
r: 5 is prime.
s: 5 is not divisible by 2.
p: 5>3
q: 5 is odd.
r: 5 is prime.
s: 5 is not divisible by 2.