| root0[path].dir? ↔ root0[path'].dir?, fid ∈ fs ↔ fid ∈ root0.fids ∨ fid ∈ ofh.fids, fnode(fid0) = root0[path], root0[parent(path')].dir?, (root0 -- path)[parent(path')].dir?, fids-cons(root0, fs, ofh), py(user, parent(path'), root0, fs), py(user, parent(path), root0, fs), parent(path') ∈ root0, path ∈ root0, path' ∈ root0, root0[path'].dir? → root0[path'].entries = ∅, root0[path'].dir? → pw(user, path, root0, fs) ⊦ fid ∈ fs ↔ fid ∈ ((root0.fids \ root0[path].fids) \ (path' ⊑ path ⊃ root0[path'] -- restn(# path', path);root0[path']).fids) ∪ root0[path].fids ∨ fid ∈ ofh.fids, path' = ε, path ⊑ path', ¬ root0[path'].dir? ∧ ¬ root0[path'].fid ∈ ofh.fids ∧ ¬ root0[path'].fid ∈ ((root0.fids \ root0[path].fids) \ (path' ⊑ path ⊃ root0[path'] -- restn(# path', path);root0[path']).fids) ∪ root0[path].fids |
fid ∈ fs ↔ fid ∈ root0.fids ∨ fid ∈ ofh.fids, fnode(fid0) = root0[path], root0[parent(path')].dir?, (root0 -- path)[parent(path')].dir?, fids-cons(root0, fs, ofh), py(user, parent(path'), root0, fs), py(user, parent(path), root0, fs), parent(path') ∈ root0, path ∈ root0, path' ∈ root0 ⊦ fid ∈ fs ↔ fid ∈ ((root0.fids \ {fid0} ) \ (path' ⊑ path ⊃ root0[path'] -- restn(# path', path);root0[path']).fids) ∪ {fid0} ∨ fid ∈ ofh.fids, path' = ε, root0[path'].dir?, path ⊑ path', ¬ root0[path'].fid ∈ ofh.fids ∧ ¬ root0[path'].fid ∈ ((root0.fids \ {fid0} ) \ (path' ⊑ path ⊃ root0[path'] -- restn(# path', path);root0[path']).fids) ∪ {fid0}
Used simplifier rules: ⊦ fnode(fid).fids = {fid} ; (s)% ⊦ ¬ fnode(fid).dir?; (s)