Skip to content

Commit 97a0ed1

Browse files
committed
fix(lean4): complete nonempty_path_ne_parent proof in FilesystemModel.lean
1 parent 38193a9 commit 97a0ed1

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

proofs/lean4/FilesystemModel.lean

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/- Valence Shell - Filesystem Model (Lean 4)
22
3-
A formal model of POSIX-like filesystem operations for proving
4-
MAA (Mutually Assured Accountability) properties.
3+
A formal model of POSIX-like filesystem operations for proving
4+
MAA (Mutually Assured Accountability) properties.
55
6-
This model focuses on directory operations (mkdir/rmdir) with
7-
the goal of proving reversibility and correctness properties.
6+
This model focuses on directory operations (mkdir/rmdir) with
7+
the goal of proving reversibility and correctness properties.
88
-/
99

1010
-- Path Model
@@ -94,6 +94,7 @@ theorem nonempty_path_ne_parent (p : Path) (h : p ≠ []) :
9494
have hp2 : p.reverse = x :: rest := hp
9595
rw [heq] at hp2
9696
simp at hp2
97+
contradiction
9798

9899
theorem pathExists_emptyFS_root :
99100
pathExists rootPath emptyFS := by

0 commit comments

Comments
 (0)