| Part of a series on |
| Philosophy |
|---|
Thehistory of logic deals with the study of the development of the science of validinference (logic). Formal logics developed in ancient times inIndia,China, andGreece. Greek methods, particularlyAristotelian logic (or term logic) as found in theOrganon, found wide application and acceptance in Western science and mathematics for millennia.[1] TheStoics, especiallyChrysippus, began the development ofpredicate logic.
Christian andIslamic philosophers such asBoethius (died 524),Avicenna (died 1037),Thomas Aquinas (died 1274) andWilliam of Ockham (died 1347) further developed Aristotle's logic in theMiddle Ages, reaching a high point in the mid-fourteenth century, withJean Buridan. The period between the fourteenth century and the beginning of the nineteenth century saw largely decline and neglect, and at least one historian of logic regards this time as barren.[2]Empirical methods ruled the day, as evidenced by SirFrancis Bacon'sNovum Organon of 1620.
Logic revived in the mid-nineteenth century, at the beginning of a revolutionary period when the subject developed into a rigorous and formal discipline which took as its exemplar the exact method ofproof used inmathematics, a hearkening back to the Greek tradition.[3] The development of the modern "symbolic" or "mathematical" logic during this period by the likes ofBoole,Frege,Russell, andPeano is the most significant in the two-thousand-year history of logic, and is arguably one of the most important and remarkable events in humanintellectual history.[4]
Progress inmathematical logic in the first few decades of the twentieth century, particularly arising from the work ofGödel andTarski, had a significant impact onanalytic philosophy andphilosophical logic, particularly from the 1950s onwards, in subjects such asmodal logic,temporal logic,deontic logic, andrelevance logic.
TheNasadiya Sukta of theRigveda (RV 10.129) containsontological speculation in terms of various logical divisions that were later recast formally as the four circles ofcatuskoti: "A", "not A", "A and 'not A'", and "not A and not not A".
Who really knows?
Who will here proclaim it?
Whence was it produced? Whence is this creation?
The gods came afterwards, with the creation of this universe.
Who then knows whence it has arisen?
— Nasadiya Sukta, concerns theorigin of the universe,Rig Veda,10:129-6[5][6][7]
Logic began independently inancient India and continued to develop to early modern times without any known influence from Greek logic.[8]
Though the origins in India of public debate (pariṣad), one form of rational inquiry, are not clear, we know that public debates were common in preclassical India, for they are frequently alluded to in variousUpaniṣads and in the early Buddhist literature. Public debate is not the only form of public deliberations in preclassical India. Assemblies (pariṣad orsabhā) of various sorts, comprising relevant experts, were regularly convened to deliberate on a variety of matters, including administrative, legal and religious matters.[citation needed]
A philosopher named Dattatreya is stated in theBhagavata Purana to have taught Anviksiki to Aiarka, Prahlada and others. It appears from theMarkandeya purana that the Anviksiki-vidya expounded by him consisted of a mere disquisition on soul in accordance with the yoga philosophy. Dattatreya expounded the philosophical side of Anviksiki and not its logical aspect.[9][10]
While the teachers mentioned before dealt with some particular topics of Anviksiki, the credit of founding the Anviksiki in its special sense of a science is to be attributed toMedhatithi Gautama (c. 6th century BC). Guatama founded theanviksiki school of logic.[11] TheMahabharata (12.173.45), around the 5th century BC, refers to theanviksiki andtarka schools of logic.
Pāṇini (c. 5th century BC) developed a form of logic (to whichBoolean logic has some similarities) for his formulation ofSanskrit grammar. Logic is described byChanakya (c. 350–283 BC) in hisArthashastra as an independent field of inquiry.[12]
Two of the six Indian schools of thought deal with logic:Nyaya andVaisheshika. TheNyāya Sūtras ofAksapada Gautama (c. 2nd century AD) constitute the core texts of the Nyaya school, one of the six orthodox schools ofHindu philosophy. Thisrealist school developed a rigid five-member schema ofinference involving an initial premise, a reason, an example, an application, and a conclusion.[13] TheidealistBuddhist philosophy became the chief opponent to the Naiyayikas.

Jains made its own unique contribution to this mainstream development of logic by also occupying itself with the basic epistemological issues, namely, with those concerning the nature of knowledge, how knowledge is derived, and in what way knowledge can be said to be reliable.
The Jains have doctrines ofrelativity used for logic and reasoning:
These concepts inJain philosophy made important contributions to the thought, especially in the areas of skepticism and relativity.[4][14]
Nagarjuna (c. 150–250 AD), the founder of theMadhyamaka ("Middle Way") developed an analysis known as thecatuṣkoṭi (Sanskrit), a "four-cornered" system of argumentation that involves the systematic examination and rejection of each of the four possibilities of a proposition,P:

However,Dignāga (c 480–540 AD) is sometimes said to have developed a formal syllogism,[15] and it was through him and his successor,Dharmakirti, thatBuddhist logic reached its height; it is contested whether their analysis actually constitutes a formal syllogistic system. In particular, their analysis centered on the definition of an inference-warranting relation, "vyapti", also known as invariable concomitance or pervasion.[16] To this end, a doctrine known as "apoha" or differentiation was developed.[17] This involved what might be called inclusion and exclusion of defining properties.
Dignāga's famous "wheel of reason" (Hetucakra) is a method of indicating when one thing (such as smoke) can be taken as an invariable sign of another thing (like fire), but the inference is often inductive and based on past observation. Matilal remarks that Dignāga's analysis is much like John Stuart Mill's Joint Method of Agreement and Difference, which is inductive.[18]
In China, a contemporary ofConfucius,Mozi, "Master Mo", is credited with founding theMohist school, whose canons dealt with issues relating to valid inference and the conditions of correct conclusions. In particular, one of the schools that grew out of Mohism, theLogicians, are credited by some scholars for their early investigation offormal logic. Due to the harsh rule ofLegalism in the subsequentQin dynasty, this line of investigation disappeared in China until the introduction of Indian philosophy byBuddhists.
Valid reasoning has been employed in all periods of human history. However, logic studies theprinciples of valid reasoning, inference and demonstration. It is probable that the idea of demonstrating a conclusion first arose in connection withgeometry, which originally meant the same as "land measurement".[19] Theancient Egyptians discoveredgeometry, including the formula for the volume of atruncated pyramid.[20]Ancient Babylon was also skilled in mathematics.Esagil-kin-apli's medicalDiagnostic Handbook in the 11th century BC was based on a logical set ofaxioms and assumptions,[21] whileBabylonian astronomers in the 8th and 7th centuries BC employed aninternal logic within their predictive planetary systems, an important contribution to thephilosophy of science.[22]
While the ancient Egyptians empirically discovered some truths of geometry, the great achievement of the ancient Greeks was to replace empirical methods by demonstrativeproof. BothThales andPythagoras of thePre-Socratic philosophers seemed aware of geometric methods.
Fragments of early proofs are preserved in the works of Plato and Aristotle,[23] and the idea of a deductive system was probably known in the Pythagorean school and thePlatonic Academy.[20] The proofs ofEuclid of Alexandria are a paradigm of Greek geometry. The three basic principles of geometry are as follows:
Further evidence that early Greek thinkers were concerned with the principles of reasoning is found in the fragment calleddissoi logoi, probably written at the beginning of the fourth century BC. This is part of a protracted debate about truth and falsity.[24] In the case of the classical Greek city-states, interest in argumentation was also stimulated by the activities of theRhetoricians or Orators and theSophists, who used arguments to defend or attack a thesis, both in legal and political contexts.[25]

It is said Thales, most widely regarded as the first philosopher in theGreek tradition,[26][27] measured the height of thepyramids by their shadows at the moment when his own shadow was equal to his height. Thales was said to have had a sacrifice in celebration of discoveringThales' theorem just as Pythagoras had thePythagorean theorem.[28]
Thales is the first known individual to usedeductive reasoning applied to geometry, by deriving four corollaries to his theorem, and the first known individual to whom a mathematical discovery has been attributed.[29]Indian and Babylonian mathematicians knew his theorem for special cases before he proved it.[30] It is believed that Thales learned that an angle inscribed in asemicircle is a right angle during his travels toBabylon.[31]

Before 520 BC, on one of his visits to Egypt or Greece, Pythagoras might have met the c. 54 years older Thales.[32] The systematic study of proof seems to have begun with the school of Pythagoras (i. e. the Pythagoreans) in the late sixth century BC.[20] Indeed, the Pythagoreans, believing all was number, are the first philosophers to emphasizeform rather thanmatter.[33]
The writing ofHeraclitus (c. 535 – c. 475 BC) was the first place where the wordlogos was given special attention in ancient Greek philosophy,[34] Heraclitus held that everything changes and all was fire and conflicting opposites, seemingly unified only by thisLogos. He is known for his obscure sayings.
Thislogos holds always but humans always prove unable to understand it, both before hearing it and when they have first heard it. For though all things come to be in accordance with thislogos, humans are like the inexperienced when they experience such words and deeds as I set out, distinguishing each in accordance with its nature and saying how it is. But other people fail to notice what they do when awake, just as they forget what they do while asleep.
— Diels-Kranz, 22B1

In contrast to Heraclitus,Parmenides held that all is one and nothing changes. He may have been a dissident Pythagorean, disagreeing that One (a number) produced the many.[35] "X is not" must always be false or meaningless. What exists can in no way not exist. Our sense perceptions with its noticing of generation and destruction are in grievous error. Instead of sense perception, Parmenides advocatedlogos as the means to Truth. He has been called the discoverer of logic,[36][37]
For this view, that That Which Is Not exists, can never predominate. You must debar your thought from this way of search, nor let ordinary experience in its variety force you along this way, (namely, that of allowing) the eye, sightless as it is, and the ear, full of sound, and the tongue, to rule; but (you must) judge by means of the Reason (Logos) the much-contested proof which is expounded by me.
— B 7.1–8.2
Zeno of Elea, a pupil of Parmenides, had the idea of a standard argument pattern found in the method of proof known asreductio ad absurdum. This is the technique of drawing an obviously false (that is, "absurd") conclusion from an assumption, thus demonstrating that the assumption is false.[38] Therefore, Zeno and his teacher are seen as the first to apply the art of logic.[39] Plato's dialogueParmenides portrays Zeno as claiming to have written a book defending themonism of Parmenides by demonstrating the absurd consequence of assuming that there is plurality. Zeno famously used this method to develop hisparadoxes in his arguments against motion. Suchdialectic reasoning later became popular. The members of this school were called "dialecticians" (from a Greek word meaning "to discuss").
Let no one ignorant of geometry enter here.
— Inscribed over the entrance to Plato's Academy.

None of the surviving works of the great fourth-century philosopherPlato (428–347 BC) include any formal logic,[40] but they include important contributions to the field ofphilosophical logic. Plato raises three questions:
The first question arises in the dialogueTheaetetus, where Plato identifies thought or opinion with talk or discourse (logos).[41] The second question is a result of Plato'stheory of Forms. Forms are not things in the ordinary sense, nor strictly ideas in the mind, but they correspond to what philosophers later calleduniversals, namely an abstract entity common to each set of things that have the same name. In both theRepublic and theSophist, Plato suggests that the necessary connection between the assumptions of a valid argument and its conclusion corresponds to a necessary connection between "forms".[42] The third question is aboutdefinition. Many of Plato's dialogues concern the search for a definition of some important concept (justice, truth, the Good), and it is likely that Plato was impressed by the importance of definition in mathematics.[43] What underlies every definition is a Platonic Form, the common nature present in different particular things. Thus, a definition reflects the ultimate object of understanding, and is the foundation of all valid inference. This had a great influence on Plato's studentAristotle, in particular Aristotle's notion of theessence of a thing.[44]

The logic ofAristotle, and particularly his theory of thesyllogism, has had an enormous influence inWestern thought.[45] Aristotle was the first logician to attempt a systematic analysis oflogical syntax, of noun (orterm), and of verb. He was the firstformal logician, in that he demonstrated the principles of reasoning by employing variables to show the underlyinglogical form of an argument.[46] He sought relations of dependence which characterize necessary inference, and distinguished thevalidity of these relations, from the truth of the premises. He was the first to deal with the principles ofcontradiction andexcluded middle in a systematic way.[47]

His logical works, called theOrganon, are the earliest formal study of logic that have come down to modern times. Though it is difficult to determine the dates, the probable order of writing of Aristotle's logical works is:

These works are of outstanding importance in the history of logic. In theCategories, he attempts to discern all the possible things to which a term can refer; this idea underpins his philosophical workMetaphysics, which itself had a profound influence on Western thought.
He also developed a theory of non-formal logic (i.e., the theory offallacies), which is presented inTopics andSophistical Refutations.[47]
On Interpretation contains a comprehensive treatment of the notions ofopposition and conversion; chapter 7 is at the origin of thesquare of opposition (or logical square); chapter 9 contains the beginning ofmodal logic.
ThePrior Analytics contains his exposition of the "syllogism", where three important principles are applied for the first time in history: the use of variables, a purely formal treatment, and the use of an axiomatic system.
The other great school of Greek logic is that of theStoics.[48] Stoic logic traces its roots back to the late 5th century BC philosopherEuclid of Megara, a pupil ofSocrates and slightly older contemporary of Plato, probably following in the tradition of Parmenides and Zeno. His pupils and successors were called "Megarians", or "Eristics", and later the "Dialecticians". The two most important dialecticians of the Megarian school wereDiodorus Cronus andPhilo, who were active in the late 4th century BC.

The Stoics adopted the Megarian logic and systemized it. The most important member of the school wasChrysippus (c. 278 – c. 206 BC), who was its third head, and who formalized much of Stoic doctrine. He is supposed to have written over 700 works, including at least 300 on logic, almost none of which survive.[49][50] Unlike with Aristotle, we have no complete works by the Megarians or the early Stoics, and have to rely mostly on accounts (sometimes hostile) by later sources, including prominentlyDiogenes Laërtius,Sextus Empiricus,Galen,Aulus Gellius,Alexander of Aphrodisias, andCicero.[51]
Three significant contributions of the Stoic school were (i) their account ofmodality, (ii) their theory of theMaterial conditional, and (iii) their account ofmeaning andtruth.[52]

The works ofAl-Kindi,Al-Farabi,Avicenna,Al-Ghazali,Averroes and other Muslim logicians were based on Aristotelian logic and were important in communicating the ideas of the ancient world to the medieval West.[62]Al-Farabi (Alfarabi) (873–950) was an Aristotelian logician who discussed the topics offuture contingents, the number and relation of the categories, the relation betweenlogic andgrammar, and non-Aristotelian forms ofinference.[63] Al-Farabi also considered the theories ofconditional syllogisms andanalogical inference, which were part of theStoic tradition of logic rather than the Aristotelian.[64]
Maimonides (1138-1204) wrote aTreatise on Logic (Arabic:Maqala Fi-Sinat Al-Mantiq), referring to Al-Farabi as the "second master", the first being Aristotle.
Ibn Sina (Avicenna) (980–1037) was the founder ofAvicennian logic, which replaced Aristotelian logic as the dominant system of logic in the Islamic world,[65] and also had an important influence on Western medieval writers such asAlbertus Magnus.[66] Avicenna wrote on thehypothetical syllogism[67] and on thepropositional calculus, which were both part of the Stoic logical tradition.[68] He developed an original "temporally modalized" syllogistic theory, involvingtemporal logic andmodal logic.[63] He also made use ofinductive logic, such as themethods of agreement, difference, and concomitant variation which are critical to thescientific method.[67] One of Avicenna's ideas had a particularly important influence on Western logicians such asWilliam of Ockham: Avicenna's word for a meaning or notion (ma'na), was translated by the scholastic logicians as the Latinintentio; in medieval logic andepistemology, this is a sign in the mind that naturally represents a thing.[69] This was crucial to the development of Ockham'sconceptualism: A universal term (e.g., "man") does not signify a thing existing in reality, but rather a sign in the mind (intentio in intellectu) which represents many things in reality; Ockham cites Avicenna's commentary onMetaphysics V in support of this view.[70]
Fakhr al-Din al-Razi (b. 1149) criticised Aristotle's "first figure" and formulated an early system of inductive logic, foreshadowing the system of inductive logic developed byJohn Stuart Mill (1806–1873).[71] Al-Razi's work was seen by later Islamic scholars as marking a new direction for Islamic logic, towards aPost-Avicennian logic. This was further elaborated by his student Afdaladdîn al-Khûnajî (d. 1249), who developed a form of logic revolving around the subject matter ofconceptions andassents. In response to this tradition,Nasir al-Din al-Tusi (1201–1274) began a tradition of Neo-Avicennian logic which remained faithful to Avicenna's work and existed as an alternative to the more dominant Post-Avicennian school over the following centuries.[72]
TheIlluminationist school was founded byShahab al-Din Suhrawardi (1155–1191), who developed the idea of "decisive necessity", which refers to the reduction of all modalities (necessity,possibility,contingency andimpossibility) to the single mode of necessity.[73]Ibn al-Nafis (1213–1288) wrote a book on Avicennian logic, which was a commentary of Avicenna'sAl-Isharat (The Signs) andAl-Hidayah (The Guidance).[74]Ibn Taymiyyah (1263–1328), wrote theAr-Radd 'ala al-Mantiqiyyin, where he argued against the usefulness, though not the validity, of thesyllogism[75] and in favour ofinductive reasoning.[71] Ibn Taymiyyah also argued against the certainty ofsyllogistic arguments and in favour ofanalogy; his argument is that concepts founded oninduction are themselves not certain but only probable, and thus a syllogism based on such concepts is no more certain than an argument based on analogy. He further claimed that induction itself is founded on a process of analogy. His model of analogical reasoning was based on that of juridical arguments.[76][77] This model of analogy has been used in the recent work ofJohn F. Sowa.[77]
TheSharh al-takmil fi'l-mantiq written by Muhammad ibn Fayd Allah ibn Muhammad Amin al-Sharwani in the 15th century is the last major Arabic work on logic that has been studied.[78] However, "thousands upon thousands of pages" on logic were written between the 14th and 19th centuries, though only a fraction of the texts written during this period have been studied by historians, hence little is known about the original work on Islamic logic produced during this later period.[72]

"Medieval logic" (also known as "Scholastic logic") generally means the form of Aristotelian logic developed inmedieval Europe throughout roughly the period 1200–1600.[1] For centuries after Stoic logic had been formulated, it was the dominant system of logic in the classical world. When the study of logic resumed after theDark Ages, the main source was the work of the Christian philosopherBoethius, who was familiar with some of Aristotle's logic, but almost none of the work of the Stoics.[79] Until the twelfth century, the only works of Aristotle available in the West were theCategories,On Interpretation, and Boethius's translation of theIsagoge ofPorphyry (a commentary on the Categories). These works were known as the "Old Logic" (Logica Vetus orArs Vetus). An important work in this tradition was theLogica Ingredientibus ofPeter Abelard (1079–1142). His direct influence was small,[80] but his influence through pupils such asJohn of Salisbury was great, and his method of applying rigorous logical analysis to theology shaped the way that theological criticism developed in the period that followed.[81] The proof for theprinciple of explosion, also known as the principle of Pseudo-Scotus, the law according to which any proposition can be proven from a contradiction (including its negation), was first given by the 12th century French logicianWilliam of Soissons.
By the early thirteenth century, the remaining works of Aristotle'sOrganon, including thePrior Analytics,Posterior Analytics, and theSophistical Refutations (collectively known as theLogica Nova or "New Logic"), had been recovered in the West.[82] Logical work until then was mostly paraphrasis or commentary on the work of Aristotle.[83] The period from the middle of the thirteenth to the middle of the fourteenth century was one of significant developments in logic, particularly in three areas which were original, with little foundation in the Aristotelian tradition that came before. These were:[84]
The last great works in this tradition are theLogic of John Poinsot (1589–1644, known asJohn of St Thomas), theMetaphysical Disputations ofFrancisco Suarez (1548–1617), and theLogica Demonstrativa ofGiovanni Girolamo Saccheri (1667–1733).

Traditional logic generally means the textbook tradition that begins withAntoine Arnauld's andPierre Nicole'sLogic, or the Art of Thinking, better known as thePort-Royal Logic.[89] Published in 1662, it was the most influential work on logic after Aristotle until the nineteenth century.[90] The book presents a loosely Cartesian doctrine (that the proposition is a combining of ideas rather than terms, for example) within a framework that is broadly derived from Aristotelian and medievalterm logic. Between 1664 and 1700, there were eight editions, and the book had considerable influence after that.[90] The Port-Royal introduces the concepts ofextension andintension. The account ofpropositions thatLocke gives in theEssay is essentially that of the Port-Royal: "Verbal propositions, which are words, [are] the signs of our ideas, put together or separated in affirmative or negative sentences. So that proposition consists in the putting together or separating these signs, according as the things which they stand for agree or disagree."[91]
Dudley Fenner helped popularizeRamist logic, a reaction against Aristotle. Another influential work was theNovum Organum byFrancis Bacon, published in 1620. The title translates as "new instrument". This is a reference toAristotle's work known as theOrganon. In this work, Bacon rejects the syllogistic method of Aristotle in favor of an alternative procedure "which by slow and faithful toil gathers information from things and brings it into understanding".[92] This method is known asinductive reasoning, a method which starts from empirical observation and proceeds to lower axioms or propositions; from these lower axioms, more general ones can be induced. For example, in finding the cause of aphenomenal nature such as heat, three lists should be constructed:
Then, theform nature (or cause) of heat may be defined as that which is common to every situation of the presence list, and which is lacking from every situation of the absence list, and which varies by degree in every situation of the variability list.
Other works in the textbook tradition includeIsaac Watts'sLogick: Or, the Right Use of Reason (1725),Richard Whately'sLogic (1826), andJohn Stuart Mill'sA System of Logic (1843). Although the latter was one of the last great works in the tradition, Mill's view that the foundations of logic lie in introspection[93] influenced the view that logic is best understood as a branch of psychology, a view which dominated the next fifty years of its development, especially in Germany.[94]

G.W.F. Hegel indicated the importance of logic to his philosophical system when he condensed his extensiveScience of Logic into a shorter work published in 1817 as the first volume of hisEncyclopaedia of the Philosophical Sciences. The "Shorter" or "Encyclopaedia"Logic, as it is often known, lays out a series of transitions which leads from the most empty and abstract of categories—Hegel begins with "Pure Being" and "Pure Nothing"—to the "Absolute", the category which contains and resolves all the categories which preceded it. Despite the title, Hegel'sLogic is not really a contribution to the science of valid inference. Rather than deriving conclusions about concepts through valid inference from premises, Hegel seeks to show that thinking about one concept compels thinking about another concept (one cannot, he argues, possess the concept of "Quality" without the concept of "Quantity"); this compulsion is, supposedly, not a matter of individual psychology, because it arises almost organically from the content of the concepts themselves. His purpose is to show the rational structure of the "Absolute"—indeed of rationality itself. The method by which thought is driven from one concept to its contrary, and then to further concepts, is known as the Hegeliandialectic.
Although Hegel'sLogic has had little impact on mainstream logical studies, its influence can be seen elsewhere:
Between the work of Mill and Frege stretched half a century during which logic was widely treated as a descriptive science, an empirical study of the structure of reasoning, and thus essentially as a branch ofpsychology.[96] The German psychologistWilhelm Wundt, for example, discussed deriving "the logical from the psychological laws of thought", emphasizing that "psychological thinking is always the more comprehensive form of thinking."[97] This view was widespread among German philosophers of the period:
Such was the dominant view of logic in the years following Mill's work.[101] This psychological approach to logic was rejected byGottlob Frege. It was also subjected to an extended and destructive critique byEdmund Husserl in the first volume of hisLogical Investigations (1900), an assault which has been described as "overwhelming".[102] Husserl argued forcefully that grounding logic in psychological observations implied that all logical truths remained unproven, and thatskepticism andrelativism were unavoidable consequences.
Such criticisms did not immediately extirpate what is called "psychologism". For example, the American philosopherJosiah Royce, while acknowledging the force of Husserl's critique, remained "unable to doubt" that progress in psychology would be accompanied by progress in logic, and vice versa.[103]
The period between the fourteenth century and the beginning of the nineteenth century had been largely one of decline and neglect, and is generally regarded as barren by historians of logic.[2] The revival of logic occurred in the mid-nineteenth century, at the beginning of a revolutionary period where the subject developed into a rigorous and formalistic discipline whose exemplar was the exact method of proof used inmathematics. The development of the modern "symbolic" or "mathematical" logic during this period is the most significant in the 2000-year history of logic, and is arguably one of the most important and remarkable events in human intellectual history.[4]
A number of features distinguish modern logic from the old Aristotelian or traditional logic, the most important of which are as follows:[104] Modern logic is fundamentally acalculus whose rules of operation are determined only by theshape and not by themeaning of the symbols it employs, as in mathematics. Many logicians were impressed by the "success" of mathematics, in that there had been no prolonged dispute about any truly mathematical result.C. S. Peirce noted[105] that even though a mistake in the evaluation of a definite integral byLaplace led to an error concerning the moon's orbit that persisted for nearly 50 years, the mistake, once spotted, was corrected without any serious dispute. Peirce contrasted this with the disputation and uncertainty surrounding traditional logic, and especially reasoning inmetaphysics. He argued that a truly "exact" logic would depend upon mathematical, i.e., "diagrammatic" or "iconic" thought. "Those who follow such methods will ... escape all error except such as will be speedily corrected after it is once suspected". Modern logic is also "constructive" rather than "abstractive"; i.e., rather than abstracting and formalising theorems derived from ordinary language (or from psychological intuitions about validity), it constructs theorems by formal methods, then looks for an interpretation in ordinary language. It is entirely symbolic, meaning that even the logical constants (which the medieval logicians called "syncategoremata") and the categoric terms are expressed in symbols.
The development of modern logic falls into roughly five periods:[106]

The idea that inference could be represented by a purely mechanical process is found as early asRaymond Llull, who proposed a (somewhat eccentric) method of drawing conclusions by a system of concentric rings. The work of logicians such as theOxford Calculators[108] led to a method of using letters instead of writing out logical calculations (calculationes) in words, a method used, for instance, in theLogica magna byPaul of Venice. Three hundred years after Llull, the English philosopher and logicianThomas Hobbes suggested that all logic and reasoning could be reduced to the mathematical operations of addition and subtraction.[109] The same idea is found in the work ofLeibniz, who had read both Llull and Hobbes, and who argued that logic can be represented through a combinatorial process or calculus. But, like Llull and Hobbes, he failed to develop a detailed or comprehensive system, and his work on this topic was not published until long after his death. Leibniz says that ordinary languages are subject to "countless ambiguities" and are unsuited for a calculus, whose task is to expose mistakes in inference arising from the forms and structures of words;[110] hence, he proposed to identify analphabet of human thought comprising fundamental concepts which could be composed to express complex ideas,[111] and create acalculus ratiocinator that would make all arguments "as tangible as those of the Mathematicians, so that we can find our error at a glance, and when there are disputes among persons, we can simply say: Let us calculate."[112]
Gergonne (1816) said that reasoning does not have to be about objects about which one has perfectly clear ideas, because algebraic operations can be carried out without having any idea of the meaning of the symbols involved.[113]Bolzano anticipated a fundamental idea of modern proof theory when he defined logical consequence or "deducibility" in terms of variables:[114]
Hence I say that propositions,,,... arededucible from propositions,,,,... with respect to variable parts,,..., if every class of ideas whose substitution for,,... makes all of,,,,... true, also makes all of,,,... true. Occasionally, since it is customary, I shall say that propositions,,,...follow, or can beinferred orderived, from,,,,.... Propositions,,,,... I shall call thepremises,,,,... theconclusions.
This is now known assemantic validity.

Modern logic begins with what is known as the "algebraic school", originating with Boole and includingPeirce,Jevons,Schröder, andVenn.[115] Their objective was to develop a calculus to formalise reasoning in the area of classes, propositions, and probabilities. The school begins with Boole's seminal workMathematical Analysis of Logic which appeared in 1847, althoughDe Morgan (1847) is its immediate precursor.[116] The fundamental idea of Boole's system is that algebraic formulae can be used to express logical relations. This idea occurred to Boole in his teenage years, working as an usher in a private school inLincoln, Lincolnshire.[117] For example, let x and y stand for classes, let the symbol= signify that the classes have the same members, xy stand for the class containing all and only the members of x and y and so on. Boole calls theseelective symbols, i.e. symbols which select certain objects for consideration.[118] An expression in which elective symbols are used is called anelective function, and an equation of which the members are elective functions, is anelective equation.[119] The theory of elective functions and their "development" is essentially the modern idea oftruth-functions and their expression indisjunctive normal form.[118]
Boole's system admits of two interpretations, in class logic, and propositional logic. Boole distinguished between "primary propositions" which are the subject of syllogistic theory, and "secondary propositions", which are the subject of propositional logic, and showed how under different "interpretations" the same algebraic system could represent both. An example of a primary proposition is "All inhabitants are either Europeans or Asiatics." An example of a secondary proposition is "Either all inhabitants are Europeans or they are all Asiatics."[120] These are easily distinguished in modern predicate logic, where it is also possible to show that the first follows from the second, but it is a significant disadvantage that there is no way of representing this in the Boolean system.[121]
In hisSymbolic Logic (1881),John Venn used diagrams of overlapping areas to express Boolean relations between classes or truth-conditions of propositions. In 1869 Jevons realised that Boole's methods could be mechanised, and constructed a "logical machine" which he showed to theRoyal Society the following year.[118] In 1885Allan Marquand proposed an electrical version of the machine that is still extant (picture at the Firestone Library).

The defects in Boole's system (such as the use of the letterv for existential propositions) were all remedied by his followers. Jevons publishedPure Logic, or the Logic of Quality apart from Quantity in 1864, where he suggested a symbol to signifyexclusive or, which allowed Boole's system to be greatly simplified.[122] This was usefully exploited by Schröder when he set out theorems in parallel columns in hisVorlesungen (1890–1905). Peirce (1880) showed how all the Boolean elective functions could be expressed by the use of a single primitive binary operation, "neither ... nor ..." and equally well "not both ... and ...",[123] however, like many of Peirce's innovations, this remained unknown or unnoticed untilSheffer rediscovered it in 1913.[124] Boole's early work also lacks the idea of thelogical sum which originates in Peirce (1867),Schröder (1877) and Jevons (1890),[125] and the concept ofinclusion, first suggested by Gergonne (1816) and clearly articulated by Peirce (1870).

The success of Boole's algebraic system suggested that all logic must be capable of algebraic representation, and there were attempts to express a logic of relations in such form, of which the most ambitious was Schröder's monumentalVorlesungen über die Algebra der Logik ("Lectures on the Algebra of Logic", vol iii 1895), although the original idea was again anticipated by Peirce.[126]
Boole's unwavering acceptance of Aristotle's logic is emphasized by the historian of logicJohn Corcoran in an accessible introduction toLaws of Thought.[127] Corcoran also wrote a point-by-point comparison ofPrior Analytics andLaws of Thought.[128] According to Corcoran, Boole fully accepted and endorsed Aristotle's logic. Boole's goals were "to go under, over, and beyond" Aristotle's logic by 1) providing it with mathematical foundations involving equations, 2) extending the class of problems it could treat—from assessing validity to solving equations—and 3) expanding the range of applications it could handle—e.g. from propositions having only two terms to those having arbitrarily many.
More specifically, Boole agreed with whatAristotle said; Boole's 'disagreements', if they might be called that, concern what Aristotle did not say. First, in the realm of foundations, Boole reduced the four propositional forms of Aristotelian logic to formulas in the form of equations—by itself a revolutionary idea. Second, in the realm of logic's problems, Boole's addition of equation solving to logic—another revolutionary idea—involved Boole's doctrine that Aristotle's rules of inference (the "perfect syllogisms") must be supplemented by rules for equation solving. Third, in the realm of applications, Boole's system could handle multi-term propositions and arguments whereas Aristotle could handle only two-termed subject-predicate propositions and arguments. For example, Aristotle's system could not deduce "No quadrangle that is a square is a rectangle that is a rhombus" from "No square that is a quadrangle is a rhombus that is a rectangle" or from "No rhombus that is a rectangle is a square that is a quadrangle".

After Boole, the next great advances were made by the German mathematicianGottlob Frege. Frege's objective was the program ofLogicism, i.e. demonstrating that arithmetic is identical with logic.[129] Frege went much further than any of his predecessors in his rigorous and formal approach to logic, and his calculus orBegriffsschrift is important.[129] Frege also tried to show that the concept ofnumber can be defined by purely logical means, so that (if he was right) logic includes arithmetic and all branches of mathematics that are reducible to arithmetic. He was not the first writer to suggest this. In his pioneering workDie Grundlagen der Arithmetik (The Foundations of Arithmetic), sections 15–17, he acknowledges the efforts of Leibniz,J. S. Mill as well as Jevons, citing the latter's claim that "algebra is a highly developed logic, and number but logical discrimination."[130]
Frege's first work, theBegriffsschrift ("concept script") is a rigorously axiomatised system of propositional logic, relying on just two connectives (negational and conditional), two rules of inference (modus ponens and substitution), and six axioms. Frege referred to the "completeness" of this system, but was unable to prove this.[131] The most significant innovation, however, was his explanation of thequantifier in terms of mathematical functions. Traditional logic regards the sentence "Caesar is a man" as of fundamentally the same form as "all men are mortal." Sentences with a proper name subject were regarded as universal in character, interpretable as "every Caesar is a man".[132] At the outset Frege abandons the traditional "conceptssubject andpredicate", replacing them withargument andfunction respectively, which he believes "will stand the test of time". He goes on to say that it is "easy to see how regarding a content as a function of an argument leads to the formation of concepts. Furthermore, the demonstration of the connection between the meanings of the wordsif, and, not, or, there is, some, all, and so forth, deserves attention".[133] Frege argued that the quantifier expression "all men" does not have the same logical or semantic form as "all men", and that the universal proposition "every A is B" is a complex proposition involving twofunctions, namely ' – is A' and ' – is B' such that whatever satisfies the first, also satisfies the second. In modern notation, this would be expressed as
In English, "for all x, if Ax then Bx". Thus only singular propositions are of subject-predicate form, and they are irreducibly singular, i.e. not reducible to a general proposition. Universal and particular propositions, by contrast, are not of simple subject-predicate form at all. If "all mammals" were the logical subject of the sentence "all mammals are land-dwellers", then to negate the whole sentence we would have to negate the predicate to give "all mammals arenot land-dwellers". But this is not the case.[134] This functional analysis of ordinary-language sentences later had a great impact on philosophy andlinguistics.
This means that in Frege's calculus, Boole's "primary" propositions can be represented in a different way from "secondary" propositions. "All inhabitants are either men or women" is

whereas "All the inhabitants are men or all the inhabitants are women" is
As Frege remarked in a critique of Boole's calculus:
As well as providing a unified and comprehensive system of logic, Frege's calculus also resolved the ancientproblem of multiple generality. The ambiguity of "every girl kissed a boy" is difficult to express in traditional logic, but Frege's logic resolves this through the different scope of the quantifiers. Thus

means that to every girl there corresponds some boy (any one will do) who the girl kissed. But
means that there is some particular boy whom every girl kissed. Without this device, the project of logicism would have been doubtful or impossible. Using it, Frege provided a definition of theancestral relation, of themany-to-one relation, and ofmathematical induction.[136]

This period overlaps with the work of what is known as the "mathematical school", which includedDedekind,Pasch,Peano,Hilbert,Zermelo,Huntington,Veblen andHeyting. Their objective was the axiomatisation of branches of mathematics like geometry, arithmetic, analysis and set theory. Most notable wasHilbert's Program, which sought to ground all of mathematics to a finite set of axioms, proving its consistency by "finitistic" means and providing a procedure which would decide the truth or falsity of any mathematical statement. The standardaxiomatization of thenatural numbers is named thePeano axioms eponymously. Peano maintained a clear distinction between mathematical and logical symbols. While unaware of Frege's work, he independently recreated his logical apparatus based on the work of Boole and Schröder.[137]
The logicist project received a near-fatal setback with the discovery of a paradox in 1901 byBertrand Russell. This proved Frege'snaive set theory led to a contradiction. Frege's theory contained the axiom that for any formal criterion, there is a set of all objects that meet the criterion. Russell showed that a set containing exactly the sets that are not members of themselves would contradict its own definition (if it is not a member of itself, it is a member of itself, and if it is a member of itself, it is not).[138] This contradiction is now known asRussell's paradox. One important method of resolving this paradox was proposed byErnst Zermelo.[139]Zermelo set theory was the firstaxiomatic set theory. It was developed into the now-canonicalZermelo–Fraenkel set theory (ZF). Russell's paradox symbolically is as follows:
The monumentalPrincipia Mathematica, a three-volume work on thefoundations of mathematics, written by Russell andAlfred North Whitehead and published 1910–1913 also included an attempt to resolve the paradox, by means of an elaboratesystem of types: a set of elements is of a different type than is each of its elements (set is not the element; one element is not the set) and one cannot speak of the "set of all sets". ThePrincipia was an attempt to derive all mathematical truths from a well-defined set ofaxioms andinference rules insymbolic logic.

The names ofGödel andTarski dominate the 1930s,[140] a crucial period in the development ofmetamathematics—the study of mathematics using mathematical methods to producemetatheories, or mathematical theories about other mathematical theories. Early investigations into metamathematics had been driven by Hilbert's program. Work on metamathematics culminated in the work of Gödel, who in 1929 showed that a givenfirst-order sentence isdeducible if and only if it is logically valid—i.e. it is true in everystructure for its language. This is known asGödel's completeness theorem. A year later, he proved two important theorems, which showed Hibert's program to be unattainable in its original form. The first is that no consistent system of axioms whose theorems can be listed by aneffective procedure such as analgorithm or computer program is capable of proving all facts about thenatural numbers. For any such system, there will always be statements about the natural numbers that are true, but that are unprovable within the system. The second is that if such a system is also capable of proving certain basic facts about the natural numbers, then the system cannot prove the consistency of the system itself. These two results are known asGödel's incompleteness theorems, or simplyGödel's Theorem. Later in the decade, Gödel developed the concept ofset-theoretic constructibility, as part of his proof that theaxiom of choice and thecontinuum hypothesis are consistent withZermelo–Fraenkel set theory.Inproof theory,Gerhard Gentzen developednatural deduction and thesequent calculus. The former attempts to model logical reasoning as it 'naturally' occurs in practice and is most easily applied tointuitionistic logic, while the latter was devised to clarify the derivation of logical proofs in any formal system. Since Gentzen's work, natural deduction and sequent calculi have been widely applied in the fields of proof theory, mathematical logic and computer science. Gentzen also proved normalization and cut-elimination theorems for intuitionistic and classical logic which could be used to reduce logical proofs to a normal form.[141]

Alfred Tarski, a pupil ofŁukasiewicz, is best known for his definition of truth andlogical consequence, and the semantic concept oflogical satisfaction. In 1933, he published (in Polish)The concept of truth in formalized languages, in which he proposed hissemantic theory of truth: a sentence such as "snow is white" is true if and only if snow is white. Tarski's theory separated themetalanguage, which makes the statement about truth, from the object language, which contains the sentence whose truth is being asserted, and gave a correspondence (theT-schema) between phrases in the object language and elements of aninterpretation. Tarski's approach to the difficult idea of explaining truth has been enduringly influential in logic and philosophy, especially in the development ofmodel theory.[142] Tarski also produced important work on the methodology of deductive systems, and on fundamental principles such ascompleteness,decidability,consistency anddefinability. According to Anita Feferman, Tarski "changed the face of logic in the twentieth century".[143]
Alonzo Church andAlan Turing proposed formal models of computability, giving independent negative solutions to Hilbert'sEntscheidungsproblem in 1936 and 1937, respectively. TheEntscheidungsproblem asked for a procedure that, given any formal mathematical statement, would algorithmically determine whether the statement is true. Church and Turing proved there is no such procedure; Turing's paper introduced thehalting problem as a key example of a mathematical problem without an algorithmic solution.
Church's system for computation developed into the modernλ-calculus, while theTuring machine became a standard model for a general-purpose computing device. It was soon shown that many other proposed models of computation were equivalent in power to those proposed by Church and Turing. These results led to theChurch–Turing thesis that any deterministicalgorithm that can be carried out by a human can be carried out by a Turing machine. Church proved additional undecidability results, showing that bothPeano arithmetic andfirst-order logic areundecidable. Later work byEmil Post andStephen Cole Kleene in the 1940s extended the scope of computability theory and introduced the concept ofdegrees of unsolvability.
The results of the first few decades of the twentieth century also had an impact uponanalytic philosophy andphilosophical logic, particularly from the 1950s onwards, in subjects such asmodal logic,temporal logic,deontic logic, andrelevance logic.
After World War II,mathematical logic branched into four inter-related but separate areas of research:model theory,proof theory,computability theory, andset theory.[144]
In set theory, the method offorcing revolutionized the field by providing a robust method for constructing models and obtaining independence results.Paul Cohen introduced this method in 1963 to prove the independence of thecontinuum hypothesis and theaxiom of choice fromZermelo–Fraenkel set theory.[145] His technique, which was simplified and extended soon after its introduction, has since been applied to many other problems in all areas of mathematical logic.
Computability theory had its roots in the work of Turing, Church, Kleene, and Post in the 1930s and 40s. It developed into a study of abstract computability, which became known asrecursion theory.[146] Thepriority method, discovered independently byAlbert Muchnik andRichard Friedberg in the 1950s, led to major advances in the understanding of thedegrees of unsolvability and related structures. Research into higher-order computability theory demonstrated its connections to set theory. The fields ofconstructive analysis andcomputable analysis were developed to study the effective content of classical mathematical theorems; these in turn inspired the program ofreverse mathematics. A separate branch of computability theory,computational complexity theory, was also characterized in logical terms as a result of investigations intodescriptive complexity.
Model theory applies the methods of mathematical logic to study models of particular mathematical theories. Alfred Tarski published much pioneering work in the field, which is named after a series of papers he published under the titleContributions to the theory of models. In the 1960s,Abraham Robinson used model-theoretic techniques to develop calculus and analysis based oninfinitesimals, a problem that first had been proposed by Leibniz.
In proof theory, the relationship between classical mathematics and intuitionistic mathematics was clarified via tools such as therealizability method invented byGeorg Kreisel and Gödel'sDialectica interpretation. This work inspired the contemporary area ofproof mining. TheCurry–Howard correspondence emerged as a deep analogy between logic and computation, including a correspondence between systems of natural deduction andtyped lambda calculi used in computer science. As a result, research into this class of formal systems began to address both logical and computational aspects; this area of research came to be known as modern type theory. Advances were also made inordinal analysis and the study of independence results in arithmetic such as theParis–Harrington theorem.
This was also a period, particularly in the 1950s and afterwards, when the ideas of mathematical logic begin to influence philosophical thinking. For example,tense logic is a formalised system for representing, and reasoning about, propositions qualified in terms of time. The philosopherArthur Prior played a significant role in its development in the 1960s.Modal logics extend the scope of formal logic to include the elements ofmodality (for example,possibility andnecessity). The ideas ofSaul Kripke, particularly aboutpossible worlds, and the formal system now calledKripke semantics have had a profound impact onanalytic philosophy.[147] His best known and most influential work isNaming and Necessity (1980).[148]Deontic logics are closely related to modal logics: they attempt to capture the logical features ofobligation,permission and related concepts. Although some basic noveltiessyncretizing mathematical and philosophical logic were shown byBolzano in the early 1800s, it wasErnst Mally, a pupil ofAlexius Meinong, who was to propose the first formal deontic system in hisGrundgesetze des Sollens, based on the syntax of Whitehead's and Russell'spropositional calculus.
Another logical system founded after World War II wasfuzzy logic by Azerbaijani mathematicianLotfi Asker Zadeh in 1965.