let rec list_mem_assoc' x = function | (a, b) :: t when x = b -> true | _ :: t -> list_mem_assoc' x t | [] -> false