Skip to content

Commit

Permalink
Test for AllCasePreds()
Browse files Browse the repository at this point in the history
  • Loading branch information
IlmariReissumies committed Nov 10, 2023
1 parent 5fd6aa1 commit 896b121
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/boss/theory_tests/casePredScript.sml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
open HolKernel Parse boolLib bossLib;

val _ = new_theory "casePred";

Theorem foo:
(case x of [] => F | h::t => h) ==> x <> []
Proof
rw[CasePred "list"]
QED

Theorem bar:
(case x of SOME h::t => h | _ => F) ==> x <> [NONE]
Proof
rw[CasePreds ["list","option"]]
QED

Theorem baz:
(case x of SOME h::t => h | _ => F) ==> x <> [NONE]
Proof
rw[AllCasePreds()]
QED

val _ = export_theory();

0 comments on commit 896b121

Please sign in to comment.