He was one of the founders of proof theory and mathematical logic . Hilbert is known as one of the founders of proof theory and mathematical logic , as well as for being among the first to distinguish between mathematics and metamathematics .