Documentation

CslibFrontier.Computability.Machines.Turing.MultiTape.Encodings.Nat.Words

Reading arbitrary little-endian natural-number words #

The existing word interpretation and normalization identity are independent of machine or complexity certificates. Trailing false symbols are ignored, and the empty word represents zero.

Main definitions #

Main results #

Binary digits, least significant first, read as a number.

Instances For

    The binary digits of a word read as a number are the word up to its last true.

    A word read as a number has at most as many binary digits as the word.

    theorem Turing.MultiTapeTM.bits_add_two_pow {W x : ℕ} (hx : x < 2 ^ W) :

    The binary digits of x + 2 ^ W, for x < 2 ^ W, are the W low-order digits of x, followed by a one.

    The W low-order digits of x < 2 ^ W are (x + 2 ^ W).bits without its last digit.