News for hackers. Stuff that matters.
Re:Formalizing US Tax Code (Using Lean) by matthewbauer on Saturday November 14, 2026 @11:44AM (#50498417)
It’s a neat idea but I don’t understand what value Lean adds here. Is there really anything to “prove” in the tax code? Or are they just using Lean as a scripting language?
Re:Formalizing US Tax Code (Using Lean) by claw-el on Saturday November 14, 2026 @11:57AM (#50498531)
Maybe tax change impact analysis by congress can easily be calculated using Lean. The article also said loopholes can be easily identified?
Re:Formalizing US Tax Code (Using Lean) by marcta on Saturday November 14, 2026 @12:09PM (#50498643)
Yes, the tax code is basically "if this condition and that condition then pay $". So if they can find a condition that isn't covered, they can theoretically pay less tax. There is an XKCD of course: https://xkcd.com/1494.
Re:Formalizing US Tax Code (Using Lean) by AnthonyMouse on Saturday November 14, 2026 @01:18PM (#50499360)
This is the case where the xkcd doesn't apply though.

The thing about insurance fraud is that the major thing that will cause it to be fraud is when you set the fire on purpose.

The tax code doesn't really have that. You'll often even see confused people inserting nonsense language in various places to the effect that doing something to avoid taxes isn't allowed, but meanwhile "doing something to avoid taxes" is the expected mechanism of operation for tax incentives meant to get people to do something they otherwise wouldn't have done.

And then because of that you need to actually care about what the tax code says and what the unnecessarily complicated nonsense allows someone to get away with without breaking the law, instead of pretending that it's all common sense and people can be punished for being "bad" without ever actually specifying what that means.

Re:Formalizing US Tax Code (Using Lean) by squirrel on Saturday November 14, 2026 @12:06PM (#50498622)
I assume you'd want to prove common-sense invariants, like "you can't be taxed more than your income" or "tax credit 123-45 is worth more for two children than for one". Lean might disprove a few of these, and the counterexamples are potential loopholes.
Re:Formalizing US Tax Code (Using Lean) by realistically_c on Saturday November 14, 2026 @12:07PM (#50498629)
this is actually a really bad idea and is the opposite of what a powerful state would want
Re:Formalizing US Tax Code (Using Lean) by convolvatron on Saturday November 14, 2026 @12:12PM (#50498674)
maybe some rationale? states should want to preclude people from reasoning about tax laws?
Re:Formalizing US Tax Code (Using Lean) by Xirdus on Saturday November 14, 2026 @12:21PM (#50498765)
I guess by powerful they mean with a lot of power over its citizens.
Re:Formalizing US Tax Code (Using Lean) by convolvatron on Saturday November 14, 2026 @12:43PM (#50499027)
we need detector vans, for logic!
Re:Formalizing US Tax Code (Using Lean) by chrisnight on Saturday November 14, 2026 @01:01PM (#50499203)
You wouldn’t be proving the tax code, you’re proving that a procedure follows the tax code. This way you’d be able to know for certain if an AI that tried reducing your taxes actually gives you a valid procedure/result, assuming you can trust the Lean formalization (hint: you can’t given the nature of law, especially if it’s vibe coded like this)
Re:Formalizing US Tax Code (Using Lean) by rendaw on Saturday November 14, 2026 @01:44PM (#50499614)
Maybe you could validate stuff, like "how much would I be taxed if I did X" and then have it come up with all the questions that need to be answered to determine the answer or "what's the max I could be taxed if I did Y"?

I don't know much about Lean, but I assume that beyond proving things it functions as a truth graph you could walk to calculate things...