tuned
authornipkow
Wed, 25 Jan 2017 18:26:35 +0100
changeset 64947 f6ad52152040
parent 64946 03b5f4e7f4a6
child 64948 e655d965307c
tuned
src/HOL/Data_Structures/RBT_Set.thy
--- a/src/HOL/Data_Structures/RBT_Set.thy	Tue Jan 24 22:29:44 2017 +0100
+++ b/src/HOL/Data_Structures/RBT_Set.thy	Wed Jan 25 18:26:35 2017 +0100
@@ -103,7 +103,7 @@
 fun invc :: "'a rbt \<Rightarrow> bool" where
 "invc Leaf = True" |
 "invc (Node c l a r) =
-  (invc l \<and> invc r \<and> (c = Black \<or> color l = Black \<and> color r = Black))"
+  (invc l \<and> invc r \<and> (c = Red \<longrightarrow> color l = Black \<and> color r = Black))"
 
 fun invc_sons :: "'a rbt \<Rightarrow> bool" \<comment> \<open>Weaker version\<close> where
 "invc_sons Leaf = True" |