Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
simpMatch.lean
blob: 68637ee6ee1618ac5fb660aa5319eb41ac8dd959 [
file
]
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