Rules of inference are a set of logical principles and deductive rules that draw conclusions from existing information or assertions.
Following are the types of inference rules:
Modus ponens
Modus tollens
Hypothetical syllogism
Disjunctive syllogism
Addition
Simplification
Resolution
Before we begin, let's suppose the following statements for all the types mentioned below:
P: It is raining.
Q: The streets are wet.
R: Roads are slippery.
If P implies Q and P is true, then Q is true.
If it is raining, then the streets are wet (P -> Q), and it is raining (P); therefore, the streets are wet (Q).
If P implies Q and Q is false, then P is false.
If it is raining, then the streets are wet (P -> Q), and streets are not wet (~Q); therefore, it is not raining (~P).
If P implies Q and Q implies R, then P implies R.
If it is raining, then the streets are wet (P -> Q), and if the streets are wet, then roads are slippery (Q -> R); therefore, if it is raining, then roads are slippery (P -> R).
If P or Q is true, and P is false, then Q is true.
It is raining or streets are wet (P∨Q), and it is not raining (~P); therefore, streets are wet (Q).
If P is true, then P or Q is true.
It is raining (P), therefore it is raining or streets are wet (P∨Q).
If P and Q is true, then P is true.
It is raining and streets are wet (P∧Q); therefore it is raining (P).
If both P or Q and not P or R is true, then Q or R is true.
It is raining or streets are wet (P∨Q) and it is not raining or roads are slippery (~P∨R); therefore streets are wet or roads are slippery (Q∨R).
Inference is a fundamental process that significantly impacts various applications, including natural language processing, expert systems, robotics, and computer vision.
Natural language processing (NLP): Based on context and prior knowledge, the inference understands the meaning of sentences.
Computer vision: The inference recognizes object as an image, based on patterns and features.
Robotics: Plans and actions are executed by the inference based on the environment.
Free Resources