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



View long theorem info. View the proof. 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,

Proof step 9 from proof inv-write-vidhdr (previous step)

pebs[m0] = mkpeb(buf0, EB_PAGE_SIZE, false), buf = mkbuf(EB_PAGE_SIZE), avhdr.valid?, m0 < # pebs, mtd-cons(pebs) ⊦ ⟪encode_vidheader#(EB_PAGE_SIZE, vidhdr(avhdr.vol, avhdr.leb, avhdr.sqn, avhdr.size, avhdr.checksum); buf; err); if err = ESUCCESS then mtd_asm_write#(m0, EB_PAGE_SIZE, 0, EB_PAGE_SIZE, buf; pebs; err)⟫ mtd-cons(pebs)

User applied rule insert program lemma

And obtained the following new goals

Rule argument

spec: encoding-page-size-nonempty, inst: encoding-vidheader name: encode-contract seq: EB_PAGE_SIZE ≤ # buf, buf0 = buf ⊦ ⟪encode_vidheader#(EB_PAGE_SIZE, vhdr; buf; err)⟫ ( (err = ESUCCESS ∨ ⌊err⌋ ) ∧ # buf = # buf0 ∧ ( err = ESUCCESS → is-encoded(vhdr, subarray(buf, 0, EB_PAGE_SIZE)))) subst: [vhdr, buf, err, buf0] → [vidhdr (avhdr.vol, avhdr.leb, avhdr.sqn, avhdr.size, avhdr.checksum), buf, err, buf] flags: <all paths>

Additional information

Used simplifier rules: ⊦ # mkbuf(n) = n; (s)% ⊦ m ≤ m; (s)