Correctness and polynomial time of encoding validation #
Construct a structure from unrestricted relation bits and one-hot constant blocks. The arithmetic-access theorems recover the original string. Bounded quantifiers over polynomial-time bit reads implement every validation condition.
theorem
Complexity.DescriptiveComplexity.isValidEncoding_encodeStruct_internal
{V : Vocabulary}
(A : DecFinStruct V)
:
IsValidEncoding V A.card (encodeStruct A)
theorem
Complexity.DescriptiveComplexity.isValidEncoding_iff_internal
(V : Vocabulary)
(card : ℕ)
(bits : List Bool)
: