HOME

TheInfoList



OR:

In
Boolean logic 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 variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
, logical NOR, non-disjunction, or joint denial is a truth-functional operator which produces a result that is the negation of
logical or In logic, disjunction (also known as logical disjunction, logical or, logical addition, or inclusive disjunction) is a logical connective typically notated as \lor and read aloud as "or". For instance, the English language, English language ...
. That is, a sentence of the form (''p'' NOR ''q'') is true precisely when neither ''p'' nor ''q'' is true—i.e. when both ''p'' and ''q'' are ''false''. It is logically equivalent to \neg(p \lor q) and \neg p \land \neg q, where the symbol \neg signifies logical
negation In logic, negation, also called the logical not or logical complement, is an operation (mathematics), operation that takes a Proposition (mathematics), proposition P to another proposition "not P", written \neg P, \mathord P, P^\prime or \over ...
, \lor signifies OR, and \land signifies AND. Non-disjunction is usually denoted as \downarrow or \overline or X (prefix) or \operatorname. As with its dual, the NAND operator (also known as the
Sheffer stroke 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, ...
—symbolized as either \uparrow, \mid or /), NOR can be used by itself, without any other logical operator, to constitute a logical
formal system A formal system is an abstract structure and formalization of an axiomatic system used for deducing, using rules of inference, theorems from axioms. In 1921, David Hilbert proposed to use formal systems as the foundation of knowledge in ma ...
(making NOR functionally complete). The
computer A computer is a machine that can be Computer programming, programmed to automatically Execution (computing), carry out sequences of arithmetic or logical operations (''computation''). Modern digital electronic computers can perform generic set ...
used in the spacecraft that first carried humans to the
moon The Moon is Earth's only natural satellite. It Orbit of the Moon, orbits around Earth at Lunar distance, an average distance of (; about 30 times Earth diameter, Earth's diameter). The Moon rotation, rotates, with a rotation period (lunar ...
, the Apollo Guidance Computer, was constructed entirely using NOR gates with three inputs.


Definition

The NOR operation is a
logical operation In logic, a logical connective (also called a logical operator, sentential connective, or sentential operator) is a logical constant. Connectives can be used to connect logical formulas. For instance in the syntax of propositional logic, th ...
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''). Truth values are used in c ...
s, typically the values of two
proposition A proposition is a statement that can be either true or false. It is a central concept in the philosophy of language, semantics, logic, and related fields. Propositions are the object s denoted by declarative sentences; for example, "The sky ...
s, that produces a value of ''true'' if and only if both operands are false. In other words, it produces a value of ''false'' if and only if at least one operand is true.


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 arg ...
of A \downarrow B is as follows:


Logical equivalences

The logical NOR \downarrow is the negation of the disjunction:


Alternative notations and names

Peirce is the first to show the functional completeness of non-disjunction while he doesn't publish his result. Peirce used \overline for non-conjunction and \curlywedge for non-disjunction (in fact, what Peirce himself used is \curlywedge and he didn't introduce \overline while Peirce's editors made such disambiguated use). Peirce called \curlywedge the (from Ancient Greek , , "cutting both ways"). In 1911, was the first to publish a description of both non-conjunction (using \sim, the Stamm hook), and non-disjunction (using *, the Stamm star), and showed their functional completeness. Note that most uses in logical notation of \sim use this for negation. In 1913, Sheffer described non-disjunction and showed its functional completeness. Sheffer used \mid for non-conjunction, and \wedge for non-disjunction. In 1935, Webb described non-disjunction for n-valued logic, and use \mid for the operator. So some people call it Webb operator, Webb operation or Webb function. In 1940, Quine also described non-disjunction and use \downarrow for the operator. So some people call the operator Peirce arrow or Quine dagger. In 1944, Church also described non-disjunction and use \overline for the operator. In 1954, Bocheński used X in Xpq for non-disjunction in
Polish notation Polish notation (PN), also known as normal Polish notation (NPN), Łukasiewicz notation, Warsaw notation, Polish prefix notation, Eastern Notation or simply prefix notation, is a mathematical notation in which Operation (mathematics), operator ...
. APL uses a glyph that combines a with a .


Properties

NOR is commutative but not associative, which means that P \downarrow Q \leftrightarrow Q \downarrow P but (P \downarrow Q) \downarrow R \not\leftrightarrow P \downarrow (Q \downarrow R).


Functional completeness

The logical NOR, taken by itself, is a functionally complete set of connectives. This can be proved by first showing, with a
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 arg ...
, that \neg A is truth-functionally equivalent to A \downarrow A. Then, since A \downarrow B is truth-functionally equivalent to \neg (A \lor B), and A \lor B is equivalent to \neg(\neg A \land \neg B), the logical NOR suffices to define the set of connectives \, which is shown to be truth-functionally complete by the Disjunctive Normal Form Theorem. This may also be seen from the fact that Logical NOR does not possess any of the five qualities (truth-preserving, false-preserving,
linear In mathematics, the term ''linear'' is used in two distinct senses for two different properties: * linearity of a '' function'' (or '' mapping''); * linearity of a '' polynomial''. An example of a linear function is the function defined by f(x) ...
,
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 ord ...
, self-dual) required to be absent from at least one member of a set of functionally complete operators.


Other Boolean operations in terms of the logical NOR

NOR has the interesting feature that all other logical operators can be expressed by interlaced NOR operations. The logical NAND operator also has this ability. Expressed in terms of NOR \downarrow, the usual operators of propositional logic are:


See also

* Bitwise NOR *
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 variable (mathematics), variables are the truth values ''true'' and ''false'', usually denot ...
*
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 ...
*
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 functi ...
*
Functional completeness In Mathematical logic, logic, a functionally complete set of logical connectives or Boolean function, Boolean operators is one that can be used to express all possible truth tables by combining members of the Set (mathematics), set into a Boolean ...
*
NOR gate The NOR (NOT OR) gate is a digital logic gate that implements logical NOR - it behaves according to the truth table to the right. A HIGH output (1) results if both the inputs to the gate are LOW (0); if one or both input is HIGH (1), a LOW o ...
*
Propositional logic The propositional calculus is a branch of logic. It is also called propositional logic, statement logic, sentential calculus, sentential logic, or sometimes zeroth-order logic. Sometimes, it is called ''first-order'' propositional logic to contra ...
* Sole sufficient operator *
Sheffer stroke 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, ...
as symbol for the logical NAND


References


External links

* {{Logical connectives NOR Charles Sanders Peirce