Decidability of second-order theories and automata on infinite trees. | Synapse