Theories for TC0 and Other Small Complexity Classes (Logical Methods in Computer Science, 2006)