[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 53 from proof inv-allocate-ind (previous step)

# lpt2 = # avol0, # lpt0 = # avol0, isbuf ↔ false, lpt2[n0] = mklp(0, m3, LP_FREE, m2), avol = avol0[n0, mapped(mkbuf(0))], keyset(gch) = gc-heap(lpt2, log0), log = log0, lpt = lpt0, m0 = 0, m1 = n0, n0 < # avol0, awbuf-inv(avol0[n0, mapped(mkbuf(0))], bleb), awbuf-inv(avol0, bleb), bin-heap-inv(gch, lpt2), buf-ro-rw-mode(false, bleb, lpt2, avol0), bufs-log-only(bleb, log0, lpt2), freelist-cons(lpt2, n0 ' + nx0), log-group-block(log0, lpt2), lpt-free-unref(lpt0), lpt-free-unref(lpt2), lpt-leb-size(lpt0), lpt-leb-size(lpt2), lpt-ram-flash(lpt2, lpt0, log0), synced(avol0), bleb ≠ buffered(m1) → (bleb ≠ nobuffer → avol[bleb.leb].mapped? ∧ bleb.leb < # avol ∧ bleb.isbuf?) ∧ ( bleb = nobuffer ∨ is-aligned(# avol[bleb.leb].data, EB_PAGE_SIZE) → m1 < # avol → m1 < # avol ∧ (avol[m1].mapped? → avol[m1].mapped? ∧ m1 < # avol)), bleb = buffered(m1) ∨ (bleb = nobuffer ∨ is-aligned(# avol[bleb.leb].data, EB_PAGE_SIZE)) ∧ m1 < # avol ∧ avol[m1].mapped? ∧ m0 = # avol[m1].data, bleb = nobuffer ∨ is-aligned(# avol0[n0, mapped(mkbuf(0))][bleb.leb].data, EB_PAGE_SIZE) ⊦ [fail_or_success#(; ; err); if err = ESUCCESS then bleb := buffered(m1)] ( awbuf-inv(avol0[n0, mapped(mkbuf(0))], bleb) → ⟪lpt1 := lpt2[n0, lpt2[n0, mklp(lpt2[n0].ref-size, 0, lpt2[n0].flags, lpt2[n0].gcheapidx)][n0].ref-size:= 0]; freelist := (n0 ' + nx0).tail; if err ≠ ESUCCESS then freelist := n0 ' + freelist else lpt1[n0].flags := LP_INDEX_NODES⟫ ( lpt-free-unref(lpt1) ∧ freelist-cons(lpt1, freelist) ∧ bin-heap-inv(gch, lpt1) ∧ keyset(gch) = gc-heap(lpt1, log0) ∧ bufs-log-only(bleb, log0, lpt1) ∧ # lpt1 = # avol0 ∧ log-group-block(log0, lpt1) ∧ buf-ro-rw-mode(false, bleb, lpt1, avol0[n0, mapped(mkbuf(0))]) ∧ lpt-leb-size(lpt1) ∧ lpt-ram-flash(lpt1, lpt0, log0))), buffered(n0) = bleb

Heuristic simplifier applied rule simplifier

And obtained the following new goals

Rule argument

Additional information

Used simplifier rules: ⊦ mklp(n2, n3, lpf, m).flags = lpf; (s)%a: ⊦ (nx + nx0) + nx1 = nx + nx0 + nx1; from specification list[nat-list-set]%freelist-cons-first-free: ⊦ freelist-cons(lpt, n ' + freelist) → n < # lpt ∧ lpt[n].flags = LP_FREE; (forward) from specification persistence-base%lf-01: ⊦ m < n ∧ n = n0 → m < n0; (forward) from specification nat-basic% ⊦ # mkbuf(n) = n; (s)% ⊦ mapped(buf).data = buf; (s)% ⊦ mapped(buf).mapped?; (s)% ⊦ m < # avol → avol[m, aleb][m] = aleb; (s)% ⊦ # avol[n, aleb] = # avol; (s)