Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Truth value

From Wikipedia, the free encyclopedia
(Redirected fromTruth-value)
Value indicating the relation of a proposition to truth
"True and false" redirects here. For other uses, seeTrue and false (disambiguation).
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Truth value" – news ·newspapers ·books ·scholar ·JSTOR
(February 2012) (Learn how and when to remove this message)

Inlogic andmathematics, atruth value, sometimes called alogical value, is a value indicating the relation of aproposition totruth, which inclassical logic has only two possible values (true orfalse).[1][2] Truth values are used incomputing as well as various types oflogic.

Computing

[edit]
See also:Implicit type conversion

In some programming languages, anyexpression can be evaluated in a context that expects aBoolean data type. Typically (though this varies by programming language) expressions like the numberzero, theempty string, empty lists, andnull are treated as false, and strings with content (like "abc"), other numbers, and objects evaluate to true. Sometimes these classes of expressions are calledfalsy andtruthy. For example, inLisp,nil, the empty list, is treated as false, and all other values are treated as true. InC, the number 0 or 0.0 is false, and all other values are treated as true.

InJavaScript, the empty string (""),null,undefined,NaN, +0,−0 andfalse[3] are sometimes calledfalsy (of which thecomplement istruthy) to distinguish between strictlytype-checked andcoerced Booleans (see also:JavaScript syntax#Type conversion).[4] As opposed to Python, empty containers (Arrays, Maps, Sets) are considered truthy. Languages such asPHP also use this approach.

Classical logic

[edit]
··
trueconjunction
¬
··
falsedisjunction
Negation interchanges
true with false and
conjunction with disjunction.

Inclassical logic, with its intended semantics, the truth values aretrue (denoted by1 or theverum ⊤), anduntrue orfalse (denoted by0 or thefalsum ⊥); that is, classical logic is atwo-valued logic. This set of two values is also called theBoolean domain. Corresponding semantics oflogical connectives aretruth functions, whose values are expressed in the form oftruth tables.Logical biconditional becomes theequality binary relation, andnegation becomes abijection whichpermutes true and false. Conjunction and disjunction aredual with respect to negation, which is expressed byDe Morgan's laws:

¬(pq) ⇔ ¬p ∨ ¬q
¬(pq) ⇔ ¬p ∧ ¬q

Propositional variables becomevariables in the Boolean domain. Assigning values for propositional variables is referred to asvaluation.

Intuitionistic and constructive logic

[edit]
Main article:Constructivism (mathematics)

Whereas in classical logic truth values form aBoolean algebra, inintuitionistic logic, and more generally,constructive mathematics, the truth values form aHeyting algebra. Such truth values may express various aspects of validity, including locality, temporality, or computational content.

For example, one may use theopen setsof a topological space as intuitionistic truth values, in which case the truth value of a formula expresseswhere the formula holds, not whether it holds.

Inrealizability truth values are sets of programs, which can be understood as computational evidence of validity of a formula. For example, the truth value of the statement "for every number there is a prime larger than it" is the set of all programs that take as input a numbern{\displaystyle n}, and output a prime larger thann{\displaystyle n}.

Incategory theory, truth values appear as the elements of thesubobject classifier. In particular, in atopos every formula ofhigher-order logic may be assigned a truth value in the subobject classifier.

Even though a Heyting algebra may have many elements, this should not be understood as there being truth values that are neither true nor false, because intuitionistic logic proves¬(pp){\displaystyle \neg (p\neq \top \land p\neq \bot )} ("it is not the case thatp{\displaystyle p} is neither true nor false").[5]

Inintuitionistic type theory, theCurry-Howard correspondence exhibits an equivalence of propositions and types, according to which validity is equivalent to inhabitation of a type.

For other notions of intuitionistic truth values, see theBrouwer–Heyting–Kolmogorov interpretation andIntuitionistic logic § Semantics.

Multi-valued logic

[edit]

Multi-valued logics (such asfuzzy logic andrelevance logic) allow for more than two truth values, possibly containing some internal structure. For example, on theunit interval[0,1] such structure is atotal order; this may be expressed as the existence of variousdegrees of truth.

Algebraic semantics

[edit]
Main article:Algebraic logic

Not alllogical systems are truth-valuational in the sense that logical connectives may be interpreted as truth functions. For example,intuitionistic logic lacks a complete set of truth values because its semantics, theBrouwer–Heyting–Kolmogorov interpretation, is specified in terms ofprovability conditions, and not directly in terms of thenecessary truth of formulae.

But even non-truth-valuational logics can associate values with logical formulae, as is done inalgebraic semantics. The algebraic semantics of intuitionistic logic is given in terms ofHeyting algebras, compared toBoolean algebra semantics of classical propositional calculus.

See also

[edit]

References

[edit]
  1. ^Shramko, Yaroslav; Wansing, Heinrich."Truth Values". InZalta, Edward N. (ed.).Stanford Encyclopedia of Philosophy.
  2. ^"Truth value".Lexico UK English Dictionary.Oxford University Press. n.d.
  3. ^"ECMAScript Language Specification"(PDF). p. 43. Archived fromthe original(PDF) on 2015-04-12. Retrieved2011-03-12.
  4. ^"The Elements of JavaScript Style". Douglas Crockford.Archived from the original on 17 March 2011. Retrieved5 March 2011.
  5. ^Proof that intuitionistic logic has no third truth value, Glivenko 1928

External links

[edit]
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
Functional:
Formal:
Negation 
Retrieved from "https://en.wikipedia.org/w/index.php?title=Truth_value&oldid=1273134477"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp