These modules probably won't be very useful in general; there exist better representations in Lean when dealing with ordered pairs or relations already.