Learn / Math / Extension Fields & Towers
21. Extension Fields & Towers
Extension Fields · Lesson 22 of 26 · 10:50
How to build a bigger field that fixes a missing square root by inventing a new symbol, how to add, multiply, and divide in it, and how stacking these extensions produces the exact tower that real pairing-friendly curves like BN254 and BLS12-381 compute on.

Last lesson ended at a wall: 22 has no square root mod 1313 — not one. This lesson builds a bigger field that fixes exactly that, the same way mathematicians once fixed the missing square root of −1-1. One small example carries the whole lesson: the prime 1313, extended twice.

The missing root

Mathematicians have a standard move for a missing root: invent it, and declare one rule about how it behaves.

the missing root Does 2 have a square root mod 13? STEP 1 — list the squares squares mod 13: 1, 3, 4, 9, 10, 12 2 is not in the list STEP 2 — invent one add a new symbol u and declare u2 = 2 STEP 3 — the new numbers have two parts every new number looks like a + b·u, where a and b are numbers from 0 to 12 13 × 13 = 169 numbers in all u × u = 2, so u is a square root of 2 ✓ IF A ROOT IS MISSING, ADD IT This is the same trick that builds the complex numbers from the real numbers.
Fig. 1 — 2 is not among the squares mod 13, so a new symbol u is invented with u² = 2, giving 13 × 13 = 169 numbers of the form a + b·u.
An extension field

u2=2,every element is a+bu for a,b∈{0,…,12}u^2 = 2, \qquad \text{every element is } a + bu \text{ for } a, b \in \{0, \ldots, 12\}

uu isn’t any of the old numbers — it’s new, defined purely by this one rule. With 1313 choices for aa and 1313 for bb, the extension has 169169 elements, including the original 1313 numbers as the ones where b=0b = 0. This is exactly how the complex numbers are built: the reals have no square root of −1-1, so ii is invented with i2=−1i^2 = -1.

Add and multiply

The new numbers only matter if arithmetic still works. Both operations reduce to ordinary algebra plus one substitution.

add and multiply How do the new numbers add and multiply? STEP 1 — add part by part (3 + 5u) + (4 + 9u) = 7 + 14u = 7 + 1u 14 − 13 = 1 STEP 2 — multiply, then replace u2 (3 + u)(2 + 5u) = 6 + 15u + 2u + 5u2 replace u2 with 2: 6 + 17u + 10 = 16 + 17u STEP 3 — reduce mod 13 16 = 3 and 17 = 4, so the answer is 3 + 4u (3 + u)(2 + 5u) = 3 + 4u constants: 6 + 10 = 16, and 16 − 13 = 3 ✓ ORDINARY ALGEBRA, PLUS u2 = 2 The answer always has just two parts: a + b·u.
Fig. 2 — adding (3 + 5u) + (4 + 9u) part by part, and multiplying (3 + u)(2 + 5u) by expanding normally and replacing u² with 2 wherever it appears.
Arithmetic in the extension

(a+bu)⋅(c+du)=(ac+2bd)+(ad+bc)u(a + bu) \cdot (c + du) = (ac + 2bd) + (ad + bc)u

Addition combines the plain parts and the uu parts separately. Multiplication expands the product normally, then replaces every u2u^2 with 22 — so a u2u^2 term never survives, and the result always has exactly the same two-part shape, a+bua + bu.

Divide

A field needs division too. The trick is the same one used for complex numbers: multiply by the conjugate to clear the uu term.

divide What is 1 ÷ (3 + u)? (a + b·u)(a − b·u) = a2 − 2b2, a plain number STEP 1 — multiply by the flip (3 + u)(3 − u) = 9 − u2 = 9 − 2 = 7 STEP 2 — divide by 7 mod 13 7 × 2 = 14 = 1, so 1 ÷ 7 = 2 STEP 3 — put it together 1 ÷ (3 + u) = 2 × (3 − u) = 6 − 2u = 6 + 11u (3 + u)(6 + 11u) = 18 + 39u + 22 = 40 + 39u = 1 ✓ 40 = 3 × 13 + 1 and 39 = 3 × 13 the bottom is never 0: a2 = 2b2 would make 2 a square in F(13), and it is not A FLIP TURNS DIVISION INTO MULTIPLICATION The flipped number a − b·u is called the conjugate.
Fig. 3 — finding 1 ÷ (3 + u) by multiplying top and bottom by the conjugate 3 − u, which clears u from the denominator and leaves an ordinary division mod 13.
The conjugate trick

(a+bu)(a−bu)=a2−2b2(a + bu)(a - bu) = a^2 - 2b^2

Multiplying by the conjugate a−bua - bu cancels the middle terms, leaving a plain number with no uu in it — which can be inverted with ordinary modular division. This denominator is never 00: that would require a2=2b2a^2 = 2b^2, making 22 a square mod 1313, which it isn’t (unless a=b=0a = b = 0, which is just the number 00 itself).

Building a tower

Once F(132)F(13^2) exists, the same move can be applied again — if there’s a root still missing from it.

building a tower Can we extend again, on top of F(132)? STEP 1 — is u a square? F(132) has 168 nonzero numbers, so the test is u to the power 168 ÷ 2 = 84 STEP 2 — compute u84 = (u2)42 = 242 = 26 = 64 = 12 = −1 ✗ not a square STEP 3 — add another symbol add v with v2 = u, so v4 = u2 = 2 F(13) → F(132) → F(134): 13, 169, 28561 numbers 134 = 169 × 169 = 28561 ✓ EACH FLOOR STANDS ON THE ONE BELOW A stack of fields like this is called a tower.
Fig. 4 — testing whether u itself is a square in F(13²); it isn't, so a second symbol v with v² = u is added, producing a three-floor tower.
A second extension

v2=u  ⟹  v4=u2=2v^2 = u \implies v^4 = u^2 = 2

The square test from the last lesson still applies, just with 168168 (the nonzero count of F(132)F(13^2)) playing the role of p−1p - 1. Testing shows uu isn’t a square in F(132)F(13^2), so a new symbol vv is added with v2=uv^2 = u — making vv a fourth root of 22, and F(134)F(13^4) a tower three floors tall: 1313, then 169169, then 28,56128{,}561 elements.

Towers in practice

This toy tower mirrors exactly what real pairing-friendly curves do, just with a 254-bit or 381-bit prime instead of 1313.

towers in practice What tower do real pairing curves use? F(p12) 12 numbers × 2 F(p6) 6 numbers × 3 F(p2) 2 numbers × 2 F(p) 1 number 2 × 3 × 2 = 12 BN254: p has 254 bits. BLS12-381: p has 381 bits. G2 points have coordinates in F(p2). Pairing results live in F(p12). BIG FIELDS FROM SMALL STEPS Pairings on these curves compute on this tower.
Fig. 5 — the tower a pairing-friendly curve computes on: F(p) extended by a square root to F(p²), a cube root to F(p⁶), and another square root to F(p¹²), where pairing results live.
The degree-12 tower

F(p)→F(p2)→F(p6)→F(p12),2×3×2=12F(p) \to F(p^2) \to F(p^6) \to F(p^{12}), \qquad 2 \times 3 \times 2 = 12

A cubic step works the same way as a quadratic one — it adds a cube root instead of a square root, the same idea of a missing root supplied by hand. On BN254, pp has 254254 bits; on BLS12-381, pp has 381381 bits. G2G_2 points have coordinates in F(p2)F(p^2), and a pairing’s result lives in F(p12)F(p^{12}) — never computed in one jump, but climbed one small extension at a time.

Where this shows up

Three ideas, each building on the last: invent a missing root, keep ordinary arithmetic working in the bigger field, and stack extensions into a tower.

where this shows up THE MISSING ROOT add a symbol u with u2 = 2 A bigger field. THE ARITHMETIC add part by part, multiply and replace u2, divide by the flip Still a field. TOWERS stack extensions of degree 2 and 3 Pairings live here. SAME RULES, BIGGER FIELD Next up: linear algebra over finite fields.
Fig. 6 — the missing root, the arithmetic, and towers, and what each one is for.

Adding uu with u2=2u^2 = 2 gives a bigger field that still obeys every field rule — addition, multiplication, and division, by the same conjugate trick used for complex numbers. Stacking extensions of degree 22 and 33 is exactly where real pairings live. Everything so far has worked with one number at a time; the next lesson moves to many numbers at once.

Key takeaways
  • When a root is missing from a field, it can be invented: adding a symbol uu with u2=2u^2 = 2 builds a bigger field of 13×13=16913 \times 13 = 169 elements, each of the form a+bua + bu.
  • Addition combines parts separately, and multiplication is ordinary algebra with every u2u^2 replaced by 22 — the result always keeps the same two-part shape.
  • Division works by multiplying by the conjugate a−bua - bu, which clears uu from the denominator and leaves an ordinary number to invert; the denominator is never 00 because 22 isn’t a square mod 1313.
  • Extensions can be stacked: testing whether uu is a square in F(132)F(13^2) and finding it isn’t leads to a second symbol vv with v2=uv^2 = u, producing a three-floor tower.
  • Real pairing-friendly curves compute on exactly this kind of tower — F(p)→F(p2)→F(p6)→F(p12)F(p) \to F(p^2) \to F(p^6) \to F(p^{12}) — with G2G_2 coordinates in F(p2)F(p^2) and pairing results in F(p12)F(p^{12}).