add lemma
authorAndreas Lochbihler
Thu, 18 Sep 2014 15:23:23 +0200
changeset 58383 09a2c3e08ec2
parent 58367 8af1e68d7e1a
child 58384 00aaaa7bd752
add lemma
src/HOL/Library/Phantom_Type.thy
--- a/src/HOL/Library/Phantom_Type.thy	Thu Sep 18 00:03:46 2014 +0200
+++ b/src/HOL/Library/Phantom_Type.thy	Thu Sep 18 15:23:23 2014 +0200
@@ -36,4 +36,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