Documentation

Complexitylib.Classes.P.Unary.Internal.Basic

Polynomial-time numbers and tests — one-bit flags #

The string facts behind the comparison, connective and case rules of Complexitylib.Classes.P.Unary. Cobham's toolkit already computes the length comparison, the Boolean connectives and a selection by a leading bit in polynomial time; on one-bit strings each of them is the corresponding operation on Bool, which is what lets a verdict be carried as a Bool.

Contents #

The length comparison |b| ≤ |a| outputs its verdict as one bit.

Conjunction of one-bit strings.

Disjunction of one-bit strings.

Negation of a one-bit string.

Selection by a one-bit string picks the first branch on true and the second on false.