Brown CS prof assigns Claude-powered Lean translation of Kruskal in intro course
sh_reya · x · 2026-12-07
Brown professor Shriram Krishmurthi's final assignment for accelerated CSCI 0190 has students use Claude to translate their Kruskal MST implementation and manual tests into Lean with correctness proofs, arguing that AI makes proofs cheap enough to accompany code by default.
The assignment distills concrete prompting lessons:
- Ask Claude to transliterate the code so the output stays recognizable;
- Anticipate termination issues and permit partial where needed;
- Forbid Mathlib — it's huge, complicates translation, and isn't needed — and tell Claude it's a Lean novice to improve output.
shreya notes these techniques — normalizing prompts, specifying what not to do, defining sufficiency vs. intellectual interest — are really about teaching attention allocation, which must be rethought post-AGI.
More from coding & agent
- Coding agent randomly switches its chain-of-thought to Spanish mid-task — mgostIH · 2026-12-07
- AI expanded software faster than formal verification literacy can keep up — tianyin_xu · 2026-12-07
- Running a multi-agent AI team, the bottleneck turns out to be the human — jesselyu · 2026-12-07
- Voice pipeline design routes one utterance through 5 gates into 20+ outcomes across apps — bfrench · 2026-12-07
- Engineers push back on centralized AI workflows: invest in the codebase instead — sloppenheimer · 2026-12-07
- "Models can now take a brief and get things done": a practitioner on this year's shift — dreamwieber · 2026-12-07