Kernel Reduction Explosion: a surprisingly inefficient computation in Lean 4

  Рет қаралды 1,257

David Renshaw

David Renshaw

Күн бұрын

Why does "well-founded recursion" sometimes make Lean 4 definitional equality (kernel reduction) very slow?
Try the interactive trace stepper tool here: dwrensha.github.io/kernel-red....
00:00 - reducing decimalDigits function
01:05 - compilation stages and kernel reduction
03:11 - Zulip suggests adding a fuel parameter
04:26 - printing elaborated function bodies
05:07 - a rundown on WellFounded.fix
06:00 - implementing tracing
06:14 - tracing decimalDigits'
07:16 - tracing decimalDigits
08:05 - tracing minus3
09:50 - conclusion

Пікірлер: 9
@tom7
@tom7 7 ай бұрын
I think the real thing to fix about Lean is that it should play the explosion sound whenever you use well-founded induction!
@ster2600
@ster2600 7 ай бұрын
Suckerpinch Lean content???? 🥺👉👈
@francescominnocci
@francescominnocci 7 ай бұрын
yes please
@aze4308
@aze4308 Ай бұрын
yes pleaseeee
@oneofvalts
@oneofvalts 2 ай бұрын
Gold, real gold. Thank you so much for this videos.
@zachbattleman6138
@zachbattleman6138 7 ай бұрын
Such a great video! We need more Lean content like this!!
@luck-xc7dy
@luck-xc7dy 7 ай бұрын
ive never been more confused 😅
@yyyxyxyxxyyxxy
@yyyxyxyxxyyxxy 7 ай бұрын
time to get my mind BLOWN
What happens at the Boundary of Computation?
14:59
Mutual Information
Рет қаралды 62 М.
这是王子儿子吗
00:27
落魄的王子
Рет қаралды 20 МЛН
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 122 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 9 МЛН
Пранк пошел не по плану…🥲
00:59
Саша Квашеная
Рет қаралды 7 МЛН
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1 МЛН
The Clever Way to Count Tanks - Numberphile
16:45
Numberphile
Рет қаралды 791 М.
Let's code math | Lean4 | Theorem prover
20:50
Splience
Рет қаралды 5 М.
Compilers, How They Work, And Writing Them From Scratch
23:53
Adam McDaniel
Рет қаралды 137 М.
Tactics & Keyframes: Visualizing Lean 4 Proofs in Blender
8:47
David Renshaw
Рет қаралды 6 М.
Faster than Rust and C++: the PERFECT hash table
33:52
strager
Рет қаралды 534 М.
D3 LiXiang L6 Машина Года 2025?
15:14
smotraTV
Рет қаралды 201 М.
WHY did this C++ code FAIL?
38:10
The Cherno
Рет қаралды 243 М.
Это iPhone 16
0:52
Wylsacom
Рет қаралды 1,3 МЛН
Частая ошибка геймеров? 😐 Dareu A710X
1:00
Вэйми
Рет қаралды 5 МЛН
Как удвоить напряжение? #электроника #умножитель
1:00
Hi Dev! – Электроника
Рет қаралды 1,1 МЛН
Looks very comfortable. #leddisplay #ledscreen #ledwall #eagerled
0:19
LED Screen Factory-EagerLED
Рет қаралды 13 МЛН
$1 vs $100,000 Slow Motion Camera!
0:44
Hafu Go
Рет қаралды 29 МЛН