Encodings #
This file contains the definition of a (finite) encoding, a map from a type to strings in an alphabet, used in defining computability by Turing machines. It also contains several examples:
Examples #
finEncodingNatBool
: a binary encoding of ℕ in a simple alphabet.finEncodingNatΓ'
: a binary encoding of ℕ in the alphabet used for TM's.unaryFinEncodingNat
: a unary encoding of ℕfinEncodingBoolBool
: an encoding of bool.
An encoding of a type in a certain alphabet, together with a decoding.
- Γ : Type v
The alphabet of the encoding
The encoding function
The decoding function
Decoding and encoding are inverses of each other.
Instances For
An encoding plus a guarantee of finiteness of the alphabet.
The alphabet of the encoding is finite
Instances For
The natural inclusion of bool in Γ'.
Equations
Instances For
An arbitrary section of the natural inclusion of bool in Γ'.
Equations
Instances For
An encoding function of the positive binary numbers in bool.
Equations
Instances For
An encoding function of the binary numbers in bool.
Equations
Instances For
An encoding function of ℕ in bool.
Equations
Instances For
A binary encoding of ℕ in bool.
Equations
Instances For
A binary fin_encoding of ℕ in bool.
Equations
Instances For
A binary encoding of ℕ in Γ'.
Equations
Instances For
A binary FinEncoding of ℕ in Γ'.
Equations
Instances For
A unary encoding function of ℕ in bool.
Equations
Instances For
A unary fin_encoding of ℕ.
Equations
Instances For
An encoding function of bool in bool.
Equations
Instances For
A fin_encoding of bool in bool.