let is_function (symbol: symbol) : bool =
  symbol.sort == Function