In mathematics and physics, there are many notions of duality that aren't always similar. For example, the notion of the dual of a vector space seems wildly different from the Hodge dual of linear forms, which is vastly different from the duality between electric and magnetic fields in electrodynamics, which is different from the dualities in AdS/CFT in physics.
I was talking to a friend and they mentioned that perhaps there was a rigorous notion of duality within more abstract branches of mathematics that could encompass all of these notions at once, perhaps some construction within Category Theory. Is there anything of the sort?