Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Logical connective

From Wikipedia, the free encyclopedia
(Redirected fromLogical operator)
Symbol connecting formulas in logic

For other logical symbols, seeList of logic symbols.
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\mathop {\&} B,A\mathop {\&\&} B}
NANDA¯B,AB,AB,AB¯{\displaystyle A\mathrel {\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\mathrel {\overline {\lor }} B,A\downarrow B,{\overline {A+B}}}
XNORAB,A¯B¯{\displaystyle A\odot B,{\overline {A\mathrel {\overline {\lor }} B}}}
equivalentAB,AB,AB{\displaystyle A\equiv B,A\Leftrightarrow B,A\leftrightharpoons B}
XORA_B,AB{\displaystyle A\mathrel {\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
Hasse diagram of logical connectives

Inlogic, alogical connective (also called alogical operator,sentential connective, orsentential operator) is an operator that combines or modifies one or more logical variables or formulas, similarly to how arithmetic connectives like+{\displaystyle +} and{\displaystyle -} combine or negate arithmetic expressions. For instance, in thesyntax ofpropositional logic, thebinary connective{\displaystyle \lor } (meaning "or") can be used to join the two logical formulasP{\displaystyle P} andQ{\displaystyle Q}, producing the complex formulaPQ{\displaystyle P\lor Q}.

Unlike in algebra, there are many symbols in use for each logical connective. The table "Logical connectives" shows examples.

Common connectives includenegation,disjunction,conjunction,implication, andequivalence. In standard systems ofclassical logic, these connectives areinterpreted astruth functions, though they receive a variety of alternative interpretations innonclassical logics. Their classical interpretations are similar to the meanings of natural language expressions such asEnglish "not", "or", "and", and "if", but not identical. Discrepancies between natural language connectives and those of classical logic have motivated nonclassical approaches to natural language meaning.

Overview

[edit]

Informal languages, truth functions are denoted by fixed symbols, ensuring that well-formed statements have a single interpretation. These symbols are calledlogical connectives,logical operators,propositional operators, or, inclassical logic,truth-functional connectives. For the rules which allow new well-formed formulas to be constructed by joining other well-formed formulas using truth-functional connectives, seewell-formed formula.

Logical connectives can be used to link zero or more statements, so one can speak aboutn-ary logical connectives. Theboolean constantsTrue andFalse can be thought of as nullary operators. Negation is a unary connective, and so on.

Symbol, nameTruth
table
Venn
diagram
Zeroary connectives (constants)
{\displaystyle \top }Truth/tautology1
{\displaystyle \bot }Falsity/contradiction0
Unary connectives
p{\displaystyle p} =01
Propositionp{\displaystyle p}01
¬{\displaystyle \neg }Negation10
Binary connectives
p{\displaystyle p} =0011
q{\displaystyle q} =0101
{\displaystyle \land }Conjunction0001
{\displaystyle \uparrow }Alternative denial1110
{\displaystyle \vee }Disjunction0111
{\displaystyle \downarrow }Joint denial1000
{\displaystyle \nleftrightarrow }Exclusive or0110
{\displaystyle \leftrightarrow }Biconditional1001
{\displaystyle \rightarrow }Material conditional1101
{\displaystyle \nrightarrow }Material nonimplication0010
{\displaystyle \leftarrow }Converse implication1011
{\displaystyle \nleftarrow }Converse nonimplication0100
More information

List of common logical connectives

[edit]

Commonly used logical connectives include the following ones.[1]

For example, the meaning of the statementsit is raining (denoted byp{\displaystyle p}) andI am indoors (denoted byq{\displaystyle q}) is transformed, when the two are combined with logical connectives:

It is also common to consider thealways true formula and thealways false formula to be connective (in which case they arenullary).

This table summarizes the terminology:

ConnectiveIn EnglishNoun for partsVerb phrase
ConjunctionBoth A and BconjunctA and B are conjoined
DisjunctionEither A or B, or bothdisjunctA and B are disjoined
NegationIt is not the case that Anegatum/negandA is negated
ConditionalIf A, then Bantecedent, consequentB is implied by A
BiconditionalA if, and only if, BequivalentsA and B are equivalent

History of notations

[edit]

Some authors used letters for connectives:u.{\displaystyle \operatorname {u.} } for conjunction (German's "und" for "and") ando.{\displaystyle \operatorname {o.} } for disjunction (German's "oder" for "or") in early works by Hilbert (1904);[16]Np{\displaystyle Np} for negation,Kpq{\displaystyle Kpq} for conjunction,Dpq{\displaystyle Dpq} for alternative denial,Apq{\displaystyle Apq} for disjunction,Cpq{\displaystyle Cpq} for implication,Epq{\displaystyle Epq} for biconditional inŁukasiewicz in 1929.

Redundancy

[edit]

Such a logical connective asconverse implication "{\displaystyle \leftarrow }" is actually the same asmaterial conditional with swapped arguments; thus, the symbol for converse implication is redundant. In some logical calculi (notably, inclassical logic), certain essentially different compound statements arelogically equivalent. A lesstrivial example of a redundancy is the classical equivalence between¬pq{\displaystyle \neg p\vee q} andpq{\displaystyle p\to q}. Therefore, a classical-based logical system does not need the conditional operator "{\displaystyle \to }" if "¬{\displaystyle \neg }" (not) and "{\displaystyle \vee }" (or) are already in use, or may use the "{\displaystyle \to }" only as asyntactic sugar for a compound having one negation and one disjunction.

There are sixteenBoolean functions associating the inputtruth valuesp{\displaystyle p} andq{\displaystyle q} with four-digitbinary outputs.[17] These correspond to possible choices of binary logical connectives forclassical logic. Different implementations of classical logic can choose differentfunctionally complete subsets of connectives.

One approach is to choose aminimal set, and define other connectives by some logical form, as in the example with the material conditional above. The following are theminimal functionally complete sets of operators in classical logic whose arities do not exceed 2:

One element
{}{\displaystyle \{\uparrow \}},{}{\displaystyle \{\downarrow \}}.
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 \}}.

Another approach is to use with equal rights connectives of a certain convenient and functionally complete, butnot minimal set. This approach requires more propositionalaxioms, and each equivalence between logical forms must be either anaxiom or provable as a theorem.

The situation, however, is more complicated inintuitionistic logic. Of its five connectives, {∧, ∨, →, ¬, ⊥}, only negation "¬" can be reduced to other connectives (seeFalse (logic) § False, negation and contradiction for more). Neither conjunction, disjunction, nor material conditional has an equivalent form constructed from the other four logical connectives.

Natural language

[edit]

The standard logical connectives of classical logic have rough equivalents in the grammars of natural languages. InEnglish, as in many languages, such expressions are typicallygrammatical conjunctions. However, they can also take the form ofcomplementizers,verbsuffixes, andparticles. Thedenotations of natural language connectives is a major topic of research informal semantics, a field that studies the logical structure of natural languages.

The meanings of natural language connectives are not precisely identical to their nearest equivalents in classical logic. In particular, disjunction can receive anexclusive interpretation in many languages. Some researchers have taken this fact as evidence that natural languagesemantics isnonclassical. However, others maintain classical semantics by positingpragmatic accounts of exclusivity which create the illusion of nonclassicality. In such accounts, exclusivity is typically treated as ascalar implicature. Related puzzles involving disjunction includefree choice inferences,Hurford's Constraint, and the contribution of disjunction inalternative questions.

Other apparent discrepancies between natural language and classical logic include theparadoxes of material implication,donkey anaphora and the problem ofcounterfactual conditionals. These phenomena have been taken as motivation for identifying the denotations of natural language conditionals with logical operators including thestrict conditional, thevariably strict conditional, as well as variousdynamic operators.

The following table shows the standard classically definable approximations for the English connectives.

English wordConnectiveSymbolLogical gate
notnegation¬{\displaystyle \neg }NOT
andconjunction{\displaystyle \land }AND
ordisjunction{\displaystyle \vee }OR
if...thenmaterial implication{\displaystyle \rightarrow }IMPLY
...ifconverse implication{\displaystyle \leftarrow }
either...orexclusive disjunction{\displaystyle \nleftrightarrow }XOR
if and only ifbiconditional{\displaystyle \leftrightarrow }XNOR
not bothalternative denial{\displaystyle \uparrow }NAND
neither...norjoint denial{\displaystyle \downarrow }NOR
but notmaterial nonimplication{\displaystyle \nrightarrow }NIMPLY
not...butconverse nonimplication{\displaystyle \nleftarrow }

Properties

[edit]

Some logical connectives possess properties that may be expressed in the theorems containing the connective. Some of those properties that a logical connective may have are:

Associativity
Within an expression containing two or more of the same associative connectives in a row, the order of the operations does not matter as long as the sequence of the operands is not changed.
Commutativity
The operands of the connective may be swapped, preserving logical equivalence to the original expression.
Distributivity
A connective denoted by · distributes over another connective denoted by +, ifa · (b +c) = (a ·b) + (a ·c) for all operandsa,b,c.
Idempotence
Whenever the operands of the operation are the same, the compound is logically equivalent to the operand.
Absorption
A pair of connectives ∧, ∨ satisfies the absorption law ifa(ab)=a{\displaystyle a\land (a\lor b)=a} for all operandsa,b.
Monotonicity
Iff(a1, ...,an) ≤f(b1, ...,bn) for alla1, ...,an,b1, ...,bn ∈ {0,1} such thata1b1,a2b2, ...,anbn. E.g., ∨, ∧, ⊤, ⊥.
Affinity
Each variable always makes a difference in the truth-value of the operation or it never makes a difference. E.g., ¬, ↔,{\displaystyle \nleftrightarrow }, ⊤, ⊥.
Duality
To read the truth-value assignments for the operation from top to bottom on itstruth table is the same as taking the complement of reading the table of the same or another connective from bottom to top. Without resorting to truth tables it may be formulated asa1, ..., ¬an) = ¬g(a1, ...,an). E.g., ¬.
Truth-preserving
The compound all those arguments are tautologies is a tautology itself. E.g., ∨, ∧, ⊤, →, ↔, ⊂ (seevalidity).
Falsehood-preserving
The compound all those argument arecontradictions is a contradiction itself. E.g., ∨, ∧,{\displaystyle \nleftrightarrow }, ⊥, ⊄, ⊅ (seevalidity).
Involutivity (for unary connectives)
f(f(a)) =a. E.g. negation in classical logic.

For classical and intuitionistic logic, the "=" symbol means that corresponding implications "...→..." and "...←..." for logical compounds can be both proved as theorems, and the "≤" symbol means that "...→..." for logical compounds is a consequence of corresponding "...→..." connectives for propositional variables. Somemany-valued logics may have incompatible definitions of equivalence and order (entailment).

Both conjunction and disjunction are associative, commutative and idempotent in classical logic, most varieties of many-valued logic and intuitionistic logic. The same is true about distributivity of conjunction over disjunction and disjunction over conjunction, as well as for the absorption law.

In classical logic and some varieties of many-valued logic, conjunction and disjunction are dual, and negation is self-dual, the latter is also self-dual in intuitionistic logic.

[icon]
This sectionneeds expansion. You can help byadding missing information.(March 2012)

Order of precedence

[edit]

As a way of reducing the number of necessary parentheses, one may introduceprecedence rules: ¬ has higher precedence than ∧, ∧ higher than ∨, and ∨ higher than →. So for example,PQ¬RS{\displaystyle P\vee Q\land {\neg R}\rightarrow S} is short for(P(Q(¬R)))S{\displaystyle (P\vee (Q\land (\neg R)))\rightarrow S}.

Here is a table that shows a commonly used precedence of logical operators.[18][19]

OperatorPrecedence
¬{\displaystyle \neg }1
{\displaystyle \land }2
{\displaystyle \vee }3
{\displaystyle \rightarrow }4
{\displaystyle \leftrightarrow }5

However, not all compilers use the same order; for instance, an ordering in which disjunction is lower precedence than implication or bi-implication has also been used.[20] Sometimes precedence between conjunction and disjunction is unspecified requiring to provide it explicitly in given formula with parentheses. The order of precedence determines which connective is the "main connective" when interpreting a non-atomic formula.

Table and Hasse diagram

[edit]

The 16 logical connectives can bepartially ordered to produce the followingHasse diagram. The partial order is defined by declaring thatxy{\displaystyle x\leq y} if and only if wheneverx{\displaystyle x} holds then so doesy.{\displaystyle y.}

  

Applications

[edit]

Logical connectives are used incomputer science and inset theory.

Computer science

[edit]
Main article:Logic gate

A truth-functional approach to logical operators is implemented aslogic gates indigital circuits. Practically all digital circuits (the major exception isDRAM) are built up fromNAND,NOR,NOT, andtransmission gates; see more details inTruth function in computer science. Logical operators overbit vectors (corresponding to finiteBoolean algebras) arebitwise operations.

But not every usage of a logical connective incomputer programming has a Boolean semantic. For example,lazy evaluation is sometimes implemented forP ∧ Q andP ∨ Q, so these connectives are not commutative if either or both of the expressionsP,Q haveside effects. Also, aconditional, which in some sense corresponds to thematerial conditional connective, is essentially non-Boolean because forif (P) then Q;, the consequent Q is not executed if theantecedent P is false (although a compound as a whole is successful ≈ "true" in such case). This is closer tointuitionist andconstructivist views on the material conditional— rather than to classical logic's views.

Set theory

[edit]
Main articles:Set theory andAxiomatic set theory

Logical connectives are used to define the fundamental operations ofset theory,[21] as follows:

Set theory operations and connectives
Set operationConnectiveDefinition
IntersectionConjunctionAB={x:xAxB}{\displaystyle A\cap B=\{x:x\in A\land x\in B\}}[22][23][24]
UnionDisjunctionAB={x:xAxB}{\displaystyle A\cup B=\{x:x\in A\lor x\in B\}}[25][22][23]
ComplementNegationA¯={x:xA}{\displaystyle {\overline {A}}=\{x:x\notin A\}}[26][23][27]
SubsetImplicationAB(xAxB){\displaystyle A\subseteq B\leftrightarrow (x\in A\rightarrow x\in B)}[28][23][29]
EqualityBiconditionalA=B(X)[AXBX]{\displaystyle A=B\leftrightarrow (\forall X)[A\in X\leftrightarrow B\in X]}[28][23][30]

This definition of set equality is equivalent to theaxiom of extensionality.

See also

[edit]

References

[edit]
  1. ^Chao, C. (2023).数理逻辑:形式化方法的应用 [Mathematical Logic: Applications of the Formalization Method] (in Chinese). Beijing: Preprint. pp. 15–28.
  2. ^abHeyting, A. (1930). "Die formalen Regeln der intuitionistischen Logik".Sitzungsberichte der Preussischen Akademie der Wissenschaften, Physikalisch-mathematische Klasse (in German):42–56.
  3. ^Denis Roegel (2002),A brief survey of 20th century logical notations (see chart on page 2).
  4. ^Frege, G. (1879).Begriffsschrift, eine der arithmetischen nachgebildete Formelsprache des reinen Denkens. Halle a/S.: Verlag von Louis Nebert. p. 10.
  5. ^abcRussell (1908)Mathematical logic as based on the theory of types (American Journal of Mathematics 30, p222–262, also in From Frege to Gödel edited by van Heijenoort).
  6. ^Peano (1889)Arithmetices principia, nova methodo exposita.
  7. ^abSchönfinkel (1924) Über die Bausteine der mathematischen Logik, translated asOn the building blocks of mathematical logic in From Frege to Gödel edited by van Heijenoort.
  8. ^Peirce (1867)On an improvement in Boole's calculus of logic.
  9. ^Hilbert, D. (1918). Bernays, P. (ed.).Prinzipien der Mathematik. Lecture notes at Universität Göttingen, Winter Semester, 1917-1918; Reprinted asHilbert, D. (2013). "Prinzipien der Mathematik". In Ewald, W.; Sieg, W. (eds.).David Hilbert's Lectures on the Foundations of Arithmetic and Logic 1917–1933. Heidelberg, New York, Dordrecht and London: Springer. pp. 59–221.
  10. ^Bourbaki, N. (1954).Théorie des ensembles. Paris: Hermann & Cie, Éditeurs. p. 14.
  11. ^Frege, G. (1879).Begriffsschrift, eine der arithmetischen nachgebildete Formelsprache des reinen Denkens (in German). Halle a/S.: Verlag von Louis Nebert. p. 15.
  12. ^Becker, A. (1933).Die Aristotelische Theorie der Möglichkeitsschlösse: Eine logisch-philologische Untersuchung der Kapitel 13-22 von Aristoteles' Analytica priora I (in German). Berlin: Junker und Dünnhaupt Verlag. p. 4.
  13. ^Bourbaki, N. (1954).Théorie des ensembles (in French). Paris: Hermann & Cie, Éditeurs. p. 32.
  14. ^Gentzen (1934)Untersuchungen über das logische Schließen.
  15. ^Chazal (1996) : Éléments de logique formelle.
  16. ^Hilbert, D. (1905) [1904]. "Über die Grundlagen der Logik und der Arithmetik". In Krazer, K. (ed.).Verhandlungen des Dritten Internationalen Mathematiker Kongresses in Heidelberg vom 8. bis 13. August 1904. pp. 174–185.
  17. ^Bocheński (1959),A Précis of Mathematical Logic, passim.
  18. ^O'Donnell, John; Hall, Cordelia; Page, Rex (2007).Discrete Mathematics Using a Computer. Springer. p. 120.ISBN 9781846285981..
  19. ^Allen, Colin; Hand, Michael (2022).Logic primer (3rd ed.). Cambridge, Massachusetts: The MIT Press.ISBN 978-0-262-54364-4.
  20. ^Jackson, Daniel (2012).Software Abstractions: Logic, Language, and Analysis. MIT Press. p. 263.ISBN 9780262017152..
  21. ^Pinter, Charles C. (2014).A book of set theory. Mineola, New York: Dover Publications, Inc. pp. 26–29.ISBN 978-0-486-49708-2.
  22. ^ab"Set operations".www.siue.edu. Retrieved2024-06-11.
  23. ^abcde"1.5 Logic and Sets".www.whitman.edu. Retrieved2024-06-11.
  24. ^"Theory Set".mirror.clarkson.edu. Retrieved2024-06-11.
  25. ^"Set Inclusion and Relations".autry.sites.grinnell.edu. Retrieved2024-06-11.
  26. ^"Complement and Set Difference".web.mnstate.edu. Retrieved2024-06-11.
  27. ^Cooper, A."Set Operations and Subsets – Foundations of Mathematics". Retrieved2024-06-11.
  28. ^ab"Basic concepts".www.siue.edu. Retrieved2024-06-11.
  29. ^Cooper, A."Set Operations and Subsets – Foundations of Mathematics". Retrieved2024-06-11.
  30. ^Cooper, A."Set Operations and Subsets – Foundations of Mathematics". Retrieved2024-06-11.

Sources

[edit]

External links

[edit]
Wikimedia Commons has media related toLogical connectives.
General
Theorems
(list),
paradoxes
Logics
Traditional
Propositional
Predicate
Set theory
Types
ofsets
Maps,
cardinality
Theories
Formal
systems

(list),
language,
syntax
Example
axiomatic
systems

(list)
Proof theory
Model theory
Computability
theory
Related
Central concepts
Topics
Areas
Phenomena
Formalism
Formal systems
Concepts
See also
Authority control databasesEdit this at Wikidata
Retrieved from "https://en.wikipedia.org/w/index.php?title=Logical_connective&oldid=1329577672"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp