Linear Temporal Logic for Regular Cost Functions (Logical Methods in Computer Science, 2014)