[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 30 from proof truncate-inv (previous step)

⟨afs_truncate_internal#(m0, m0 / VFS_PAGE_SIZE; inode, buf-opt, ino0, ino, isdir, err, dirs, files1; asynced)⟩ ( inode = inode0 ∧ buf-opt = buf-opt1 ∧ ino0 = ino2 ∧ ino = ino3 ∧ (isdir ↔ isdir0) ∧ err = err0 ∧ dirs = dirs0 ∧ files1 = files0 ∧ (asynced ↔ asynced1)), files1[ino1] = mkfile(m0, md, # links(ino1, dirs), content0), buf-opt = none, ino = 0, ino0 = 0, inode = mkinode(ino1, md, false, # links(ino1, dirs), 0, m0), afs-cons(dirs0, files0), afs-cons(dirs, files1), files1 ~ files0, ino1 ∈ files1, ⌊err0⌋ ∨ err0 = ESUCCESS ⊦ (err0 = ESUCCESS ⊃ files0[ino1].content.stream from m0 = σ⊥ ∧ (n0 ≤ # buf → ino1 ∈ files0 ∧ files0[ino1].size = m0) ∧ files1 -- ino1 = files0 -- ino1 ;⌊err0⌋ ) ∧ inode0 = mkinode(ino1, md, false, # links(ino1, dirs), 0, m0)

User applied rule call left

And obtained the following new goals

Rule argument

pos: left 1

Additional information

Used simplifier rules: afs_truncate_internal# (N, PAGENO ; INODE, PBUF-OPT, OFFSET, SIZE, MODIFIED, ERR, DIRS, FILES ; ASYNCED ) { let INO = INODE.ino, CONTENT = FILES[INODE.ino].content, PBUF = ? in {OFFSET := INODE.size % VFS_PAGE_SIZE, SIZE := min(N, INODE.size); MODIFIED := INODE.size ≤ N ∧ OFFSET ≠ 0 ∧ (PAGENO ∈ CONTENT ∨ PBUF-OPT.some?); if MODIFIED then {if PBUF-OPT.some? then PBUF := PBUF-OPT.buf else PBUF := FILES[INO].content[PAGENO]; PBUF := fill(PBUF, zero, OFFSET, VFS_PAGE_SIZE - OFFSET); CONTENT[PAGENO] := PBUF; PBUF-OPT := some(PBUF)}; FILES[INO].content := CONTENT upto SIZE; let NEW_INODE = INODE in {NEW_INODE.size := N; afs_inode_sync#(NEW_INODE; DIRS, FILES)}; INODE := getinode(INODE.ino, DIRS, FILES); ERR := ESUCCESS} or fail#(; ; ERR); ASYNCED := ? };