Check out the "Deepmath" paper linked above. (The paper is from a few months ago, the source code is new IIUC.)
(edit) I still don't see any rationale for the theorem prover kernel re-implementation. Again, pointers appreciated.
(I work part time on the Brain team, but I haven't asked the authors about this -- this is a best guess based upon knowing TF, not an informed statement.)
[1] https://www.quora.com/Which-programming-languages-does-Googl...