We have something that can understand a pattern but we don't have something that can understand how different patterns relate to each other.
(explanation: homotopy type theory (HoTT) in difference to ITT also considers types of higher order).
What HoTT brings to the table is the notion that a path between two types can be used to transport a proof from one type to another - currently immensely handy for theorem proving, but applications in ML and beyond remain to be made.