Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Functional completeness

From Wikipedia, the free encyclopedia
Concept in mathematical logic
Logical connectives
NOT¬A,A,A¯,A{\displaystyle \neg A,-A,{\overline {A}},\sim A}
ANDAB,AB,AB,A & B,A && B{\displaystyle A\land B,A\cdot B,AB,A\ \&\ B,A\ \&\&\ B}
NANDA¯B,AB,AB,AB¯{\displaystyle A{\overline {\land }}B,A\uparrow B,A\mid B,{\overline {A\cdot B}}}
ORAB,A+B,AB,AB{\displaystyle A\lor B,A+B,A\mid B,A\parallel B}
NORA¯B,AB,A+B¯{\displaystyle A{\overline {\lor }}B,A\downarrow B,{\overline {A+B}}}
XNORAB,A¯B¯{\displaystyle A\odot B,{\overline {A{\overline {\lor }}B}}}
equivalentAB,AB,AB{\displaystyle A\equiv B,A\Leftrightarrow B,A\leftrightharpoons B}
XORA_B,AB{\displaystyle A{\underline {\lor }}B,A\oplus B}
└nonequivalentAB,AB,AB{\displaystyle A\not \equiv B,A\not \Leftrightarrow B,A\nleftrightarrow B}
impliesAB,AB,AB{\displaystyle A\Rightarrow B,A\supset B,A\rightarrow B}
nonimplication (NIMPLY)AB,AB,AB{\displaystyle A\not \Rightarrow B,A\not \supset B,A\nrightarrow B}
converseAB,AB,AB{\displaystyle A\Leftarrow B,A\subset B,A\leftarrow B}
converse nonimplicationAB,AB,AB{\displaystyle A\not \Leftarrow B,A\not \subset B,A\nleftarrow B}
Related concepts
Applications
Category

Inlogic, afunctionally complete set oflogical connectives orBoolean operators is one that can be used to express all possibletruth tables by combining members of theset into aBoolean expression.[1][2] A well-known complete set of connectives is{AND,NOT }. Each of thesingleton sets{NAND } and{NOR } is functionally complete. However, the set{ AND,OR } is incomplete, due to its inability to express NOT.

A gate (or set of gates) that is functionally complete can also be called a universal gate (or a universal set of gates).

In a context ofpropositional logic, functionally complete sets of connectives are also called (expressively)adequate.[3]

From the point of view ofdigital electronics, functional completeness means that every possiblelogic gate can be realized as a network of gates of the types prescribed by the set. In particular, all logic gates can be assembled from either only binaryNAND gates, or only binaryNOR gates.

Introduction

[edit]

Modern texts on logic typically take as primitive some subset of the connectives:conjunction ({\displaystyle \land });disjunction ({\displaystyle \lor });negation (¬{\displaystyle \neg });material conditional ({\displaystyle \to }); and possibly thebiconditional ({\displaystyle \leftrightarrow }). Further connectives can be defined, if so desired, by defining them in terms of these primitives. For example, NOR (the negation of the disjunction, sometimes denoted{\displaystyle \downarrow }) can be expressed as conjunction of two negations:

AB:=¬A¬B{\displaystyle A\downarrow B:=\neg A\land \neg B}

Similarly, the negation of the conjunction, NAND (sometimes denoted as{\displaystyle \uparrow }), can be defined in terms of disjunction and negation. Every binary connective can be defined in terms of{¬,,,,}{\displaystyle \{\neg ,\land ,\lor ,\to ,\leftrightarrow \}}, which means that set is functionally complete. However, it contains redundancy: this set is not aminimal functionally complete set, because the conditional and biconditional can be defined in terms of the other connectives as

AB:=¬ABAB:=(AB)(BA).{\displaystyle {\begin{aligned}A\to B&:=\neg A\lor B\\A\leftrightarrow B&:=(A\to B)\land (B\to A).\end{aligned}}}

It follows that the smaller set{¬,,}{\displaystyle \{\neg ,\land ,\lor \}} is also functionally complete. (Its functional completeness is also proved by theDisjunctive Normal Form Theorem.)[4] But this is still not minimal, as{\displaystyle \lor } can be defined as

AB:=¬(¬A¬B).{\displaystyle A\lor B:=\neg (\neg A\land \neg B).}

Alternatively,{\displaystyle \land } may be defined in terms of{\displaystyle \lor } in a similar manner, or{\displaystyle \lor } may be defined in terms of{\displaystyle \rightarrow }:

 AB:=¬AB.{\displaystyle \ A\vee B:=\neg A\rightarrow B.}

No further simplifications are possible. Hence, every two-element set of connectives containing¬{\displaystyle \neg } and one of{,,}{\displaystyle \{\land ,\lor ,\rightarrow \}} is a minimal functionally completesubset of{¬,,,,}{\displaystyle \{\neg ,\land ,\lor ,\to ,\leftrightarrow \}}.

Formal definition

[edit]

Given theBoolean domainB = {0, 1}, a setF of Boolean functionsfi :BniB isfunctionally complete if theclone onB generated by the basic functionsfi contains all functionsf :BnB, for allstrictly positive integersn ≥ 1. In other words, the set is functionally complete if every Boolean function that takes at least one variable can be expressed in terms of the functionsfi. Since every Boolean function of at least one variable can be expressed in terms of binary Boolean functions,F is functionally complete if and only if every binary Boolean function can be expressed in terms of the functions inF.

A more natural condition would be that the clone generated byF consist of all functionsf :BnB, for all integersn ≥ 0. However, the examples given above are not functionally complete in this stronger sense because it is not possible to write anullary function, i.e. a constant expression, in terms ofF ifF itself does not contain at least one nullary function. With this stronger definition, the smallest functionally complete sets would have 2 elements.

Another natural condition would be that the clone generated byF together with the two nullary constant functions be functionally complete or, equivalently, functionally complete in the strong sense of the previous paragraph. The example of the Boolean function given byS(x,y,z) =z ifx =y andS(x,y,z) =x otherwise shows that this condition is strictly weaker than functional completeness.[5][6][7]

Characterization of functional completeness

[edit]
Further information:Post's lattice

Emil Post proved that a set of logical connectives is functionally complete if and only if it is not a subset of any of the following sets of connectives:

Post gave a complete description of thelattice of allclones (sets of operations closed under composition and containing all projections) on the two-element set{T,F}, nowadays calledPost's lattice, which implies the above result as a simple corollary: the five mentioned sets of connectives are exactly the maximal nontrivial clones.[8]

Minimal functionally complete operator sets

[edit]

When a single logical connective or Boolean operator is functionally complete by itself, it is called aSheffer function[9] or sometimes asole sufficient operator. There are nounary operators with this property.NAND andNOR, which aredual to each other, are the only two binary Sheffer functions. These were discovered, but not published, byCharles Sanders Peirce around 1880, and rediscovered independently and published byHenry M. Sheffer in 1913.[10]In digital electronics terminology, the binaryNAND gate (↑) and the binaryNOR gate (↓) are the only binaryuniversal logic gates.

The following are the minimal functionally complete sets of logical connectives witharity ≤ 2:[11]

One element
{↑}, {↓}.
Two elements
{,¬}{\displaystyle \{\vee ,\neg \}},{,¬}{\displaystyle \{\wedge ,\neg \}},{,¬}{\displaystyle \{\to ,\neg \}},{,¬}{\displaystyle \{\gets ,\neg \}},{,}{\displaystyle \{\to ,\bot \}},{,}{\displaystyle \{\gets ,\bot \}},{,}{\displaystyle \{\to ,\nleftrightarrow \}},{,}{\displaystyle \{\gets ,\nleftrightarrow \}},{,}{\displaystyle \{\to ,\nrightarrow \}},{,}{\displaystyle \{\to ,\nleftarrow \}},{,}{\displaystyle \{\gets ,\nrightarrow \}},{,}{\displaystyle \{\gets ,\nleftarrow \}},{,¬}{\displaystyle \{\nrightarrow ,\neg \}},{,¬}{\displaystyle \{\nleftarrow ,\neg \}},{,}{\displaystyle \{\nrightarrow ,\top \}},{,}{\displaystyle \{\nleftarrow ,\top \}},{,}{\displaystyle \{\nrightarrow ,\leftrightarrow \}},{,}.{\displaystyle \{\nleftarrow ,\leftrightarrow \}.}
Three elements
{,,}{\displaystyle \{\lor ,\leftrightarrow ,\bot \}},{,,}{\displaystyle \{\lor ,\leftrightarrow ,\nleftrightarrow \}},{,,}{\displaystyle \{\lor ,\nleftrightarrow ,\top \}},{,,}{\displaystyle \{\land ,\leftrightarrow ,\bot \}},{,,}{\displaystyle \{\land ,\leftrightarrow ,\nleftrightarrow \}},{,,}.{\displaystyle \{\land ,\nleftrightarrow ,\top \}.}

There are no minimal functionally complete sets of more than three at most binary logical connectives.[11] In order to keep the lists above readable, operators that ignore one or more inputs have been omitted. For example, an operator that ignores the first input and outputs the negation of the second can be replaced by a unary negation.

Examples

[edit]
  • Examples of using theNAND (↑) completeness. As illustrated by,[12]
    • ¬AAA
    • AB ≡ ¬(AB) ≡ (AB) ↑ (AB)
    • AB ≡ (¬A) ↑ (¬B) ≡ (AA) ↑ (BB)
  • Examples of using theNOR (↓) completeness. As illustrated by,[13]
    • ¬AAA
    • AB ≡ ¬(AB) ≡ (AB) ↓ (AB)
    • AB ≡ (¬A) ↓ (¬B) ≡ (AA) ↓ (BB)

Note that an electronic circuit or a software function can be optimized by reuse, to reduce the number of gates. For instance, the "AB" operation, when expressed by ↑ gates, is implemented with the reuse of "A ↑ B",

X ≡ (AB);ABXX

In other domains

[edit]

Apart from logical connectives (Boolean operators), functional completeness can be introduced in other domains. For example, a set ofreversible gates is called functionally complete, if it can express every reversible operator.

The 3-inputFredkin gate is functionally complete reversible gate by itself – a sole sufficient operator. There are many other three-input universal logic gates, such as theToffoli gate.

Inquantum computing, theHadamard gate and theT gate are universal, albeit with aslightly more restrictive definition than that of functional completeness.

Set theory

[edit]

There is anisomorphism between thealgebra of sets and theBoolean algebra, that is, they have the samestructure. Then, if we map boolean operators into set operators, the "translated" above text are valid also for sets: there are many "minimal complete set of set-theory operators" that can generate any other set relations. The more popular "Minimal complete operator sets" are{¬, ∩} and{¬, ∪}. If theuniversal setis forbidden, set operators are restricted to being falsity (Ø) preserving, and cannot be equivalent to functionally complete Boolean algebra.

See also

[edit]

References

[edit]
  1. ^Enderton, Herbert (2001),A mathematical introduction to logic (2nd ed.), Boston, MA:Academic Press,ISBN 978-0-12-238452-3. ("Complete set of logical connectives").
  2. ^Nolt, John; Rohatyn, Dennis; Varzi, Achille (1998),Schaum's outline of theory and problems of logic (2nd ed.), New York:McGraw–Hill,ISBN 978-0-07-046649-4. ("[F]unctional completeness of [a] set of logical operators").
  3. ^Smith, Peter (2003),An introduction to formal logic,Cambridge University Press,ISBN 978-0-521-00804-4. (Defines "expressively adequate", shortened to "adequate set of connectives" in a section heading.)
  4. ^Howson, Colin (1997).Logic with trees: an introduction to symbolic logic. London; New York: Routledge. p. 41.ISBN 978-0-415-13342-5.
  5. ^Wesselkamper, T.C. (1975),"A sole sufficient operator",Notre Dame Journal of Formal Logic,16:86–88,doi:10.1305/ndjfl/1093891614
  6. ^Massey, G.J. (1975),"Concerning an alleged Sheffer function",Notre Dame Journal of Formal Logic,16 (4):549–550,doi:10.1305/ndjfl/1093891898
  7. ^Wesselkamper, T.C. (1975),"A Correction To My Paper" A. Sole Sufficient Operator",Notre Dame Journal of Formal Logic,16 (4): 551,doi:10.1305/ndjfl/1093891899
  8. ^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. See p.105 for the theorem, pp.53, 59, 69, 70, 131 for a definition of the classes A1, L1, C2, C3, D3, and pp.35, 43 for the definition of [A:a] condition and α, β, γ function.
  9. ^The term was originally restricted tobinary operations, but since the end of the 20th century it is used more generally.Martin, N.M. (1989),Systems of logic, Cambridge University Press, p. 54,ISBN 978-0-521-36770-7.
  10. ^Scharle, T.W. (1965),"Axiomatization of propositional calculus with Sheffer functors",Notre Dame J. Formal Logic,6 (3):209–217,doi:10.1305/ndjfl/1093958259.
  11. ^abWernick, William (1942) "Complete Sets of Logical Functions,"Transactions of the American Mathematical Society 51: 117–32. In his list on the last page of the article, Wernick does not distinguish between ← and →, or between{\displaystyle \nleftarrow } and{\displaystyle \nrightarrow }.
  12. ^"NAND Gate Operations" athttp://hyperphysics.phy-astr.gsu.edu/hbase/electronic/nand.html
  13. ^"NOR Gate Operations" athttp://hyperphysics.phy-astr.gsu.edu/hbase/electronic/nor.html
General
Theorems (list)
 and paradoxes
Logics
Traditional
Propositional
Predicate
Set theory
Types ofsets
Maps and cardinality
Set theories
Formal systems (list),
language and syntax
Example axiomatic
systems
 (list)
Proof theory
Model theory
Computability theory
Related
Retrieved from "https://en.wikipedia.org/w/index.php?title=Functional_completeness&oldid=1269204712"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp