
In Boolean functions and propositional calculus, the Sheffer stroke denotes a logical operation that is equivalent to the negation of the conjunction operation, expressed in ordinary language as "not both". It is also called non-conjunction, or alternative denial (since it says in effect that at least one of its operands is false), or NAND ("not and"). In digital electronics, it corresponds to the NAND gate. It is named after Henry Maurice Sheffer and written as or as or as or as in Polish notation by Łukasiewicz (but not as ||, often used to represent disjunction).
NAND | |
---|---|
![]() | |
Definition | |
Truth table | |
Logic gate | ![]() |
Normal forms | |
Disjunctive | |
Conjunctive | |
Zhegalkin polynomial | |
Post's lattices | |
0-preserving | no |
1-preserving | no |
Monotone | no |
Affine | no |
Self-dual | no |
Its dual is the NOR operator (also known as the Peirce arrow, Quine dagger or Webb operator). Like its dual, NAND can be used by itself, without any other logical operator, to constitute a logical formal system (making NAND functionally complete). This property makes the NAND gate crucial to modern digital electronics, including its use in computer processor design.
Definition
The non-conjunction is a logical operation on two logical values. It produces a value of true, if — and only if — at least one of the propositions is false.
Truth table
The truth table of is as follows.
F | F | T |
F | T | T |
T | F | T |
T | T | F |
Logical equivalences
The Sheffer stroke of and
is the negation of their conjunction
| ||
|
By De Morgan's laws, this is also equivalent to the disjunction of the negations of and
| ||||
|
Alternative notations and names
Peirce was the first to show the functional completeness of non-conjunction (representing this as ) but didn't publish his result. Peirce's editor added
) for non-disjunction[citation needed].
In 1911, Stamm was the first to publish a proof of the completeness of non-conjunction, representing this with (the Stamm hook) and non-disjunction in print at the first time and showed their functional completeness.
In 1913, Sheffer described non-disjunction using and showed its functional completeness. Sheffer also used
for non-disjunction.[citation needed] Many people, beginning with Nicod in 1917, and followed by Whitehead, Russell and many others, mistakenly thought Sheffer has described non-conjunction using
, naming this the Sheffer stroke.
In 1928, Hilbert and Ackermann described non-conjunction with the operator .
In 1929, Łukasiewicz used in
for non-conjunction in his Polish notation.
An alternative notation for non-conjunction is . It is not clear who first introduced this notation, although the corresponding
for non-disjunction was used by Quine in 1940.
History
The stroke is named after Henry Maurice Sheffer, who in 1913 published a paper in the Transactions of the American Mathematical Society providing an axiomatization of Boolean algebras using the stroke, and proved its equivalence to a standard formulation thereof by Huntington employing the familiar operators of propositional logic (AND, OR, NOT). Because of self-duality of Boolean algebras, Sheffer's axioms are equally valid for either of the NAND or NOR operations in place of the stroke. Sheffer interpreted the stroke as a sign for nondisjunction (NOR) in his paper, mentioning non-conjunction only in a footnote and without a special sign for it. It was Jean Nicod who first used the stroke as a sign for non-conjunction (NAND) in a paper of 1917 and which has since become current practice. Russell and Whitehead used the Sheffer stroke in the 1927 second edition of Principia Mathematica and suggested it as a replacement for the "OR" and "NOT" operations of the first edition.
Charles Sanders Peirce (1880) had discovered the functional completeness of NAND or NOR more than 30 years earlier, using the term ampheck (for 'cutting both ways'), but he never published his finding. Two years before Sheffer, also described the NAND and NOR operators and showed that the other Boolean operations could be expressed by it.
Properties
NAND is commutative but not associative, which means that but
.
Functional completeness
The Sheffer stroke, taken by itself, is a functionally complete set of connectives. This can be seen from the fact that NAND does not possess any of the following five properties, each of which is required to be absent from, and the absence of all of which is sufficient for, at least one member of a set of functionally complete operators: truth-preservation, falsity-preservation, linearity, monotonicity, self-duality. (An operator is truth-preserving if its value is truth whenever all of its arguments are truth, or falsity-preserving if its value is falsity whenever all of its arguments are falsity.)
It can also be proved by first showing, with a truth table, that is truth-functionally equivalent to
. Then, since
is truth-functionally equivalent to
, and
is equivalent to
, the Sheffer stroke suffices to define the set of connectives
, which is shown to be truth-functionally complete by the Disjunctive Normal Form Theorem.
Other Boolean operations in terms of the Sheffer stroke
Expressed in terms of NAND , the usual operators of propositional logic are:
|
|
| ||||||||||||||||||||||||||||||||||||||||
|
|
See also
- Boolean domain
- CMOS
- Gate equivalent (GE)
- Logical graph
- Minimal axioms for Boolean algebra
- NAND flash memory
- NAND logic
- Peirce's law
- Peirce arrow = NOR
- Sole sufficient operator
References
- Howson, Colin (1997). Logic with trees: an introduction to symbolic logic. London; New York: Routledge. p. 43. ISBN 978-0-415-13342-5.
- Peirce, C. S. (1933) [1880]. "A Boolian Algebra with One Constant". In Hartshorne, C.; Weiss, P. (eds.). Collected Papers of Charles Sanders Peirce, Volume IV The Simplest Mathematics. Massachusetts: Harvard University Press. pp. 13–18.
- Peirce, C. S. (1933) [1902]. "The Simplest Mathematics". In Hartshorne, C.; Weiss, P. (eds.). Collected Papers of Charles Sanders Peirce, Volume IV The Simplest Mathematics. Massachusetts: Harvard University Press. pp. 189–262.
- Zach, R. (2023-02-18). "Sheffer stroke before Sheffer: Edward Stamm". Retrieved 2023-07-02.
- Stamm, Edward Bronisław [in Polish] (1911). "Beitrag zur Algebra der Logik". Monatshefte für Mathematik und Physik (in German). 22 (1): 137–149. doi:10.1007/BF01742795. S2CID 119816758.
- Hilbert, D.; Ackermann, W. (1928). Grundzügen der theoretischen Logik (in German) (1 ed.). Berlin: Verlag von Julius Springer. p. 9.
- Hilbert, D.; Ackermann, W. (1950). Luce, R. E. (ed.). Principles of Mathematical Logic. Translated by Hammond, L. M.; Leckie, G. G.; Steinhardt, F. New York: Chelsea Publishing Company. p. 11.
- Łukasiewicz, J. (1958) [1929]. Elementy logiki matematycznej (in Polish) (2 ed.). Warszawa: Państwowe Wydawnictwo Naukowe.
- Quine, W. V (1981) [1940]. Mathematical Logic (Revised ed.). Cambridge, London, New York, New Rochelle, Melbourne and Sydney: Harvard University Press. p. 45.
- Sheffer, Henry Maurice (1913). "A set of five independent postulates for Boolean algebras, with application to logical constants". Transactions of the American Mathematical Society. 14 (4): 481–488. doi:10.2307/1988701. JSTOR 1988701.
- Nicod, Jean George Pierre (1917). "A Reduction in the Number of Primitive Propositions of Logic". Proceedings of the Cambridge Philosophical Society. 19: 32–41.
- Church, Alonzo (1956). Introduction to mathematical logic. Vol. 1. Princeton University Press. p. 134.
- Rao, G. Shanker (2006). Mathematical Foundations of Computer Science. I. K. International Pvt Ltd. p. 21. ISBN 978-81-88237-49-4.
- Weisstein, Eric W. "Propositional Calculus". mathworld.wolfram.com. Retrieved 2024-03-22.
- Franks, Curtis (2023), "Propositional Logic", in Zalta, Edward N.; Nodelman, Uri (eds.), The Stanford Encyclopedia of Philosophy (Fall 2023 ed.), Metaphysics Research Lab, Stanford University, retrieved 2024-03-22
- Emil Leon Post (1941). The Two-Valued Iterative Systems of Mathematical Logic. Annals of Mathematics studies. Vol. 5. Princeton: Princeton University Press. doi:10.1515/9781400882366. ISBN 9781400882366.
- Howson, Colin (1997). Logic with trees: an introduction to symbolic logic. London; New York: Routledge. pp. 41–43. ISBN 978-0-415-13342-5.
Further reading
- Bocheński, Józef Maria; Menne, Albert Heinrich [in German] (1960). Precis of Mathematical Logic. Translated by Bird, Otto (revised ed.). Dordrecht, South Holland, Netherlands: D. Reidel. (NB. Edited and translated from the French and German editions: Précis de logique mathématique)
- Peirce, Charles Sanders (1931–1935) [1880]. "A Boolian Algebra with One Constant". In Hartshorne, Charles; Weiss, Paul (eds.). Collected Papers of Charles Sanders Peirce. Vol. 4. Cambridge: Harvard University Press. pp. 12–20.
External links
- Sheffer Stroke article in the Internet Encyclopedia of Philosophy
- http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/nand.html
- Implementations of 2- and 4-input NAND gates
- Proofs of some axioms by Stroke function by Yasuo Setô @ Project Euclid
In Boolean functions and propositional calculus the Sheffer stroke denotes a logical operation that is equivalent to the negation of the conjunction operation expressed in ordinary language as not both It is also called non conjunction or alternative denial since it says in effect that at least one of its operands is false or NAND not and In digital electronics it corresponds to the NAND gate It is named after Henry Maurice Sheffer and written as displaystyle mid or as displaystyle uparrow or as displaystyle overline wedge or as Dpq displaystyle Dpq in Polish notation by Lukasiewicz but not as often used to represent disjunction Sheffer strokeNANDDefinitionx y displaystyle overline x cdot y Truth table 0111 displaystyle 0111 Logic gateNormal formsDisjunctivex y displaystyle overline x overline y Conjunctivex y displaystyle overline x overline y Zhegalkin polynomial1 xy displaystyle 1 oplus xy Post s lattices0 preservingno1 preservingnoMonotonenoAffinenoSelf dualnovte Its dual is the NOR operator also known as the Peirce arrow Quine dagger or Webb operator Like its dual NAND can be used by itself without any other logical operator to constitute a logical formal system making NAND functionally complete This property makes the NAND gate crucial to modern digital electronics including its use in computer processor design DefinitionThe non conjunction is a logical operation on two logical values It produces a value of true if and only if at least one of the propositions is false Truth table The truth table of A B displaystyle A uparrow B is as follows A displaystyle A B displaystyle B A B displaystyle A uparrow B FFTFTTTFTTTFLogical equivalences The Sheffer stroke of P displaystyle P and Q displaystyle Q is the negation of their conjunction P Q displaystyle P uparrow Q displaystyle Leftrightarrow P Q displaystyle neg P land Q displaystyle Leftrightarrow displaystyle neg By De Morgan s laws this is also equivalent to the disjunction of the negations of P displaystyle P and Q displaystyle Q P Q displaystyle P uparrow Q displaystyle Leftrightarrow P displaystyle neg P displaystyle lor Q displaystyle neg Q displaystyle Leftrightarrow displaystyle lor Alternative notations and namesPeirce was the first to show the functional completeness of non conjunction representing this as displaystyle overline curlywedge but didn t publish his result Peirce s editor added displaystyle overline curlywedge for non disjunction citation needed In 1911 Stamm was the first to publish a proof of the completeness of non conjunction representing this with displaystyle sim the Stamm hook and non disjunction in print at the first time and showed their functional completeness In 1913 Sheffer described non disjunction using displaystyle mid and showed its functional completeness Sheffer also used displaystyle wedge for non disjunction citation needed Many people beginning with Nicod in 1917 and followed by Whitehead Russell and many others mistakenly thought Sheffer has described non conjunction using displaystyle mid naming this the Sheffer stroke In 1928 Hilbert and Ackermann described non conjunction with the operator displaystyle In 1929 Lukasiewicz used D displaystyle D in Dpq displaystyle Dpq for non conjunction in his Polish notation An alternative notation for non conjunction is displaystyle uparrow It is not clear who first introduced this notation although the corresponding displaystyle downarrow for non disjunction was used by Quine in 1940 HistoryThe stroke is named after Henry Maurice Sheffer who in 1913 published a paper in the Transactions of the American Mathematical Society providing an axiomatization of Boolean algebras using the stroke and proved its equivalence to a standard formulation thereof by Huntington employing the familiar operators of propositional logic AND OR NOT Because of self duality of Boolean algebras Sheffer s axioms are equally valid for either of the NAND or NOR operations in place of the stroke Sheffer interpreted the stroke as a sign for nondisjunction NOR in his paper mentioning non conjunction only in a footnote and without a special sign for it It was Jean Nicod who first used the stroke as a sign for non conjunction NAND in a paper of 1917 and which has since become current practice Russell and Whitehead used the Sheffer stroke in the 1927 second edition of Principia Mathematica and suggested it as a replacement for the OR and NOT operations of the first edition Charles Sanders Peirce 1880 had discovered the functional completeness of NAND or NOR more than 30 years earlier using the term ampheck for cutting both ways but he never published his finding Two years before Sheffer pl also described the NAND and NOR operators and showed that the other Boolean operations could be expressed by it PropertiesNAND is commutative but not associative which means that P Q Q P displaystyle P uparrow Q leftrightarrow Q uparrow P but P Q R P Q R displaystyle P uparrow Q uparrow R not leftrightarrow P uparrow Q uparrow R Functional completeness The Sheffer stroke taken by itself is a functionally complete set of connectives This can be seen from the fact that NAND does not possess any of the following five properties each of which is required to be absent from and the absence of all of which is sufficient for at least one member of a set of functionally complete operators truth preservation falsity preservation linearity monotonicity self duality An operator is truth preserving if its value is truth whenever all of its arguments are truth or falsity preserving if its value is falsity whenever all of its arguments are falsity It can also be proved by first showing with a truth table that A displaystyle neg A is truth functionally equivalent to A A displaystyle A uparrow A Then since A B displaystyle A uparrow B is truth functionally equivalent to A B displaystyle neg A land B and A B displaystyle A lor B is equivalent to A B displaystyle neg neg A land neg B the Sheffer stroke suffices to define the set of connectives displaystyle land lor neg which is shown to be truth functionally complete by the Disjunctive Normal Form Theorem Other Boolean operations in terms of the Sheffer strokeExpressed in terms of NAND displaystyle uparrow the usual operators of propositional logic are P displaystyle neg P displaystyle Leftrightarrow P displaystyle P displaystyle uparrow P displaystyle P displaystyle Leftrightarrow displaystyle uparrow P Q displaystyle P rightarrow Q displaystyle Leftrightarrow P displaystyle P displaystyle uparrow Q Q displaystyle Q uparrow Q displaystyle Leftrightarrow P displaystyle P displaystyle uparrow P Q displaystyle P uparrow Q displaystyle Leftrightarrow displaystyle uparrow displaystyle Leftrightarrow displaystyle uparrow P Q displaystyle P leftrightarrow Q displaystyle Leftrightarrow P Q displaystyle P uparrow Q displaystyle uparrow P P Q Q displaystyle P uparrow P uparrow Q uparrow Q displaystyle Leftrightarrow displaystyle uparrow P Q displaystyle P land Q displaystyle Leftrightarrow P Q displaystyle P uparrow Q displaystyle uparrow P Q displaystyle P uparrow Q displaystyle Leftrightarrow displaystyle uparrow P Q displaystyle P lor Q displaystyle Leftrightarrow P P displaystyle P uparrow P displaystyle uparrow Q Q displaystyle Q uparrow Q displaystyle Leftrightarrow displaystyle uparrow See alsoBoolean domain CMOS Gate equivalent GE Logical graph Minimal axioms for Boolean algebra NAND flash memory NAND logic Peirce s law Peirce arrow NOR Sole sufficient operatorReferencesHowson Colin 1997 Logic with trees an introduction to symbolic logic London New York Routledge p 43 ISBN 978 0 415 13342 5 Peirce C S 1933 1880 A Boolian Algebra with One Constant In Hartshorne C Weiss P eds Collected Papers of Charles Sanders Peirce Volume IV The Simplest Mathematics Massachusetts Harvard University Press pp 13 18 Peirce C S 1933 1902 The Simplest Mathematics In Hartshorne C Weiss P eds Collected Papers of Charles Sanders Peirce Volume IV The Simplest Mathematics Massachusetts Harvard University Press pp 189 262 Zach R 2023 02 18 Sheffer stroke before Sheffer Edward Stamm Retrieved 2023 07 02 Stamm Edward Bronislaw in Polish 1911 Beitrag zur Algebra der Logik Monatshefte fur Mathematik und Physik in German 22 1 137 149 doi 10 1007 BF01742795 S2CID 119816758 Hilbert D Ackermann W 1928 Grundzugen der theoretischen Logik in German 1 ed Berlin Verlag von Julius Springer p 9 Hilbert D Ackermann W 1950 Luce R E ed Principles of Mathematical Logic Translated by Hammond L M Leckie G G Steinhardt F New York Chelsea Publishing Company p 11 Lukasiewicz J 1958 1929 Elementy logiki matematycznej in Polish 2 ed Warszawa Panstwowe Wydawnictwo Naukowe Quine W V 1981 1940 Mathematical Logic Revised ed Cambridge London New York New Rochelle Melbourne and Sydney Harvard University Press p 45 Sheffer Henry Maurice 1913 A set of five independent postulates for Boolean algebras with application to logical constants Transactions of the American Mathematical Society 14 4 481 488 doi 10 2307 1988701 JSTOR 1988701 Nicod Jean George Pierre 1917 A Reduction in the Number of Primitive Propositions of Logic Proceedings of the Cambridge Philosophical Society 19 32 41 Church Alonzo 1956 Introduction to mathematical logic Vol 1 Princeton University Press p 134 Rao G Shanker 2006 Mathematical Foundations of Computer Science I K International Pvt Ltd p 21 ISBN 978 81 88237 49 4 Weisstein Eric W Propositional Calculus mathworld wolfram com Retrieved 2024 03 22 Franks Curtis 2023 Propositional Logic in Zalta Edward N Nodelman Uri eds The Stanford Encyclopedia of Philosophy Fall 2023 ed Metaphysics Research Lab Stanford University retrieved 2024 03 22 Emil Leon Post 1941 The Two Valued Iterative Systems of Mathematical Logic Annals of Mathematics studies Vol 5 Princeton Princeton University Press doi 10 1515 9781400882366 ISBN 9781400882366 Howson Colin 1997 Logic with trees an introduction to symbolic logic London New York Routledge pp 41 43 ISBN 978 0 415 13342 5 Further readingBochenski Jozef Maria Menne Albert Heinrich in German 1960 Precis of Mathematical Logic Translated by Bird Otto revised ed Dordrecht South Holland Netherlands D Reidel NB Edited and translated from the French and German editions Precis de logique mathematique Peirce Charles Sanders 1931 1935 1880 A Boolian Algebra with One Constant In Hartshorne Charles Weiss Paul eds Collected Papers of Charles Sanders Peirce Vol 4 Cambridge Harvard University Press pp 12 20 External linksSheffer Stroke article in the Internet Encyclopedia of Philosophy http hyperphysics phy astr gsu edu hbase electronic nand html Implementations of 2 and 4 input NAND gates Proofs of some axioms by Stroke function by Yasuo Seto Project Euclid