I have seen plenty of proofs for this theorem: In a UFD if $(a,b)=1$ and $a|bc$ then $a|c$. They mostly use the gcd distributive law e.g. here. Well I wanted to prove this just by relying on the properties that the UFD had.
My attempt: Since $a|bc$ then for some $r$ we have $ar=bc$. Now by the existence, since we know that any non unit element like $a$ can be rewritten as $t_1×....t_n$ where $t_i$ are irreducible, we can do this:
$$p_1^{α_1}...p_n^{α_n} g_1^{ε_1}...g_m^{ε_m} =q_1^{β_1}...q_k^{β_k}h_1^{ψ_1}...h_i^{ψ_i}$$ (Where $p_i$, $g_i$, $q_i$ and $h_i$ are primes.) By uniqueness the set that is on right should be on left too, Am I right? But since $(a,b)=1$ then $a$ and $b$ shouldn't share prime elements. Somehow it's like $A$ is a subset of $C$. I can't really manage this but it's becoming like a problem in set theory.
Can you please help me with my own approach??