如果把一个国家的法律当成源代码,用形式化验证工具跑一遍类型检查,会发生什么?
Lexifina 团队(Alan Yahya)干了一件极客到骨子里的事:他们把《美国法典》第 26 卷(Internal Revenue Code,联邦税法)逐条翻译进 Lean 定理证明器,用数学证明代替抽样测试。结果编译器在两分半钟内,直接给美国国会的立法文本抓出了 138 个实锤的机械性立法错误,还顺手盲搜出了合法避税漏洞:
- 67 处悬空引用(Dead References):条文已被废除、挪位或重写,但其他条款还在引用它(例如 §1(f)(7)(A))。
- 30 处括号未闭合(Unclosed Parentheses):立法文本里左括号开了之后再也没关上(其中 17 处连国会官方编纂修订办公室的注释都没发现),比如 §165(h)(1) 和 §38(c)(6)(C)。
- 9 处条款重名与 24 处拼写/层级指代错误:比如 §1202(b)(4) 和 §45X(d)(4) 在同一层级出现了两个一模一样的编号。
更精彩的是他们把 2025 个人所得税(Form 1040,含新法案)写成可证明的 Lean 模型后,证明出的 5 个反直觉逻辑真相:
1. 同一部法案截断方向相反:小费与加班费抵扣按"每满 1,000 美元"缩减,多赚 1 美元可能瞬间亏掉 100 美元抵扣;而车贷利息抵扣按"每 1,000 美元或不足部分"向上取整,提前 999 美元就耗尽额度。
2. 夫妻分开报税反而多抵扣 1.5 万美元:SALT(州与地方税)抵扣上限在联合报税超 50 万美元后每多赚 1 美元缩减 30 美分;但分开报税是在缩减后再对半砍,相当于每美元只缩减 15 美分。各赚 30 万美元的夫妻分开报能抵 25,000 美元,联合报只能抵 10,000 美元。
3. 1 美元毁掉 8,046 美元(断崖效应):三孩家庭的投资收入只要比 11,950 美元多出 1 美元,就会瞬间失去全部高达 8,046 美元的低收入家庭福利优惠(EITC)。
4. IRS 官方速算表与税法公式不一致:10 万美元以下收入人群查的官方 Tax Table,与税法条文公式算出来的结果存在 -5 美元到 +6 美元 的偏差。
他们还用这套 Lean 模型对拍了市面上三款主流开源报税软件,当场抓出其他软件漏挂 Schedule C 导致自雇收入凭空消失等逻辑 Bug。法律本质上就是一套跑在自然语言上的超大型遗留系统——没有编译器和 CI 守护的代码库,注定满是悬空指针和边界溢出。
muerhaha retweeted
The Lean FRO and Mathlib Initiative have released a joint statement on the Lean verification of the Riemann Hypothesis.
On November 20, Levent Alpöge released a proof of the Riemann Hypothesis as a Lean library of 17 million lines of code. Over the past day, the Lean and Mathlib communities worked together to verify it. The statement certifies the proof as correct and describes how it meets all necessary verification criteria.
Congratulations to Levent on this achievement, and thank you to everyone in the community who contributed to the verification.
Full statement: leanprover-community.github.…
muerhaha retweeted
I believe the @nvidia board is not acting in the best interest of shareholders nor in a manner consistent with their fiduciary duties.
What we know is that the board fired Jensen or forced his resignation for violating company policy and/or in response to the accusation of an affair with a spy.
They did so without careful consideration of the impact on the company, its customers, its shareholders or other stakeholders.
They rushed to judgment without the benefit of careful due diligence or even with a basic understanding of the facts.
How do we know this?
We know this by how quickly Jensen was fired and how little was known at the time of his firing.
It takes time to convene a board meeting. There was time, maybe, for one Zoom.
And this is a decision that should have been made by a board sitting in person and carefully deliberating the facts once they are known.
And they should have slept on the decision and met again the day after to discuss the facts, the risks and the other implications of their decision.
The timing and lack of information did not allow for careful board deliberation.
While boards can fire a CEO for an inappropriate relationship with a subordinate, it should not be an automatic decision. That is why we have boards comprised of humans and not agents.
A board should consider whether or not such a relationship was consensual or whether it was an abuse of power dynamics. And a board has to consider what the impact of the firing is on all stakeholders.
If I were in this board, I would not have rushed to judgment based on articles in the media. I would have made sure the board had all of the facts so it could make a careful and informed decision.
Boards of Delaware companies have a duty of care which means they must make informed, prudent and good faith decisions. This clearly did not happen here.
What law firm is advising this board?
Or is the board even taken good legal advice?
It doesn’t look like it.
And now the board is compounding its failures by insisting that there is no possibility for Jensen’s return as CEO.
Why is it in the best interest of the company to foreclose the possibility of Jensen’s return and to do so before all of the facts are known? This is yet another breach of their duty of care.
Furthermore, the board has launched an investigation whose scope is unknown. Investigations can be extremely damaging to a company and should be carefully targeted to address whatever facts need to be known rather than be overly broad in scope.
In short, this looks like a series of major governance failures by directors that panicked due to headlines in the media. They likely felt compelled to do something because they were afraid of looking bad in the media, not because it was the right thing for them company.
They couldn’t stand the heat.
The board’s conduct here is shocking for a company of this scale and importance to our country and the world at large, particularly at this moment in history.
muerhaha retweeted
New Zealand is deeply concerned by the findings that Russia is responsible for chemical weapons attacks on the frontlines of Ukraine.
This use of chemical weapons is illegal in international law and adds to longstanding international concerns about Russia’s compliance and obligations under the Chemical Weapons Convention.
New Zealand calls on Russia to comply fully with its international legal obligations. We remain steadfast in our support for the global norm against chemical weapons and for accountability for any breach of that norm.
-WP
Report ⬇️
opcw.org/sites/default/files…
muerhaha retweeted
Both parties have had full control of the government multiple times in 50 years.
Healthcare is still broken. Housing is still unaffordable. Costs go up. Wages are still stagnant.
The argument that one side is the solution is no longer believable.
muerhaha retweeted
BREAKING: 🇺🇸 A Democrat win in Georgia just flipped to Republican after officials found a memory card that was never counted.
The Republican was losing by 58 votes, and after the card was counted, he is now winning by 262.
Georgia's Secretary of State has opened an investigation.
muerhaha retweeted
第一次認識黃之鋒,是2011年時讀新聞,配圖是他和時任教育局局長吳克儉公開辯論的照片。當時驚訝地知道這個只有15歲的小孩子竟然從發傳單擺街站開始,硬是把無人在意的課程修改搞出了萬人大遊行,把堂堂局長在衆目睽睽之下駁得啞口無言。
彼時香港抗議示威家常便飯,黃之鋒也從伶牙俐齒的少年逐漸成長爲政治領袖。
然後讀到他在被關押六年即將釋放前又被加了十年的刑期的新聞。
到今天,我並不期望再有第二個什麼少年英雄,我只期望他能快點出來和家人團聚。哪怕是他對着鏡頭大談祖國日新月異的變化呼籲大家愛國,我也覺得完全沒問題。
他犧牲得足夠多了,香港不需要殉道者。
muerhaha retweeted
The university student who asked this question probably didn't like my answer. But it's the truth.
muerhaha retweeted
The largest bank in Paraguay, Ueno Bank, has collapsed and the assets have been seized by the Central Bank
60% of people in Paraguay had their savings at this Bank
It's now all gone
muerhaha retweeted
𝗡𝗲𝘄 𝗭𝗲𝗮𝗹𝗮𝗻𝗱 𝗵𝗮𝘀 𝗼𝗻𝗲 𝗼𝗳 𝘁𝗵𝗲 𝘄𝗼𝗿𝗹𝗱'𝘀 𝘄𝗼𝗿𝘀𝘁 𝗿𝗲𝘁𝗶𝗿𝗲𝗺𝗲𝗻𝘁 𝘁𝗮𝘅𝗲𝘀. 𝗔𝗖𝗧 𝘄𝗶𝗹𝗹 𝗳𝗶𝘅 𝗶𝘁
“New Zealand has one of the harshest tax regimes for retirement savings in the world, punishing people who do the right thing and save for their future. ACT will fix it by scrapping tax on KiwiSaver earnings,” says ACT Leader David Seymour.
“ACT has compared the retirement savings systems across 38 OECD countries, along with seven major economies outside the OECD, revealing just how badly New Zealand treats people saving for retirement.
“New Zealand is one of just three OECD countries that tax both contributions to retirement savings and the investment earnings those savings generate. The other two, Australia and Turkey, offer substantial tax concessions that New Zealanders miss out on.
“31 of the 38 OECD countries exempt investment earnings in their main retirement savings schemes from tax. New Zealand is an international outlier.
“The damage is done over decades. Every dollar taken in tax today can’t be invested and compounded towards a more comfortable retirement.
“ACT will remove tax on KiwiSaver earnings, allowing New Zealanders to keep more of their own money growing for retirement.
“A 20-year-old builder earning $60,000 would accumulate an additional $209,486 in KiwiSaver by age 65 under our policy. A retiree saves an extra $1000 per year.
“Other parties want to force your money into KiwiSaver, then tax you. ACT says it should be your choice, but if you save for the future we will let you get the full benefit of compounding returns instead of taxing you every step of the way.
“Every time you get taxed on your earnings you don’t just lose that money, but all the future savings that would be compounded from it.
“The OECD has also recognised the problem ACT is solving. Its 2026 Economic Survey of New Zealand warned that our unusual taxation of retirement savings discourages people from building private retirement wealth and contributes to an imbalance between investment in housing and financial assets.
“The OECD recommended shifting tax away from contributions and earnings towards withdrawals in retirement. ACT goes a step further for savers by removing tax on qualifying earnings while preserving tax-free withdrawals.
“While other political parties propose making KiwiSaver compulsory or increasing mandatory contributions, ACT wants to make saving more rewarding.
“A country builds wealth when more people own assets, have savings, invest in productive enterprise and have the confidence to think decades ahead."
muerhaha retweeted
这次上海的万圣节蝙蝠侠火了(视频来自网络),似乎Gotham City在那几秒变成现实(也许早已成为现实)。我觉得这几秒具有某种预言式的力量,所以把这视频放这里留个纪念,不知过几年回头看看这个是什么感觉。
muerhaha retweeted
This paper answers why can’t you remember being a baby?
For over a century, science said you can't remember being a baby because your infant brain was just too "immature" to record anything. researchers assumed your hard drive was basically turned off for the first two years of life.
But this wild paper from Yale completely rewrites how we understand human memory..
Researchers literally put awake babies (between 4 and 25 months old) into an fMRI scanner to watch their brains process new visual experiences in real-time.
and what they found is mindblowing..
the infant hippocampus isn't turned off at all. it is actively firing, capturing, and encoding episodic memories. they proved that babies with higher hippocampal activity during a new experience formed a highly stable memory trace.
the babies are recording the data. the memory of your first birthday, your first steps, the exact layout of the room you slept in.. it was all successfully saved to your brain.
so why can't you remember it?
the paper concludes that infantile amnesia isn't an "encoding" problem.. it is a "retrieval" problem.
your brain recorded everything perfectly. but as you grew, your brain underwent massive developmental shifts, like explosive neurogenesis (the rapid birth of new neurons), which completely restructured your neural networks. the pathways to access those early files got buried or locked away.
you didn't fail to make the memories.. you just lost the encryption key to open them.
somewhere deep in your hippocampus, the exact first-person memory of being a 1-year-old might still be sitting there. you just can't access the file anymore..
the human brain is terrifyingly beautiful.































