Skip to content

Commit

Permalink
feat: Add verify_instr_is_valid Lemma
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMushow committed Dec 6, 2024
1 parent 03a7941 commit 599e698
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,11 @@ Proof.
admit.
}
Admitted.

Lemma verify_instr_is_valid (instruction : Bytecode.t) (pc : Z) (type_safety_checker : TypeSafetyChecker.t)
(H_type_safety_checker : TypeSafetyChecker.Valid.t type_safety_checker) :
match verify_instr instruction pc type_safety_checker with
| Panic.Value (Result.Ok _, type_safety_checker') => TypeSafetyChecker.Valid.t type_safety_checker'
| _ => True
end.
Proof.

0 comments on commit 599e698

Please sign in to comment.