Zulip Chat Archive

Stream: new members

Topic: IsLeftCancelMul ℝ


ZhiKai Pong (Apr 30 2025 at 18:43):

import Mathlib

variable (f :   ) (c : )

example (h :  x, c * f x = 0) (hc : c  0): f x = 0 := by
  have h' : c * f x = c * 0 := by
    rw [h]
    simp
  apply mul_left_cancel at h'
  exact h'
  -- goal: IsLeftCancelMul ℝ

I have this example which ends up with this goal and I don't know how to proceed or what am I missing.
I guess I would also like to ask is there a simpler way to do this e.g. without needing to define h'

Ruben Van de Velde (Apr 30 2025 at 18:45):

mul_left_cancel doesn't work if you have a zero; you need mul_left_cancel\0


Last updated: May 02 2025 at 03:31 UTC