[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 45 from proof refine-truncate-buff-none-cached (previous step)

afs_asynced ↔ cache_asynced, asynced ↔ asynced5, cache_files[m] = mkfile(m3, md1, # links(m, cache_dirs), content0), ((cache_files ⊕ cache_pcache) ⊕ cache_icache)[m] = mkfile(m0, md0, # links(m, cache_dirs), content), afs_dirs = cache_dirs, afs_files = (cache_files ⊕ cache_pcache) ⊕ cache_icache, buf-opt = some(cache_pcache[datakey(m, m2 / VFS_PAGE_SIZE)].page), err = ESUCCESS, inode = mkinode(m, md, false, # links(m, cache_dirs), 0, m2), m1 = # links(m, cache_dirs), afs-cons(cache_dirs, cache_files), afs-cons(cache_dirs, (cache_files ⊕ cache_pcache) ⊕ cache_icache), dcache-cons(cache_dcache, cache_dirs, cache_files), icache-cons(cache_icache, cache_dirs, cache_files), pcache-cons(cache_pcache, cache_dirs, cache_files), synced(cache_dirs, cache_icache, cache_pcache), m ∈ cache_files, datakey(m, m2 / VFS_PAGE_SIZE) ∈ cache_pcache, cache_sync → synced(cache_files, cache_icache, cache_pcache) ⊦ ⟪afs_truncate#(n, m2 / VFS_PAGE_SIZE; buf-opt, inode, asynced, err, cache_dirs, cache_files, cache_asynced); if err = ESUCCESS then let asynced0 = false in {icache_set#(inode, asynced0; err, cache_icache); pcache_truncate#(inode.ino, m2, n; err, cache_pcache); if asynced then pcache_set#(inode.ino, m2 / VFS_PAGE_SIZE, buf-opt.buf, asynced0; err, cache_pcache)}; if ¬ asynced ∨ err ≠ ESUCCESS then buf-opt := none⟫ ⟨buf-opt0 := none; inode0 := mkinode(m, md, false, m1, 0, m2); afs_truncate#(n, m2 / VFS_PAGE_SIZE; buf-opt0, inode0, asynced5, err0, afs_dirs, afs_files, afs_asynced)⟩ ( afs_dirs = cache_dirs ∧ afs_files = (cache_files ⊕ cache_pcache) ⊕ cache_icache ∧ (afs_asynced ↔ cache_asynced) ∧ buf-opt = buf-opt0 ∧ inode = inode0 ∧ (asynced ↔ asynced5) ∧ err = err0)

Heuristic elimination applied rule insert elim lemma

And obtained the following new goals

Rule argument

spec: pcache-entry name: elim seq: ⊦ (boolvar ↔ pe.dirty) ∧ buf = pe.page ↔ pe = mkpentry(boolvar, buf) subst: [pe, boolvar, buf] → [cache_pcache[datakey(m, m2 / VFS_PAGE_SIZE)], boolvar, buf]

Additional information

Used simplifier rules: ⊦ (boolvar ↔ pe.dirty) ∧ buf = pe.page ↔ pe = mkpentry(boolvar, buf); (elim) Used terms: cache_pcache[datakey(m, m2 / VFS_PAGE_SIZE)], boolvar, buf