Verifying Advent of Code solutions with formal methods
Understand this story
An author proposes a way to play Advent of Code: first implement the solution yourself and submit the answer, then use formal methods to prove the solution correct, using Ada's SPARK and Rust's Verus toolchains to discover problems beyond programming. The author explicitly opposes solving problems directly with AI, advocating instead for using AI to improve one's own solutions. AdaCore says it will donate to charity for participants who complete the challenge using Ada. Advent of Code was created by Eric Wastle and has been running for over a decade.
AI overview based on source reports · Updated 14 hr ago
Coverage timeline
Follow the coverage to explore different perspectives.
- Hacker News AIThe Perfect Storm: Advent of Code, AI and Formal Methods
The post describes Advent of Code, Eric Wastle's decade-long annual set of holiday-themed programming challenges where solvers run their programs on personal inputs to earn leaderboard points in private groups, and notes the author's request that people not use AI to solve them. The author proposes instead using AI to improve solutions and combining that with formal methods, using tools like SPARK for Ada and Verus for Rust to prove solutions correct, and links a Substack article with setup instructions. It also mentions that AdaCore will donate to charity for work done using Ada.
Activity for this story
- Current comparable activity
- 7
- Peak comparable activity
- 10Dec 2 23:00
- Change in the past 24 hours
- –
Trends compare the same fully observed participants, which may cover fewer participants than current activity. Move the pointer or tap the chart to inspect hourly activity; use the left and right arrow keys with a keyboard.