merged
authornipkow
Thu, 21 Mar 2019 19:46:26 +0100
changeset 70126 ab8aad4aa76e
parent 70124 2c48be88f847 (current diff)
parent 70125 deb05b4c48ba (diff)
child 70127 35ba13ac6e5c
child 70130 a591de179931
merged
--- a/src/HOL/Data_Structures/Array_Braun.thy	Thu Mar 21 16:16:43 2019 +0100
+++ b/src/HOL/Data_Structures/Array_Braun.thy	Thu Mar 21 19:46:26 2019 +0100
@@ -279,7 +279,7 @@
 "size_fast Leaf = 0" |
 "size_fast (Node l x r) = (let n = size_fast r in 1 + 2*n + diff l n)"
 
-lemma diff: "braun t \<Longrightarrow> size t : {n, n + 1} \<Longrightarrow> diff t n = (if size t = n then 0 else 1)"
+lemma diff: "braun t \<Longrightarrow> size t : {n, n + 1} \<Longrightarrow> diff t n = size t - n"
 by(induction t arbitrary: n) auto
 
 lemma size_fast: "braun t \<Longrightarrow> size_fast t = size t"