Uniquely Decodable Codes #
This file defines uniquely decodable codes and proves basic properties.
Main definitions #
IsUniquelyDecodable: A set of codewords is uniquely decodable if distinct concatenations of codewords yield distinct strings.
Main results #
IsUniquelyDecodable.epsilon_not_mem: Uniquely decodable codes cannot contain the empty string.IsUniquelyDecodable.flatten_injective: The flatten function is injective on lists of codewords from a uniquely decodable code.
A set of lists is uniquely decodable if distinct concatenations yield distinct strings.
Equations
Instances For
Alias of InformationTheory.IsUniquelyDecodable.
A set of lists is uniquely decodable if distinct concatenations yield distinct strings.
Instances For
If a code is uniquely decodable, it does not contain the empty string.
The empty string can be "decoded" as either zero or two copies of itself, violating unique decodability.
Alias of InformationTheory.IsUniquelyDecodable.epsilon_not_mem.
If a code is uniquely decodable, it does not contain the empty string.
The empty string can be "decoded" as either zero or two copies of itself, violating unique decodability.
Alias of InformationTheory.IsUniquelyDecodable.flatten_injective.