Prerequisite: Predicates and Quantifiers Set 2, Propositional Equivalences Every Theorem in Mathematics, or any subject for that matter, is supported by underlying proofs. These proofs are nothing but a set of arguments that are conclusive evidence of the validity of the theory. The arguments are chained together using Rules of Inferences to deduce new statements and ultimately prove that the theorem is valid.
Important Definitions :
1. Argument – A sequence of statements, premises, that end with a conclusion.
2. Validity – A deductive argument is said to be valid if and only if it takes a form that makes it impossible for the premises to be true and the conclusion nevertheless to be false.
3. Fallacy – An incorrect reasoning or mistake which leads to invalid arguments.
Structure of an Argument : As defined, an argument is a sequence of statements called premises which end with a conclusion.
Premises -
Conclusion - 
is a tautology, then the argument is termed valid otherwise termed as invalid. The argument is written as –

Rules of Inference : Simple arguments can be used as building blocks to construct more complicated valid arguments. Certain simple arguments that have been established as valid are very important in terms of their usage. These arguments are called Rules of Inference. The most commonly used Rules of Inference are tabulated below –
![Rendered by QuickLaTeX.com \begin{tabular}{||c||c||c||} \hline Rule of Inference & Tautology & Name\\ \hline \rule{0pt}{8ex} \shortstack[l]{p \\ p\rightarrow q \\ \rule{1cm}{0.5pt}\\ \therefore q}& (p\wedge (p\rightarrow q)) \rightarrow q & Modus Ponens \\ \hline \rule{0pt}{8ex} \shortstack[l]{\neg q \\ p\rightarrow q \\ \rule{1cm}{0.5pt}\\ \therefore \neg p}& (\neg q \wedge (p\rightarrow q)) \rightarrow \neg p & Modus Tollens \\ \hline \rule{0pt}{8ex} \shortstack[l]{p\rightarrow q \\ q\rightarrow r \\ \rule{1.3cm}{0.5pt}\\ \therefore p \rightarrow r}& ((p\rightarrow q) \wedge (q\rightarrow r)) \rightarrow (p\rightarrow r) & Hypothetical syllogism \\ \hline \rule{0pt}{8ex} \shortstack[l]{ \neg p \\ p\vee q \\ \rule{0.8cm}{0.5pt}\\ \therefore q} & (\neg p \wedge (p\vee q)) \rightarrow q & Disjunctive Syllogism \\ \hline \rule{0pt}{8ex} \shortstack[l]{p \\ \rule{1.5cm}{0.5pt} \\ \therefore (p \vee q)}& p\rightarrow (p\vee q) & Addition \\ \hline \rule{0pt}{8ex} \shortstack[l]{ (p\wedge q)\rightarrow r \\ \rule{2.3cm}{0.5pt}\\ \therefore p\rightarrow (q\rightarrow r)} & ((p\wedge q)\rightarrow r) \rightarrow (p\rightarrow (q\rightarrow r)) & Exportation\\ \hline \rule{0pt}{8ex} \shortstack[l]{p\vee q\\\neg p\vee r \\ \rule{1.2cm}{0.5pt} \\ \therefore q\vee r}& ((p\vee q) \wedge(\neg p\vee r)) \rightarrow q\vee r & Resolution \\ \hline \end{tabular}](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-557f65414714e2cde89ee6709e65a857_l3.png)
Similarly, we have Rules of Inference for quantified statements –
![Rendered by QuickLaTeX.com \begin{tabular}{||l||l||} \hline Rule of Inference & Name\\ \hline \hline \rule{0pt}{6ex} \shortstack[l]{\forall xP(x) \\ \rule{1cm}{0.5pt}\\ \therefore P(c)} & Universal instantiation \\ \hline \rule{0pt}{6ex} \shortstack[l]{P(c) for an arbitrary c\\ \rule{4cm}{0.5pt}\\ \therefore \forall xP(x)} & Universal generalization \\ \hline \rule{0pt}{6ex} \shortstack[l]{\exists xP(x)\\ \rule{3cm}{0.5pt} \\ \therefore P(c)\:for\:some\:c} & Existential instantiation \\ \hline \rule{0pt}{6ex} \shortstack[l]{P(c) for some c \\ \rule{2.6cm}{0.5pt}\\ \therefore \exists xP(x)} & Existential generalization \\ \hline \end{tabular}](https://www.geeksforgeeks.org/wp-content/ql-cache/quicklatex.com-ef04c63c865b9f8c35c1864087db39b1_l3.png)
Let’s see how Rules of Inference can be used to deduce conclusions from given arguments or check the validity of a given argument. Example : Show that the hypotheses “It is not sunny this afternoon and it is colder than yesterday”, “We will go swimming only if it is sunny”, “If we do not go swimming, then we will take a canoe trip”, and “If we take a canoe trip, then we will be home by sunset” lead to the conclusion “We will be home by sunset”. The first step is to identify propositions and use propositional variables to represent them.
“It is sunny this afternoon”
“It is colder than yesterday”
“We will go swimming”
“We will take a canoe trip”
“We will be home by sunset” The hypotheses are –
,
,
, and
. The conclusion is –
To deduce the conclusion we must use Rules of Inference to construct a proof using the given hypotheses.
Resolution Principle : To understand the Resolution principle, first we need to know certain definitions.
- Literal – A variable or negation of a variable. Eg-

- Sum – Disjunction of literals. Eg-

- Product – Conjunction of literals. Eg-

- Clause – A disjunction of literals i.e. it is a sum.
- Resolvent – For any two clauses
and
, if there is a literal
in
that is complementary to a literal
in
, then removing both and joining the remaining clauses through a disjunction produces another clause
.
is called the resolvent of
and 
For example,
[Tex]C_{2} = \neg p\vee \neg s \vee t[/Tex]
Here,
and
are complementary to each other. Removing them and joining the remaining clauses with a disjunction gives us-
We could skip the removal part and simply join the clauses to get the same resolvent.
This is also the Rule of Inference known as Resolution. Theorem – If
is the resolvent of
and
, then
is also the logical consequence of
and
. The Resolution Principle – Given a set
of clauses, a (resolution) deduction of
from
is a finite sequence
of clauses such that each
is either a clause in
or a resolvent of clauses preceding
and
. We can use the resolution principle to check the validity of arguments or deduce conclusions from them. Other Rules of Inference have the same purpose, but Resolution is unique. It is complete by it’s own. You would need no other Rule of Inference to deduce the conclusion from the given argument. To do so, we first need to convert all the premises to clausal form. The next step is to apply the resolution Rule of Inference to them step by step until it cannot be applied any further. For example, consider that we have the following premises –
[Tex]s\rightarrow \neg r[/Tex]
The first step is to convert them to clausal form –
[Tex]C_{3}: \:p[/Tex]
From the resolution of
and
,
From the resolution of
and
,
From the resolution of
and
,
Therefore, the conclusion is
.
Note:Implications can also be visualised on octagon as,
It shows how implication changes on changing order of their exists and for all symbols. GATE CS Corner Questions Practicing the following questions will help you test your knowledge. All questions have been asked in GATE in previous years or in GATE Mock Tests. It is highly recommended that you practice them. 1. GATE CS 2004, Question 70 2. GATE CS 2015 Set-2, Question 13 References- Rules of Inference – Simon Fraser University Rules of Inference – Wikipedia Fallacy – Wikipedia Book – Discrete Mathematics and Its Applications by Kenneth Rosen This article is contributed by Chirag Manwani. If you like GeeksforGeeks and would like to contribute, you can also write an article using write.geeksforgeeks.org or mail your article to review-team@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks. Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above.