×

Inference Rules in Proposition Logic

Inference rules are those rules which are used to describe certain conclusions. The inferred conclusions lead to the desired goal state.

In propositional logic, there are various inference rules which can be applied to prove the given statements and conclude them.

There are following laws/rules used in propositional logic:

  • Modus Tollen: Let, P and Q be two propositional symbols:

Rule: Given, the negation of Q as (~Q).

If P?Q, then it will be (~P), i.e., the negation of P.

Example: If Aakash goes to the temple, then Aakash is a religious person. Aakash is not a religious person. Prove that Aakash doesn’t go to temple.

Solution: Let, P= Aakash goes to temple.

Q= Aakash is religious. Therefore, (~Q)= Aakash is not a religious person.

To prove: ~P?~Q

By using Modus Tollen rule, P?Q, i.e., ~P?~Q (because the value of Q is (~Q)).

Therefore, Aakash doesn’t go to the temple.

  • Modus Ponen: Let, P and Q be two propositional symbols:

Rule: If P?Q is given, where P is positive, then Q value will also be positive.

Example: If Sheero is intelligent, then Sheero is smart. Sheero is intelligent. Prove that Sheero is smart.

Solution: Let, A= Sheero is intelligent.

B= Sheero is smart.

To prove: A?B.

By using Modus Ponen rule, A?B where A is positive. Hence, the value of B will be true. Therefore, Sheero is smart.

  • Syllogism: It is a type of logical inference rule which concludes a result by using deducting reasoning approach.

Rule: If there are three variables say P, Q, and R where

P?Q and Q?R then P?R.

Example: Given a problem statement:

If Ram is the friend of Shyam and Shyam is the friend of Rahul, then Ram is the friend of Rahul.

Solution: Let, P= Ram is the friend of Shyam.

Q= Shyam is the friend of Rahul.

R= Ram is the friend of Rahul.

It can be represented as: If (P?Q) ? (Q?R)= (P?R).

  • Disjunctive Syllogism

Rule: If (~P) is given and (P V Q), then the output is Q.

Example: Sita is not beautiful or she is obedient.

Solution: Let, (~P)= Sita is beautiful.

 Q= She is obedient.

 P= Sita is not beautiful.

It can be represented as (P V Q) which results Sita is obedient.

Note: Logical equivalence rules can also be used as Inference rules in Proposition logic.

We can also apply the inference rules to the logical equivalence rules as well.

  • Biconditional Elimination: If Aó B then (A?B) ? (B?A) or

If (A?B) ? (B?A) then A óB. (using one side implication rule).

  • Contrapositive: If ¬(A óB) then ¬((A?B) ? (B?A))

We can re-obtain it using De Morgan’s and Modus Ponen rule. 

Using inference rules, we can also define a proof problem as follows:

  • Initial State: It is the initial  knowledge base.
  • Actions: It is the set of actions which contains all the inference rules applied over all the sentences that match the top half of the inference rule.
  • Result: When we add the sentence at the bottom of the inference rule, it gives the result of the applied action.
  • Goal: It is the state which contains that sentence we are trying to prove.

Note: It is more efficient to find a proof, as it removes irrelevant prepositions.


Related Topics

Resolution Method in AI

Resolution Method in AI Resolution method is an inference rule which is used in both Propositional as well as First-order Predicate Logic in different ways. This method is basically used for proving the...

5 minutes read.

Neural Networks

Neural Networks are one of the most popular techniques and tools in Machine learning. Neural Networks were inspired by the human brain as early as in the 1940s. Researchers studied the...

5 minutes read.

Gradient Descent

Gradient Descent When training a neural network, an algorithm is used to minimize the loss. This algorithm is called as Gradient Descent. And loss refers to the incorrect outputs given by...

6 minutes read.

Adversarial Search in Artificial Intelligence

AI Adversarial search: Adversarial search is a game-playing technique where the agents are surrounded by a competitive environment. A conflicting goal is given to the agents (multiagent). These agents compete...

3 minutes read.

Natural Language Processing

Natural Language Processing in AI Topics Covered in Language Module Natural Language ProcessingSyntax and SemanticsContext-Free GrammarNLTKN-gramsTokenizationBag of WordsNaïve Bayes In language, we will cover how Artificial Intelligence is used to process human language...

13 minutes read.

Heuristic Functions in Artificial Intelligence

Heuristic Functions in AI: As we have already seen that an informed search make use of heuristic functions in order to reach the goal node in a more prominent way....

3 minutes read.

Theory of First-order Logic

Theory of First-order Logic First-order logic is also called Predicate logic and First-order predicate calculus (FOPL). It is a formal representation of logic in the form of quantifiers. In predicate logic, the input is taken...

4 minutes read.

Hill Climbing Algorithm in AI

Hill Climbing Algorithm: Hill climbing search is a local search problem. The purpose of the hill climbing search is to climb a hill and reach the topmost peak/ point of...

4 minutes read.

What is Artificial Super Intelligence (ASI)

Before starting with Artificial Super Intelligence, first, we have to know what Artificial Intelligence is. Artificial Intelligence is a field which has a long history. Artificial intelligence is the ability...

3 minutes read.

Artificial Intelligence Tutorial | AI Tutorial

Today, Artificial Intelligence (AI) has become the norm of how humans communicate with and understand technology. Even though you've been hearing this buzzword now and then, do you know what...

6 minutes read.

Backward Chaining in AI: Artificial Intelligence

Backward Chaining is a backward approach which works in the backward direction. It begins its journey from the back of the goal. Like, forward chaining, we have backward chaining for Propositional logic as...

6 minutes read.

Top 7 Artificial Intelligence and Machine Learning trends for 2024

Artificial Intelligence is the ability of machines to perform the same function as human beings, like problem-solving, learning, reasoning and recognizing. Machine Learning is another branch of Computer Science and...

6 minutes read.

Information Retrieval

Information Retrieval: In order to analyze and categorize the text, we'd like to be able to figure out information about the text, some meaning about the text as well. And,...

14 minutes read.

Unsupervised Learning in AI

Unsupervised Learning in AI Unsupervised LearningIntroductionClusteringComparison between Supervised, Unsupervised, and Reinforcement Learning. Unsupervised Learning This is the third major category of Machine Learning. Unsupervised learning happens when we have data without additional feedback,...

2 minutes read.

Alpha-beta Pruning | Artificial Intelligence

Alpha-beta pruning is an advance version of MINIMAX algorithm. The drawback of minimax strategy is that it explores each node in the tree deeply to provide the best path among all the...

3 minutes read.

Differences in Artificial Intelligence

Difference between Intelligence and Artificial Intelligence Intelligence Artificial Intelligence It is a natural process or quality given to human beings. ...

3 minutes read.

8 best topics for research and thesis in artificial intelligence

AI, abbreviated as Artificial Intelligence, is a field which has a long history. Artificial Intelligence is the ability of machines that perform the same function as human beings, like problem-solving,...

3 minutes read.

Knowledge Representation in AI

In this section, we will understand how to represent the knowledge in the form which could be understood by the knowledge-based agents. The knowledge that is stored in the system is related to...

5 minutes read.

Informed Search/ Heuristic Search in AI

An informed search is more efficient than an uninformed search because in informed search, along with the current state information,  some additional information is also present, which make it easy to reach the...

6 minutes read.

Propositional Logic

It is a branch of logic which is also known as statement logic, sentential logic, zeroth-order logic, and many more. It works with the propositions and its logical connectivities. It deals with the...

5 minutes read.