set_option trace.Compiler.inferBorrow true
def f (xs : List Nat) :=
  2 * xs.length
