diff -r 56a87a5093be -r cd935b7cb3fb src/HOL/Library/Mapping.thy --- a/src/HOL/Library/Mapping.thy Mon Jul 03 14:25:07 2017 +0200 +++ b/src/HOL/Library/Mapping.thy Sun Jul 02 20:13:38 2017 +0200 @@ -117,8 +117,9 @@ definition "lookup_default d m k = (case Mapping.lookup m k of None \ d | Some v \ v)" -declare [[code drop: Mapping.lookup]] -setup \Code.add_eqn (Code.Equation, true) @{thm Mapping.lookup.abs_eq}\ (* FIXME lifting *) +lemma [code abstract]: + "lookup (Mapping f) = f" + by (fact Mapping.lookup.abs_eq) (* FIXME lifting *) lift_definition update :: "'a \ 'b \ ('a, 'b) mapping \ ('a, 'b) mapping" is "\k v m. m(k \ v)" parametric update_parametric .