[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-fixed-size-nonempty

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:
is-encoded-nonempty ⊦ is-encoded-nonempty(a, buf) ↔ is-encoded(a, buf) ∧ ¬ isempty(buf) An Axiom
decodedecode_nonempty#(n, buf; a; err){if isempty(buf, n, ENCODED_ELEM_SIZE) then err := EINVAL else let m = ? in decode#(n, buf; a, m; err)} An Axiom
encodeencode_nonempty#(a, n; buf; err) {let m = ? in {encode#(a, n; buf, m; err); if err = ESUCCESS ∧ isempty(buf, n, m) then {debug#("encoding_nonempty: encoding is empty"); err := EINVAL}} } An Axiom
is-garbage-nonempty ⊦ is-garbage-nonempty(buf) ↔ (∀ a. ¬ is-encoded-nonempty(a, buf)) An Axiom
decode-contractn + ENCODED_ELEM_SIZE ≤ # buf ⊦ ⟪decode_nonempty#(n, buf; a; err)⟫ ((err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → is-encoded-nonempty(a, subarray(buf, n, ENCODED_ELEM_SIZE)))) A User Theorem
encode-contractn + ENCODED_ELEM_SIZE ≤ # buf, buf0 = buf ⊦ ⟪encode_nonempty#(a, n; buf; err)⟫ ( (err = ESUCCESS ∨ ⌊err⌋ ) ∧ # buf = # buf0 ∧ subarray(buf, 0, n) = subarray(buf0, 0, n) ∧ subarray(buf, n + ENCODED_ELEM_SIZE, # buf - n + ENCODED_ELEM_SIZE) = subarray(buf0, n + ENCODED_ELEM_SIZE, # buf - n + ENCODED_ELEM_SIZE) ∧ (err = ESUCCESS → is-encoded-nonempty(a, subarray(buf, n, ENCODED_ELEM_SIZE)))) A User Theorem
is-encoded-not-garbage ⊦ is-encoded-nonempty(a, buf) → ¬ is-garbage(buf) A User Theorem
is-encoded-not-garbage-nonempty ⊦ is-encoded-nonempty(a, buf) → ¬ is-garbage-nonempty(buf) A User Theorem
is-encoded-size ⊦ is-encoded-nonempty(a, buf) → # buf = ENCODED_ELEM_SIZE A User Theorem
is-encoded-unique ⊦ is-encoded-nonempty(a, buf) → (is-encoded-nonempty(b, buf) ↔ a = b) A User Theorem