Documentation

LeanPool.GKPCarry.Definitions

Ternary prefixes and doubling carries #

This file gives the definitions used by the carry-language theory and its bounded C3 corollary. Ternary digit lists are little-endian, following Nat.digits.

Length of the canonical base-three expansion of n.

Equations
Instances For

    The first depth ternary digits of n contain at least two 2s.

    Equations
    Instances For

      One outgoing-carry step when a ternary digit is doubled.

      Equations
      Instances For

        Count outgoing carries while doubling a little-endian ternary digit list.

        Equations
        Instances For

          Count carries while doubling a little-endian ternary digit list.

          Equations
          Instances For

            Number of doubling carries visible in the first depth ternary digits.

            Equations
            Instances For

              Two digit-2s in a prefix force at least two ternary doubling carries.

              A prefix cannot contain more doubling carries than the complete word.