HOME

TheInfoList



OR:

In
Boolean function In mathematics, a Boolean function is a function whose arguments and result assume values from a two-element set (usually , or ). Alternative names are switching function, used especially in older computer science literature, and truth function ( ...
s and
propositional calculus Propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. It deals with propositions (which can be true or false) and relations b ...
, the Sheffer stroke denotes a
logical operation In Mathematical logic, logic, a logical connective (also called a logical operator, sentential connective, or sentential operator) is a logical constant. They can be used to connect logical formulas. For instance in the syntax (logic), syntax o ...
that is equivalent to the
negation In logic, negation, also called the logical complement, is an operation that takes a proposition P to another proposition "not P", written \neg P, \mathord P or \overline. It is interpreted intuitively as being true when P is false, and false ...
of the
conjunction Conjunction may refer to: * Conjunction (grammar), a part of speech * Logical conjunction, a mathematical operator ** Conjunction introduction, a rule of inference of propositional logic * Conjunction (astronomy), in which two astronomical bodies ...
operation, expressed in ordinary language as "not both". It is also called nand ("not and") or the alternative denial, since it says in effect that at least one of its operands is false. In
digital electronics Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. This is in contrast to analog electronics and analog signals. Digital electronic circuits are usual ...
, it corresponds to the
NAND gate In digital electronics, a NAND gate (NOT-AND) is a logic gate which produces an output which is false only if all its inputs are true; thus its output is complement to that of an AND gate. A LOW (0) output results only if all the inputs to the ...
. It is named after Henry M. Sheffer and written as ↑ or as , (but not as , , , often used to represent
disjunction In logic, disjunction is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language sentence "it is raining or it is snowing" can be represented in logic using the disjunctive formula R \lor S ...
). In Bocheński notation it can be written as D''pq''. Its
dual Dual or Duals may refer to: Paired/two things * Dual (mathematics), a notion of paired concepts that mirror one another ** Dual (category theory), a formalization of mathematical duality *** see more cases in :Duality theories * Dual (grammatical ...
is the NOR operator (also known as the Peirce arrow or Quine dagger). Like its dual, NAND can be used by itself, without any other logical operator, to constitute a logical
formal system A formal system is an abstract structure used for inferring theorems from axioms according to a set of rules. These rules, which are used for carrying out the inference of theorems from axioms, are the logical calculus of the formal system. A form ...
(making NAND
functionally complete In logic, a functionally complete set of logical connectives or Boolean operators is one which can be used to express all possible truth tables by combining members of the set into a Boolean expression.. ("Complete set of logical connectives").. (" ...
). This property makes the
NAND gate In digital electronics, a NAND gate (NOT-AND) is a logic gate which produces an output which is false only if all its inputs are true; thus its output is complement to that of an AND gate. A LOW (0) output results only if all the inputs to the ...
crucial to modern
digital electronics Digital electronics is a field of electronics involving the study of digital signals and the engineering of devices that use or produce them. This is in contrast to analog electronics and analog signals. Digital electronic circuits are usual ...
, including its use in
computer processor In computing and computer science, a processor or processing unit is an electrical component (digital circuit) that performs operations on an external data source, usually memory or some other data stream. It typically takes the form of a micropr ...
design.


Definition

The NAND operation is a
logical operation In Mathematical logic, logic, a logical connective (also called a logical operator, sentential connective, or sentential operator) is a logical constant. They can be used to connect logical formulas. For instance in the syntax (logic), syntax o ...
on two
logical value In logic and mathematics, a truth value, sometimes called a logical value, is a value indicating the relation of a proposition to truth, which in classical logic has only two possible values (''true'' or '' false''). Computing In some progra ...
s. It produces a value of true, if — and only if — at least one of the
proposition In logic and linguistics, a proposition is the meaning of a declarative sentence. In philosophy, " meaning" is understood to be a non-linguistic entity which is shared by all sentences with the same meaning. Equivalently, a proposition is the no ...
s is false.


Truth table

The
truth table A truth table is a mathematical table used in logic—specifically in connection with Boolean algebra, boolean functions, and propositional calculus—which sets out the functional values of logical expressions on each of their functional argumen ...
of P \uparrow Q (also written as P \mathop Q, or D''pq'') is as follows


Logical equivalences

The Sheffer stroke of P and Q is the negation of their conjunction By
De Morgan's laws In propositional logic and Boolean algebra, De Morgan's laws, also known as De Morgan's theorem, are a pair of transformation rules that are both valid rules of inference. They are named after Augustus De Morgan, a 19th-century British mathem ...
, this is also equivalent to the disjunction of the negations of P and Q


History

The stroke is named after Henry M. Sheffer, who in 1913 published a paper in the ''
Transactions of the American Mathematical Society The ''Transactions of the American Mathematical Society'' is a monthly peer-reviewed scientific journal of mathematics published by the American Mathematical Society. It was established in 1900. As a requirement, all articles must be more than 15 p ...
'' providing an axiomatization of
Boolean algebra In mathematics and mathematical logic, Boolean algebra is a branch of algebra. It differs from elementary algebra in two ways. First, the values of the variables are the truth values ''true'' and ''false'', usually denoted 1 and 0, whereas in e ...
s using the stroke, and proved its equivalence to a standard formulation thereof by Huntington employing the familiar operators of
propositional logic Propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. It deals with propositions (which can be true or false) and relations b ...
(
and or AND may refer to: Logic, grammar, and computing * Conjunction (grammar), connecting two words, phrases, or clauses * Logical conjunction in mathematical logic, notated as "∧", "⋅", "&", or simple juxtaposition * Bitwise AND, a boole ...
, or, not). Because of self-
duality Duality may refer to: Mathematics * Duality (mathematics), a mathematical concept ** Dual (category theory), a formalization of mathematical duality ** Duality (optimization) ** Duality (order theory), a concept regarding binary relations ** Dual ...
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 Jean George Pierre Nicod (1 June 1893, in France – 16 February 1924, in Geneva, Switzerland) was a French philosopher and logician, best known for his work on propositional logic and inductive reasoning, induction. Biography Nicod's main contr ...
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 The ''Principia Mathematica'' (often abbreviated ''PM'') is a three-volume work on the foundations of mathematics written by mathematician–philosophers Alfred North Whitehead and Bertrand Russell and published in 1910, 1912, and 1913. ...
'' and suggested it as a replacement for the "or" and "not" operations of the first edition.
Charles Sanders Peirce Charles Sanders Peirce ( ; September 10, 1839 – April 19, 1914) was an American philosopher, logician, mathematician and scientist who is sometimes known as "the father of pragmatism". Educated as a chemist and employed as a scientist for t ...
(1880) had discovered the
functional completeness In logic, a functionally complete set of logical connectives or Boolean operators is one which can be used to express all possible truth tables by combining members of the set into a Boolean expression.. ("Complete set of logical connectives").. (" ...
of NAND or NOR more than 30 years earlier, using the term '' ampheck'' (for 'cutting both ways'), but he never published his finding.


Properties

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 In logic, a functionally complete set of logical connectives or Boolean operators is one which can be used to express all possible truth tables by combining members of the set into a Boolean expression.. ("Complete set of logical connectives").. (" ...
operators: truth-preservation, falsity-preservation,
linearity Linearity is the property of a mathematical relationship (''function'') that can be graphically represented as a straight line. Linearity is closely related to '' proportionality''. Examples in physics include rectilinear motion, the linear r ...
,
monotonic In mathematics, a monotonic function (or monotone function) is a function between ordered sets that preserves or reverses the given order. This concept first arose in calculus, and was later generalized to the more abstract setting of order ...
ity, self-duality. (An operator is truth- (falsity-) preserving if its value is truth (falsity) whenever all of its arguments are truth (falsity).) Therefore is a functionally complete set. This can also be realized as follows: All three elements of the functionally complete set can be constructed using only NAND. Thus the set must be functionally complete as well.


Other Boolean operations in terms of the Sheffer stroke

Expressed in terms of NAND \uparrow, the usual operators of propositional logic are:


Formal system based on the Sheffer stroke

The following is an example of a
formal system A formal system is an abstract structure used for inferring theorems from axioms according to a set of rules. These rules, which are used for carrying out the inference of theorems from axioms, are the logical calculus of the formal system. A form ...
based entirely on the Sheffer stroke, yet having the functional expressiveness of the
propositional logic Propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. It deals with propositions (which can be true or false) and relations b ...
:


Symbols

''pn'' for natural numbers ''n'': :( , ) The Sheffer stroke commutes but does not associate (e.g., (T , T) , F = T, but T , (T , F) = F). Hence any formal system including the Sheffer stroke as an infix symbol must also include a means of indicating grouping (grouping is automatic if the stroke is used as a prefix, thus: , , TTF = T and , T , TF = F). We shall employ '(' and ')' to this effect. We also write ''p'', ''q'', ''r'', … instead of ''p''0, ''p''1, ''p''2.


Syntax

Construction Rule I: For each natural number ''n'', the symbol ''pn'' is a
well-formed formula In mathematical logic, propositional logic and predicate logic, a well-formed formula, abbreviated WFF or wff, often simply formula, is a finite sequence of symbols from a given alphabet that is part of a formal language. A formal language can be ...
(wff), called an atom. Construction Rule II: If ''X'' and ''Y'' are wffs, then (''X'' ,  ''Y'') is a wff. Closure Rule: Any formulae which cannot be constructed by means of the first two Construction Rules are not wffs. The letters ''U'', ''V'', ''W'', ''X'', and ''Y'' are metavariables standing for wffs. A decision procedure for determining whether a formula is well-formed goes as follows: "deconstruct" the formula by applying the Construction Rules backwards, thereby breaking the formula into smaller subformulae. Then repeat this recursive deconstruction process to each of the subformulae. Eventually the formula should be reduced to its atoms, but if some subformula cannot be so reduced, then the formula is not a wff.


Calculus

All wffs of the form :((''U'' , (''V'' , ''W'')) , ((''Y'' , (''Y'' , ''Y'')) , ((''X'' , ''V'') , ((''U'' , ''X'') , (''U'' , ''X''))))) are axioms. Instances of :(U , (V , W)), U \vdash W are inference rules.


Simplification

Since the only connective of this logic is , , the symbol , could be discarded altogether, leaving only the parentheses to group the letters. A pair of parentheses must always enclose a pair of ''wff''s. Examples of theorems in this simplified notation are : (''p''(''p''(''q''(''q''((''pq'')(''pq'')))))), : (''p''(''p''((''qq'')(''pp'')))). The notation can be simplified further, by letting : : ((U)) \equiv U for any ''U''. This simplification causes the need to change some rules: # More than two letters are allowed within parentheses. # Letters or wffs within parentheses are allowed to commute. # Repeated letters or wffs within a same set of parentheses can be eliminated. The result is a parenthetical version of the Peirce
existential graph An existential graph is a type of diagrammatic or visual notation for logical expressions, proposed by Charles Sanders Peirce, who wrote on logical graph, graphical logic as early as 1882,Peirce, C. S., " n Junctures and Fractures in Logic (ed ...
s. Another way to simplify the notation is to eliminate parentheses by using
Polish Notation Polish notation (PN), also known as normal Polish notation (NPN), Łukasiewicz notation, Warsaw notation, Polish prefix notation or simply prefix notation, is a mathematical notation in which operators ''precede'' their operands, in contrast t ...
. For example, the earlier examples with only parentheses could be rewritten using only strokes as follows : (''p''(''p''(''q''(''q''((''pq'')(''pq'')))))) becomes : , ''p'' , ''p'' , ''q'' , ''q'' , , ''pq'' , ''pq'', and : (''p''(''p''((''qq'')(''pp'')))) becomes, : , ''p'' , ''p'' , , ''qq'' , ''pp''. This follows the same rules as the parenthesis version, with the opening parenthesis replaced with a Sheffer stroke and the (redundant) closing parenthesis removed. Or (for some formulas) one could omit both parentheses ''and'' strokes and allow the order of the arguments to determine the order of
function application In mathematics, function application is the act of applying a function to an argument from its domain so as to obtain the corresponding value from its range. In this sense, function application can be thought of as the opposite of function abst ...
so that for example, applying the function from right to left (reverse Polish notation – any other unambiguous convention based on ordering would do) : \begin & pqr \equiv (p\mid (q\mid r)), \text \\ & rqp \equiv (r \mid (q\mid p)). \end


See also

*
Boolean domain In mathematics and abstract algebra, a Boolean domain is a set consisting of exactly two elements whose interpretations include ''false'' and ''true''. In logic, mathematics and theoretical computer science, a Boolean domain is usually written as ...
*
CMOS Complementary metal–oxide–semiconductor (CMOS, pronounced "sea-moss", ) is a type of metal–oxide–semiconductor field-effect transistor (MOSFET) fabrication process that uses complementary and symmetrical pairs of p-type and n-type MOSFE ...
*
Gate equivalent A gate equivalent (GE) stands for a unit of measure which allows specifying ''manufacturing-technology-independent complexity'' of digital electronic circuits. For today's CMOS technologies, the silicon area of a two-input drive-strength-one NAND ...
(GE) * ''
Laws of Form ''Laws of Form'' (hereinafter ''LoF'') is a book by G. Spencer-Brown, published in 1969, that straddles the boundary between mathematics and philosophy. ''LoF'' describes three distinct logical systems: * The "primary arithmetic" (described in Ch ...
'' *
Logical graph A logical graph is a special type of diagrammatic structure in any one of several systems of graphical syntax that Charles Sanders Peirce developed for logic. In his papers on ''qualitative logic'', ''entitative graphs'', and ''existential graphs'' ...
*
Minimal axioms for Boolean algebra In mathematical logic, minimal axioms for Boolean algebra are assumptions which are equivalent to the axioms of Boolean algebra (or propositional calculus), chosen to be as short as possible. For example, if one chooses to take commutativity for gra ...
* NAND
flash memory Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory, NOR flash and NAND flash, are named for the NOR and NAND logic gates. Both us ...
* NAND logic *
Peirce's law In logic, Peirce's law is named after the philosopher and logician Charles Sanders Peirce. It was taken as an axiom in his first axiomatisation of propositional logic. It can be thought of as the law of excluded middle written in a form that i ...
* Peirce arrow = NOR *
Sole sufficient operator In logic, a functionally complete set of logical connectives or Boolean operators is one which can be used to express all possible truth tables by combining members of the set into a Boolean expression.. ("Complete set of logical connectives").. ( ...


Notes


References

* Bocheński, Józef Maria (1960), ''Precis of Mathematical Logic'', rev., Albert Menne, edited and translated from the French and German editions by Otto Bird,
Dordrecht Dordrecht (), historically known in English as Dordt (still colloquially used in Dutch, ) or Dort, is a city and municipality in the Western Netherlands, located in the province of South Holland. It is the province's fifth-largest city after R ...
,
South Holland South Holland ( nl, Zuid-Holland ) is a province of the Netherlands with a population of over 3.7 million as of October 2021 and a population density of about , making it the country's most populous province and one of the world's most densely ...
:
D. Reidel D. Reidel was an academic publishing company based in Dordrecht established in the 1960s which was independent until the 1990s. History Reidel was established in the 1960s, with a focus on publishing research in physics. Reidel himself had been t ...
. * * *
Charles Sanders Peirce Charles Sanders Peirce ( ; September 10, 1839 – April 19, 1914) was an American philosopher, logician, mathematician and scientist who is sometimes known as "the father of pragmatism". Educated as a chemist and employed as a scientist for t ...
, 1880, "A Boolian icAlgebra with One Constant", in Hartshorne, C. and Weiss, P., eds., (1931–35) '' Collected Papers of Charles Sanders Peirce, Vol. 4'': 12–20,
Cambridge Cambridge ( ) is a university city and the county town in Cambridgeshire, England. It is located on the River Cam approximately north of London. As of the 2021 United Kingdom census, the population of Cambridge was 145,700. Cambridge bec ...
:
Harvard University Press Harvard University Press (HUP) is a publishing house established on January 13, 1913, as a division of Harvard University, and focused on academic publishing. It is a member of the Association of American University Presses. After the retirem ...
. *


External links


Sheffer Stroke
article in the ''
Internet Encyclopedia of Philosophy The ''Internet Encyclopedia of Philosophy'' (''IEP'') is a scholarly online encyclopedia, dealing with philosophy, philosophical topics, and philosophers. The IEP combines open access publication with peer reviewed publication of original pape ...
'' *http://hyperphysics.phy-astr.gsu.edu/hbase/electronic/nand.html
implementations of 2 and 4-input NAND gatesProofs of some axioms by Stroke function by Yasuo Setô

Project Euclid
{{Common logical symbols
NAND gate In digital electronics, a NAND gate (NOT-AND) is a logic gate which produces an output which is false only if all its inputs are true; thus its output is complement to that of an AND gate. A LOW (0) output results only if all the inputs to the ...
Logical connectives Logic symbols