src/HOL/Nitpick.thy
changeset 54148 c8cc5ab4a863
parent 52641 c56b6fa636e8
child 54555 e8c5e95d338b
     1.1 --- a/src/HOL/Nitpick.thy	Fri Oct 18 10:43:20 2013 +0200
     1.2 +++ b/src/HOL/Nitpick.thy	Fri Oct 18 10:43:21 2013 +0200
     1.3 @@ -33,7 +33,7 @@
     1.4  Alternative definitions.
     1.5  *}
     1.6  
     1.7 -lemma Ex1_unfold [nitpick_unfold, no_atp]:
     1.8 +lemma Ex1_unfold [nitpick_unfold]:
     1.9  "Ex1 P \<equiv> \<exists>x. {x. P x} = {x}"
    1.10  apply (rule eq_reflection)
    1.11  apply (simp add: Ex1_def set_eq_iff)
    1.12 @@ -46,18 +46,18 @@
    1.13   apply (erule_tac x = y in allE)
    1.14  by auto
    1.15  
    1.16 -lemma rtrancl_unfold [nitpick_unfold, no_atp]: "r\<^sup>* \<equiv> (r\<^sup>+)\<^sup>="
    1.17 +lemma rtrancl_unfold [nitpick_unfold]: "r\<^sup>* \<equiv> (r\<^sup>+)\<^sup>="
    1.18    by (simp only: rtrancl_trancl_reflcl)
    1.19  
    1.20 -lemma rtranclp_unfold [nitpick_unfold, no_atp]:
    1.21 +lemma rtranclp_unfold [nitpick_unfold]:
    1.22  "rtranclp r a b \<equiv> (a = b \<or> tranclp r a b)"
    1.23  by (rule eq_reflection) (auto dest: rtranclpD)
    1.24  
    1.25 -lemma tranclp_unfold [nitpick_unfold, no_atp]:
    1.26 +lemma tranclp_unfold [nitpick_unfold]:
    1.27  "tranclp r a b \<equiv> (a, b) \<in> trancl {(x, y). r x y}"
    1.28  by (simp add: trancl_def)
    1.29  
    1.30 -lemma [nitpick_simp, no_atp]:
    1.31 +lemma [nitpick_simp]:
    1.32  "of_nat n = (if n = 0 then 0 else 1 + of_nat (n - 1))"
    1.33  by (cases n) auto
    1.34  
    1.35 @@ -85,18 +85,18 @@
    1.36  \textit{specialize} optimization.
    1.37  *}
    1.38  
    1.39 -lemma The_psimp [nitpick_psimp, no_atp]:
    1.40 +lemma The_psimp [nitpick_psimp]:
    1.41    "P = (op =) x \<Longrightarrow> The P = x"
    1.42    by auto
    1.43  
    1.44 -lemma Eps_psimp [nitpick_psimp, no_atp]:
    1.45 +lemma Eps_psimp [nitpick_psimp]:
    1.46  "\<lbrakk>P x; \<not> P y; Eps P = y\<rbrakk> \<Longrightarrow> Eps P = x"
    1.47  apply (cases "P (Eps P)")
    1.48   apply auto
    1.49  apply (erule contrapos_np)
    1.50  by (rule someI)
    1.51  
    1.52 -lemma unit_case_unfold [nitpick_unfold, no_atp]:
    1.53 +lemma unit_case_unfold [nitpick_unfold]:
    1.54  "unit_case x u \<equiv> x"
    1.55  apply (subgoal_tac "u = ()")
    1.56   apply (simp only: unit.cases)
    1.57 @@ -104,14 +104,14 @@
    1.58  
    1.59  declare unit.cases [nitpick_simp del]
    1.60  
    1.61 -lemma nat_case_unfold [nitpick_unfold, no_atp]:
    1.62 +lemma nat_case_unfold [nitpick_unfold]:
    1.63  "nat_case x f n \<equiv> if n = 0 then x else f (n - 1)"
    1.64  apply (rule eq_reflection)
    1.65  by (cases n) auto
    1.66  
    1.67  declare nat.cases [nitpick_simp del]
    1.68  
    1.69 -lemma list_size_simp [nitpick_simp, no_atp]:
    1.70 +lemma list_size_simp [nitpick_simp]:
    1.71  "list_size f xs = (if xs = [] then 0
    1.72                     else Suc (f (hd xs) + list_size f (tl xs)))"
    1.73  "size xs = (if xs = [] then 0 else Suc (size (tl xs)))"