Вы находитесь на странице: 1из 4

DISCRETE STRUCTURES – IT113

INSTRUCTOR: MS. MARICRIS R. MANALOTO


Module 1 –Fundamentals of Propositional Logic
EMAIL: crisregadillomanaloto@gmail.com

Introduction to LOGIC major concern is whether or not the truth or falsehood


of a certain sentence follows from those of a set of
Logic is a language for reasoning. It is a collection of sentences, and if so, how. Thus sentences considered
rules we use when doing logical reasoning. Human in this logic are not arbitrary sentences but are the
reasoning has been observed over centuries from at ones that are true or false. This kind of sentences are
least the times of Greeks, and patterns appearing in called Propositions.
reasoning have been extracted, abstracted, and
streamlined. The foundation of the logic we are going Proposition
to learn here was laid down by a British Sentences considered in propositional logic are
mathematician George Boole in the middle of the not arbitrary sentences but are the ones that are
19th century, either t rue or false, but not both.
In logic we are interested in true or false of If a proposition is true, then we say it has a truth
statements, and how the truth/falsehood of a value of "true"; if a proposition is false, its truth value is
statement can be determine by other statements. "false".
There are various types of logic such as: Example:
 logic of sentences (propositional logic)  Grass is Green True
 logic of objects (predicate logic)  2+2=5 False
In t he given examples, bot h are
 logic involving uncertainties
answerable by True or False. Therefore t hey are
 logic dealing with incoherence an examples of Proposit ion.

 temporal logic  Close the door


Propositional logic is a logic at the sentential level.  Is it hot?
The smallest unit we deal with in propositional logic is The following examples above are not
a sentence. We do not go inside individual sentences examples of Propositions, because t hey are
and analyze or discuss their meanings. We are going not answerable by t he True or False.
to be interested only in true or false of sentences, and
1|P age
DISCRETE STRUCTURES – IT113
INSTRUCTOR: MS. MARICRIS R. MANALOTO
Module 1 –Fundamentals of Propositional Logic
EMAIL: crisregadillomanaloto@gmail.com

NOT:
Elements of Propositional Logic
The propositions and connectives are the basic
elements of propositional logic. Though there are
many connectives, we are going to use the
following five basic connectives:
This table is easy to understand. If P is t rue, its
Five Basic connectives: They are also denoted negation is false. If P is false, then is it true.
by the symbols:
AND:
NOT
AND should be t rue when both P and Q are t rue,
and false otherwise:
OR

IF_THEN (IMPLY)
IF_AND_ONLY_IF

Truth Table

Mathematics normally works with a two-valued logic:


Every statement is either True or False. You can
use truth tables to determine the truth or falsity of a
complicated statement based on the truth or falsity
of its simple components.

2|P age
DISCRETE STRUCTURES – IT113
INSTRUCTOR: MS. MARICRIS R. MANALOTO
Module 1 –Fundamentals of Propositional Logic
EMAIL: crisregadillomanaloto@gmail.com

OR:

is t rue if either P is t rue or Q is t rue (or both). It's


only false if both P and Q are false.

Notice that we use here an important principle of


IF_THEN: Aristotelian logic: every sensible statement is either
true or false. There is no “in between” status. When P
A statement of the form “If P then Q” asserts that is false we can hardly assert that P⇒Q is false. For P⇒Q
whenever P is true then Q is also true. This assertion (or asserts that “whenever P is true then Q is true”, and P
“promise”) is tested when P is true, because it is then is not true! Put in other words, when P is false then the
claimed that something else (namely Q) is true as statement P⇒Q is not tested. It therefore cannot be
well. However, when Q is false then the statement “If false. So it must be true. We refer to P as the
P then Q” claims nothing. Therefore when P is True hypothesis of the implication and to Q as the
then Q is False it is False, True otherwise. Using the conclusion of the implication. When the if-then
symbols P⇒Q to denote “If P then Q”, we obtain the statement is true, then the hypothesis implies the
following truth table: conclusion.

3|P age
DISCRETE STRUCTURES – IT113
INSTRUCTOR: MS. MARICRIS R. MANALOTO
Module 1 –Fundamentals of Propositional Logic
EMAIL: crisregadillomanaloto@gmail.com

IF_AND_ONLY_IF:

means that P and Q are equivalent. So the


double implication is t rue if P and Q are both t rue or
if P and Q are both false; otherwise, the double
implication is false.

Exclusive Disjunction
I n addition to “inclusive or” (Disjunction) there is
Remarks. another meaning for OR in English called the “exclusive
or”, which means “either one or the other, but not both.”
When you're constructing a truth table, you have to I n logic exclusive or is referred to us Exclusiv e Disjunction.
consider all possible assignments of True (T) and False Exclusiv e or can be expressed using the basic
(F) to the component statements. For example, connectiv es ~(P Q) or Ɵ
suppose the component statements are P, Q, and R.
Each of these statements can be either true or false, P Q PƟQ
so there are possibilities. T T F
When you're listing the possibilities, you should assign T F T
truth values to the component statements in a F T T
systematic way to avoid duplication or omission. The
easiest approach is to use lexicographic ordering. F F F
Thus, for a compound statement with three
components P, Q, and R:

4|P age

Вам также может понравиться