Sign in
◑
Theme
fuchsia
/
third_party
/
github.com
/
leanprover
/
lean4
/
refs/heads/upstream/expose-array-back
/
.
/
tests
/
elab
/
wfcomputable.lean
blob: 404642240df0f2178a41a756c1c8cd4a4f4db435 [
file
] [
edit
]
prelude
import
Init
.
Guard
import
Init
.
WFComputable
--
Test
wellfounded fix call
is
executable
def
log2p1
:
Nat
→
Nat
:=
WellFounded
.
fix
Nat
.
lt_wfRel
.
2
fun n IH
=>
let
m
:=
n
/
2
if
h
:
m
<
n
then
IH m h
+
1
else
0
#guard log2p1 4 == 3