Skip to main content

Discrete Mathematics - Propositional Logic



The rules of mathematical logic specify methods of reasoning mathematical statements. Greek philosopher, Aristotle, was the pioneer of logical reasoning. Logical reasoning provides the theoretical base for many areas of mathematics and consequently computer science. It has many practical applications in computer science like design of computing machines, artificial intelligence, definition of data structures for programming languages etc.
Propositional Logic is concerned with statements to which the truth values, “true” and “false”, can be assigned. The purpose is to analyze these statements either individually or in a composite manner.

Prepositional Logic – Definition

A proposition is a collection of declarative statements that has either a truth value "true” or a truth value "false". A propositional consists of propositional variables and connectives. We denote the propositional variables by capital letters (A, B, etc). The connectives connect the propositional variables.
Some examples of Propositions are given below −
  • "Man is Mortal", it returns truth value “TRUE”
  • "12 + 9 = 3 – 2", it returns truth value “FALSE”
The following is not a Proposition −
  • "A is less than 2". It is because unless we give a specific value of A, we cannot say whether the statement is true or false.

Connectives

In propositional logic generally we use five connectives which are −
  • OR ()
  • AND ()
  • Negation/ NOT (¬)
  • Implication / if-then ()
  • If and only if ().
OR () − The OR operation of two propositions A and B (written as AB) is true if at least any of the propositional variable A or B is true.
The truth table is as follows −
ABA ∨ B
TrueTrueTrue
TrueFalseTrue
FalseTrueTrue
FalseFalseFalse
AND () − The AND operation of two propositions A and B (written as AB) is true if both the propositional variable A and B is true.
The truth table is as follows −
ABA ∧ B
TrueTrueTrue
TrueFalseFalse
FalseTrueFalse
FalseFalseFalse
Negation (¬) − The negation of a proposition A (written as ¬A) is false when A is true and is true when A is false.
The truth table is as follows −
A¬ A
TrueFalse
FalseTrue
Implication / if-then () − An implication AB is the proposition “if A, then B”. It is false if A is true and B is false. The rest cases are true.
The truth table is as follows −
ABA → B
TrueTrueTrue
TrueFalseFalse
FalseTrueTrue
FalseFalseTrue
If and only if () − AB is bi-conditional logical connective which is true when p and q are same, i.e. both are false or both are true.
The truth table is as follows −
ABA ⇔ B
TrueTrueTrue
TrueFalseFalse
FalseTrueFalse
FalseFalseTrue

Tautologies

A Tautology is a formula which is always true for every value of its propositional variables.
Example − Prove [(AB)A]B is a tautology
The truth table is as follows −
ABA → B(A → B) ∧ A[( A → B ) ∧ A] → B
TrueTrueTrueTrueTrue
TrueFalseFalseFalseTrue
FalseTrueTrueFalseTrue
FalseFalseTrueFalseTrue
As we can see every value of [(AB)A]B is "True", it is a tautology.

Contradictions

A Contradiction is a formula which is always false for every value of its propositional variables.
Example − Prove (AB)[(¬A)(¬B)] is a contradiction
The truth table is as follows −
ABA ∨ B¬ A¬ B(¬ A) ∧ ( ¬ B)(A ∨ B) ∧ [( ¬ A) ∧ (¬ B)]
TrueTrueTrueFalseFalseFalseFalse
TrueFalseTrueFalseTrueFalseFalse
FalseTrueTrueTrueFalseFalseFalse
FalseFalseFalseTrueTrueTrueFalse
As we can see every value of (AB)[(¬A)(¬B)] is “False”, it is a contradiction.

Contingency

A Contingency is a formula which has both some true and some false values for every value of its propositional variables.
Example − Prove (AB)(¬A) a contingency
The truth table is as follows −
ABA ∨ B¬ A(A ∨ B) ∧ (¬ A)
TrueTrueTrueFalseFalse
TrueFalseTrueFalseFalse
FalseTrueTrueTrueTrue
FalseFalseFalseTrueFalse
As we can see every value of (AB)(¬A) has both “True” and “False”, it is a contingency.

Comments

Popular posts from this blog

Discrete Mathematics - Rules of Inference

To deduce new statements from the statements whose truth that we already know,  Rules of Inference  are used. What are Rules of Inference for? Mathematical logic is often used for logical proofs. Proofs are valid arguments that determine the truth values of mathematical statements. An argument is a sequence of statements. The last statement is the conclusion and all its preceding statements are called premises (or hypothesis). The symbol “ ∴ ∴ ”, (read therefore) is placed before the conclusion. A valid argument is one where the conclusion follows from the truth values of the premises. Rules of Inference provide the templates or guidelines for constructing valid arguments from the statements that we already have. Table of Rules of Inference Rule of Inference Name Rule of Inference Name P ∴ P ∨ Q P ∴ P ∨ Q Addition P ∨ Q ¬ P ∴ Q P ∨ Q ¬ P ∴ Q Disjunctive Syllogism P Q ∴ P ∧ Q P Q ∴ P ∧ Q Conjunction P → Q Q → R ∴ P → R P → Q Q → R ∴ P → R ...

5 best private search engines and why you need to use them.

5 best private search engines and why you need to use them  By:  Boniyeamin laju   ▪   May 31, 2019   ▪ 3 minute read 5 best private search engines and why you need to use  Normal browsers like Google and Bing are designed to track users’ activities and profile their online behavior. The primary reason for this is to create advertisements that will be attractive to the user. However, there-there is always the concern of  personal information being compromised  due to security breaches, state surveillance, and unauthorized data sharing. Fortunately,  private search engines  can help keep your private information safe. Simply put, Private Search Engines, also known as PSE, uses proxy and encrypted search request to  hide your personal information  from anyone looking to misuse your information. Below you will find more information about what a PSE is, how it works, and wh...