Zulip Chat Archive

Stream: Is there code for X?

Topic: int.div_eq_zero


Johan Commelin (Apr 28 2021 at 12:48):

example (d n : ) (h : d  n) (H : n / d = 0) : n = 0 :=
begin
  sorry
end

Johan Commelin (Apr 28 2021 at 12:48):

Or is there some edge case if d = 0??

Anne Baanen (Apr 28 2021 at 12:49):

If d = 0 then n = 0 since d \| n.

Anne Baanen (Apr 28 2021 at 12:50):

example (d n : ) (h : d  n) (H : n / d = 0) : n = 0 :=
begin
  rw [ int.mul_div_cancel' h, H, mul_zero]
end

Johan Commelin (Apr 28 2021 at 12:53):

Merci!


Last updated: Dec 20 2023 at 11:08 UTC