aboutsummaryrefslogtreecommitdiff
path: root/spartan/data/More_Types.thy
diff options
context:
space:
mode:
Diffstat (limited to 'spartan/data/More_Types.thy')
-rw-r--r--spartan/data/More_Types.thy8
1 files changed, 8 insertions, 0 deletions
diff --git a/spartan/data/More_Types.thy b/spartan/data/More_Types.thy
index 625f639..1d7abb9 100644
--- a/spartan/data/More_Types.thy
+++ b/spartan/data/More_Types.thy
@@ -90,6 +90,14 @@ definition "Bool \<equiv> \<top> \<or> \<top>"
definition "true \<equiv> inl \<top> \<top> tt"
definition "false \<equiv> inr \<top> \<top> tt"
+Lemma
+ BoolF: "Bool: U i" and
+ Bool_true: "true: Bool" and
+ Bool_false: "false: Bool"
+ unfolding Bool_def true_def false_def by typechk+
+
+lemmas [intros] = BoolF Bool_true Bool_false
+
\<comment> \<open>Can define if-then-else etc.\<close>