Better HN
topnewbestaskshowjobs
Log inSign up

duve02

5 karma · joined Jun 21, 2025 (1y ago) · 5 submissions

Submissions

comment 1y ago · link · parent

Nice job. My attempt at the initial strong induction proof was a long time ago so I don't remember the details. It definitely followed a similar structure as yours (but this was before `omega` im pretty sure). Can't quite remember where I got stuck but your proof is good. Thanks!

comment 1y ago · link · parent

Great breakdown of this. Thanks.

comment 1y ago · link · parent

> You could write this same proof in absolutely any language that supports recursion

Well, you at least need dependent types just to state the theorem, which eliminates nearly all other languages.

comment 1y ago · link · parent

Hey, author here. This is actually not-great style on my part. Is the following better?

   let rec helperMemo (n : Nat) (map : HashMap Nat Nat) : Nat × HashMap Nat Nat
This is how it would usually be written. I will update the post accordingly.