[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 6 from proof delta-wear-leveling (previous step)

# apebs = # wlar, apebs1 = apebs, bflipset = ∅, q1 = q, vols1 = vols, wlar0 = wlar, ubi-io-inv(apebs), unique-sqns(apebs), valid-ebatbl(apebs, wlar, vols, n0), valid-eraseq(q), valid-eraseq(wlar, q), valid-eraseq(apebs, q), valid-global-sqn(apebs, n1), valid-vtbl(apebs, vols, wlar, n0), valid-wl(apebs, wlar), ¬ VTBL_VOLID ∈ vols ⊦ [ubi_wear_leveling_worker#(LEB_SIZE, EB_PAGE_SIZE; vols, wlar, q, bflipset, n0, n1, apebs; err)] ( # apebs = # wlar ∧ unique-sqns(apebs) ∧ valid-global-sqn(apebs, n1) ∧ valid-wl(apebs, wlar) ∧ valid-eraseq(q) ∧ valid-eraseq(wlar, q) ∧ valid-eraseq(apebs, q) ∧ ¬ VTBL_VOLID ∈ vols ∧ bflipset-cons(bflipset, wlar) ∧ valid-ebatbl(apebs, wlar, vols, n0) ∧ valid-vtbl(apebs, vols, wlar, n0) ∧ ubi-io-inv(apebs) ∧ ( vols1 = vols ∧ id(apebs, apebs1, mapped-pebs(vols)) ∧ q.lebrefs ⊆ q1.lebrefs ++ (VTBL_VOLID × VTBL_LNUM) ∨ (∃ v, m, n. v ∈ vols1 ∧ m < # vols1[v] ∧ vols1[v][m] ≠ unmapped ∧ vols = vols1[v, vols1[v][m, ⌜n⌝ ]] ∧ id(apebs, apebs1, mapped-pebs(vols1) -- vols1[v][m].pnum) ∧ apebs[n].data = apebs1[vols1[v][m].pnum].data ∧ apebs[n].fill ≤ apebs1[vols1[v][m].pnum].fill ∧ q.lebrefs ⊆ q1.lebrefs ++ (v × m))) → err = ESUCCESS → Δ wlar < Δ wlar0)

Heuristic nonrecursive calls applied rule call right

And obtained the following new goals

Rule argument

pos: right 1

Additional information

Used simplifier rules: ubi_wear_leveling_worker# (LEBSIZE, PAGESIZE ; VOLS, WLARRAY, ERASEQ, BFLIPSET, VTBLPNUM, SQNUM, APEBS ; ERR ) {let VALID = ?, TO = ?, FROM = ? in {ubi_get_pebs_for_wl#(WLARRAY; TO, FROM, BFLIPSET; VALID); if VALID then let AVHDR = ?, BITFLIPS = ? in {aubi_io_read_vidhdr#(FROM, APEBS; AVHDR; BITFLIPS, ERR); if ERR = ESUCCESS then let BUF = mkbuf(LEBSIZE) in {aubi_io_read_data# (FROM, 0, 0, LEBSIZE, APEBS; BUF; BITFLIPS, ERR); if ERR = ESUCCESS then ubi_atomic_leb_change# (AVHDR.vol, AVHDR.leb, TO, LEBSIZE, BUF, PAGESIZE ; VOLS, WLARRAY, ERASEQ, BFLIPSET, VTBLPNUM, SQNUM, APEBS ; ERR); if ERR ≠ ESUCCESS then debug# ( "ubi: wear-leveling of PEB " + FROM.toString + " to PEB " + TO.toString + " failed"); if ERR = ESUCCESS then {ubi_erase_worker_helper# (FROM; WLARRAY, APEBS; ERR); if ERR = ESUCCESS then ERASEQ := ERASEQ.butlast}}} else ERR := ENOSPC} };