Critique de réponse IA (Gemini) dans le cadre de l'évaluation du Professeur Sorin Cristescu
Sujet de la question : "Le code est la loi"
Prompt donné à Gemini :
Réponse de Gemini :
The phrase "Code is Law" is one of the most polarizing and misunderstood mantras in the digital age. In the context of blockchains, it represents a philosophical shift from traditional legal systems—where human judges interpret ambiguous texts—to a world where mathematical protocols dictate outcomes with binary certainty.To understand this concept, we have to look past the buzzwords and examine the friction between the "wetware" of human society and the "hardware" of decentralized networks.
1. The Origin of the Expression: From Cyberspace to Cryptography
Contrary to popular belief, the expression "Code is Law" did not originate with Satoshi Nakamoto or the birth of Bitcoin. It was coined by Harvard Law professor Lawrence Lessig in his 1999 book, Code and Other Laws of Cyberspace.
Lessig’s original thesis was a warning, not necessarily a celebration. He argued that in the digital world, the architecture of software (the "code") regulates behavior just as effectively as legal statutes do. He identified four primary "regulators" of human behavior:
- The Law: Formal rules backed by the state (e.g., "Don't steal").
- Social Norms: Peer-driven expectations (e.g., "Don't be rude").
- The Market: Price signals and economic incentives.
- Architecture (Code): The physical or digital constraints of the environment.
Lessig’s point was that while the US Constitution protects free speech, a programmer can write code for a platform that makes "free speech" technically impossible by deleting certain words automatically. In that digital environment, the code effectively becomes the law because it defines what is possible and what is not.
When blockchain technology emerged a decade later, the "Cypherpunk" movement adopted this phrase as a badge of honor. To them, "Code is Law" meant that we could finally replace corruptible human institutions with impartial, immutable algorithms.
2. Why it is "True": The Immutability of Smart Contracts
In the blockchain world, the "Code is Law" philosophy is most evident in Smart Contracts. These are self-executing contracts where the terms of the agreement are written directly into lines of code.
The Mechanism of Truth
On a decentralized network like Ethereum, once a smart contract is deployed, it is immutable. No CEO, no government, and (theoretically) no developer can stop it from executing its logic. If the code says, "Transfer X to Person B if Event Y happens," the transfer will occur automatically when the conditions are met.
The Example: Automated DeFi Liquidations
Consider a decentralized finance (DeFi) lending platform like Aave or MakerDAO. In traditional finance, if you fail to pay a loan, a bank might call you, negotiate, or eventually sue you—a slow, human-led process involving legal "gray areas."
In DeFi, the code is the ultimate arbiter. If the value of your collateral drops below a certain mathematical threshold, the protocol’s code automatically triggers a "liquidation." There is no judge to plead with, no "hardship" exemption, and no way to delay the process. The code executed exactly as written. For the participants in that ecosystem, the code’s execution is the final legal reality of their assets.
3. Why it is "Not True": The Law Reacts and Adapts
While a blockchain might be "immutable" in a technical sense, it does not exist in a vacuum. It exists in a world where governments have a monopoly on physical force and jurisdiction over human bodies. The idea that code can entirely circumvent law is often a technical illusion.
The Problem of Human Agency
Law is fundamentally about intent. Code is fundamentally about syntax. If a smart contract has a bug that allows someone to drain all the funds, the "Code is Law" crowd would argue that the "hacker" simply followed the rules of the system—the code allowed it, therefore it was legal within the system.
However, traditional legal systems disagree. If you leave your front door unlocked, it doesn't mean the "code" of your house permits theft.
The Example: The Mango Markets "Exploit"
In 2022, a trader named Avraham Eisenberg used a highly complex series of trades to drain approximately $110 million from Mango Markets, a decentralized exchange. He argued his actions were "legal open-market actions, using the protocol as allowed by the code." In his view, "Code was Law."
The US Department of Justice and the CFTC felt differently. They arrested him for market manipulation and fraud. The court’s stance was clear: Just because the code allows an action doesn't mean the law permits it. The law does not "influence" the code in this case; it simply ignores the code’s internal logic and applies its own overarching principles to the human actor behind the keyboard.
4. Qualifying the Expression: "Code Leads, but Law Rules"
A more nuanced way to view the relationship is the phrase "Code leads, but Law rules." This acknowledges that technology usually moves faster than the legislature, but the legislature eventually catches up to set the boundaries.
Code Leads (Innovation and Experimentation)
Software developers act as "architects of the possible." They create new ways to trade, lend, and organize (like DAOs) that traditional law hasn't even conceived of yet. In this phase, code "leads" because it creates a de facto reality on the ground. People are already using these systems before a single law is written to govern them.
Law Rules (The Final Backstop)
However, "Law rules" because when things go wrong—when millions are stolen, when a stablecoin collapses, or when a protocol is used for money laundering—society demands accountability.
The law serves as the "layer 0" of human civilization. You can build a decentralized city in the clouds (code), but if that city is being used to harm the people on the ground, the ground-level authorities (law) will eventually intervene. We see this in the sanctioning of Tornado Cash. While the code of Tornado Cash continues to run on the Ethereum blockchain (it is "immutable"), the law made it illegal for US persons to interact with it. The code "led" by providing privacy, but the law "ruled" by restricting its use in the physical world.
5. Other Relevant Topics for Discussion
To truly round out the debate on "Code is Law," we should consider how the two worlds are beginning to merge rather than just collide.
A. Lex Cryptographia
Scholars often refer to the emerging set of rules governing blockchain systems as Lex Cryptographia. This is the idea that we are building a new "customary law" for the internet. Just as medieval merchants developed their own "Lex Mercatoria" (Merchant Law) to trade across borders because state laws were too slow, blockchain users are developing their own norms and dispute-resolution mechanisms (like Kleros, a decentralized arbitration service).
B. Ricardian Contracts
A Ricardian Contract is a bridge between the two worlds. It is a digital document that is both machine-readable (code) and human-readable (legal text). It signs the legal intent of the parties to the execution of the code. This solves the "intent" problem: if the code does something the legal text says it shouldn't, the legal text provides the grounds for a court to step in and rectify the situation.
C. The Ethics of "Algorithmic Governance"
If we truly move toward a world where "Code is Law," we face a massive ethical hurdle: Who writes the code? In a democracy, we have (in theory) a say in who writes the laws. In a blockchain protocol, the laws are often written by a small group of developers or "whales" with the most governance tokens. The shift from "Law" to "Code" risks moving us from a flawed democracy to a cold, unyielding technocracy where "bugs" can cause more damage than "bad bills."
Final Thought
"Code is Law" is a brilliant design philosophy for building robust, trustless systems. It ensures that 2+2 always equals 4 without needing a notary. But as a social philosophy, it is incomplete. Law is a human invention designed to handle human messiness—mercy, intent, and unforeseen circumstances.
The future likely isn't a victory for one over the other, but a synthesis: Smart contracts that provide the efficiency of code, backed by legal frameworks that provide the protection of justice.
How do you feel about the trade-off between the cold efficiency of a "Code is Law" system and the sometimes frustrating ambiguity of a human legal system?
Critique de la réponse :
Ce qui ressort en premier de la réponse de Gemini, c’est un état manifeste de sa grande capacité à trouver l’information, cependant elle a tendance à avoir une vision trop simpliste/superficielle des éléments qu’elle traite. Elle n’est pas aussi douée qu’un humain à analyser profondément les tenants et aboutissants et fournir un discours suffisamment nuancé :
1. L’IA parle de Mango Markets (2022), ce qui est un excellent exemple récent pour illustrer la réaction de la justice traditionnelle. Mais elle ignore l'événement fondateur, celui qui a littéralement déchiré la communauté blockchain sur la question du « Code is Law » : le hack de The DAO en 2016 sur Ethereum.
un attaquant avait exploité une faille d'entrée pour siphonner des millions d'ETH. À l'époque, la communauté s'est scindée en deux :
- Les puristes du « Code is Law » : « La faille fait partie du code, donc l'action est valide. On ne touche à rien. » (Ce qui a donné Ethereum Classic).
- Les pragmatiques : « C'est un vol manifeste, on doit modifier la blockchain pour rendre l'argent. » (Ce qui est devenu l'Ethereum actuel).
L'IA se concentre sur le code (Layer 1), mais néglige le rôle du consensus humain (Layer 0). Le cas de The DAO n'est pas seulement une histoire de bug, c'est l'histoire d'un vote communautaire. L'enseignement majeur est que le consensus social a toujours le dernier mot sur le code. Or la loi est issue d’un contrat social entre individus donc la loi a le dernier mot.
Par ailleurs, l’IA a commis une grave erreur en ne vérifiant pas les dernières sources car elle affirme que Avraham Eisenberg a été inculpé, alors qu’en réalité les charges ont été levées en Mai 2025.
2. Gemini attribue correctement l’origine à Lawrence Lessig, ce qui est un bon point. Mais elle manque de souligner la dimension politique de son propos. Lessig ne disait pas seulement que le code est la loi, il prévenait que si nous laissons des entreprises privées concevoir l'architecture de nos espaces numériques, nous leur déléguons le pouvoir législatif sans aucun contrôle démocratique.
Gemini présente cela comme une transition "philosophique", alors que c'est une lutte de pouvoir. Le code est une loi invisible et sans appel. Dans le système légal (et démocratique), si une loi est injuste, on peut manifester ou voter. Dans un système où le code fait foi, si l'algorithme vous exclut, vous n'existez plus. C’est une contrainte physique et non légale. Cette nuance sur la perte de souveraineté citoyenne aurait mérité d'être plus creusée.
Par ailleurs, la contrition imposée par le code dépasse les frontières alors que la juridiction reste contenue dans ses frontières géographiques légales, il aurait été intéressant de discuter du cadre de liberté apporté par le cyber-espace dans les pays démocratiquement peu avancé et son potentiel de nuisance dans les pays dits libres démocratiquement.
3. Gemini effleure le sujet avec l'exemple de la porte ouverte, mais elle pourrait être plus éloquente sur la distinction entre possession et propriété. En informatique, si j'ai la clé privée d'un portefeuille, je possède techniquement les jetons. Mais aux yeux de la loi, cela ne signifie pas que j'en suis le propriétaire légitime. La réponse de l'IA est un peu floue sur ce point : elle laisse entendre que le droit "ignore" la logique du code, alors qu'en réalité, le droit utilise le code comme une preuve de fait, mais pas comme une preuve de droit. C'est une distinction subtile mais capitale pour la conception des futurs systèmes.