Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/Array.mapIdx
/
.
/
tests
/
lean
/
1057.lean
blob: 790677c0962626ea26544315e84eab167bd020c8 [
file
] [
edit
]
inductive T
|
t
:
T
@[
reducible
]
def
T
.
eval
:
T
→
Type
|
T
.
t
=>
Int
def
T
.
default
(τ
:
T
)
:
τ.
eval
:=
match
τ,
τ.
eval
with
|
T
.
t
,
.(
Int
)
=>
(
0
:
Int
)