Tenbin: A decentralized page ranking and discovery system via the Pythagorean Market Maker

Calvin Lin
cl@tenbin.finance
Edward Chen
rchen@tenbin.finance

Introduction

Content discovery on the Internet has come to rely almost exclusively on centralized algorithms from mega technology platforms. While these algorithms are efficient at capturing attention and optimizing engagement, they rely heavily on users’ personal data to steer behaviour. As AI inference power grows exponentially, information asymmetry between users and platforms widens: the system knows more about you, while you know very little about how the system is optimizing around you. As a result, users become increasingly vulnerable to manipulation and behavioral degradation, a trend likely to intensify as humanity continues to progress into the AGI era.

What we need is a simple, transparent, and permissionless way to rank and discover goods and services without centralized moderation. We propose such a page ranking mechanism via the Pythagorean market maker, which uses unique Cartesian coordinates to represent each page's upvote and downvote count. With fiat stakes involved in voting, manipulation becomes costly and rankings are therefore more credible. More importantly, this approach creates a new discovery system governed by simple and elegant mathematics, helping users to discover pages that are similar and different across popularity and quality via universal and rigorous Euclidean geometry.

Page Ranking via the Pythagorean Market Maker

The core pillar of the Tenbin protocol is that every listed web page will have an upvote and downvote count as positive integers (x,y)(x, y), where xx and yy are respectively the count of downvotes and upvotes placed towards a page, satisfying the following cost function denominated in USDC.

C=x2+y2,x,yZ+C = \sqrt{x^2 + y^2}, \quad x, y \in \mathbb{Z}^+

Here, CC is equivalent to the page value, representing the total USDC placed towards a page. Because the cost function is equivalent to the Pythagorean theorem, we call this market maker the Pythagorean market maker (PMM). This function is based on the two-dimensional spherical market scoring rule [1][2][3][4], where the marginal price of downvotes and upvotes (px,py)(p_x, p_y) are path-independent and monotonic. They always sit on the unit circle and can be computed by taking the partial derivatives such that:

py=yC,px=xCp_y = \frac{y}{C}, \quad p_x = \frac{x}{C}
px,py(0,1)p_x, p_y \in (0, 1)

The page score SS for a page is defined as the square of the marginal price of upvotes:

S=py2=y2C2,S(0%,100%)S = p_y^2 = \frac{y^2}{C^2}, \quad S \in (0\%, 100\%)

Both the page score and page value are essential in ranking pages. A higher page score implies that the page is of higher quality or more reputable, and a higher page value indicates that the page is more popular, and that its score is more credible as it's backed by greater USDC liquidity. The greater the page value, the costlier it is to manipulate the page score and the score is argubly more reliable compared to many centralized ranking algorithms and/or rating systems.

Page Discovery

With the help of the Pythagorean market maker, we then introduce a mathematically intuitive discovery system where each page's geometric position determines its connections to other pages. Importantly, each page's position on the Cartesian plane is unique, meaning that no other page can occupy the same position. When a page P1P_1 is selected at position (x1,y1)(x_1, y_1), the system identifies up to eight adjacent pages P2P_2 through P9P_9 that are geometrically related to P1P_1, forming a 3×3 grid visualization.

P6P_6
P2P_2
P8P_8
P4P_4
P1P_1
P5P_5
P9P_9
P3P_3
P7P_7

The connection rules for each adjacent page are defined as follows:

P2P_2 (Top): Connected when there exists a page with the same downvotes x1x_1 but higher upvotes y>y1y > y_1, selecting the one with minimum Δy=yy1\Delta y = y - y_1.

P3P_3 (Bottom): Connected when there exists a page with the same downvotes x1x_1 but lower upvotes y<y1y < y_1, selecting the one with minimum Δy=y1y\Delta y = y_1 - y.

P4P_4 (Left): Connected when there exists a page with the same upvotes y1y_1 but lower downvotes x<x1x < x_1, selecting the one with minimum Δx=x1x\Delta x = x_1 - x.

P5P_5 (Right): Connected when there exists a page with the same upvotes y1y_1 but higher downvotes x>x1x > x_1, selecting the one with minimum Δx=xx1\Delta x = x - x_1.

P6P_6 (Top-Left): Connected when there exists a page with identical page value but higher page score at position (x,y)(x', y'). If multiple pages satisfy this condition, select the one with minimum distance (xx1)2+(yy1)2\sqrt{(x' - x_1)^2 + (y' - y_1)^2} between the lattice points.

P7P_7 (Bottom-Right): Connected when there exists a page with identical page value but lower page score at position (x,y)(x', y'). If multiple pages satisfy this condition, select the one with minimum distance (xx1)2+(yy1)2\sqrt{(x' - x_1)^2 + (y' - y_1)^2} between the lattice points.

P8P_8 (Top-Right): Connected when there exists a page with identical page score but higher page value at position (x,y)(x', y'). If multiple pages satisfy this condition, select the one with minimum distance (xx1)2+(yy1)2\sqrt{(x' - x_1)^2 + (y' - y_1)^2} between the lattice points.

P9P_9 (Bottom-Left): Connected when there exists a page with identical page score but lower page value at position (x,y)(x', y'). If multiple pages satisfy this condition, select the one with minimum distance (xx1)2+(yy1)2\sqrt{(x' - x_1)^2 + (y' - y_1)^2} between the lattice points.

Consider P1P_1 at position (4,6)(4, 6) with page value C=42+62=52C = \sqrt{4^2 + 6^2} = \sqrt{52}. An example of the connected pages P2P_2 through P9P_9 would be positioned as follows:

x (downvotes)y (upvotes)P2P3P4P5P7 (6,4)P8 (6,9)P9 (2,3)

It's worth noting that P6P_6 or P7P_7 may not exist for a given P1P_1. By the Sum of Two Squares Theorem, an integer NN can be written as N=a2+b2N=a^2+b^2 if and only if every prime p3 (mod 4)p\equiv 3\ (\mathrm{mod}\ 4) appears with even exponent in the factorization of NN. When that representation is unique up to ordering and sign (i.e., only (x1,y1)(x_1,y_1) and its symmetric counterpart (y1,x1)(y_1,x_1) exist), one of P6P_6 or P7P_7 may be missing. For P1=(4,6)P_1=(4,6), P7=(6,4)P_7=(6,4) exists while a top-left counterpart does not. Also, while P8P_8 is often trivial by simple scaling along the same page score line, P9P_9 may not always exist.

Intuitively, this system identifies page similarities and differences using simple and stake-backed Euclidean distance for page position, page score and page value, creating a new method of page discovery.

  • P2P_2 to P5P_5 are the most similar pages to P1P_1 in terms of page value and score, helping users to discover goods and services that have the similar popularity and quality.
  • P6P_6 and P7P_7 are identical to P1P_1 in terms of page value, but with different page score, helping users to discover goods and services that have the same popularity but different quality.
  • P8P_8 and P9P_9 are identical to P1P_1 in terms of page score, but with different page value and position, helping users to discover goods and services that have the same quality but different popularity.

Transactions and Fees

Transactions under the PMM are straightforward. Voters can either list a new page at an unoccupied (x,y)(x^*, y^*) by spending x2+y2\sqrt{x^{*2}+y^{*2}} in USDC, or move an existing page from (x,y)(x,y) to an unoccupied (x,y)(x', y) or (x,y)(x, y') by spending or receiving ΔC\Delta C in USDC.

ΔC={x2+y2,for listing a new pageC(x,y)C(x,y) or C(x,y)C(x,y),for trading votes\Delta C=\begin{cases}\sqrt{x^{*2}+y^{*2}}, & \text{for listing a new page} \\ C(x',y)-C(x,y) \text{ or } C(x,y')-C(x,y), & \text{for trading votes}\end{cases}

With a 1% protocol fee (f=0.01f=0.01), the actual settlement amount is:

Cost={ΔC(1+f),for buying / page listing (ΔC>0)ΔC(1f),for selling (ΔC<0)\mathrm{Cost}=\begin{cases}\Delta C(1+f), & \text{for buying / page listing }(\Delta C>0) \\ \Delta C(1-f), & \text{for selling }(\Delta C<0)\end{cases}

Agentic Sociology

Based on the discussion above, this novel geometric system creates natural incentives for pages to optimize their positions. Pages may strategically position themselves to become adjacent to trending, complimentary or substitute goods and services to maximize their revenue exposure. While this process seems to increase the workload for a human web merchant compared to traditional systems, they become trivial and more fascinating once AI agents take over these tasks. For agents, they need to continuously evolve and simulate likely vote flows before voting, with the goal of maximizing their visibility (and perhaps minimizing their rival's).

In light of this, we may see different page clusters form and evolve over time as humans and agents coordinate and compete. With continuous fiat inflation, lower value regions are likely to become increasingly crowded as temporary parking spots for new or mediocre pages. This creates a continuously expanding network under Euclidean geometry. Because the network can expand indefinitely, the system is resilient to major currency crisis such as the hypothetical case that the US dollar experience hyperinflation.

Incentives

Tenbin uses two tokens with separate roles: USDC is used for page listing and vote changes, while Tenbinium (TBN) is emitted as the reward token for stakers.

TBN emissions are fixed at 1,000,000 tokens per year over 21 years, with a total cap of 21,000,000 tokens. Emissions start on first stake, and rewards are minted when users claim.

Rewards are distributed through cost basis accrual. When a trader buys votes and moves a page from position (x,y)(x,y) to (x,y)(x',y'), their staking basis increases by the buy-side cost basis change ΔC=CC\Delta C = C' - C, where C=x2+y2C=\sqrt{x^2+y^2} and C=x2+y2C'=\sqrt{x'^2+y'^2}. As a result, traders who commit more USDC through sustained participation accumulate more reward weight over time.

At the protocol level, staking basis is tracked separately for upvotes and downvotes. On buys, basis is added to the corresponding side. On sells, basis is reduced pro rata to the vote count reduction on that side.

Team

The Tenbin protocol and the Pythagorean market maker mechanisms are crafted by Calvin Lin and Edward Chen.

Calvin LinX

Calvin is a product architect building dApps that reshape existing systems with novel market mechanisms. He has extensive knowledge of AMM mechanism designs, including different market scoring rules for prediction markets, perpetual options and other derivatives using CPAMM liquidity positions, and dynamic fees to account for changes in volatility. Previously, Calvin was an equity portfolio manager at a large Asia crossover fund, and a consultant for high-profile M&As. Calvin holds a B.Com.(Hons) in Finance and Economics from the University of Melbourne.

Edward ChenX

Edward is a quantitative engineer with deep expertise in AI agent systems and DeFi protocols. He built autonomous trading agents for Circuit (Selv Labs) and designed protocol infrastructure for Autonity's L1 blockchain. Previously, Edward was a quantitative researcher developing sentiment-driven algorithmic trading strategies across crypto derivatives, and emerging market and US equities. Edward holds a B.A.(Hons) in Physics from the University of Cambridge.

References

[1] T. B. Roby, "Belief states and the uses of evidence," Behavioral Science, vol. 10, no. 3, pp. 255-270, 1965.

[2] I. J. Good, "Comments on 'Measuring information and uncertainty' (by R. J. Buehler)," Foundations of Statistical Inference, pp. 337-339, 1971.

[3] R. Hanson, "Logarithmic market scoring rules for modular combinatorial information aggregation," Journal of Prediction Markets, vol. 1, no. 1, pp. 3-15, 2003.

[4] Y. Chen and D. M. Pennock, "A utility framework for bounded-loss market makers," Proceedings of the 23rd Conference on Uncertainty in Artificial Intelligence, pp. 49-56, 2007.