HOME

TheInfoList



OR:

First-order equational
logic Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the science of deductively valid inferences or of logical truths. It is a formal science investigating how conclusions follow from premis ...
consists of quantifier-free terms of ordinary
first-order logic First-order logic—also known as predicate logic, quantificational logic, and first-order predicate calculus—is a collection of formal systems used in mathematics, philosophy, linguistics, and computer science. First-order logic uses quanti ...
, with equality as the only predicate symbol. The
model theory In mathematical logic, model theory is the study of the relationship between formal theories (a collection of sentences in a formal language expressing statements about a mathematical structure), and their models (those structures in which the ...
of this logic was developed into
universal algebra Universal algebra (sometimes called general algebra) is the field of mathematics that studies algebraic structures themselves, not examples ("models") of algebraic structures. For instance, rather than take particular Group (mathematics), groups as ...
by Birkhoff, Grätzer, and Cohn. It was later made into a branch of category theory by Lawvere ("algebraic theories").equational logic. (n.d.). The Free On-line Dictionary of Computing. Retrieved October 24, 2011, from Dictionary.com website: http://dictionary.reference.com/browse/equational+logic The terms of equational logic are built up from variables and constants using function symbols (or operations).


Syllogism

Here are the four
inference rule In the philosophy of logic, a rule of inference, inference rule or transformation rule is a logical form consisting of a function which takes premises, analyzes their syntax, and returns a conclusion (or conclusions). For example, the rule of ...
s of logic. P := E/math> denotes textual substitution of expression E for variable x in expression P. Next, b = c denotes equality, for b and c of the same type, while b \equiv c, or equivalence, is defined only for b and c of type
boolean Any kind of logic, function, expression, or theory based on the work of George Boole is considered Boolean. Related to this, "Boolean" may refer to: * Boolean data type, a form of data with only two possible values (usually "true" and "false" ...
. For b and c of type boolean, b = c and b \equiv c have the same meaning. Gries, D. (2010). Introduction to equational logic . Retrieved from http://www.cs.cornell.edu/home/gries/Logic/Equational.html


History

Equational logic was developed over the years (beginning in the early 1980s) by researchers in the formal development of programs, who felt a need for an effective style of manipulation, of calculation. Involved were people like Roland Carl Backhouse,
Edsger W. Dijkstra Edsger Wybe Dijkstra ( ; ; 11 May 1930 – 6 August 2002) was a Dutch computer scientist, programmer, software engineer, systems scientist, and science essayist. He received the 1972 Turing Award for fundamental contributions to developing progra ...
, Wim H.J. Feijen, David Gries,
Carel S. Scholten Carel S. Scholten (Amsterdam, 1925 – 2009) was a physicist and a pioneer of computing. He went to the Vossius Gymnasium in Amsterdam and then studied physics from 1945 to 1952 at the University of Amsterdam. In 1947 he was asked by the Dutch ...
, and Netty van Gasteren. Wim Feijen is responsible for important details of the proof format. The axioms are similar to those used by Dijkstra and Scholten in their monograph ''Predicate calculus and program semantics'' (Springer Verlag, 1990), but our order of presentation is slightly different. In their monograph, Dijkstra and Scholten use the three inference rules Leibniz, Substitution, and Transitivity. However, Dijkstra/Scholten system is not a logic, as logicians use the word. Some of their manipulations are based on the meanings of the terms involved, and not on clearly presented syntactical rules of manipulation. The first attempt at making a real logic out of it appeared in ''A Logical Approach to Discrete Math'', however the inference rule Equanimity is missing there, and the definition of theorem is contorted to account for it. The introduction of Equanimity and its use in the proof format is due to Gries and Schneider. It is used, for example, in the proofs of soundness and completeness, and it appears in the second edition of ''A Logical Approach to Discrete Math''.


Proof

We explain how the four inference rules are used in proofs, using the proof of . The logic symbols \top and \bot indicate "true" and "false," respectively, and \lnot indicates " not." The theorem numbers refer to theorems of ''A Logical Approach to Discrete Math''. \begin (0) & & \lnot p \equiv p \equiv \bot \\ (1) & = & \quad \left\langle\; (3.9),\; \lnot(p \equiv q) \equiv \lnot p \equiv q,\; \text\ q := p \;\right\rangle \\ (2) & & \lnot (p \equiv p) \equiv \bot \\ (3) & = & \quad \left\langle\; \text\ \equiv (3.9),\; \text\ q := p \;\right\rangle \\ (4) & & \lnot \top \equiv \bot & (3.8) \end First, lines (0)(2) show a use of inference rule Leibniz: (0) = (2) is the conclusion of Leibniz, and its premise \lnot(p \equiv p) \equiv \lnot p \equiv p is given on line (1). In the same way, the equality on lines (2)(4) are substantiated using Leibniz. The "hint" on line (1) is supposed to give a premise of Leibniz, showing what substitution of equals for equals is being used. This premise is theorem (3.9) with the substitution p := q, i.e. (\lnot(p \equiv q) \equiv \lnot p \equiv q) := q This shows how inference rule Substitution is used within hints. From (0) = (2) and (2) = (4), we conclude by inference rule Transitivity that (0) = (4). This shows how Transitivity is used. Finally, note that line (4), \lnot \top \equiv \bot, is a theorem, as indicated by the hint to its right. Hence, by inference rule Equanimity, we conclude that line (0) is also a theorem. And (0) is what we wanted to prove.


See also

* Theory of pure equality


References

{{reflist


External links


Sakharov, Alex. "Equational Logic." From MathWorld--A Wolfram Web Resource, created by Eric W. Weisstein.
Mathematical logic