⊦ rj.num = 0, rj = 0r, rational(rj.denom * ri.num, rj.num * ri.denom) = ri / rj
Used simplifier rules: negate-eq: ⊦ ~ ri = ~ rj ↔ ri = rj;