src/HOL/Number_Theory/Cong.thy
changeset 55242 413ec965f95d
parent 55161 8eb891539804
child 55321 eadea363deb6
--- a/src/HOL/Number_Theory/Cong.thy	Sat Feb 01 22:02:20 2014 +0100
+++ b/src/HOL/Number_Theory/Cong.thy	Sun Feb 02 19:15:25 2014 +0000
@@ -261,7 +261,8 @@
   by (simp add: cong_altdef_int)
 
 lemma cong_square_int:
-   "\<lbrakk> prime (p::int); 0 < a; [a * a = 1] (mod p) \<rbrakk>
+  fixes a::int
+  shows "\<lbrakk> prime p; 0 < a; [a * a = 1] (mod p) \<rbrakk>
     \<Longrightarrow> [a = 1] (mod p) \<or> [a = - 1] (mod p)"
   apply (simp only: cong_altdef_int)
   apply (subst prime_dvd_mult_eq_int [symmetric], assumption)