Towards mechanical metamathematics