<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="3.10.0">Jekyll</generator><link href="https://haoqian.info/feed.xml" rel="self" type="application/atom+xml" /><link href="https://haoqian.info/" rel="alternate" type="text/html" /><updated>2025-07-16T20:38:02+02:00</updated><id>https://haoqian.info/feed.xml</id><title type="html">Haoqian’s Page</title><subtitle>personal description</subtitle><author><name>Haoqian</name><email>me@haoqian.info</email></author><entry><title type="html">The incompatibility between truth and righteousness</title><link href="https://haoqian.info/posts/2024/05/truth/" rel="alternate" type="text/html" title="The incompatibility between truth and righteousness" /><published>2024-05-05T00:00:00+02:00</published><updated>2024-05-05T00:00:00+02:00</updated><id>https://haoqian.info/posts/2024/05/incompatiblity-between-truth-and-righteousness</id><content type="html" xml:base="https://haoqian.info/posts/2024/05/truth/"><![CDATA[<p>Truth and righteousness are the two qualities that humanity always wants to pursue. But are they always compatible with each other?</p>

<p>Let’s imagine a scenario in which Alice did a personal attack on Bob. For simplicity, we assume that Alice is 100% guilty who attacking Bob without reason, and Bob is 100% innocent who suffering from Alice’s attack (Of course, the real scenario is way more complicated than that. It is often that Alice is not all guilty but Bob also did some wrong things). Assuming Bob knows the objective truth that Alice is 100% guilty of attacking Bob with (how Bob knows this truth is another challenging topic, and for simplicity, we just assume Bob knows it).</p>

<p>If only Bob knew the truth, of course, he would not get justice; Thus, he has to tell the truth to others. But will telling others ensure he can get justice? Maybe not. If Bob goes through the legal system, this is costly to Bob and Bob needs to provide evidence to prove Alice is guilty (Presumption of innocence for Alice), which is not always easy. Even if Bob is able to provide evidence, the legal system is subject to human bias and countless other factors. And if, in the end, Alice gets the punishment, there is no objective way to tell if the punishment is proportional to what she did. Thereby, justice is not always guaranteed for Alice and Bob even under the legal system.</p>

<p>A way worse situation is Bob speaking the truth to the public. As the public does not have the training to judge Bob’s truth, the result is uncontrollable. The public might understand that Bob is also responsible for a large part of the responsibility of the original incident, but by our assumption, Bob is totally innocent. Even if assuming the public is all super intelligent and can tell Alice is 100% guilty, such public opinion will unavoidably harm Alice. Since such uncontrollable harm to Alice, this would also create uncontrollable harm to Bob, because the public harm for Alice is from Bob’s speaking up the truth; thus, even if initially Bob is innocent, now Bob is guilty because of speaking up truth.</p>

<p>There might be one scenario that might justify Bob’s speaking the truth to the public for righteousness: Alice’s attack is a systematic issue. Countless Alices are using a similar method to attack countless Bobs. In this case, our Bob speaking up the truth would potentially help the system to improve, thus satisfying the interest of the public. However, there is a dilemma: the louder Bob speaks, the bigger the potential impact on the system to improve, thus potentially helping more Bobs, but more uncontrollable harm to Alice and Bob. It is then similar to the Trolley problem: will Bob sacrifice Alice and himself to potentially save other Bobs?</p>

<p>You might argue that Bob does not need to speak up, the system would improve itself. But this is rarely the case in human history. The system does not improve itself unless there is some triggers (usually sad triggers). Therefore, it is just a sad reality that truth and righteousness are fundamentally incompatible in a way.</p>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="ethics" /><category term="philosophy" /><summary type="html"><![CDATA[Truth and righteousness are the two qualities that humanity always wants to pursue. But are they always compatible with each other?]]></summary></entry><entry><title type="html">The most heavily fortified EU borders are to prevent migration from Africa to Africa</title><link href="https://haoqian.info/posts/2024/01/border/" rel="alternate" type="text/html" title="The most heavily fortified EU borders are to prevent migration from Africa to Africa" /><published>2024-01-22T00:00:00+01:00</published><updated>2024-01-22T00:00:00+01:00</updated><id>https://haoqian.info/posts/2024/01/border</id><content type="html" xml:base="https://haoqian.info/posts/2024/01/border/"><![CDATA[<p>Where are the most heavily fortified European Union borders? The answer is surprising: It is in Africa. But why did the European Union set up the border in Africa? It is all because of the two small Spanish enclave towns in Africa: Ceuta and Melilla.</p>

<figure>
<img src="/images/blog/2024-01-22-locations.jpeg" style="width:100%" />
<figcaption align="center"><b>Two Spanish enclave towns in Africa: Ceuta and Melilla.</b></figcaption>
</figure>

<p>Apart from the history of Spain still having some African territory, what attracts me more is the 6-meter-high double (or even triple) fences. They set up such heavy fences to prevent Africans from moving from Africa to Africa, but still, thousands of people risk their lives to try to breach this fortified border.</p>

<figure>
<img src="/images/blog/2024-01-22-fence.jpeg" style="width:100%" />
<figcaption align="center"><b>The most heavily fortified EU borders are to prevent migration from Africa to Africa. The picture shows the fence surrounding Ceuta.</b></figcaption>
</figure>

<p>Why did Spain set up such heavily fortified fences? The obvious reason is to prevent African migrants from entering Europe. But there are deeper reasons for it. Where the Africans want to go in the end is the European continent, rather than two small Spanish towns located in Africa. Geographically, reaching Ceuta and Melilla does not help much since it still takes about one hour’s ferry to reach the European continent. To prevent migrants from reaching the European continent, the Spanish government could set up control to prevent any illegal person from entering the ferry, and in fact, they indeed did it. And there are more places where the distance from Africa to Europe is much shorter. So, what is the incentive for migrants to breach the border to Ceuta and Melilla after all?</p>

<p>The complete story lies in the fact that Ceuta and Melilla are subject to European law. The law gives any person rights (whether with or without an identity document). For example, anyone set on foot in the European territory has the right to apply for asylum, regardless of whether they entered illegally or not. Certainly, not everyone can successfully obtain refugee status, but the deportation procedure afterward may take years by the time the illegal migrant might have already integrated into society, making deportation unlikely to happen.</p>

<h2 id="the-paradox-what-matters-is-the-border-not-human">The paradox: what matters is the border, not human</h2>

<p>Within the European countries, there are many laws, volunteers, and associations helping with illegal immigrants, making their lives much better than before. But all those benefits rely on one precondition: they must set their foot on European territory. This is the incentive why they will risk their lives to breach the border to reach Ceuta and Melilla. However, before they satisfy this condition, everything may go against them: no help for their living, and governments set up higher and heavier fences to prevent them from crossing the border. It is a paradox in our humanity today: what really matters is the border, not the human.</p>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="travel" /><category term="border" /><summary type="html"><![CDATA[Where are the most heavily fortified European Union borders? The answer is surprising: It is in Africa. But why did the European Union set up the border in Africa? It is all because of the two small Spanish enclave towns in Africa: Ceuta and Melilla.]]></summary></entry><entry><title type="html">F3B: A practical per-transaction front-running mitigation solution for blockchain</title><link href="https://haoqian.info/posts/2023/10/f3b/" rel="alternate" type="text/html" title="F3B: A practical per-transaction front-running mitigation solution for blockchain" /><published>2023-10-04T00:00:00+02:00</published><updated>2023-10-04T00:00:00+02:00</updated><id>https://haoqian.info/posts/2023/10/f3b</id><content type="html" xml:base="https://haoqian.info/posts/2023/10/f3b/"><![CDATA[<p>The name “front-running” came from when a broker needs to deliver the clients’ orders to the trading desk physically. The term vividly describes how it works: an attacker who knows a large order could run ahead to execute a trade before the client’s order goes through.</p>

<p>What is the incentive for someone to do that? Here is an example that explains why. Suppose a broker receives a large order from a client, say, buy 500,000 shares of a company’s stock. The order is big enough to drive up the share’s price. Knowing this information, an attacker can place his small order, say 10,000 shares of the same stock, before the large order. The attacker can sell his shares at a higher price when the price goes up after the large order went through.</p>

<p>The formal definition of front-running is a practice of benefiting from the advanced knowledge of pending transactions. Although benefiting some entities involved, this practice puts others at a significant financial disadvantage, making this behavior illegal in traditional markets with established securities regulations.</p>

<figure>
<img src="/images/blog/2023-10-04-trading-floor.jpeg" style="width:100%" />
<figcaption align="center"><b>Stock brokers working at the New York Stock Exchange in 1963. They need to physically go to the trading desk to place an order.</b></figcaption>
</figure>

<h2 id="front-running-in-blockchain">Front-running in Blockchain</h2>

<p>With the ambition of the blockchain community to mimic the traditional Centralized Finance to the Decentralized Finance (DeFi), more and more financial applications appear in the blockchain world. At the same time, this creates enormous opportunities for attackers to front-run clients’ transactions to gain an unfair profit. One estimate suggests that front-running attacks amount to $280 million in losses for DeFi actors each month<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup>.</p>

<p>However, due to the open and pseudonymous nature of blockchain transactions, it is virtually impossible to rely on regulations to mitigate this issue; thus, we must rely on technology to protect users.</p>

<p>How front-running works in blockchain is very similar to the traditional exchange example. Instead of the broker, a blockchain miner/validator is the middleman who places users’ transactions into the blockchain. As all the transactions are in plaintext by default, anyone can observe the pending transaction and become a front-runner, including miners/validators.</p>

<figure>
<img src="/images/blog/2023-10-04-blockchain.jpeg" style="width:100%" />
<figcaption align="center"><b>An example of how front-running works in the blockchain world. A miner can insert his transactions before and after the customer’s transaction to make a profit.</b></figcaption>
</figure>

<h2 id="flash-freezing-flash-boys-f3b">Flash Freezing Flash Boys (F3B)</h2>

<p>Our solution, F3B, mitigates front-running attacks in a very simple way. Instead of plaintext transactions, users encrypt their transactions so that no other entities can know the content of the transaction. When the encrypted transactions are firmly written into the blockchain, the consensus nodes can decrypt, verify, and execute the transactions.</p>

<p>We can reason why F3B mitigates the attacks from the definition of the front-running. Before the consensus group finalizes the transaction, an attacker can no longer read the content of it, thus preventing the adversary from benefiting from advanced knowledge of pending transactions.</p>

<p>To properly ensure no single point of failure, F3B adopts threshold encryption. A Secret-Management Committee (SMC) can generate a public key for a user to encrypt their transaction. When the consensus group finalizes the transaction, SMC releases the encryption key so that the consensus group can validate and execute it. Threshold encryptions guarantee as long as there are more than half of the nodes following the protocol honestly, F3B can successfully mitigate the front-running attacks. In practice, the SMC and the consensus group can consist of the same set of servers.</p>

<figure>
<img src="/images/blog/2023-10-04-architecture.jpeg" style="width:100%" />
<figcaption align="center"><b>F3B architecture. Senders publish encrypted transactions to the consensus group. The secret-management committee (SMC) releases the decryption shares once the transactions are no longer pending. Finally, the consensus group reconstruct the key and decrypt and execute the transaction. The secret-management committee and the consensus group can consist of the same set of servers. For clarity in this figure, we logically separate them into two different entities.</b></figcaption>
</figure>

<h2 id="f3b-unique-features">F3B unique features</h2>

<p>Architecture level solution: F3B addresses front-running attacks at the architecture level. Deploying F3B requires a change of the execution layer, requiring a hard fork of the existing blockchain. This inevitably brings some difficulty for adoption, but the benefit is substantial: all the smart contracts on the blockchain, by default, have front-running protection with low overhead costs.</p>

<p>Per-transaction protection: Notably, F3B adopts per-transaction basis protection rather than per-block basis, as presented in Fairblock and Shutter. These schemes require clients to choose a future block to derive the encryption key, which raises security concerns. Suppose a transaction failed to be finalized in the client-chosen block due to, for example, a crypto mania that overwhelms the blockchain network or a deliberate denial of service attack. In this case, the transaction is undesirably revealed. F3B, on the other hand, asks clients to generate an encryption key for each transaction. This ensures that a transaction remains confidential until the transaction has received enough confirmations.</p>

<p>Spamming issue: As the consensus group cannot execute encrypted transactions, an adversary could, at a low cost, spam the blockchain with non-executable transactions (e.g., inadequate fees, malformed transactions), thus delaying the finality of honest transactions. To make such an attack costly, we introduce a storage deposit alongside the traditional execution fee (e.g., gas in Ethereum) and adjustable based on the transaction’s size. The underlying blockchain can deduct the storage deposit from the sender’s balance, much like paying a transaction fee. Then, the blockchain can partially refund the deposit after successful execution by the consensus nodes. This approach imposes a low-cost fee on compliant users and a penalty on those who misbehave.</p>

<p>Practical to deploy: Our prototype on Ethereum found only a negligible (0.026%) increase in transaction latency, specifically due to running threshold decryption with a 128-member secret-management committee after a transaction is finalized; this indicates that F3B is both practical and low-cost to deploy.</p>

<h2 id="conclusion">Conclusion</h2>

<p>We have introduced F3B, a novel blockchain architecture that addresses front-running attacks on a per-transaction basis. Our prototype demonstrates that F3B can practically deploy to Ethereum. Given that the deployment of F3B would require modifications to a blockchain’s execution layer, F3B, in return, would also provide a substantial benefit: the F3B-deployed blockchain would now, by default, contain standard front-running protection for all applications in need at once without requiring any modifications to smart contracts themselves.</p>

<p>Project main contributors: Louis-Henri Merino (EPFL, IC3), Ziyan Qu (EPFL), Mahsa Bastankhah (EPFL), Vero Estrada-Galinanes (EPFL, IC3), Bryan Ford (EPFL, IC3).</p>

<p><a href="https://arxiv.org/abs/2205.08529">Link to original paper</a></p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p><a href="https://cybernews.com/crypto/flash-boys-2-0-front-runners-draining-280-million-per-month-from-crypto-transactions/">$280 million stolen per month from crypto transactions</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="front-running" /><category term="blockchain" /><category term="DeFi" /><summary type="html"><![CDATA[The name “front-running” came from when a broker needs to deliver the clients’ orders to the trading desk physically. The term vividly describes how it works: an attacker who knows a large order could run ahead to execute a trade before the client’s order goes through.]]></summary></entry><entry><title type="html">The sadness of democracy: Example of Argentina</title><link href="https://haoqian.info/posts/2023/09/democracy/" rel="alternate" type="text/html" title="The sadness of democracy: Example of Argentina" /><published>2023-09-28T00:00:00+02:00</published><updated>2023-09-28T00:00:00+02:00</updated><id>https://haoqian.info/posts/2023/09/sadness-of-democracy</id><content type="html" xml:base="https://haoqian.info/posts/2023/09/democracy/"><![CDATA[<p>Argentina was one of the top ten wealthiest countries in the world 100 years ago. However, it is currently suffering one of the worst inflations in the world, and its poverty rate is skyrocketing. What went wrong? It seems that behind the economic crisis is the bad government management, and behind bad government management, it is the failed democracy mechanism that cannot solve the issue, if not make it worse.</p>

<h2 id="hyperinflation">Hyperinflation</h2>

<p>Argentina constantly suffers from inflation, and in recent years, it has become worse with a more than 100% inflation rate based on the official number (the price would double every year). I was lucky enough to observe how people live in a society with hyperinflation in Argentina.</p>

<p>For lucky Argentines who can save some money after paying the living cost, their strategy is to exchange their money for the U.S. dollar. As the government implemented capital control to preserve its dollar reserve, it inevitably created illegal black markets. The people who want to get dollars must pay almost double the price of the official rate. As the gap between the official rate and the de facto rate is so large, exchanging money at black markets becomes the worst-kept secret in the country: everybody knows where and how to exchange their money into dollars, and even if it is illegal, nobody seems to care.</p>

<figure>
<img src="/images/blog/2023-09-28-caves.jpeg" style="width:100%" />
<figcaption align="center"><b>There are many "cuevas" or "clandestine financial houses" to exchange dollars unofficially in this picture. Can you spot them?</b></figcaption>
</figure>

<p>For the unlucky majority, they do not have the privilege of figuring out how to preserve the value of their money. They must pay all their salary for living, and their living standard is constantly declining because of inflation. I once met a middle school teacher from a rural area protesting in a city park. He told me his salary five years ago was 20,000 Argentinian pesos, and now he receives 75,000 Argentinian Pesos. Sounds pretty good, right? But the Peso devalued more than 12 times in this period, from 40 pesos to 1 dollar to 500 pesos to 1 dollar<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup>. Thus, de facto, his salary was reduced from 500 dollars to 150 dollars. His actual purchasing power may decrease even further as the purchasing power of the dollar also decreased a lot during the last five years.</p>

<figure>
<img src="/images/blog/2023-09-28-teacher.jpeg" style="width:100%" />
<figcaption align="center"><b>School teachers have a strike.</b></figcaption>
</figure>

<h2 id="professional-protest">Professional Protest</h2>

<p>What Argentines can do? In a democratic framework, they can protest and elect their preferred president, which is exactly what Argentines do. During my trip to Argentina, I observed people protest at different scales in every city. I was amazed at how professional the Argentines do the protest and how peaceful they can be.</p>

<p>One interesting protest that happened to me was in Jujuy Province, where local people would block all the roads. Unlike blocking indefinitely, which would cause too much influence on people’s lives, they allow cars to pass one hour every three hours intervals. This strategy effectively increases everyone’s transportation time by three times, but not infinitely. It seems to me that this strategy reaches a perfect balance point. Although the drivers and passengers are unhappy about the delay, they seem to accept the rule and peacefully wait for every blockage. From the side of the protestors, blocking roads does not need too many resources; thus the protest can last for a long time.</p>

<figure>
<img src="/images/blog/2023-09-28-blockage.jpeg" style="width:100%" />
<figcaption align="center"><b>All the roads in Jujuy Province were blocked.</b></figcaption>
</figure>

<h2 id="an-issue-democracy-alone-cannot-solve-seeking-short-term-interest">An issue democracy alone cannot solve: seeking short-term interest</h2>

<p>I would argue the problem faced by Argentina is the incomplete democratic mechanism. People want to improve their living standards, which is understandable under the situation. Then, they will prefer and select the government that can promise welfare to people, and the only method the government can do is to increase its spending to provide it. However, the Argentina government already reached the point where it cannot increase its spending: It can print more Argentina pesos, but the currency will devalue even faster, leading to an even worse situation than before. At this point, Argentina is in a trap that lies more fundamentally: all entities can only seek short-term interest.</p>

<h2 id="the-next">The next</h2>

<p>Both Argentina and human history demonstrate the most likely path: the country falls back to an authoritarian or even totalitarian regime. A strong government may seek for the long-term interest with a bigger short-term pain, but it entirely depends on the mercy of the government. There is no systematic method to guarantee that the government will do the good things to society.</p>

<p>For other countries, the most important thing is preventing it from falling into a trap like Argentina is in now. How Argentina falls into the trap in the first place is, in fact, because the government has too much power: when the country does not have the ability to provide welfare in a sustainable way, a democratic government can still promise its people welfare. Thus, there should be a systematic framework to limit the power of the government, especially on spending. If the domestic parliament is too weak to restrict the government, perhaps such a framework should come from the international level, using agreements or monetary tools to restrict government power on spending, but it is another big topic, perhaps in another blog post.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p>The current black market rate exchange rate: <a href="https://bluedollar.net">Blue Dollar</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="government" /><category term="democracy" /><category term="monetary policy" /><summary type="html"><![CDATA[Argentina was one of the top ten wealthiest countries in the world 100 years ago. However, it is currently suffering one of the worst inflations in the world, and its poverty rate is skyrocketing. What went wrong? It seems that behind the economic crisis is the bad government management, and behind bad government management, it is the failed democracy mechanism that cannot solve the issue, if not make it worse.]]></summary></entry><entry><title type="html">Our monetary system is doomed (2): How is wealth “printed” from thin air?</title><link href="https://haoqian.info/posts/2023/06/wealth/" rel="alternate" type="text/html" title="Our monetary system is doomed (2): How is wealth “printed” from thin air?" /><published>2023-06-23T00:00:00+02:00</published><updated>2023-06-23T00:00:00+02:00</updated><id>https://haoqian.info/posts/2023/06/wealth-creation</id><content type="html" xml:base="https://haoqian.info/posts/2023/06/wealth/"><![CDATA[<p>The previous post introduces how money is created from thin air. In this post, we examine how wealth is created. First, we present an incomplete theory that fails to explain some economic data, then argue that wealth can be created from thin air via a speculative channel.</p>

<h2 id="traditional-theory">Traditional Theory</h2>

<p>Traditional theory suggests that wealth is accumulated from the saving of income. Image a person constantly saving a certain percentage of his income; his total wealth is his accumulated saving. Considering the country or global perspective, the sum of all accumulated saving from each entity forms the total wealth. However, this theory needed to explain the following statistical data.</p>

<h2 id="global-wealth-grew-significantly-during-covid">Global wealth grew significantly during COVID.</h2>

<p>COVID has become a perfect natural experiment for testing this theory. Unintuitively, global wealth grew significantly in 2020 when economic activity took a severe hit by COVID. Specifically, the global GDP went down by -3.1%<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup> (suggesting the global income reduces by 3.1%, as GDP measures the total income), yet global wealth increased by 4.1%<sup id="fnref:2" role="doc-noteref"><a href="#fn:2" class="footnote" rel="footnote">2</a></sup>.</p>

<p>Figure 1 demonstrates the growth of wealth relative to GDP by country. Surprisingly, the countries most affected by COVID (measures in loss of GDP) did disproportionally well in wealth terms. Belgium, Canada, Singapore, and the United Kingdom, among the worst-affected countries with an average GDP loss of 7.1%, achieved unusually high wealth gains averaging 7.7%.</p>

<figure>
<img src="/images/blog/2023-06-23-wealth-country.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 1: Growth of household wealth relative to GDP 2020.</b></figcaption>
</figure>

<p>Those numbers suggest that, at least in the short run, the wealth growth can be irrelevant to GDP (income). Thus, it denies the theory that wealth is solely accumulated from saving.</p>

<h2 id="return-on-capital-exceeds-the-growth-rate">Return on capital exceeds the growth rate.</h2>

<p>How about in the long run? Thanks to Thomas Piketty, we have the long-term data. In the long run, the return on capital<sup id="fnref:3" role="doc-noteref"><a href="#fn:3" class="footnote" rel="footnote">3</a></sup> (before the tax) is always higher than the GDP growth rate, as presented in Figure 2. Although Thomas Piketty presented this historical fact in his 696 pages of the book <em>Capital in the Twenty-First Century</em>, he still needs to explain why the return on capital can exceed the growth rate.</p>

<figure>
<img src="/images/blog/2023-06-23-capital-return.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 2: Rate of return vs. growth rate at the world level, from Antiquity until 2100.</b></figcaption>
</figure>

<h2 id="create-wealth-from-thin-air">Create wealth from thin air</h2>

<p>The following explains how wealth can be decoupled from the GDP. It is worth emphasizing that I do not deny the channel that wealth is accumulated from saving but suggest an additional speculative channel creating wealth, which explains how it is possible that wealth growth can be irrelevant to GDP.</p>

<p>Imagine a fictional community with ten identical houses. Ten households purchased those ten houses at the price of \$100,000 initially. Assuming they do not take mortgages to buy those houses, thus \$1,000,000 is the total wealth of this community. One day, one of the households sold his house for \$200,000 to a speculator. This single transaction would influence other houses’ values: the market would value other houses at \$200,000, too, rather than \$100,000. Suddenly, everyone in the community becomes richer, and the total wealth of the community increases from \$1,000,000 to \$2,000,000. In this fictional example, the houses remain the same, but an additional \$1,000,000 worth of wealth is created from thin air.</p>

<p>The stock works similarly. Imagine a fictional company that went to IPO and issued 10,000,000 shares. If investors believe in the company and buy those shares at \$10 per share for 1,000,000 shares. This action determines that the company is now worth \$100,000,000. Those \$100,000,000 is the wealth created from thin air and a net wealth gain for the society.</p>

<p>If you think those two examples are too unrealistic, that the price changes must reflex some fundamentals of the assets, and do not believe that wealth can be created from thin air, consider the example of Bitcoin. Bitcoin, in a way, is just some digital information stored in some computers around the world. It has the intrinsic value of zero, as holding it does not generate any return. Thus, it is unsurprising that some economists predict that Bitcoin’s value will eventually become zero. Yet, we never see Bitcoin value become zero. All the Bitcoin value is created from thin air.</p>

<p>Through those three examples, I hope you are convinced that wealth could be created from thin air. Of course, the opposite can happen too. When the value of the assets (like housing, stock, or Bitcoin) decreases, the wealth is destroyed. When this happens, everybody feels poorer. In a fair world, speculative wealth creation and destruction should come at equal probability. However, in reality, wealth creation is far more likely to happen than wealth destruction, as we like to be richer altogether rather than poor altogether.</p>

<h2 id="proletariat-vs-bourgeoisie">Proletariat vs. Bourgeoisie</h2>

<p>We can naturally divide people into two classes: those who have the wealth to participate in the game of wealth creation (Bourgeoisie) and those who do not have wealth and have to earn a wage for a living (Proletariat). As the historical data suggest, the return on capital is always higher than the GDP growth; thus, it is not difficult for the bourgeoisie to find some good investment opportunities to benefit from the wealth creation process and use those benefits to enjoy life. On the other hand, the proletariat is in an unfair position, as they must constantly work hard to earn a wage for a living. If you want an easy life, please join the bourgeoisie group.</p>

<h2 id="everyone-has-the-printer-for-wealth">Everyone has the “printer” for wealth</h2>

<p>Unlike money, which only commercial or central banks can “print”, everyone has the “printer” to create wealth. How the richest people in the world have so much wealth not because they earn a good wage through hard work but create giant amout of wealth from thin air. If you want to “print” wealth, you need to have a good story and then fictionalize the story into shares (for a company) or tokens (for a cryptocurrency project). If people believe the story and begin to buy those shares or tokens, you have successfully “printed” the wealth from thin air.</p>

<p>Is there a limitation to this speculative wealth creation overall? How does money influence wealth creation? The next blog post answers those questions.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p><a href="https://tradingeconomics.com/world/full-year-gdp-growth">World Full Year GDP Growth</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:2" role="doc-endnote">
      <p><a href="https://www.credit-suisse.com/media/assets/corporate/docs/about-us/research/publications/global-wealth-report-2021-en.pdf">Global Wealth Report 2021</a> <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:3" role="doc-endnote">
      <p>There are different definitions of capital, but Piketty uses a broad definition of capital to be the same as wealth. <a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="wealth" /><category term="economics" /><category term="money" /><summary type="html"><![CDATA[The previous post introduces how money is created from thin air. In this post, we examine how wealth is created. First, we present an incomplete theory that fails to explain some economic data, then argue that wealth can be created from thin air via a speculative channel.]]></summary></entry><entry><title type="html">Our monetary system is doomed (1): How is money “printed” from thin air?</title><link href="https://haoqian.info/posts/2023/06/money/" rel="alternate" type="text/html" title="Our monetary system is doomed (1): How is money “printed” from thin air?" /><published>2023-06-10T00:00:00+02:00</published><updated>2023-06-10T00:00:00+02:00</updated><id>https://haoqian.info/posts/2023/06/money-creation</id><content type="html" xml:base="https://haoqian.info/posts/2023/06/money/"><![CDATA[<p>Since watching the movie, <em>the big short</em>, I have begun to be fascinated by how the economic system works and how it can be so wrong. After years of thinking, I plan to use a series of blog posts to share my insights of what are the issues, where we are heading to, and the potential solutions with our current monetary system.</p>

<p>This first post introduces how money is “printed” in our modern economy. I never work in a commercial or central bank. So, my understanding is solely based on reading papers whose authors researched it<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup><sup id="fnref:2" role="doc-noteref"><a href="#fn:2" class="footnote" rel="footnote">2</a></sup>. Surprisingly, how money is issued in the modern world is not clear to the public, and even many economic textbooks do not reflex the correct view. Thus, if you are an econ or finance student, you might also find something new in this post. As usual, I try to use simplistic language to illustrate it.</p>

<h2 id="balance-sheet">Balance Sheet</h2>

<p>To understand how money is “printed” in the modern economy, one needs to understand the balance sheet, which summarizes the financial balance of an entity. A balance sheet has two sides: Assets and liabilities. The assets side records money or any valuable things belonging to the entity, while the liabilities side represents obligations of the entity. Furthermore, we add equity to represent the value owned by the entity to the liabilities side when there is an unbalanced mismatch between assets and liabilities.</p>

<p>Assume that someone has some paper money in his pocket and some deposits in his bank, and he does not have any loan; thus, his balance sheet would look like Figure 1 on the left. The items on his assets are currency and deposits, while his liabilities are solely his equity as he has no debt.</p>

<p>Imagine that he is now taking a loan from his bank for his future house. This action would change both sides of his balance sheet. On the assets side, he has an additional deposit in his bank when the bank grants his loan, whereas, on the liabilities side, he has a loan from his bank, which is an obligation that he needs to repay in the future. His new balance sheet would look like Figure 1 on the right.</p>

<figure>
<img src="/images/blog/2023-06-10-individual.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 1: The balance sheet of an individual before and after taking the loan and its repayment.</b></figcaption>
</figure>

<h2 id="how-a-commercial-bank-creates-money-from-the-thin-air">How a commercial bank creates money from the thin air</h2>

<p>The majority of the money is created by commercial banks when making loans<sup id="fnref:1:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup>. By using the balance sheet, we can see this process. Whenever someone makes a loan from his commercial bank, he will see that his bank account is credited with a new deposit from his commercial bank and know that he has a new obligation that, in the future, he will have to settle this loan by paying the money back to his commercial bank (Figure 1 from left to right).</p>

<p>From the bank’s point of view, its balance sheet also changes. When the commercial bank grants the loan, the loan becomes the bank’s asset, as the bank expects the borrower to repay the loan in the future, while the borrower’s new deposit is the bank’s liability, as he can demand to withdraw his deposit, demonstrated in Figure 2 from left to right.</p>

<figure>
<img src="/images/blog/2023-06-10-commercial-bank-loan-individual.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 2: The balance sheet of a commercial bank before and after granting the loan to a client.</b></figcaption>
</figure>

<p>In this process, the money is created from thin air digitally. The borrower can consider his deposit in his banking account as his money. He can withdraw this deposit from an ATM, spend this deposit to purchase goods and services, or transfer this deposit to others.</p>

<p>Similarly, when the borrower repays his loan, the process is reverted, and the money disappears. Whenever the borrower uses his deposit to repay his loan, the deposit and loan disappear from the bank’s balance sheet and the individual’s, presented in Figure 2 from right to left. In practice, this process may not be symmetrical because commercial banks usually can profit from creating new money as a loan is not free: the borrower needs to repay not only the principal but also the interest.</p>

<p>Usually, commercial banks cannot create too much money, as there is a risk associated with it. All clients of the bank can demand to withdraw money or transfer their deposits to other banks, and if a bank creates too much money (higher leverage ratio), the client’s demands may not be satisfied. If this happens, the bank is in trouble and may need to declare bankruptcy.</p>

<h2 id="how-a-central-bank-creates-money-from-thin-air-season-1">How a central bank creates money from thin air (Season 1)</h2>

<p>When a commercial bank faces a liquidity issue that it cannot satisfy demands from its client, it can borrow money from other commercial banks or directly from the central bank. Whenever a commercial bank borrows money from the central bank, the money is created from thin air, but this time, it is the central bank that “prints” them digitally.</p>

<p>Similar to individual borrowing, when a commercial bank borrows money from the central bank, the bank’s account in the central bank is credited with newly created money called reserve, which can be exchanged for currency in banknotes or coins. Figure 3 from left to right presents the balance sheet before and after commercial bank borrows money from the central bank.</p>

<figure>
<img src="/images/blog/2023-06-10-commercial-bank-loan-central-bank.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 3: The balance sheet of a commercial bank before and after making a loan from the central bank and its repayment.</b></figcaption>
</figure>

<p>From the central bank’s point of view, the commercial bank loan is the central bank’s asset, while the newly created reserve is the central bank’s liability. Figure 4 from left to right illustrates the changes in the central bank’s balance sheet. However, unlike the commercial bank, which needs to worry about its liabilities, the central bank does not need to worry about them, as the central bank can simply “print” money as much as it wishes in theory.</p>

<figure>
<img src="/images/blog/2023-06-10-central-bank-loan-commercial-bank.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 4: The balance sheet of a central bank before and after granting a loan to a commercial bank and its repayment.</b></figcaption>
</figure>

<p>Although a central bank can create infinite money, it has consequences on the market. If a central bank creates too much money relative to the goods and services produced on the market, leading to too much money chasing too few goods and services, this will result in inflation (prices of goods and services go up). A functional central bank usually wants to control the inflation rate to an acceptable range, but history is full of failures examples.</p>

<p>The central bank does not set the money supply target directly but by controlling interest rates indirectly. The central bank would set up an interest rate target and control the money supply to achieve the interest rate target. If the central bank wants to decrease the interest rate, the central bank can then offer loans to commercial banks lower than the current market interest rate. By injecting more money into the market, more money supply is chasing fewer loan demands; thus, the market interest rate decreases. If the central bank wants to increase the interest rate, it can sell its loans on the market in exchange for the money the central bank created before. By withdrawing money from the market, more loan demands are chasing less money supply; thus, the market interest rate goes up.</p>

<p>The money created by the commercial bank and the central bank is different. While an individual can spend money created by the commercial bank (It is digital money in the form of a deposit in its commercial bank), a commercial bank can only use money created by the central bank to settle the transactions with other commercial banks or the central bank (as the money created by the commercial bank is just a digital number in its database). The money created by the central bank is called base money, whereas the money created by the commercial bank is named broad money.</p>

<h2 id="how-a-central-bank-creates-money-from-thin-air-season-2">How a central bank creates money from thin air (Season 2)</h2>

<p>After the financial crisis of 2007-2008, the above method is not powerful enough to provide enough base money for the market. The central bank began using a more radical method to inject base money into the system by directly purchasing assets from the market, a process called Quantitative Easing (QE).</p>

<p>The central bank can purchase assets, such as government debts, company stocks, mortgages, etc., by creating new reserves. Figure 5 from left to right demonstrates this process. The money would eventually end up in commercial banks’ assets, reducing the risk of the commercial bank (reducing the leverage ratio), as it now has more base money for its settlement with other commercial banks and the central bank.</p>

<figure>
<img src="/images/blog/2023-06-10-central-bank-QE-QT.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 5: The balance sheet of a central bank before and after a quantitative easing or quantitative tightening.</b></figcaption>
</figure>

<p>By QE, the central bank can reduce the interest rate to 0% or even negative (commercial banks need to pay for keeping their reserve in the central bank accounts) by injecting an incredible amount of base money into the market. This radical policy helped to save our economy after the financial crisis.</p>

<p>However, if the central bank abuses the QE by injecting too much money into the market, the prices of goods and services will increase (inflation). If the central banks want to reduce inflation, it needs to intervene by decreasing the amount of money. The central bank can then sell its purchased assets to the market in exchange for the base money it created before, thus reducing the bank’s balance sheet and withdrawing money from the market, a process called Quantitative Tightening (QT). Figure 5, from right to left, demonstrates this process.</p>

<h2 id="what-is-wrong-with-our-monetary-system-debt-based-money">What is wrong with our monetary system? Debt-based money</h2>

<p>The above process is how money is created in the modern economy. What’s wrong with this system? Let’s look at the trend of the dollar’s base money supply. We can observe that 
the FED (Central Bank of the USA) needs to inject more base money into the market constantly, and if there are financial crises, the injections are even more tremendous. Why?</p>

<figure>
<img src="/images/blog/2023-06-10-FED.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 6: The trend of dollar's base money supply.</b></figcaption>
</figure>

<p>One of the reasons is due to money creation. Whenever money is created, the system also creates its by-product, liability, in the form of debt. Any entity has an obligation to repay the debt with interest. However, whenever a debt is settled, the money and the principal of the debt are canceled out in the balance sheet (money is essentially an IOU, and it disappears when the debt is repaid), but not its interest. Since fiat money is only legal tender to settle the debt, the interest payment needs future money to repay, and the process of creating the future money induces more interest needed to repay, which requires even more money to settle the debt in the future, resulting in even more interests needed to repay. This process goes forever and must go forever.</p>

<h2 id="money-is-not-wealth">Money is not wealth</h2>

<p>From an individual point of view, money is wealth you can directly spend. However, from an entire system point of view, money is not wealth. When we sum up the balance sheets of all the entities in the system, the money we created is canceled with the principal of debt, but not the interests; thus, the money we have today, in fact, creates the negative net value of wealth for our society.</p>

<p>But then, how is overall wealth created? In this series’s next blog post, we will explore it.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p><a href="https://www.bankofengland.co.uk/quarterly-bulletin/2014/q1/money-creation-in-the-modern-economy">Money creation in the modern economy</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a> <a href="#fnref:1:1" class="reversefootnote" role="doc-backlink">&#8617;<sup>2</sup></a></p>
    </li>
    <li id="fn:2" role="doc-endnote">
      <p><a href="https://www.sciencedirect.com/science/article/pii/S1057521914001070#:~:text=According%20to%20the%20fractional%20reserve,creating%20money%20through%20systemic%20interaction.">Can banks individually create money out of nothing? — The theories and the empirical evidence</a> <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="monetary" /><category term="economics" /><category term="money" /><summary type="html"><![CDATA[Since watching the movie, the big short, I have begun to be fascinated by how the economic system works and how it can be so wrong. After years of thinking, I plan to use a series of blog posts to share my insights of what are the issues, where we are heading to, and the potential solutions with our current monetary system.]]></summary></entry><entry><title type="html">How to transition from an authoritarian regime to a democratic regime peacefully?</title><link href="https://haoqian.info/posts/2023/05/democracy/" rel="alternate" type="text/html" title="How to transition from an authoritarian regime to a democratic regime peacefully?" /><published>2023-05-13T00:00:00+02:00</published><updated>2023-05-13T00:00:00+02:00</updated><id>https://haoqian.info/posts/2023/05/transition-authoritarianism-democracy</id><content type="html" xml:base="https://haoqian.info/posts/2023/05/democracy/"><![CDATA[<p>I recently realized that my current computer science research, which proves that blockchain rationality assumptions are fundamentally insecure, can also potentially provide some insights for helping countries to transition from an authoritarian regime to a democratic regime peacefully. In this post, I will explain everything as simple as possible. For those who want to read the original blockchain paper, you can refer to it here<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup>.</p>

<p>I am going to give a simple game theory analysis. I will use a game to model reality and use players in the game to represent the people in reality. Here are some assumptions about the game:</p>

<ol>
  <li>Each player is rational, i.e., wanting to maximize their reward.</li>
  <li>Two actions are available to each player: against or supporting the authoritarian regime.</li>
  <li>If fewer than t players are against the authoritarian regime, the transition will be failed, and players against the regime will receive a heavy penalty (perhaps many years in prison). In contrast, players supporting the regime remain unchanged (no penalty and reward).</li>
  <li>If equal or more than t players against the authoritarian regime, the transition will be succussed, and everyone (regardless of against or support) will receive a relatively small reward in expectation (because everybody now lives in a democratic regime)<sup id="fnref:2" role="doc-noteref"><a href="#fn:2" class="footnote" rel="footnote">2</a></sup>.</li>
</ol>

<p>We can prove that supporting the authoritarian regime by all players is one Nash equilibrium (a stable state in which no one is incentivized to change their action). When each player supports the authoritarian regime, if one player changes his action from support to against, he will receive a heavy penalty. Assuming everyone is rational, no single player would change his action.</p>

<p>Luckily, this is not the only Nash equilibrium of this game. If more than t players are against the authoritarian regime, it is also a (weak) Nash equilibrium. When more than t players are against the authoritarian regime, everybody receives a small reward, even though one player changes his mind from against to support.</p>

<p>But how can we transition from the bad equilibrium to the good one? It seems to be extremely difficult unless we have some external coordination. The key is to let more than t people change their actions altogether simultaneously to avoid heavy penalties for minorities. A leader could be the person to coordinate everyone’s actions, but he is very likely to receive a heavy penalty from the authoritarian regime. Perhaps, a better solution is to use common public knowledge to coordinate, e.g., protesting every Sunday at 10 am.</p>

<h2 id="nonviolent-protest">Nonviolent Protest:</h2>

<p>The key to success is to let more than t people act altogether. Some research shows that t is 3.5% of the population<sup id="fnref:3" role="doc-noteref"><a href="#fn:3" class="footnote" rel="footnote">3</a></sup>. We must attract people to join the protests as much as possible to reach this threshold. Statistic data show that nonviolent protests are more likely to attract people to participate and have a higher success rate<sup id="fnref:4" role="doc-noteref"><a href="#fn:4" class="footnote" rel="footnote">4</a></sup>.</p>

<h2 id="tips-for-dictator">Tips for Dictator</h2>

<p>To prevent your minions from overthrowing you, you need to attack the model’s assumptions or make hard changes from the bad equilibrium to the good one. You can do the following:</p>
<ol>
  <li>Make your minions irrational.</li>
  <li>Control the information and discussion, reeducate and guide minions’s minds and interests, so your minions would not know there is a better option for them.</li>
  <li>Impose heavy penalties for anyone who is against you.</li>
</ol>

<p>Please do not overkill, as your overkilled actions might also become common public knowledge for people to act altogether.</p>

<h2 id="for-people-living-in-an-authoritarian-regime">For People Living in an Authoritarian Regime:</h2>

<p>If you are not smart enough to know the rule of the game, you do not know that there is a better world.</p>

<p>If you are smart enough to know the rule of the game, your destiny is to disguise. Your inner heart knows everything, but you must act like you support (or at most not against) the authoritarian regime. You will have to face such inconstancy constantly. But please be patient; your Messiah will come (either a revolutionary leader or common public knowledge) to call you. Good Luck!</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p><a href="https://arxiv.org/abs/2305.00554">Breaking Blockchain Rationality with Out-of-Band Collusion</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:2" role="doc-endnote">
      <p>For the supporters of the authoritarian regime: I will not argue why this assumption holds in this post. Please consider this a purely mathematical assumption. <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:3" role="doc-endnote">
      <p><a href="https://www.nonviolent-conflict.org/resource/success-nonviolent-civil-resistance/">The Success of Nonviolent Civil Resistance.</a> <a href="#fnref:3" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:4" role="doc-endnote">
      <p><a href="https://www.bbc.com/future/article/20190513-it-only-takes-35-of-people-to-change-the-world">Nonviolent protests are twice as likely to succeed as armed conflicts – and those engaging a threshold of 3.5% of the population have never failed to bring about change.</a> <a href="#fnref:4" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="democracy" /><category term="politics" /><category term="game theory" /><summary type="html"><![CDATA[I recently realized that my current computer science research, which proves that blockchain rationality assumptions are fundamentally insecure, can also potentially provide some insights for helping countries to transition from an authoritarian regime to a democratic regime peacefully. In this post, I will explain everything as simple as possible. For those who want to read the original blockchain paper, you can refer to it here1. Breaking Blockchain Rationality with Out-of-Band Collusion &#8617;]]></summary></entry><entry><title type="html">National heroes of one side are the national enemies of another</title><link href="https://haoqian.info/posts/2023/03/mitrovica/" rel="alternate" type="text/html" title="National heroes of one side are the national enemies of another" /><published>2023-03-20T00:00:00+01:00</published><updated>2023-03-20T00:00:00+01:00</updated><id>https://haoqian.info/posts/2023/03/mitrovica</id><content type="html" xml:base="https://haoqian.info/posts/2023/03/mitrovica/"><![CDATA[<p>It is common to be true that the national heroes of one side are the national enemies of another. But nowhere can demonstrate the absurd behind so profoundly than in Mitrovica, Kosovo, where another side is just 50 meters away.</p>

<p>To provide a brief background, Kosovo eventually declared its independence after the breakup of Yugoslavia. However, Serbia does not recognize Kosovo as an independent country and considers Kosovo as part of Serbia. To make matters worse, some Serbs live in Kosovo. Mitrovica is the border city of the two ethnic groups that are separated by a river: the north is dominated by Serbs, and the south is dominated by Albanians (the leading ethnic group of Kosovo).</p>

<p>Mitrovica, thus, is usually the center of the conflict between Serbia and Kosovo. There are peacekeepers from NATO in Mitrovica all year round trying to separate them and calm any dispute. However, a tense atmosphere can happen from time to time. Three months ago, Kosovo Serbs blocked the road to the main border crossings towards Serbia in Mitrovica<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup>.</p>

<figure>
<img src="/images/blog/2023-03-20-peacekeeper.jpeg" style="width:100%" />
<figcaption align="center"><b>Peacekeepers in Mitrovica by Italian Carabinieri.</b></figcaption>
</figure>

<p>When crossing the river in Mitrovica, everything changes. In North Mitrovica, people believe in Orthodox, speak Serbian, fly the flag of Serbia, and use Serbian Dinar as their currency. In contrast, in South Mitrovica, people believe in Islam, talk in Albanian, hang the flags of Kosovo and Albania, and spend Euro. Ridiculously, both sides would commemorate their national heroes, who happened to be the murderers of another side in the same conflict.</p>

<figure>
<img src="/images/blog/2023-03-20-serbs.jpeg" style="width:100%" />
<figcaption align="center"><b>The national hero of the Serbs is the national enemy on the other side</b></figcaption>
</figure>

<figure>
<img src="/images/blog/2023-03-20-albanian.jpeg" style="width:100%" />
<figcaption align="center"><b>The national hero of the Albanian is the national enemy on the other side</b></figcaption>
</figure>

<p>Different ethnic groups can live together peacefully, just like in Yugoslavia. But after so many deadly conflicts, how should they reconcile with their enemy? Stopping commemorating those national heroes can be the first step toward reconciliation. The national heroes rarely did something good for humanity; thus, from a broader human perspective, nothing is worth commemorating them.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p><a href="https://www.theguardian.com/world/2022/dec/10/kosovo-serbs-block-road-to-major-border-crossings-in-volatile-north">Kosovo Serbs block road to main border crossings in volatile north.</a> <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="travel" /><category term="war" /><category term="religion" /><summary type="html"><![CDATA[It is common to be true that the national heroes of one side are the national enemies of another. But nowhere can demonstrate the absurd behind so profoundly than in Mitrovica, Kosovo, where another side is just 50 meters away.]]></summary></entry><entry><title type="html">A dilemma of God</title><link href="https://haoqian.info/posts/2023/02/god-dilemma/" rel="alternate" type="text/html" title="A dilemma of God" /><published>2023-02-06T00:00:00+01:00</published><updated>2023-02-06T00:00:00+01:00</updated><id>https://haoqian.info/posts/2023/02/god-dilemma</id><content type="html" xml:base="https://haoqian.info/posts/2023/02/god-dilemma/"><![CDATA[<p>It seems to be true that if God exists, his power is unlimited, or if he does not exist, simply believing in this imaginary God helps his followers to deal with difficulties and find the meaning of life. But does this almighty God, whether real or imaginary, ever encounter a dilemma?</p>

<p>On my recent trip to Africa, the most common word I heard is <em>Inshallah</em>, an Arabic expression of “if God wills” or “God willing.” It means that what happens in the future is in God’s will. It implies that we should not worry about the future, as everything is under the control of God. However, words like this only work if people believe in them deeply, and this belief typically needs practice and training for a long time.</p>

<p>It turns out that, in Senegal, there is a systematic way to train children into God’s faithful followers. Many children would become talibés (meaning seekers or students) who study the Quran at a Daara (Quranic school). They receive full-time Islamic education for free, without or with little secular education in subjects like math, French (the only official language in Senegal), or English.</p>

<p>As a tradition, parents from villages are encouraged to send their children to urban Daaras to reduce the cost of parenting. Since religious education in Daara is tuition-free by nature, Daara has to rely on other financial methods to maintain its running. Some lucky Daaras can receive enough donations from the nearby local community, which allows them to offer their talieès free food and accommodation. In contrast, some other Daaras must rely on their talieès.</p>

<p>Those unlucky talieès then have to earn money for their Daaras as well as food for themselves. They usually are forced to become street beggars, constantly suffering hunger. Suppose they are lucky enough to survive until they graduate from their Daaras; the reality is still cruel to them. In lacking secular education, they are missing basic knowledge to better survive in modern society.</p>

<figure>
<img src="/images/blog/2023-02-06-god-dilemma-1.jpeg" style="width:100%" />
<figcaption align="center"><b>A marabout (teacher) is correcting what a talibé (student) memorized in a Daara (Quranic school).</b></figcaption>
</figure>

<figure>
<img src="/images/blog/2023-02-06-god-dilemma-2.jpeg" style="width:100%" />
<figcaption align="center"><b>A typical classroom where talibés study and sleep.</b></figcaption>
</figure>

<figure>
<img src="/images/blog/2023-02-06-god-dilemma-3.jpeg" style="width:100%" />
<figcaption align="center"><b>Likely to be the only food a small talibé eats in a day, provided by an NGO free of charge. They suffer constant hunger. </b></figcaption>
</figure>

<figure>
<img src="/images/blog/2023-02-06-god-dilemma-4.jpeg" style="width:100%" />
<figcaption align="center"><b>A grown-up talibé is learning how to compare numbers with two digitals in a lesson provided by an NGO. </b></figcaption>
</figure>

<p>Even if the lives are so hard for those talieès, they have a toolset to deal with those difficulties: everything is Inshallah. The attitude of accepting reality is the exact training they receive in religious education. However, assuming receiving such religious education is why they suffer in the first place, God is facing a difficult dilemma: If God allows them to decrease religious education and emphases on secular education, perhaps, in general, they will improve their material life and likely to reduce physical suffering, but they may eventually become indifferent towards God, like what happened in Europe. Or if God maintains such religious education, God is responsible for his people’s suffering. A dilemma to be solved by God.</p>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="travel" /><category term="Africa" /><category term="religion" /><summary type="html"><![CDATA[It seems to be true that if God exists, his power is unlimited, or if he does not exist, simply believing in this imaginary God helps his followers to deal with difficulties and find the meaning of life. But does this almighty God, whether real or imaginary, ever encounter a dilemma?]]></summary></entry><entry><title type="html">A decentralized public transportation system</title><link href="https://haoqian.info/posts/2023/02/decentralized-public-transportation/" rel="alternate" type="text/html" title="A decentralized public transportation system" /><published>2023-02-01T00:00:00+01:00</published><updated>2023-02-01T00:00:00+01:00</updated><id>https://haoqian.info/posts/2023/02/decentralized-public-transportation</id><content type="html" xml:base="https://haoqian.info/posts/2023/02/decentralized-public-transportation/"><![CDATA[<p>In conventional wisdom, a local government or companies control and manage its city public transportation in centralized or federated fashions. In this paper, we<sup id="fnref:1" role="doc-noteref"><a href="#fn:1" class="footnote" rel="footnote">1</a></sup>  introduce a decentralized public system without centralized control. This public transportation system achieves low cost and low latency overhead with price and traffic flexibility that can adapt to the complex and dynamic operating cost and traffic flow. Those features ensure that such a system is practical, efficient, and optimal to be deployed in a city of low-income developing countries. We demonstrate that it is possible to “design” a suitable city-wised public transportation system without any system designer.</p>

<h2 id="system-goals">System Goals</h2>

<p>Before introducing the decentralized public transportation system, we outline some goals suitable deployed in a city of low-income developing countries.</p>
<ol>
  <li>Low Cost: The transportation fee should be minimal.</li>
  <li>Low Latency Overhead: The waiting time should be acceptable.</li>
  <li>Price Flexibility: The price should be flexible enough to incorporate the changes in the operating costs.</li>
  <li>Traffic Flexibility: The system can adapt the traffic demands dynamically.</li>
  <li>Decentralization: There is no centralized planning or control.</li>
</ol>

<h2 id="protocol-overview">Protocol Overview</h2>

<p>We introduce the system with illustrative examples to distinguish this paper from other hard-to-understand system research papers. All the examples are real and happened on our trip to Nouakchott (the capital city of Mauritania with one million population), where there is almost no city bus available, and the only available option for local people to travel is to take shared taxis.</p>

<h3 id="example-one-from-nowhere-to-somewhere">Example one: from nowhere to somewhere</h3>

<p>We got off at an unknown place when we first arrived in Nouakchott and we knew the GPS location of where we should go next; however, we did not know how to take city buses to the destination (as there is no city bus), nor know how to take a taxi with the destination named in English or French rather than a pair of numbers.</p>

<p>We searched the nearby area to find something famous to be the name of our destination. Suddenly we found a Carrefour. We were amazed that they have the Carrefour in Mauritania, as we had not seen a single Carrefour supermarket after we left Agadir in Morocco. However, we soon realized that this is not the supermarket Carrefour, but a real carrefour as a crossroad. The carrefour is named Aziz. As soon as we were confident enough to pronounce the name, we were ready to take a taxi to our destination.</p>

<p>After a few failed tries, we soon realized that no taxi would take us to carrefour Aziz, which is too far (but only 7km). Instead, a local guy told us we should take a taxi first to carrefour of police routière, where we could take another taxi to carrefour Aziz. Soon, we found a taxi that took us to carrefour of police routière, and there we found another taxi to carrefour Aziz. Figure 1 presents the detailed route.</p>

<figure>
<img src="/images/blog/2023-02-01-decentralized-public-transportation-1.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 1: From nowhere (Point A) to somewhere (Point C) with one transit at carrefour of police routière (Point B)</b></figcaption>
</figure>

<p>Unlike a real taxi, all taxis in Nouakchott are shared taxis, meaning one has to take the taxi with other passengers. As no shared taxis are heading toward carrefour Aziz directly from where we were (because it is not in the same direction), it is not surprising that we could not find any taxis initially.</p>

<p>The taxi price is amazingly low, only 10 MRU (0.28 USD as of Jan 2023) per ride per person, although we were special “treated” and asked to pay 20 MRU per person for the first ride as new foreign travelers who did not know the local price.</p>

<p>The system is similar to the modern metro system in that one may change lines multiple times to reach their destination, and one metro car carries multiple people. In the case of shared taxis in Nouakchott, the de facto number of passengers is six, even though the taxi only has four seats for passengers (obviously, locals are skinny).</p>

<h3 id="example-two-from-carrefour-aziz-to-ouad-naga">Example Two: From Carrefour Aziz to Ouad Naga</h3>

<p>Ouad Naga is a small town with some camels 50 km from Nouakchott. We departed for this town at 6:30 am when it was still dark. Nevertheless, the public transportation system was operating. We first took a taxi ride from carrefour Aziz to carrefour Madrid and then took another taxi ride to Toujounine where we could transfer again to our final destination, Ouad Naga. The cost within the city limit is 10 MRU per person per ride, whereas the long intercity ride costs 50 MRU (1.35 USD as of Jan 2023). Figure 2 shows the detailed route, and Figure 3 presents the transit station in Toujounine: nearly every car serves as a shared taxi.</p>

<figure>
<img src="/images/blog/2023-02-01-decentralized-public-transportation-2.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 2: From carrefour Aziz (Point A) to Ouad Naga (Point D) with two transits at carrefour Madrid (Point B) and Toujounine (Point C)</b></figcaption>
</figure>

<figure>
<img src="/images/blog/2023-02-01-decentralized-public-transportation-3.jpeg" style="width:100%" />
<figcaption align="center"><b>Figure 3: Transit station in Toujounine: nearly every car serves as a shared taxi.</b></figcaption>
</figure>

<h2 id="achieving-the-system-goals">Achieving the System Goals</h2>

<ol>
  <li>Low Cost: The price is low and affordable by locals.</li>
  <li>Low Latency Overhead: Finding shared taxis is amazingly fast, as there are many taxis with two more places in each taxi. We rarely wait more than 3 mins.</li>
  <li>Price Flexibility: There is no listed price. The driver can tell the passengers if this trip would not use the conventional price (in the local language, of course).</li>
  <li>Traffic Flexibility: If a driver finds out that another route is more profitable than the route they<sup id="fnref:2" role="doc-noteref"><a href="#fn:2" class="footnote" rel="footnote">2</a></sup> are operating now, they can change to operate in the more profitable one immediately.</li>
  <li>Decentralization: The local government or companies do not manage or control public transportation. It is decentralized and operated by each shared taxi driver.</li>
</ol>

<h2 id="future-work">Future work</h2>

<p>It is unclear how to provide safety to passengers, as nobody wears a safety belt. Even if they want (as we do), a shared taxi needs more safety belts for six passengers, if it has any. Furthermore, it needs to be clarified how to apply this efficient and <strong>environmentally friendly</strong> transportation system in developed countries.</p>

<h2 id="acknowledgments">Acknowledgments</h2>

<p>This research was not supported by any grant or fund.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:1" role="doc-endnote">
      <p>“We” use “we” as a convention in academic writing, even though this article has only one author and I travel alone in this trip. <a href="#fnref:1" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
    <li id="fn:2" role="doc-endnote">
      <p>“We” use “they” as a convention in academic writing, but I have not seen a single female taxi driver in Nouakchott. <a href="#fnref:2" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Haoqian</name><email>me@haoqian.info</email></author><category term="travel" /><category term="Africa" /><category term="research" /><summary type="html"><![CDATA[In conventional wisdom, a local government or companies control and manage its city public transportation in centralized or federated fashions. In this paper, we1 introduce a decentralized public system without centralized control. This public transportation system achieves low cost and low latency overhead with price and traffic flexibility that can adapt to the complex and dynamic operating cost and traffic flow. Those features ensure that such a system is practical, efficient, and optimal to be deployed in a city of low-income developing countries. We demonstrate that it is possible to “design” a suitable city-wised public transportation system without any system designer. “We” use “we” as a convention in academic writing, even though this article has only one author and I travel alone in this trip. &#8617;]]></summary></entry></feed>