A formalization of red-black trees in Agda