Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
HEAD
/
.
/
tests
/
elab
/
1419.lean
blob: a91dbc9e49bed0e7d50704bb5325af7aeb91a1a0 [
file
]
def
Foo
:=
Nat
def
Foo
.
pow
(
x
:
Nat
)
(
k
:
Nat
)
:
Foo
:=
match k
with
|
0
=>
x
|
k
+
1
=>
pow x k
instance
:
Pow
Foo
Nat
:=
⟨
Foo
.
pow
⟩
example
(
x
:
Foo
)
:
x
^
2048
=
x
:=
by
show
Foo
.
pow x
2048
=
x
sorry