Serialization and deserialization classes #
Simple type classes for serializing a type into another type, most often ByteArray or a
fixed-length Vector of units, and for deserializing back, with or without failure.
These declarations are ported verbatim from ArkLib (ArkLib/Data/Classes/Serde.lean) so that
CompPoly can supply instances for its field and polynomial types directly. The
statistical-closeness class Deserialize.CloseToUniform stays in ArkLib, where the probability
theory it needs already lives; CompPoly proves the counting facts behind it in Nat terms.