don't hide constant forever, since it may appear in some 'primcorec'-generated theorems
authorblanchet
Wed, 12 Feb 2014 17:35:59 +0100
changeset 55443 3def821deb70
parent 55442 17fb554688f0
child 55444 ec73f81e49e7
don't hide constant forever, since it may appear in some 'primcorec'-generated theorems
src/HOL/Nat.thy
--- a/src/HOL/Nat.thy	Wed Feb 12 17:35:59 2014 +0100
+++ b/src/HOL/Nat.thy	Wed Feb 12 17:35:59 2014 +0100
@@ -82,7 +82,7 @@
 apply (iprover elim: Nat_Abs_Nat_inverse [THEN subst])
 done
 
-wrap_free_constructors ["0 \<Colon> nat", Suc] case_nat [=] [[], [pred]]
+wrap_free_constructors ["0 \<Colon> nat", Suc] case_nat [=] [[], [pred]] [[pred: "0 \<Colon> nat"]]
   apply atomize_elim
   apply (rename_tac n, induct_tac n rule: nat_induct0, auto)
  apply (simp add: Suc_def Nat_Abs_Nat_inject Nat_Rep_Nat Suc_RepI
@@ -121,7 +121,7 @@
 
 declare nat.sel[code del]
 
-hide_const Nat.pred -- {* hide everything related to the selector *}
+hide_const (open) Nat.pred -- {* hide everything related to the selector *}
 hide_fact
   nat.case_eq_if
   nat.collapse