The Sheffer stroke, written "|" or "↑", 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 the alternative denial, since it says in effect that at least one of its operands is false. In boolean algebra and digital electronics it is known as the NAND ("not and") operation. It is one of several sole sufficient operators that can be used to express all of the boolean functions that are the subject matter of propositional logic.
The stroke is named for Henry M. Sheffer, who proved (Sheffer 1913) that all the usual operators of propositional logic (not, and, or, implies, and so on), could be expressed in terms of it. Charles Peirce (1880) had discovered this fact more than 30 years earlier, but never published his finding. Peirce also observed that all boolean operators could be defined in terms of the NOR operator, the dual of NAND.
The NAND operation is a logical operation on two logical values, typically the values of two propositions, that produces a value of false if and only if both operands are true. In other words, it produces a value of true if and only if at least one operand is false.
The truth table of p NAND q (also written as p | q or p ↑ q) is as follows:
| p | q | p ↑ q |
|---|---|---|
| F | F | T |
| F | T | T |
| T | F | T |
| T | T | F |
One way of expressing p NAND q is a , where the symbol signifies AND and the line over the expression signifies not, the logical negation of that expression.
Expressed in terms of NAND, the usual operators of propositional logic are:
| "not p" is equivalent to "p NAND p" | |
| "p and q" is equivalent to "(p NAND q) NAND (p NAND q)" | |
| "p or q" is equivalent to "(p NAND p) NAND (q NAND q)" | |
| "p implies q" is equivalent to "(p NAND q) NAND p" |
This leads to an alternative axiom system for Boolean algebras, requiring but one operation.
Digital systems employing certain logic circuits take advantage of this property. In complicated logical expressions, normally written in terms of other logic functions such as AND, OR, and NOT, writing these in terms of NAND saves on cost, because implementing such circuits using NAND gate yields a more compact result than the alternatives.
The dual of NAND, the operator NOR, also suffices to express all Boolean operations.
The following truth table semantically defines |:
| > | F | T |
|---|---|---|
| F | T | T |
| T | T | F |
The other logical operators can be defined in terms of '|', like so:
The Sheffer stroke commutes but does not associate. Hence any formal system including the Sheffer stroke must also include a means of indicating grouping. We shall employ '(' and ')' to this effect.
Construction Rule I: An atom is a well-formed formula (wff).
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 is not a wff.
The letters U, V, 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.
THEN-1: (U|(U|(V|(U|U))))
Commutativity: (X|Y) = (Y|X)
Duality: If strings of the forms X and (X|X) both show up in a theorem, then if these two strings are swapped wherever they appear in the theorem, then the result will also be a theorem.
Double Negation: ((X|X)|(X|X)) = X
Mimesis: (U|(X|X)) = (U|(U|X))
THEN-3: (U|(U|(V|(V|X)))) = (V|(V|(U|(U|X))))
MP-1: U, (U|(V|X)) |- V
MP-2: U, (U|(V|X)) |- X
Note. The formula (U|(V|X)) has the interpretation U→V∧X. Modus ponens is the special case of MP-1 and MP-2 when V and X are identical.
The resemblance to the syntax of LISP is evident.
The notation can be simplified further, by letting
Logic | Binary operations | Boolean algebra
NAND-Gatter | NAND לוגי | NAND-poort | Eksklusjon (logikk) | NAND | VEDEĞİL kapısı
This article is licensed under the GNU Free Documentation License.
It uses material from the
"Sheffer stroke".
Home Page • arts • business • computers • games • health • hospitals • home • kids & teens • news • physicians • recreation• reference • regional • science • shopping • society • sports • world