Documentation

Complexitylib.DescriptiveComplexity.Encoding.Decoding

Exact decoding of finite structures #

Decoding and encoding are inverse on structures, including their relation and constant interpretations. The decoder succeeds precisely on valid encodings; every other bit string is rejected. These are computability and correctness results, without a machine time or space bound.

@[simp]

The empty input is not a structure encoding.

@[simp]

Every encoded structure is recovered exactly by the computable decoder.

Successful decoding is equivalent to exact re-encoding of the returned structure.

A rejected input is exactly a string outside the image of the encoder.

The bit-string encoding determines all fields of a decidable finite structure.