Logic (from the Ancient Greek: λογική, logike) is the use and study of valid reasoning. The study of logic features most prominently in the subjects of philosophy, mathematics, and computer science.Logic was studied in several ancient civilizations, including India, China, Persia and Greece. In the West, logic was established as a formal discipline by Aristotle, who gave it a fundamental place in philosophy. The study of logic was part of the classical trivium, which also included grammar and rhetoric. Logic was further extended by Al-Farabi who categorized it into two separate groups (idea and proof). Later, Avicenna revived the study of logic and developed relationship between temporalis and the implication. In the East, logic was developed by Buddhists and Jains.Logic is often divided into three parts: inductive reasoning, abductive reasoning, and deductive reasoning.