(* Title: Isabelle Collections Library Author: Peter Lammich <peter dot lammich at uni-muenster.de> Maintainer: Peter Lammich <peter dot lammich at uni-muenster.de> *) (* Changes since submission on 2009-11-26: 2009-12-10: OrderedSet, implemented iterators, min, max, to_sorted_list *) section ‹\isaheader{Set Implementation by Red-Black-Tree}› theory RBTSetImpl imports "../spec/SetSpec" RBTMapImpl "../gen_algo/SetByMap" "../gen_algo/SetGA" begin text_raw ‹\label{thy:RBTSetImpl}› (*@impl Set @type ('a::linorder) rs @abbrv rs,r Sets over linearly ordered elements implemented by red-black trees. *) subsection "Definitions" type_synonym 'a rs = "('a::linorder,unit) rm" setup Locale_Code.open_block