Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
match_ctorIdx.lean
blob: 1e27012f15cc65c7f91d806c7087be0196db857f [
file
]
def
test1
(
x1 x2
:
List
α)
(
h
:
x2
.
ctorIdx
=
x1
.
ctorIdx
)
:
Bool
:=
match x1
,
x2
,
h
with
|
.
nil
,
.
nil
,
_h
=>
true
|
.
cons _h1 _t1
,
.
cons _h2 _t2
,
_h
=>
false
--
NB
:
This
is
a complete pattern match