# HG changeset patch # User blanchet # Date 1276271836 -7200 # Node ID cf5e06d5ecaf5f930005e74062494d9fdfab20c4 # Parent 34f080a12063f1c7d524e8d07fb346b90d1257d8 adjust Nitpick example to follow latest wave of renamings diff -r 34f080a12063 -r cf5e06d5ecaf src/HOL/Nitpick_Examples/Typedef_Nits.thy --- a/src/HOL/Nitpick_Examples/Typedef_Nits.thy Fri Jun 11 17:10:23 2010 +0200 +++ b/src/HOL/Nitpick_Examples/Typedef_Nits.thy Fri Jun 11 17:57:16 2010 +0200 @@ -95,20 +95,20 @@ nitpick [expect = genuine] oops -lemma "Pair a b \ Abs_Prod (Pair_Rep a b)" +lemma "Pair a b = Abs_prod (Pair_Rep a b)" nitpick [card = 1\2, expect = none] by (rule Pair_def) -lemma "Pair a b \ Abs_Prod (Pair_Rep b a)" +lemma "Pair a b = Abs_prod (Pair_Rep b a)" nitpick [card = 1\2, expect = none] nitpick [dont_box, expect = genuine] oops -lemma "fst (Abs_Prod (Pair_Rep a b)) = a" +lemma "fst (Abs_prod (Pair_Rep a b)) = a" nitpick [card = 2, expect = none] -by (simp add: Pair_def [THEN symmetric]) +by (simp add: Pair_def [THEN sym]) -lemma "fst (Abs_Prod (Pair_Rep a b)) = b" +lemma "fst (Abs_prod (Pair_Rep a b)) = b" nitpick [card = 1\2, expect = none] nitpick [dont_box, expect = genuine] oops @@ -117,19 +117,19 @@ nitpick [expect = none] apply (rule ccontr) apply simp -apply (drule subst [where P = "\r. Abs_Prod r = Abs_Prod (Pair_Rep a b)"]) +apply (drule subst [where P = "\r. Abs_prod r = Abs_prod (Pair_Rep a b)"]) apply (rule refl) -by (simp add: Pair_def [THEN symmetric]) +by (simp add: Pair_def [THEN sym]) -lemma "Abs_Prod (Rep_Prod a) = a" +lemma "Abs_prod (Rep_prod a) = a" nitpick [card = 2, expect = none] -by (rule Rep_Prod_inverse) +by (rule Rep_prod_inverse) -lemma "Inl \ \a. Abs_Sum (Inl_Rep a)" +lemma "Inl \ \a. Abs_sum (Inl_Rep a)" nitpick [card = 1, expect = none] -by (simp only: Inl_def o_def) +by (simp add: Inl_def o_def) -lemma "Inl \ \a. Abs_Sum (Inr_Rep a)" +lemma "Inl \ \a. Abs_sum (Inr_Rep a)" nitpick [card = 1, card "'a + 'a" = 2, expect = genuine] oops @@ -137,20 +137,20 @@ nitpick [expect = none] by (rule Inl_Rep_not_Inr_Rep) -lemma "Abs_Sum (Rep_Sum a) = a" +lemma "Abs_sum (Rep_sum a) = a" nitpick [card = 1, expect = none] nitpick [card = 2, expect = none] -by (rule Rep_Sum_inverse) +by (rule Rep_sum_inverse) lemma "0::nat \ Abs_Nat Zero_Rep" nitpick [expect = none] by (rule Zero_nat_def_raw) -lemma "Suc \ \n. Abs_Nat (Suc_Rep (Rep_Nat n))" +lemma "Suc n = Abs_Nat (Suc_Rep (Rep_Nat n))" nitpick [expect = none] by (rule Suc_def) -lemma "Suc \ \n. Abs_Nat (Suc_Rep (Suc_Rep (Rep_Nat n)))" +lemma "Suc n = Abs_Nat (Suc_Rep (Suc_Rep (Rep_Nat n)))" nitpick [expect = genuine] oops