Logic (from the Ancient Greek: λογική, logike) has two meanings: first, it describes the use of valid reasoning in some activity;
second, it names the normative study of reasoning or a branch thereof. In the latter sense, it 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:
abductive reasoning, and