Boolean-formula codec internals #
This module proves the stack-machine, round-trip, injectivity, and length properties of the canonical postfix formula encoding.
Internal exact length of one encoded token.
theorem
Complexity.FormulaCode.run?_tokens_internal
(formula : BoolFormula)
(stack : List BoolFormula)
:
Internal stack specification for the postfix tokens of a formula.
Internal reconstruction of a formula from its own postfix tokens.
Internal exact token-count theorem.
theorem
Complexity.FormulaCode.decodeTokens?_flatMap_encode_append_internal
(stream : List Token)
(suffix : List Bool)
:
Internal fixed-count token-list round trip.
theorem
Complexity.FormulaCode.decodePrefix?_encode_append_internal
(formula : BoolFormula)
(suffix : List Bool)
:
Internal formula-prefix round trip.
Internal exact-decoder round trip.
Internal injectivity of canonical formula serialization.
Internal exact formula-code length.