Share to: share facebook share twitter share wa share telegram print page

Truth function

In logic, a truth function[1] is a function that accepts truth values as input and produces a unique truth value as output. In other words: the input and output of a truth function are all truth values; a truth function will always output exactly one truth value, and inputting the same truth value(s) will always output the same truth value. The typical example is in propositional logic, wherein a compound statement is constructed using individual statements connected by logical connectives; if the truth value of the compound statement is entirely determined by the truth value(s) of the constituent statement(s), the compound statement is called a truth function, and any logical connectives used are said to be truth functional.[2]

Classical propositional logic is a truth-functional logic,[3] in that every statement has exactly one truth value which is either true or false, and every logical connective is truth functional (with a correspondent truth table), thus every compound statement is a truth function.[4] On the other hand, modal logic is non-truth-functional.

Overview

A logical connective is truth-functional if the truth-value of a compound sentence is a function of the truth-value of its sub-sentences. A class of connectives is truth-functional if each of its members is. For example, the connective "and" is truth-functional since a sentence like "Apples are fruits and carrots are vegetables" is true if, and only if, each of its sub-sentences "apples are fruits" and "carrots are vegetables" is true, and it is false otherwise. Some connectives of a natural language, such as English, are not truth-functional.

Connectives of the form "x believes that ..." are typical examples of connectives that are not truth-functional. If e.g. Mary mistakenly believes that Al Gore was President of the USA on April 20, 2000, but she does not believe that the moon is made of green cheese, then the sentence

"Mary believes that Al Gore was President of the USA on April 20, 2000"

is true while

"Mary believes that the moon is made of green cheese"

is false. In both cases, each component sentence (i.e. "Al Gore was president of the USA on April 20, 2000" and "the moon is made of green cheese") is false, but each compound sentence formed by prefixing the phrase "Mary believes that" differs in truth-value. That is, the truth-value of a sentence of the form "Mary believes that..." is not determined solely by the truth-value of its component sentence, and hence the (unary) connective (or simply operator since it is unary) is non-truth-functional.

The class of classical logic connectives (e.g. &, ) used in the construction of formulas is truth-functional. Their values for various truth-values as argument are usually given by truth tables. Truth-functional propositional calculus is a formal system whose formulae may be interpreted as either true or false.

Table of binary truth functions

In two-valued logic, there are sixteen possible truth functions, also called Boolean functions, of two inputs P and Q. Any of these functions corresponds to a truth table of a certain logical connective in classical logic, including several degenerate cases such as a function not depending on one or both of its arguments. Truth and falsehood are denoted as 1 and 0, respectively, in the following truth tables for sake of brevity.

Contradiction/False
Notation Equivalent
formulas
Truth table Venn diagram

"bottom"
P ∧ ¬P
Opq
  Q
0 1
P 0    0   0 
1    0   0 


Tautology/True
Notation Equivalent
formulas
Truth table Venn diagram

"top"
P ∨ ¬P
Vpq
  Q
0 1
P 0    1   1 
1    1   1 


Proposition P
Notation Equivalent
formulas
Truth table Venn diagram
P p
Ipq
  Q
0 1
P 0    0   0 
1    1   1 


Negation of P
Notation Equivalent
formulas
Truth table Venn diagram
¬P
~P
Np
Fpq
  Q
0 1
P 0    1   1 
1    0   0 


Proposition Q
Notation Equivalent
formulas
Truth table Venn diagram
Q q
Hpq
  Q
0 1
P 0    0   1 
1    0   1 


Negation of Q
Notation Equivalent
formulas
Truth table Venn diagram
¬Q
~Q
Nq
Gpq
  Q
0 1
P 0    1   0 
1    1   0 


Conjunction
Notation Equivalent
formulas
Truth table Venn diagram
PQ
P & Q
P · Q
P AND Q
P ↛¬Q
¬PQ
¬P ↓ ¬Q
Kpq
  Q
0 1
P 0    0   0 
1    0   1 


Non-conjunction/Alternative denial
Notation Equivalent
formulas
Truth table Venn diagram
PQ
P | Q
P NAND Q
P → ¬Q
¬PQ
¬P ∨ ¬Q
Dpq
  Q
0 1
P 0    1   1 
1    1   0 


Disjunction
Notation Equivalent
formulas
Truth table Venn diagram
PQ
P OR Q
P ← ¬Q
¬PQ
¬P ↑ ¬Q
¬(¬P ∧ ¬Q)
Apq
  Q
0 1
P 0    0   1 
1    1   1 


Non-disjunction/Joint denial
Notation Equivalent
formulas
Truth table Venn diagram
PQ
P NOR Q
P ↚ ¬Q
¬PQ
¬P ∧ ¬Q
Xpq
  Q
0 1
P 0    1   0 
1    0   0 


Material nonimplication
Notation Equivalent
formulas
Truth table Venn diagram
PQ
P Q
P Q
P NIMPLY Q
P ∧ ¬Q
¬PQ
¬P ↚ ¬Q
Lpq
  Q
0 1
P 0    0   0 
1    1   0 


Material implication
Notation Equivalent
formulas
Truth table Venn diagram
PQ
PQ
P Q
P IMPLY Q
P ↑ ¬Q
¬PQ
¬P ← ¬Q
Cpq
  Q
0 1
P 0    1   1 
1    0   1 


Converse nonimplication
Notation Equivalent
formulas
Truth table Venn diagram
PQ
P Q
P Q
P ↓ ¬Q
¬PQ
¬P ↛ ¬Q
Mpq
  Q
0 1
P 0    0   1 
1    0   0 


Converse implication
Notation Equivalent
formulas
Truth table Venn diagram
PQ
PQ
P Q
P ∨ ¬Q
¬PQ
¬P → ¬Q
Bpq
  Q
0 1
P 0    1   0 
1    1   1 


Non-equivalence/Exclusive disjunction
Notation Equivalent
formulas
Truth table Venn diagram
PQ
PQ
PQ
P XOR Q
P ¬Q
¬P Q
¬P ↮ ¬Q
Jpq
  Q
0 1
P 0    0   1 
1    1   0 


Equivalence/Biconditional
Notation Equivalent
formulas
Truth table Venn diagram
P Q
PQ
P XNOR Q
P IFF Q
P ↮ ¬Q
¬PQ
¬P ¬Q
Epq
  Q
0 1
P 0    1   0 
1    0   1 


Functional completeness

Because a function may be expressed as a composition, a truth-functional logical calculus does not need to have dedicated symbols for all of the above-mentioned functions to be functionally complete. This is expressed in a propositional calculus as logical equivalence of certain compound statements. For example, classical logic has ¬P ∨ Q equivalent to P → Q. The conditional operator "→" is therefore not necessary for a classical-based logical system if "¬" (not) and "∨" (or) are already in use.

A minimal set of operators that can express every statement expressible in the propositional calculus is called a minimal functionally complete set. A minimally complete set of operators is achieved by NAND alone {↑} and NOR alone {↓}.

The following are the minimal functionally complete sets of operators whose arities do not exceed 2:[5]

One element
{↑}, {↓}.
Two elements
, , , , , , , , , , , , , , , , , .
Three elements
, , , , , .

Algebraic properties

Some truth functions possess properties which may be expressed in the theorems containing the corresponding connective. Some of those properties that a binary truth function (or a corresponding 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 without affecting the truth-value of the expression.
  • distributivity: A connective denoted by · distributes over another connective denoted by +, if a · (b + c) = (a · b) + (a · c) for all operands a, b, c.
  • idempotence: Whenever the operands of the operation are the same, the connective gives the operand as the result. In other words, the operation is both truth-preserving and falsehood-preserving (see below).
  • absorption: A pair of connectives satisfies the absorption law if for all operands a, b.

A set of truth functions is functionally complete if and only if for each of the following five properties it contains at least one member lacking it:

  • monotonic: If f(a1, ..., an) ≤ f(b1, ..., bn) for all a1, ..., an, b1, ..., bn ∈ {0,1} such that a1b1, a2b2, ..., anbn. E.g., .
  • affine: For each variable, changing its value either always or never changes the truth-value of the operation, for all fixed values of all other variables. E.g., , .
  • self dual: To read the truth-value assignments for the operation from top to bottom on its truth table is the same as taking the complement of reading it from bottom to top; in other words, fa1, ..., ¬an) = ¬f(a1, ..., an). E.g., .
  • truth-preserving: The interpretation under which all variables are assigned a truth value of true produces a truth value of true as a result of these operations. E.g., . (see validity)
  • falsehood-preserving: The interpretation under which all variables are assigned a truth value of false produces a truth value of false as a result of these operations. E.g., . (see validity)

Arity

A concrete function may be also referred to as an operator. In two-valued logic there are 2 nullary operators (constants), 4 unary operators, 16 binary operators, 256 ternary operators, and n-ary operators. In three-valued logic there are 3 nullary operators (constants), 27 unary operators, 19683 binary operators, 7625597484987 ternary operators, and n-ary operators. In k-valued logic, there are k nullary operators, unary operators, binary operators, ternary operators, and n-ary operators. An n-ary operator in k-valued logic is a function from . Therefore, the number of such operators is , which is how the above numbers were derived.

However, some of the operators of a particular arity are actually degenerate forms that perform a lower-arity operation on some of the inputs and ignore the rest of the inputs. Out of the 256 ternary boolean operators cited above, of them are such degenerate forms of binary or lower-arity operators, using the inclusion–exclusion principle. The ternary operator is one such operator which is actually a unary operator applied to one input, and ignoring the other two inputs.

"Not" is a unary operator, it takes a single term (¬P). The rest are binary operators, taking two terms to make a compound statement (PQ, PQ, PQ, PQ).

The set of logical operators Ω may be partitioned into disjoint subsets as follows:

In this partition, is the set of operator symbols of arity j.

In the more familiar propositional calculi, is typically partitioned as follows:

nullary operators:
unary operators:
binary operators:

Principle of compositionality

Instead of using truth tables, logical connective symbols can be interpreted by means of an interpretation function and a functionally complete set of truth-functions (Gamut 1991), as detailed by the principle of compositionality of meaning. Let I be an interpretation function, let Φ, Ψ be any two sentences and let the truth function fnand be defined as:

  • fnand(T,T) = F; fnand(T,F) = fnand(F,T) = fnand(F,F) = T

Then, for convenience, fnot, for fand and so on are defined by means of fnand:

  • fnot(x) = fnand(x,x)
  • for(x,y) = fnand(fnot(x), fnot(y))
  • fand(x,y) = fnot(fnand(x,y))

or, alternatively fnot, for fand and so on are defined directly:

  • fnot(T) = F; fnot(F) = T;
  • for(T,T) = for(T,F) = for(F,T) = T; for(F,F) = F
  • fand(T,T) = T; fand(T,F) = fand(F,T) = fand(F,F) = F

Then

  • I(~) = I() = fnot
  • I(&) = I() = fand
  • I(v) = I() = for
  • I(~Φ) = I(Φ) = I()(I(Φ)) = fnot(I(Φ))
  • I(ΦΨ) = I()(I(Φ), I(Ψ)) = fand(I(Φ), I(Ψ))

etc.

Thus if S is a sentence that is a string of symbols consisting of logical symbols v1...vn representing logical connectives, and non-logical symbols c1...cn, then if and only if I(v1)...I(vn) have been provided interpreting v1 to vn by means of fnand (or any other set of functional complete truth-functions) then the truth-value of is determined entirely by the truth-values of c1...cn, i.e. of I(c1)...I(cn). In other words, as expected and required, S is true or false only under an interpretation of all its non-logical symbols.

Computer science

Logical operators are implemented as logic gates in digital circuits. Practically all digital circuits (the major exception is DRAM) are built up from NAND, NOR, NOT, and transmission gates. NAND and NOR gates with 3 or more inputs rather than the usual 2 inputs are fairly common, although they are logically equivalent to a cascade of 2-input gates. All other operators are implemented by breaking them down into a logically equivalent combination of 2 or more of the above logic gates.

The "logical equivalence" of "NAND alone", "NOR alone", and "NOT and AND" is similar to Turing equivalence.

The fact that all truth functions can be expressed with NOR alone is demonstrated by the Apollo guidance computer.

See also

Notes

  1. ^ Roy T. Cook (2009). A Dictionary of Philosophical Logic, p. 294: Truth Function. Edinburgh University Press.
  2. ^ Roy T. Cook (2009). A Dictionary of Philosophical Logic, p. 295: Truth Functional. Edinburgh University Press.
  3. ^ Internet Encyclopedia of Philosophy: Propositional Logic, by Kevin C. Klement
  4. ^ Roy T. Cook (2009). A Dictionary of Philosophical Logic, p. 47: Classical Logic. Edinburgh University Press.
  5. ^ Wernick, 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 and .

References

Further reading

  • Józef Maria Bocheński (1959), A Précis of Mathematical Logic, translated from the French and German versions by Otto Bird, Dordrecht, South Holland: D. Reidel.
  • Alonzo Church (1944), Introduction to Mathematical Logic, Princeton, NJ: Princeton University Press. See the Introduction for a history of the truth function concept.

Read other articles:

Non sono una signoraLogo del programmaPaeseItalia Anno2023 Generetalent show, varietà Edizioni1 Puntate5 Durata150 min Lingua originaleitaliano RealizzazioneConduttoreAlba Parietti RegiaFabrizio Guttuso Alaimo AutoriFabio Pastrello, Ennio Meloni, Annalisa Montaldo, Antonio Vicaretti CoreografieGiampiero Gencarelli Casa di produzioneFremantle Italia Rete televisivaRai 2 Manuale Non sono una signora è stato un programma televisivo italiano in onda dal 29 giugno al 27 luglio 2023 in p...

You can help expand this article with text translated from the corresponding article in German. (November 2016) Click [show] for important translation instructions. View a machine-translated version of the German article. Machine translation, like DeepL or Google Translate, is a useful starting point for translations, but translators must revise errors as necessary and confirm that the translation is accurate, rather than simply copy-pasting machine-translated text into the English Wikip...

Municipality in Southeast, BrazilSerraMunicipalityThe Municipality of SerraThe Mestre Álvaro seen the BR-101 between Planalto Serrano and Vista da Serra II FlagSealLocalization of Serra in Espirito SantoSerraLocalization of Serra, Espirito Santo in BrazilCoordinates: 20°07′44″S 40°18′28″W / 20.12889°S 40.30778°W / -20.12889; -40.30778Country BrazilRegionSoutheastState Espírito SantoFoundedNovember 6, 1556Government • MayorAudifax Barcello...

Chinese actress (born 1989) In this Chinese name, the family name is Su. Su QingBorn (1989-05-07) 7 May 1989 (age 34)Hengyang, Hunan, ChinaAlma materHunan Mass Media Vocational and Technical CollegeOccupationActressYears active2008–presentChinese nameSimplified Chinese苏青Transcriptions Su Qing (Chinese: 苏青, born 5 July 1989) is a Chinese actress known for her roles as Zhang Yan in Beauty's Rival in Palace and the antagonist Hitara Erqing in Story of Yanxi Palace. C...

Untuk kegunaan lain, lihat Semarang (disambiguasi).Artikel ini membutuhkan rujukan tambahan agar kualitasnya dapat dipastikan. Mohon bantu kami mengembangkan artikel ini dengan cara menambahkan rujukan ke sumber tepercaya. Pernyataan tak bersumber bisa saja dipertentangkan dan dihapus.Cari sumber: Kabupaten Semarang – berita · surat kabar · buku · cendekiawan · JSTOR Kabupaten SemarangKabupatenTranskripsi bahasa daerah • Hanacarakaꦱꦼ

Maël-Carhaix Gemeente in Frankrijk Situering Regio Bretagne Departement Côtes-d'Armor (22) Arrondissement Guingamp Kanton Rostrenen Coördinaten 48° 17′ NB, 3° 25′ WL Algemeen Oppervlakte 36,57 km² Inwoners (1 januari 2020) 1.466[1] (40 inw./km²) Hoogte 114 - 243 m Overig Postcode 22340 INSEE-code 22137 Detailkaart Locatie in Frankrijk Côtes-d'Armor Foto's Église Saint-Pierre Portaal    Frankrijk Maël-Carhaix is een gemeente in het Franse departement Cô...

Ейлін Ворносангл. Aileen Carol Wuornos Ім'я при народженні англ. Aileen Carol PittmanПсевдо Cammie Marsh Green і Susan BlahovecНародилася 29 лютого 1956(1956-02-29)[1][2]Рочестер (Мічиган), Окленд, Мічиган, СШАПомерла 9 жовтня 2002(2002-10-09)[1][2] (46 років)Флоридська державна в'язниця, Бредфорд, Флорида, ...

American private equity firm The neutrality of this article is disputed. Relevant discussion may be found on the talk page. Please do not remove this message until conditions to do so are met. (April 2023) (Learn how and when to remove this template message) Lone Star Global Acquisitions, Ltd.Headquarters at the Tower at CityplaceTypeLimited partnershipsIndustryPrivate equityFounded1995; 28 years ago (1995)FounderJohn GraykenHeadquartersTower at CityplaceDallas, Texas, Unite...

The topic of this article may not meet Wikipedia's notability guideline for music. Please help to demonstrate the notability of the topic by citing reliable secondary sources that are independent of the topic and provide significant coverage of it beyond a mere trivial mention. If notability cannot be shown, the article is likely to be merged, redirected, or deleted.Find sources: Still Be Love in the World – news · newspapers · books · scholar · JSTOR ...

Eric de MaréBorn10 September 1910LondonDied22 January 2002(2002-01-22) (aged 91)Painswick, GloucestershireOccupation(s)Architectural photographer, AuthorYears active1933–2002 Eric de Maré (1910 – 2002) was a British photographer and author, described as one of the greatest British architectural photographers.[1] Biography Eric Samuel de Maré was born in London on the 10 September 1910, the second son of Swedish parents, Bror Edward August de Maré (a timber broker...

Erotic dance troupe For other uses, see Chippendale. ChippendalesChippendales dancers in Las Vegas with fansFormation1979TypeTheatre groupPurposeEroticLocationNew York City Los Angeles Las VegasWebsitewww.Chippendales.com Chippendales is a touring dance troupe best known for its male striptease performances and for its dancers' distinctive upper body costume of a bow tie, collar, and shirt cuffs worn on an otherwise bare torso. Established in 1979, Chippendales was the first all-male strippin...

1977 Italian filmL'altra metà del cieloDirected byFranco RossiCinematographyLuigi KuveillerMusic byAdriano CelentanoDetto MarianoRelease date 1977 (1977) CountryItalyLanguageItalian L'altra metà del cielo (The other half of the sky) is a 1977 Italian comedy film directed by Franco Rossi. It is loosely based on the comedy play Romancero by Jacques Deval.[1] Plot Don Vincenzo (Adriano Celentano), a priest sent in a mining village in Australia, seeks to redeem the Sicilian Susanna...

Aliens: Alien 2 redirects here. For the sequel film to Alien, see Aliens (film). For other games named Aliens, see Alien (disambiguation) § Video games. Alien 3: The Gun arcade game cabinet This is a chronological list of games in the Alien, Predator and Alien vs. Predator science fiction horror franchises. There have been thirty-eight officially licensed video games, one trading card game, and one tabletop miniatures game released as tie-ins to the franchises. The first video game of t...

1999 filmSaiminDirected byMasayuki OchiaiScreenplay by Masayuki Ochiai Yasushi Fukuda[2] Based onA novelby Keisuke MatsuokaProduced by Touru Shibata Toshiaki Harada[2] Starring Miho Kanno Ken Utsui Yukio Watanabe Akira Shirai Ren Osugi CinematographyOsamu Fujiishi[2]Edited byKazuo Miyauchi[1]Music byKuniaki Hijima[2]Productioncompanies Toho Tokyo Broadcasting System[1] Distributed byTohoRelease date June 5, 1999 (1999-06-05) (...

Ajaw Lady K'abelAjawLady K'abel's portrait on Stela 34 of El PerúQueen of El Perúwith her husband, K'inich Bahlam IIReign672-692BornCalakmulDied702 or 711El PerúBurialEl PerúSpouseK'inich Bahlam II of El PerúHouseSnake dynastyFatherYuknoom Chʼeen II, King of CalakmulReligionMaya religion Lady K'abel (7th-century - between 702 and 711) was the queen regnant of the Maya Wak kingdom between 672 and 692 AD. She is also referred to by the names Lady Water Lily Hand and Lady Snake Lord. Life ...

The Wonderful World of Antonio Carlos JobimAlbum studio karya Antonio Carlos JobimDirilis1965Direkam1965GenreJazz, Bossa novaDurasi35:10LabelWarner Bros.ProduserJimmy HillardKronologi Antonio Carlos Jobim The Composer of Desafinado, Plays(1963)The Composer of Desafinado, Plays1963 The Wonderful World of Antonio Carlos Jobim(1965) Love, Strings and Jobim(1966)Love, Strings and Jobim1966 The Wonderful World of Antonio Carlos Jobim adalah album studio kedua karya penyanyi-komposer Brasil Ant...

1930-1950 group of Surrealists in Birmingham The Birmingham Surrealists were an informal grouping of artists and intellectuals associated with the Surrealist movement in art, based in Birmingham, England from the 1930s to the 1950s. The key figures were the artists Conroy Maddox and John Melville, alongside Melville's brother, the art critic Robert Melville. Other significant members included artists Emmy Bridgewater, Oscar Mellor and the young Desmond Morris. In its early years the group was...

Mouse마우스别名窺探类型動作、懸疑、驚悚编剧崔蘭导演崔俊裴主演李昇基、李熙俊、朴柱炫、景收真制作国家/地区 韩国语言韓語集数20+2(番外篇)+3(特辑)每集长度約80 - 100分鐘制作拍攝地點 韩国制作公司HiGround(朝鲜语:하이그라운드)Studio Invictus播出信息 首播频道tvN播出国家/地区 韩国播出日期 2021年3月3日 (2021-03-03)—2021年5月20日 (2021-05-20) 各地节目...

أبا الصلابيخ موقع محافظة الغاط بالنسبة لمنطقة الرياض تقسيم إداري البلد  السعودية التقسيم الأعلى منطقة الرياض  السكان التعداد السكاني غير معروف نسمة (إحصاء ) تعديل مصدري - تعديل   أبا الصلابيخ، هي قرية من فئة (ب) تقع في محافظة الغاط، والتابعة لمنطقة الرياض في السعودية...

Educational Computer Game 1984 video gameJenny's JourneysDeveloper(s)Minnesota Educational Computing ConsortiumPublisher(s)Minnesota Educational Computing ConsortiumPlatform(s)Apple IIRelease1984Genre(s)Educational video gameJenny's Journeys is a first-person, single-player, educational video game created in 1984 by the Minnesota Educational Computing Consortium (MECC). It was released for the computer Apple II.[1] In the game, players utilize a compass and a map to navigate a car con...

Kembali kehalaman sebelumnya