Applications of logic to group theory Foundations mathematics