author | Andreas Lochbihler |
Fri, 19 Sep 2014 08:26:03 +0200 | |
changeset 58384 | 00aaaa7bd752 |
parent 58382 | 2ee61d28c667 (current diff) |
parent 58383 | 09a2c3e08ec2 (diff) |
child 58385 | 9cbef70cff8e |
--- a/src/HOL/Library/Phantom_Type.thy Thu Sep 18 19:01:50 2014 +0200 +++ b/src/HOL/Library/Phantom_Type.thy Fri Sep 19 08:26:03 2014 +0200 @@ -30,4 +30,8 @@ in [(@{const_syntax phantom}, phantom_tr')] end *} +lemma of_phantom_inject [simp]: + "of_phantom x = of_phantom y \<longleftrightarrow> x = y" +by(cases x y rule: phantom.exhaust[case_product phantom.exhaust]) simp + end