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 #
lenLeFlag_eq_decide— the length comparison as a decided propositionandBit_singleton,orBit_singleton,notBit_singleton— the connectives on one-bit stringsselectHead_singleton— selection by a one-bit string is anif