You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given the ways that we see cancel being used in the book, and given some discussions in the Zulip lean community, I think maybe there is a bug in the cancel tactic.
Would the following not have allowed us to arrive at the goal x = y?
example {x y : ℝ} (hx: 0 ≤ x) (hy: 0 ≤ y) (hs: x^2 = y^2) : x = y := by
cancel 2at hs
The original context where I ran into this was when trying to do the following:
example {x : ℚ} (h1 : x ^ 2 = 4) (h2 : 1 < x) : x = 2 := byhave h3 :=
calc
x^2 = 4 := by rw [h1]
_ = 2^2 := by numbers
cancel 2at h3
The text was updated successfully, but these errors were encountered:
Given the ways that we see
cancel
being used in the book, and given some discussions in the Zulip lean community, I think maybe there is a bug in thecancel
tactic.Would the following not have allowed us to arrive at the goal
x = y
?The original context where I ran into this was when trying to do the following:
The text was updated successfully, but these errors were encountered: