News for hackers. Stuff that matters.
Re:Formalizing US Tax Code (Using Lean) by patrickmay on Saturday November 14, 2026 @12:18PM (#50498736)
I worked for a company pre-LLMs that analyzed laws and regulations in order to answer questions about financial transaction legality and reporting requirements. One problem that came up frequently is that the rules governments make don't have to be consistent. There are conflicts, some quite significant. The best we could do was make them visible and escalate to a human.

It would be interesting to require laws to be compilable. Charles Stross wrote a couple of books that include that idea.

Re:Formalizing US Tax Code (Using Lean) by AnthonyMouse on Saturday November 14, 2026 @12:53PM (#50499133)
In theory "impossibility" is a defense to most crimes.

In practice you usually get screwed in one of the following ways: a) the law makes it impossible to do X without breaking the law, even though X is a normal thing and neither law was supposed to be a total ban on X, but you could comply by not doing X at all, b) the inconsistent laws are imposed by different jurisdictions and then they each insist you follow theirs, often a special case of the first one where X is "be in two different jurisdictions" but sometimes the even stupider one where a jurisdiction demands that you follow its laws even when you're not in it, c) it's impossible for you to follow both laws at once so you followed only one of them and then they decide after the fact that you should have followed only the other one.

Re:Formalizing US Tax Code (Using Lean) by bevr1337 on Saturday November 14, 2026 @02:23PM (#50499943)
Do you have some examples of an "X" activity or behavior? I understand the logic you're discussing, but can you help ground it?
Re:Formalizing US Tax Code (Using Lean) by AnthonyMouse on Saturday November 14, 2026 @02:40PM (#50500071)
Suppose you have a law that says that in order to build new multi-unit housing, a given percentage of the new units have to be affordable housing and have to be built within reasonable distance of a transit stop in the same town. Meanwhile you have a town with poor mass transit and very little land zoned for multi-unit housing, and none of it overlaps. The land near the few transit stops already has as much housing as zoning allows and you can't add more. In other words, you're both required to and prohibited from building new affordable housing units near a transit stop. Which means you also can't build the other units.
Re:Formalizing US Tax Code (Using Lean) by ranger_danger on Saturday November 14, 2026 @03:17PM (#50500399)
I thought one law could not force you to break another?
Re:Formalizing US Tax Code (Using Lean) by AnthonyMouse on Saturday November 14, 2026 @03:24PM (#50500461)
Which law are you breaking if you build no housing whatsoever?

Notice that there are many cases of this where that kind of outcome is what you want, e.g. if there is a law against operating e-bikes above 20 MPH and a law against going below 40 MPH on the freeway and the de facto result is "no e-bikes on the freeway" then that's a pretty reasonable outcome.

Re:Formalizing US Tax Code (Using Lean) by jaza on Saturday November 14, 2026 @03:39PM (#50500603)
Re: imposed by different jurisdictions. I don't know the letter of the law in the US, but here in Australia at least, most such differences are easily resolved by section 109 of our constitution (note: Commonwealth == Federal):

"When a law of a State is inconsistent with a law of the Commonwealth, the latter shall prevail, and the former shall, to the extent of the inconsistency, be invalid."

Hmmm, just googled, and it would seem that Article VI Clause 2 of the US constitution, aka the Supremacy Clause, is basically equivalent.

Re:Formalizing US Tax Code (Using Lean) by AnthonyMouse on Saturday November 14, 2026 @03:43PM (#50500636)
You're assuming the contradiction is between a federal law and a state law and not e.g. a law of the US and a law of France.
Re:Formalizing US Tax Code (Using Lean) by Georgelemental on Saturday November 14, 2026 @03:47PM (#50500662)
In the US, the Supremacy Clause only holds insofar as federal law doesn't overstep the restrictions on federal power outlined elsewhere in the Constitution. If you follow federal law over state law, but then a federal judge holds that the federal law you followed was an unconstitutional overstep in a domain that the Constitution reserves to the states, you are SOL
Re:Formalizing US Tax Code (Using Lean) by Buttons840 on Saturday November 14, 2026 @04:43PM (#50501217)
This might be happening with the founders of Kalshi. The federal law and CFTC has been saying that these prediction markets are federally regulated, but they're facing criminal charges in some states.
Re:Formalizing US Tax Code (Using Lean) by lesuorac on Saturday November 14, 2026 @05:13PM (#50501520)
Even that causes problems though as normal casinos with sports betting are then offering a cftc regulated product without a license.
Re:Formalizing US Tax Code (Using Lean) by Buttons840 on Saturday November 14, 2026 @05:51PM (#50501843)
Kalshi isn't "bets", it's a "market" where people trade contracts related to the outcome of the sports game. I think that's the argued legal distinction.

I think it's nonsense and that gambling is very destructive, but there does seem to be a line there where sometimes sports betting is betting, and other times it's trading in a market.

Re:Formalizing US Tax Code (Using Lean) by Kab1r on Saturday November 14, 2026 @10:53PM (#50503841)
Distinction without a difference imo
Re:Formalizing US Tax Code (Using Lean) by lesuorac on Sunday November 15, 2026 @12:04PM (#50508524)
What part about walking into a Casino and giving them money in exchange for a betting slip isn't a contract for the casino to payout money based on the outcome of a sports game?

I'll buy there's a difference between creating the contract and being a marketplace to sell the contract. (Ebay doesn't produce pokemon cards but lets you sell them). However then, who minted the contracts? Kalshi is both a marketplace and a casino.

Re:Formalizing US Tax Code (Using Lean) by AnthonyMouse on Monday November 16, 2026 @03:29AM (#50515325)
> However then, who minted the contracts?

You're "betting" against the other users, not the house, right? Does the amount of money Kalshi gets change based on the outcome?

> What part about walking into a Casino and giving them money in exchange for a betting slip isn't a contract for the casino to payout money based on the outcome of a sports game?

Suppose you're a business that needs to decide how much inventory to buy and the answer depends on whether the local sports team wins the next game, e.g. if they win then they're going to play more games and your shop is across the street from their stadium.

Your deadline to order the inventory is before you know the outcome of the game, so if you order it you want to hedge somehow against them not winning the game. Are you betting on the game or is that an insurance contract? What's the difference?

Should we ban fire insurance because betting on whether there is a fire is a huge perverse incentive?

Re:Formalizing US Tax Code (Using Lean) by lesuorac on Tuesday November 17, 2026 @07:51AM (#50530713)
> Does the amount of money Kalshi gets change based on the outcome

Effectiveness Yes!

Kalshi is owned by not just “Kalshi” but other companies like Saqueshanna.

Who cares that Kalshi claims “only” to makes a flat fee on a bet when their beneficial owners are also making money from the bet.

Its like if I decided to open a casino but i split the front office and back office into two companies. That doesn’t make it legal.

> Are you betting on the game or is that an insurance contract

If you make the contract with a regulated insurance company then its an insurance contract. Kalshi does not hold an insurance license afaik.

> Should we ban fire insurance because betting on whether there is a fire is a huge perverse incentive?

Insurance typically requires an economic interest which does a lot to cut back on an issue here. If i insure your house and burn it down then i just don’t get a payout because i have no economic interest in you.

You’d have to decide you’d rather be homeless and at today’s interests rates and prices you’re just not better off committing arson.

So fire insurance is fine because it doesn’t historically cause issues. Gambling is not because it causes increase in homelessness/suicide.

Re:Formalizing US Tax Code (Using Lean) by Prime_Axiom on Saturday November 14, 2026 @01:10PM (#50499280)
What are the books in particular? I liked Accelerando and was intrigued by the reputation markets mentioned.
Re:Formalizing US Tax Code (Using Lean) by jvoorhis on Saturday November 14, 2026 @01:50PM (#50499666)
The Jennifer Morgue comes to mind.
Re:Formalizing US Tax Code (Using Lean) by Prime_Axiom on Sunday November 15, 2026 @01:34PM (#50509397)
Thanks man, I appreciate it!
Re:Formalizing US Tax Code (Using Lean) by patrickmay on Saturday November 14, 2026 @02:22PM (#50499929)
Accelerando was the one I was thinking of. I believe he has some other short stories with Manfred Macx, but I'm not finding them on my shelf immediately.
Re:Formalizing US Tax Code (Using Lean) by serioussecurity on Saturday November 14, 2026 @03:01PM (#50500250)
My understanding is that consistency is explicitly not a goal of the American legal system.

Laws are designed to give law enforcement latitude to pursue the charges they seem fit, subject to the taste of a judge.

https://en.wikipedia.org/wiki/I_know_it_when_I_see_it