Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/expose-array-back
/
.
/
tests
/
elab
/
1193b.lean
blob: 3cd473408b8e223c192f87c8bcfdda42f3ed434a [
file
] [
edit
]
inductive
Foo
(
n
:
Nat
)
:
Type
|
nil
:
Foo
n
|
cons
(
s
:
Foo
n
):
Foo
n
namespace
Foo
@[
simp
]
def
bar
:
{
n
:
Nat
}
→
Foo
n
→
Foo
n
→
Bool
|
n
+
1
,
cons a
,
cons b
=>
bar a b
|
_
,
_
,
_
=>
true
example
:
bar
(
n
:=
n
+
1
)
nil
nil
=
true
:=
by
simp only
[
bar
]