src/HOL/Subst/AList.thy
author oheimb
Wed, 18 Dec 1996 15:12:34 +0100
changeset 2443 a81d4c219c3c
parent 1476 608483c2122a
child 3192 a75558a4ed37
permissions -rw-r--r--
factored out HOL_base_ss and val HOL_min_ss, added HOL_safe_min_ss

(*  Title:      Substitutions/alist.thy
    Author:     Martin Coen, Cambridge University Computer Laboratory
    Copyright   1993  University of Cambridge

Association lists.
*)

AList = List + 

consts

  alist_rec  :: "[('a*'b)list, 'c, ['a, 'b, ('a*'b)list, 'c]=>'c] => 'c"
  assoc      :: "['a,'b,('a*'b) list] => 'b"

rules

  alist_rec_def "alist_rec al b c == list_rec b (split c) al"

  assoc_def   "assoc v d al == alist_rec al d (%x y xs g.if v=x then y else g)"

end