[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 afs-contracts

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:
mkfile-stream ⊦ ((ino =>mkfile(n, md, m, σ) * F))(files) ↔ (∃ content. ((ino => mkfile(n, md, m, content) * F))(files) ∧ content.stream = σ) An Axiom
mkfile-stream-reduce ⊦ ((ino =>mkfile(n, md, m, σ0) * F))(files) → (((ino =>mkfile(n, md, m, σ1) * F))(files) ↔ σ0 = σ1) A User Theorem
readpage-get ⊦ [afs_readpage#(inode, n, dirs, files, asynced; buf, err)] (err = ESUCCESS ∧ buf = getpage(n, files[inode.ino].content) ∨ ⌊err⌋ ) A User Theorem
readpage-prepostafs-cons(dirs, files), ((inode.ino =>mkfile(n0, md, m, σ) * F))(files) ⊦ [afs_readpage#(inode, n, dirs, files, asynced; buf, err)] (err = ESUCCESS ∧ ⌜buf⌝ = (σ from n * VFS_PAGE_SIZE) to VFS_PAGE_SIZE ∨ ⌊err⌋ ) A User Theorem
the-stream ⊦ files[ino] = mkfile(n0, md0, m0, content) ∧ ((ino =>mkfile(n1, md1, m1, σ) * F))(files) → content.stream = σ A User Theorem
truncate-emptyafs-cons(dirs, files), inode = mkinode(ino, md, false, m, n0, n), pageno = inode.size / VFS_PAGE_SIZE, buf-opt.none? ⊦ [afs_truncate#(n, pageno; buf-opt, inode, bv, err, dirs, files, asynced)] (err = ESUCCESS → files[ino].content.stream from n = σ⊥) A User Theorem
truncate-greaterafs-cons(dirs, files), files0 = files, inode.size < n, pageno = inode.size / VFS_PAGE_SIZE, buf-opt.none?, m = inode.size ⊦ [afs_truncate#(n, pageno; buf-opt, inode, bv, err, dirs, files, asynced)] (err = ESUCCESS ⊃ files[inode.ino].content.stream to n = (files0[inode.ino].content.stream to m) + (σ⊥ to (n - m)) ∧ inode.ino ∈ files ∧ n = files[inode.ino].size ∧ files0[inode.ino].nlink = files[inode.ino].nlink ∧ files0 -- inode.ino = files -- inode.ino ;⌊err⌋ ∧ files0 = files ) A User Theorem
truncate-same-isoafs-cons(dirs, files), pageno = inode.size / VFS_PAGE_SIZE, buf-opt.none?, files0 = files, inode = getinode(ino, dirs, files), inode.size = n, ¬ inode.directory ⊦ [afs_truncate#(n, pageno; buf-opt, inode, bv, err, dirs, files, asynced)] (files0 ~ files ∧ (⌊err⌋ ∨ err = ESUCCESS)) A User Theorem
truncate-smallerafs-cons(dirs, files), files0 = files, n ≤ inode.size, pageno = inode.size / VFS_PAGE_SIZE, buf-opt.none? ⊦ [afs_truncate#(n, pageno; buf-opt, inode, bv, err, dirs, files, asynced)] (err = ESUCCESS ⊃ files[inode.ino].content.stream to n = files0[inode.ino].content.stream to n ∧ inode.ino ∈ files ∧ n = files[inode.ino].size ∧ files0[inode.ino].nlink = files[inode.ino].nlink ∧ files0 -- inode.ino = files -- inode.ino ;⌊err⌋ ∧ files0 = files ) A User Theorem
truncate-termafs-cons(dirs, files), valid-file-inode(inode, dirs, files), pageno = inode.size / VFS_PAGE_SIZE, buf-opt.none? ∨ # buf-opt.buf = VFS_PAGE_SIZE ⊦ ⟪afs_truncate#(n, pageno; buf-opt, inode, bv, err, dirs, files, asynced)⟫ true A User Theorem
writepage-prepostafs-cons(dirs, files), files0 = files, ((inode.ino =>mkfile(n0, md, m, σ) * F))(files) ⊦ [afs_writepage#(inode, n, buf, dirs; err, files; asynced)] ( err = ESUCCESS ∧ ((inode.ino =>mkfile(n0, md, m, (σ to n * VFS_PAGE_SIZE) + ⌜buf⌝ + (σ from (n + 1) * VFS_PAGE_SIZE)) * F))(files) ∨ ⌊err⌋ ∧ files0 = files) A User Theorem