| files1 -- ino = files0 -- ino, files0[ino] = mkfile(m1, md1, n2, content0), files1[ino] = mkfile(m1, md1, # links(ino, dirs), content1), content0.stream from m1 = σ⊥, n3 < n1, m1 < n1, n3 < n0 + n, n3 < # buf + n0, m1 < # buf + n0, m1 < n0 + n, afs-cons(dirs, files1), ino ∈ files1, ino ∈ files0, n ≤ # buf, n1 ≤ # buf + n0, n0 + n ≤ n1 ⊦ copy(buf, 0, resize((content0.stream to m1).buf, n0 + n), n0, n)[n3] = ((content0.stream to n0) + (⌜buf⌝ to n) + (content0.stream from n0 + n))[n3], n = 0 |
⊦ m0 < # buf → copy(buf0, n, buf, n0, m)[m0] = (m0 < n0 ∨ n0 + m ≤ m0 ⊃ buf[m0];buf0[m0 + n - n0])
files1 -- ino = files0 -- ino, files1[ino] = mkfile(m1, md1, # links(ino, dirs), content1), files0[ino] = mkfile(m1, md1, n2, content0), content0.stream from m1 = σ⊥, m1 < n0 + n, m1 < # buf + n0, n3 < # buf + n0, n3 < n0 + n, m1 < n1, n3 < n1, n3 < # resize((content0.stream to m1).buf, n0 + n), afs-cons(dirs, files1), ino ∈ files0, ino ∈ files1, n0 + n ≤ n1, n1 ≤ # buf + n0, n ≤ # buf ⊦ (n3 < n0 ∨ n0 + n ≤ n3 ⊃ resize((content0.stream to m1).buf, n0 + n)[n3];buf[n3 + 0 - n0]) = ((content0.stream to n0) + (⌜buf⌝ to n) + (content0.stream from n0 + n))[n3], n = 0
Used simplifier rules: ⊦ # resize(buf, n) = n; (s)% ⊦ m < n ↔ ¬ n ≤ m; (ss)% ⊦ m < n → (n ≤ m ↔ false); (s) Used terms: n3, n, n0, resize((content0.stream to m1).buf, n0 + n), 0, buf