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:

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Eno film – news · newspapers · books · scholar · JSTOR (May 2016) (Learn how and when to remove this template message) 1973 filmEnoDirected byAlfi SinnigerWritten byAlfi SinnigerProduced byAlfi SinnigerStarringBrian EnoPhil ManzaneraMarty SimonMusic byBrian E…

This article needs additional citations for verification. Please help improve this article by adding citations to reliable sources. Unsourced material may be challenged and removed.Find sources: Legend of the Amazon Women – news · newspapers · books · scholar · JSTOR (January 2023) (Learn how and when to remove this template message) 1986 video gameLegend of the Amazon WomenThe game cover for the ZX Spectrum.Developer(s)SilverTimePublisher(s)U.S. Gold Mas…

ويليام جونز بون   معلومات شخصية الميلاد 1 يوليو 1811  والتربورو  تاريخ الوفاة 17 يوليو 1874 (63 سنة)   مواطنة الولايات المتحدة  الأولاد ويليام جونز بوون  الحياة العملية المدرسة الأم جامعة كارولاينا الجنوبية  المهنة مترجم،  ومترجم الكتاب المقدس  [لغات أخرى]…

2011 single by Machine Gun Kelly featuring Waka Flocka FlameWild BoySingle by Machine Gun Kelly featuring Waka Flocka Flamefrom the EP Half Naked & Almost Famous and the album Lace Up ReleasedSeptember 27, 2011 (2011-09-27)Recorded2011GenreHip hop · hardcore hip hop · trapLength3:53LabelBad BoyInterscopeSongwriter(s)Colson BakerJuaquin MalphursJoshua LuellenProducer(s)GB HitzSouthsideMGK singles chronology Wild Boy (2011) Invincible (2011) Waka Flocka Flame singles c…

Rombergpark-Lücklemberg Stadt Dortmund Koordinaten: 51° 28′ N, 7° 28′ O51.4697222222227.4727777777778115Koordinaten: 51° 28′ 11″ N, 7° 28′ 22″ O Höhe: ca. 115 m ü. NHN Fläche: 3,62 km² Einwohner: 5786 (31. Dez. 2022)[1] Bevölkerungsdichte: 1.597 Einwohner/km² Postleitzahlen: 44225, 44229 Vorwahl: 0231 Statistischer Bezirk: 68 Karte Lage von Rombergpark-Lücklemberg in Dortmund Rombergpa…

Vattetot-sous-Beaumont Gemeente in Frankrijk Situering Regio Normandië Departement Seine-Maritime (76) Arrondissement Le Havre Kanton Saint-Romain-de-Colbosc Coördinaten 49° 38′ NB, 0° 27′ OL Algemeen Oppervlakte 6,94 km² Inwoners (1 januari 2020) 578[1] (83 inw./km²) Hoogte 93 - 147 m Overig Postcode 76110 INSEE-code 76725 Foto's mairie Portaal    Frankrijk Vattetot-sous-Beaumont is een gemeente in het Franse departement Seine-Maritime (regio Normandië) en t…

Das Dekanat Bergheim ist ein Dekanat der römisch-katholischen Erzdiözese Salzburg. Inhaltsverzeichnis 1 Pfarren mit Kirchengebäuden 2 Dekanat Bergheim 3 Siehe auch 4 Weblinks 5 Einzelnachweise Pfarren mit Kirchengebäuden Pfarre Pfarrverband Ink. Seit Patrozinium Kirchengebäude Bild Anif Anif – Fürstenbrunn-Glanegg – Grödig – Niederalm 8. Jhdt. Hl. Oswald Pfarrkirche Anif Bergheim Bergheim – Elixhausen – Eugendorf – Hallwang – Maria Plain 926 Hl. Georg Pfarrkirche Bergheim El…

Kalvin Phillips Phillips con la selección inglesa en la Copa Mundial de Fútbol de 2022.Datos personalesNombre completo Kalvin Mark PhillipsNacimiento Leeds, Yorkshire del Oeste, Inglaterra2 de diciembre de 1995 (28 años)País Reino UnidoNacionalidad(es) Británica InglesaAltura 1,78 m (5′ 10″)[1]​Peso 72 kg (158 lb)[1]​Carrera deportivaDeporte FútbolClub profesionalDebut deportivo 2015(Leeds United F. C.)Club Manchester City F. C.Liga Premier LeaguePosici

Опис файлу Опис Собор Воскресіння Христового м. Київ Джерело власна робота Час створення 10 лютого 2011 Автор зображення Олег Чупа Ліцензія див. нижче Ліцензування Цей твір поширюється на умовах ліцензії Creative Commons Attribution 3.0 Unported. Коротко: ви можете вільно поширювати це…

Chairperson of the African Union CommissionFlag of the African UnionIncumbentMoussa Fakisince 14 March 2017African Union CommissionStyleExcellencyStatusChief Executive OfficerLegal representativeChief Accounting OfficerAbbreviationAUC ChairpersonReports toAU Executive CouncilSeatAU Office Complex, Addis Ababa, EthiopiaAppointerAU Assembly(elected by the AU Executive Council)Term length4 years (renewable once)Constituting instrumentConstitutive Act of the AU (article 20)PrecursorSecretary Ge…

Provincia de Tbong Khmum Provincia Coordenadas 11°54′42″N 105°39′10″E / 11.9117, 105.6529Capital SuongEntidad Provincia • País  CamboyaSuperficie   • Total 5250 km²Población (2019)   • Total 776 841 hab. • Densidad 148 hab/km²Prefijo telefónico 042ISO 3166-2 KH-25[editar datos en Wikidata] Tboung Khmum o Tbong Khmum,[1]​ (en camboyano: ខេត្តត្បូងឃ្មុំ, ámbar) es…

Mixed-use development at Changi Airport Jewel Changi AirportJewel Changi Airport interiorGeneral informationStatusCompletedTypeMixed useObservationArchitectural styleNeofuturisticLocationChangi, SingaporeAddress78 Airport Boulevard, Singapore 819666CountrySingaporeCoordinates1°21′52″N 103°59′29″E / 1.3644°N 103.9915°E / 1.3644; 103.9915Construction started5 December 2014; 8 years ago (2014-12-05)Opened17 April 2019; 4 years ago&#…

Vilaflor de Chasna municipio de EspañaBanderaEscudo Vista del casco urbano de Vilaflor Vilaflor de ChasnaUbicación de Vilaflor de Chasna en España. Vilaflor de ChasnaUbicación de Vilaflor de Chasna en la provincia de Santa Cruz de Tenerife.País  España• Com. autónoma  Canarias• Provincia Santa Cruz de TenerifeSanta Cruz de Tenerife• Isla  Tenerife• Comarca Abona Macizo Central• Partido judicial Granadilla de A…

Division 11973-1974 Généralités Sport Football Organisateur(s) URBSFA Édition 71e Lieu(x) Belgique Date du 31 août 1973au 5 mai 1974 Participants 16 Matchs joués 240 matches Statut des participants Semi-professionnels Hiérarchie Hiérarchie 1er niveau Niveau inférieur Division 2 Palmarès Tenant du titre Club Brugge KV Promu(s) en début de saison 2:SK Beveren/WaasK. SV Waregem Vainqueur R. SC Anderlechtois Relégué(s) 1:K. Sint-Truidense VV Buts 665 buts Meilleur(s) buteur(s) Atti…

1st Miss Grand Angola competition, beauty pageant edition Miss Grand Angola 2023Eugénia das Neves, the winner of the contestDateSeptember 2, 2023PresentersBráulio AndersonWhitney ShikongoEntertainmentBassHeróide Dos PrazeresVenueEpic Sana Hotel, LuandaBroadcasterYouTubeEntrants10Placements7WinnerEugénia das Neves(Luanda)2024 → External videos Miss Grand Angola 2023 Grand final competition, on September 2, 2023, Youtube Video Miss Grand Angola 2023 was the inaugural edition of the …

Kompleks suksinat dehidrogenase menunjukkan berbagai kofaktor, termasuk flavin, pusat besi-sulfur, dan heme. Sebuah kofaktor adalah senyawa kimia non-protein yang diperlukan untuk aktivitas biologis protein. Protein ini biasanya enzim, dan kofaktor dapat dianggap molekul pembantu yang membantu dalam transformasi biokimia. Kofaktor dapat dibagi lagi menjadi salah satu atau lebih ion anorganik, atau molekul organik atau metalloorganic kompleks yang disebut koenzim;[1] yang sebagian besar b…

Natural or artificial cave associated with use by humans For other uses, see Grotto (disambiguation). See also: Grotte Eternal Flame Falls in New York has an eternal flame inside a small grotto behind the falls Grutas de García in Nuevo León, Mexico A grotto is a natural or artificial cave used by humans in both modern times and antiquity, and historically or prehistorically. Naturally occurring grottoes are often small caves near water that are usually flooded or often flooded at high tide. S…

This article's lead section may be too long. Please read the length guidelines and help move details into the article's body. (July 2023)2012 killing of striking miners by police in Wonderkop, North West, South Africa Lonmin StrikeThe EPC section of Lonmin Platinum, with Bapong in the foregroundDate10 August 2012 (2012-08-10) – 20 September 2012 (2012-09-20) LocationLonmin Marikana mine Marikana, Rustenburg North West, South AfricaResulted in11–22% wage incr…

Original inhabitants of Sicily This article needs attention from an expert in Classical Greece and Rome. The specific problem is: Profile this as a traditionalist literate topic. See the talk page for details. WikiProject Classical Greece and Rome may be able to help recruit an expert. (July 2020) Not to be confused with the Székelys, also called Siculi in Latin. Sicily in the 6th century BC; the Sicels are referred to as Sikeloi. The Sicels (/ˈsɪkəlz, ˈsɪsəlz/ SIK-əlz, SISS-əlz; Latin:…

1989 single by Eric ClaptonPretendingAustralian single coverSingle by Eric Claptonfrom the album Journeyman B-sideBefore You Accuse Me (US)Hard Times (UK)ReleasedNovember 1989GenreRockLength4:48LabelReprise RecordsSongwriter(s)Jerry Lynn WilliamsProducer(s)Russ Titelman Pretending is a rock song written and composed by Jerry Lynn Williams. It was released in 1989 on Eric Clapton's Journeyman as the first track of the album. The song was released as the lead single from the album, backed with Bef…

Kembali kehalaman sebelumnya

Lokasi Pengunjung: 3.138.119.136