diff -r 9ce1a397410a -r 0494964bb226 src/HOL/Data_Structures/Tree23_Map.thy --- a/src/HOL/Data_Structures/Tree23_Map.thy Sat Dec 05 16:13:28 2015 +0100 +++ b/src/HOL/Data_Structures/Tree23_Map.thy Sat Dec 05 16:33:20 2015 +0100 @@ -72,7 +72,8 @@ subsection \Functional Correctness\ -lemma lookup: "sorted1(inorder t) \ lookup t x = map_of (inorder t) x" +lemma lookup_map_of: + "sorted1(inorder t) \ lookup t x = map_of (inorder t) x" by (induction t) (auto simp: map_of_simps split: option.split) @@ -118,11 +119,11 @@ subsection \Overall Correctness\ -interpretation T23_Map: Map_by_Ordered +interpretation Map_by_Ordered where empty = Leaf and lookup = lookup and update = update and delete = delete and inorder = inorder and inv = bal proof (standard, goal_cases) - case 2 thus ?case by(simp add: lookup) + case 2 thus ?case by(simp add: lookup_map_of) next case 3 thus ?case by(simp add: inorder_update) next