reintroduced old setup for size of basic types
authorblanchet
Fri, 19 Sep 2014 13:27:04 +0200
changeset 58391 fe0fc8aee49a
parent 58390 b74d8470b98e
child 58392 00f5b1efc741
reintroduced old setup for size of basic types
src/HOL/Basic_BNF_Least_Fixpoints.thy
--- a/src/HOL/Basic_BNF_Least_Fixpoints.thy	Fri Sep 19 13:27:04 2014 +0200
+++ b/src/HOL/Basic_BNF_Least_Fixpoints.thy	Fri Sep 19 13:27:04 2014 +0200
@@ -57,6 +57,14 @@
 
 ML_file "~~/src/HOL/Tools/Old_Datatype/old_size.ML"
 
+lemma size_bool[code]: "size (b\<Colon>bool) = 0"
+  by (cases b) auto
+
+declare prod.size[no_atp]
+
+lemma size_nat[simp, code]: "size (n\<Colon>nat) = n"
+  by (induct n) simp_all
+
 hide_const (open) xtor ctor_rec
 
 hide_fact (open)