Imam Ali commanded:

I opened the door to all [the] sciences and the Mahdi will discover their secrets.

(Bihar al-Anwar, V. 74, p. 267 -  Kitab al-Jafr, Imam Ali, p. 466)