Higher-Dimensional Types in the Mechanization of Homotopy Theory