Documentation

TauCeti.Computability.Primrec.Bitwise

Primitive recursive binary operations #

Primitive recursion certificates for exponentiation, bit inspection, the increasing list of set bits, and binary bitwise operations. These certificates allow finite sets represented by binary natural numbers to be used in effective constructions.

theorem Primrec.nat_pow :
Primrec₂ fun (x1 x2 : ℕ) => x1 ^ x2

Natural-number exponentiation is primitive recursive.

Inspecting a binary digit is primitive recursive.

The increasing list of set bits is primitive recursive.

Binary bitwise operations that send two zero bits to zero are primitive recursive.

Binary union is primitive recursive.

Binary intersection is primitive recursive.

Binary difference is primitive recursive.