have h2 : b ∣ a := by apply (Int.pow_dvd_pow_iff (by positivity)).mp h1
a b c : ℤ
hb : b ≠ 0
h : a ^ 2 = b ^ 2 * c
h1 : b ^ 2 ∣ a ^ 2
⊢ ∃ d, c = d ^ 2
a b c : ℤ
hb : b ≠ 0
h : a ^ 2 = b ^ 2 * c
h1 : b ^ 2 ∣ a ^ 2
h2 : b ∣ a
⊢ ∃ d, c = d ^ 2