Verified dynamic programming with Σ-types in Lean | Dark Hacker News