Lecture One
Lecture One
which declare something. A statement can be true (when it declares something that does
actually exist) or false (when it declares something that does not exist) but cannot be both.
Examples of statement
1. February has 30 days.
2. Tomorrow is Tuesday
3. Milk is white.
4. Humans are just fish with legs.
5. 4+5= 10
6. Dogs have 8 legs.
7. 32 is even
NB: All these are examples of statement since some are true whilst some are false.
4
NOT STATEMENT
Note that questions and instructions/commands are not statements
because they cannot be given a truth value.
Examples:
1. Have you done it?
2. Turn the computer off.
3. Stop the bus.
4. Tell me the time.
5
PROPOSITIONS
• The basic items that logic deals with are propositions. Propositions are
used to express beliefs. Propositions is the meaningful content of a statement.
• A proposition can be simple or complex.
• Examples of simple propositions which can either be true or false statement:
1. Dogs are mammals
2. Kate is a beautiful girl
3. Laptops are expensive
4. Roses are red
5. All cars have engine.
6
PROPOSITIONS
• Examples of complex propositions:
1. Dogs are mammals and cats are mammals.
2. Either you like chicken or you like fish.
3. I may come there or come later.
Note that what is connecting the two sentences are what we call connectives.
CONNECTIVES
Connectives are language of the propositional logic such as:
8
PROPOSITIONAL LOGIC
• Translate the following propositions;
1. If I write an exam and I cheat then I will get caught and I will fail.
solution:
Let P = I write an exam
q=I cheat
k= I will get caught
f= I will fail
Hence, (p ∧q) ⇒ (k ∧f)
9
EXAMPLE 2
• If James does not die then Mary will not get any money and James
family will be happy.
Solution:
Let p= James die
¬ p = James does not die
q= Mary will get money
¬q = Mary will not get any money
k= James family will be happy
Therefore: ¬ p ⇒ (¬q ∧k)
10
TRY
• Translate the following sentences given the statements.
1. My shirt is gray and my shorts are not.
2. I am not wealthy but I like quality things. If I go to the mall then I will buy shoes.
3. If Harry comes to work today then I will borrow his bag and I will take it to the
program.