[Imprint][Data Privacy Statement][E-Mail]

Back to main index. View the specification. View theorem base summary, View theorem base listing, the used properties by spec, the dependency list, the symbol table,

Theorem base for Specification encoding-aligned

This is a listing of all goals defined over the current specification. Axioms are marked yellow, proved theorems green and unproved theorems blue. Click on individual names to get more information on the proof.

Name: Sequent: Type:
encodeencode_aligned#(a, n, m; buf, n0; err){encode#(a, n; buf, n0; err); if err = ESUCCESS then n0 := align↑(n0, m)} An Axiom
is-encoded-aligned ⊦ is-encoded-aligned(a, buf) ↔ (∃ buf0, buf1. buf = buf0 + buf1 ∧ is-encoded(a, buf0) ∧ # buf = size-aligned(a, ENCODED_ELEM_ALIGNMENT)) An Axiom
size-aligned ⊦ size-aligned(a, m) = align↑(encoding-size(a), m) An Axiom
decodedecode_aligned#(n, buf, m; a, n0; err) {decode#(n, buf; a, n0; err); if err = ESUCCESS then {n0 := align↑(n0, m); if ¬ n + n0 ≤ # buf then err := EINVAL}} An Axiom
decode-contract⊦ ⟪decode_aligned#(n, buf, ENCODED_ELEM_ALIGNMENT; a, n0; err)⟫ ( (err = ESUCCESS ∨ ⌊err⌋ ) ∧ ( err = ESUCCESS → is-encoded-aligned(a, subarray(buf, n, size-aligned(a, ENCODED_ELEM_ALIGNMENT))) ∧ n + size-aligned(a, ENCODED_ELEM_ALIGNMENT) ≤ # buf ∧ n0 = size-aligned(a, ENCODED_ELEM_ALIGNMENT))) A User Theorem
encode-contractn + size-aligned(a, ENCODED_ELEM_ALIGNMENT) ≤ # buf, buf0 = buf ⊦ ⟪encode_aligned#(a, n, ENCODED_ELEM_ALIGNMENT; buf, n0; err)⟫ ( (err = ESUCCESS ∨ ⌊err⌋ ) ∧ # buf = # buf0 ∧ ( err = ESUCCESS → is-encoded-aligned(a, subarray(buf, n, size-aligned(a, ENCODED_ELEM_ALIGNMENT))) ∧ n0 = size-aligned(a, ENCODED_ELEM_ALIGNMENT))) A User Theorem
is-encoded-is-aligned ⊦ is-encoded-aligned(a, buf) → is-aligned(# buf, ENCODED_ELEM_ALIGNMENT) A User Theorem