blob: 68637ee6ee1618ac5fb660aa5319eb41ac8dd959 [file] [edit]
def f (x y : Nat) : Nat :=
match x, y with
| 0, 0 => 1
| _, _ => 2
example (h : f x y = 1) : f x y ≠ 2 := by
simp [f] at *
split
next => decide
next x' y' hnp => simp [hnp] at h