Redirected from "booleans".
Contents
Context
-Category theory
Contents
Idea
The boolean domain or boolean field (often just: ) is a -element set, say (βbitsβ) or (βbottomβ, βtopβ), whose elements may be interpreted as truth values.
Note that is the set of all truth values in classical logic, but this cannot be assumed in non-classical logic such as intuitionistic logic.
The Boolean domain plays the role of the subobject classifier in the Boolean topos of Sets.
If we think of the classical as a pointed set equipped with the true element, then there is an effectively unique boolean domain.
A boolean variable is a variable that takes its value in a boolean domain, as . If this variable depends on parameters, then it is (or defines) a Boolean-valued function, that is a function whose target is .
An element of is a binary digit, or bit.
The boolean domain is the initial set with two elements. It is also the initial set with an element and an involution. It is also the tensor unit for the smash product in the monoidal category of pointed sets.
In dependent type theory the boolean domain is called the type of booleans.
Properties
The boolean domain is in bijection with the set of decidable truth values.
As a result, sometimes the boolean domain is called a decidable subset classifier.
Induction and recursion on the boolean domain
Like the natural numbers, the boolean domain has an induction principle, which states that to prove a statement true for every bit, it suffices to prove it for falsehood and truth .
Similarly, the boolean domain also has a recursion principle, which states that to define a function from the boolean domain to a set , it suffices to define the function when evaluated at falsehood and truth .
Equality and inequality
Definition
By the induction principle of the boolean domain, we can define an equality relation on the boolean domain , inductively defined by
Definition
Similarly, we can define an inequality relation on the boolean domain , inductively defined by
We can show that equality is an equivalence relation and the inequality relation is a apartness relation, and that equality and inequality are mutually decidable .
If the ambient foundations already has an equality relation for all sets that satisfy the principle of substitution, then one can show that if and only if for the predefined equality relation on the boolean domain.
Order structure
In addition, we can define various order structures on the boolean domain.
Definition
The order relation is inductively defined by
Definition
The order relation is inductively defined by
Definition
The order relation is inductively defined by
Definition
The order relation is inductively defined by
We can show that
-
the relations and are total orders with respect to the equality relation defined above and opposite of each other
-
the relations and are pseudo-orders with respect to the equality relation defined above and opposite of each other
-
the relations and are mutually decidable .
-
the relation and are mutually decidable .
Boolean algebra structure
We can also define the logical functions on using the recursion principle of the boolean domain.
Definition
The negation of a boolean is recursively defined by
Definition
The conjunction of two booleans is recursively defined by
Definition
The disjunction of two booleans is recursively defined by
Definition
The exclusive disjunction of two booleans is recursively defined by
Definition
The implication of two booleans is recursively defined by
Definition
The abjunction of two booleans is recursively defined by
Definition
The converse implication of two booleans is recursively defined by
Definition
The converse abjunction of two booleans is recursively defined by
Definition
The biconditional of two booleans is recursively defined by
We can prove that
-
forms a Boolean algebra with respect to the inductively defined total order above,
-
forms a bi-Heyting algebra with respect to the inductively defined total order above,
-
and both form a Boolean ring
-
For all booleans and ,
References
See also: