HOME

TheInfoList



OR:

In
mathematics Mathematics is an area of knowledge that includes the topics of numbers, formulas and related structures, shapes and the spaces in which they are contained, and quantities and their changes. These topics are represented in modern mathematics ...
and computer science, the BIT predicate or Ackermann coding, sometimes written BIT(''i'', ''j''), is a predicate that tests whether the ''j''th bit of the number ''i'' is 1, when ''i'' is written in binary.


History

The BIT predicate was first introduced as the encoding of hereditarily finite sets as natural numbers by Wilhelm Ackermann in his 1937 paper ''The Consistency of General Set Theory''. In this encoding, each natural number encodes a finite set, and each finite set is represented by a natural number. If the encoding of a set X is denoted \eta(X), then this encoding is defined recursively by \eta(\)=2^+2^+2^+\cdots In terms of the
binary numeral system A binary number is a number expressed in the base-2 numeral system or binary numeral system, a method of mathematical expression which uses only two symbols: typically "0" (zero) and "1" ( one). The base-2 numeral system is a positional notatio ...
, if the number n=\eta(X) encodes a finite set X and the ith binary digit of n is 1, then the set \eta^(i) encoded by i is an element of X. Therefore, the BIT predicate of numbers directly corresponds under this encoding to the membership relation between hereditarily finite sets. The Ackermann coding is a primitive recursive function.


Implementation

In programming languages such as C, C++, Java, or Python that provide a right shift operator >> and a bitwise Boolean and operator &, the BIT predicate BIT(''i'', ''j'') can be implemented by the expression (i>>j)&1. Here the bits of ''i'' are numbered from the low-order bits to high-order bits in the binary representation of ''i'', with the ones bit being numbered as bit 0.


Private information retrieval

In the mathematical study of computer security, the private information retrieval problem can be modeled as one in which a client, communicating with a collection of servers that store a binary number ''i'', wishes to determine the result of a BIT predicate BIT(''i'', ''j'') without divulging the value of ''j'' to the servers. describe a method for replicating ''i'' across two servers in such a way that the client can solve the private information retrieval problem using a substantially smaller amount of communication than would be necessary to recover the complete value of ''i''.


Mathematical logic

The BIT predicate is often examined in the context of first-order logic, where systems of logic result from adding the BIT predicate to first-order logic. In descriptive complexity, the complexity class FO + BIT resulting from adding the BIT predicate to FO results in a more robust complexity class. The class FO + BIT, of first-order logic with the BIT predicate, is the same as the class FO + PLUS + TIMES, of first-order logic with addition and multiplication predicates.


Construction of the Rado graph

Ackermann in 1937 and Richard Rado in 1964 used this predicate to construct the infinite Rado graph. In their construction, the vertices of this graph correspond to the non-negative integers, written in binary, and there is an undirected edge from vertex ''i'' to vertex ''j'', for ''i'' < ''j'', when BIT(''j'',''i'') is nonzero..


References

{{DEFAULTSORT:Bit Predicate Binary arithmetic Descriptive complexity Circuit complexity Set theory