La

LawVM, a compiler for replaying amendment acts into point-in-time law

Hacker News

LawVM, a compiler for replaying amendment acts into point-in-time law

I built LawVM to demonstrate that human-written amendment acts can be compiled into auditable point-in-time legal text-state without rewriting law as code. In a country like Finland, what the law says is a function of applying all the amendment acts over a hundred+ years of history and the consolidated "current law" doesn't have any legal force. One can just do this manually and consolidate to the current state, but it's unreliable. Same reason that logarithm books were hard to compile without errors. So it's extremely difficult to know what the law SAYS with certainty. Forget semantics, even what the second part of first section of Foo Law says. This is what LawVM solves. No LLMs or AI involved (except for corrigendum matching in the Finland pipeline - literally an AI-hard problem to read visually from PDFs - can substitute in humans too for this task though) For other jurisdictions, the shape of the problem is different, LawVM may only verify consistency. Or be used to help determine bitemporal point-in-time queries with exactness. What did XYZ law say at ABC time? LawVM functions kind of like LLVM - there are different frontends for different jurisdictions, and all use the same core and IR. While UK, Estonia, Sweden and Norway frontends also exist in various states, the most advanced frontend is Finland. It replays Finnish amendment acts from the official Finlex Statute Collection, compares against the ~unofficial/without-legal-force provided-as-is Finlex consolidated text, and classifies divergences. So far I've reported 22 high-confidence candidate findings to Finlex and LawVM surfaces hundreds more. It turns out that absent discipline that a system like what LawVM requires, everything drifts. Sometimes the XML is inconsistent with the published PDF version of the law and many other such disagreements. Law SHOULD be knowable, always. And yet it's not, at least not always. The project is v0.1: useful as a construction proof and audit substrate, not legal advice or an official consolidation. It is quite an ordeal to parse natural language, but it is possible. Even a difficult-to-compile language is still possible to compile. Helps that legal text is quite regular compared to freeform natural language. With something like this, it becomes possible to approximate certainty in "what the law actually says" (or consistency, in case of Estonia and others where the consolidated law HAS legal force directly). I'm hoping gets adopted by legal publishers, public institutions, researchers, or civic infrastructure groups. Version control became normal for software; legal text-state needs comparable level of discipline.

Share card

Actual performance

2points
Did not reach leaderboard

Launch Intel predictions

Analyze your own launch →
Indie HackersFits the IH revenue-focused audience · Strong signals: para · Missing: supports, reddit linkedin, podcasting
91%91% predicted probability of success on Indie Hackers, based on ML models trained on real launch data.
best fitHighest predicted score across all platforms for this description.
Product HuntOn track for Day 1 leaderboard · Strong signals: visual, code · Missing: mac, agents, macos
58%58% predicted probability of success on Product Hunt, based on ML models trained on real launch data.
Hacker NewsStrong engagement from HN community · Strong signals: exist, ide, pipe · Missing: https docs, excited, just released
51%51% predicted probability of success on Hacker News, based on ML models trained on real launch data.
nativeThis product was originally launched on this platform.
TrustMRRLess likely to generate early MRR · Strong signals: way, para · Missing: mobile apps, ios, personal
41%41% predicted probability of success on TrustMRR, based on ML models trained on real launch data.
AppSumoMay struggle as an AppSumo deal · Missing: plus, platform, intuitive
33%33% predicted probability of success on AppSumo, based on ML models trained on real launch data.
Acquire.comPre-revenue stage for this audience · Missing: arr, mrr, revenue
16%16% predicted probability of success on Acquire.com, based on ML models trained on real launch data.
BetaListMay not resonate with beta-testers · Missing: web3, chat, crypto
0%0% predicted probability of success on BetaList, based on ML models trained on real launch data.

Incorrect prediction on native model

Similar products

Di
Discussion with Milton Friedman's Grandson about Polycentric Law67%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Discussion with Milton Friedman's Grandson about Polycentric Law

Hacker News1
Op
Opus in 3 Acts37%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Opus in 3 Acts

Hacker News2
Ar
Arkleon – point-in-time SEC EDGAR fundamentals for Python51%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Arkleon – point-in-time SEC EDGAR fundamentals for Python

Hacker News1
west palm beach dui lawyer
west palm beach dui lawyer31%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Check out the law firm in Fort Lauderdale.

Indie Hackersvertical-social-media
Em
EmuBert – the first open encoder model for Australian law85%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

EmuBert – the first open encoder model for Australian law

Hacker News2
Nosh Point
Nosh Point25%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Online Ordering System

Indie Hackers
TheLawGPT
TheLawGPT24%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Law, simplified by AI

Product Hunt
Stanzione & Associates
Stanzione & Associates56%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Intellectual Property Law Firm

Indie Hackersvertical-legal
Ma
MapStreetview – point & click streetview40%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

MapStreetview – point & click streetview

Hacker News7
Slaughter & Lupton.com
Slaughter & Lupton.com46%Launch Intel prediction score: how likely this product is to succeed on its source platform, based on its name, tagline, and description.

Slaughter & Lupton law team

Indie Hackers