[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

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:
encode-contractn + encoding-size(a) ≤ # buf, buf0 = buf ⊦ ⟪encode#(a, n; buf, n0; err)⟫ ( (err = ESUCCESS ∨ ⌊err⌋ ) ∧ # buf = # buf0 ∧ subarray(buf, 0, n) = subarray(buf0, 0, n) ∧ subarray(buf, n + encoding-size(a), # buf - n + encoding-size(a)) = subarray(buf0, n + encoding-size(a), # buf - n + encoding-size(a)) ∧ (err = ESUCCESS → is-encoded(a, subarray(buf, n, encoding-size(a))) ∧ n0 = encoding-size(a))) An Axiom
decode-contract⊦ ⟪decode#(n, buf; a, n0; err)⟫ ((err = ESUCCESS ∨ ⌊err⌋ ) ∧ (err = ESUCCESS → is-encoded(a, subarray(buf, n, n0)) ∧ n + n0 ≤ # buf ∧ n0 = encoding-size(a))) An Axiom
is-encoded-size ⊦ is-encoded(a, buf) → # buf = encoding-size(a) An Axiom
is-garbage ⊦ is-garbage(buf) ↔ (∀ a. ¬ is-encoded(a, buf)) An Axiom
is-encoded-unique-size ⊦ is-encoded(a, buf) ∧ n ≤ # buf → (is-encoded(b, subarray(buf, 0, n)) ↔ b = a ∧ n = # buf) An Axiom
is-encoded-not-garbage ⊦ is-encoded(a, buf) → ¬ is-garbage(buf) A User Theorem
is-encoded-prefix ⊦ buf0 + buf1 = buf2 + buf3 ∧ is-encoded(a, buf0) → (is-encoded(b, buf2) ↔ # buf0 = # buf2 ∧ a = b) A User Theorem
is-encoded-unique ⊦ is-encoded(a, buf) → (is-encoded(b, buf) ↔ a = b) A User Theorem