let is_null_poly = function
  p -> match p with P (la) -> is_empty_list (la)