Consider two irreducible fractions:
$r_{1} = \frac{p_{1}}{q_{1}}$
$r_{2} = \frac{p_{2}}{q_{2}}$
Are these two fractions:
$r_{3} = \frac{\text{gcd}\left(p_{1}, p_{2}\right)}{\text{lcm}\left(q_{1}, q_{2}\right)}$
$r_{4} = \frac{\text{lcm}\left(p_{1}, p_{2}\right)}{\text{gcd}\left(q_{1}, q_{2}\right)}$
irreducible fractions?
(and if yes, how to demonstrate it?)
Let $p$ be a prime that divides $\gcd(p_1, p_2)$. Then $p|p_1$ and $p | p_2$. Hence $p$ does not divide either $q_1$ or $q_2$. Hence it does not divide the lcm of $g_1$ and $g_2$. Hence $\gcd(p_1, p_2)$ and $lcm(g_1, g_2)$ are co-prime
Same argument for the second ratio also. Just start with $\gcd$ and work towards $lcm$