Global semantic typing for inductive and coinductive computing (Logical Methods in Computer Science, 2014)