Advanced maths

Hilbert symbol and quaternion ramification calculator over the rationals

List the local places where a rational quaternion algebra fails to split.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

List the local places where a rational quaternion algebra fails to split. The calculation reduces both parameters to square classes, evaluates Hilbert symbols at all relevant finite primes and at the real place, and checks the product reciprocity law before reporting ramification.

THE FORMULAFor odd p, a=p^αu,b=p^βv: (a,b)p=(−1)^(αβ(p−1)/2)(u/p)^β(v/p)^α. At2 use exponent (u−1)(v−1)/4+α(v²−1)/8+β(u²−1)/8. At∞ the sign is−1 exactly when a,b<0.

A worked example

For (−1,−1), every odd-prime symbol is+1. The symbol at2 is−1 and the real-place symbol is−1. The ramified places are{2,∞}; their product is+1 and the finite reduced discriminant is2.

Good to know

Nonzero rational a,b; associated integer square classes |numerator×denominator|≤10^12. Exact factorization and modular symbols at2, relevant odd primes and infinity. Not an integral quaternion order/maximal-order calculator.

Parameters describe a rational algebra

The quaternion algebra (a,b) has generators i,j satisfying i²=a, j²=b and ij=−ji. Multiplying either parameter by a nonzero rational square gives an isomorphic rational algebra, so square-class reduction is legitimate.

Both parameters must be nonzero. This calculation concerns the rational algebra, rather than a selected lattice or integral order inside it. Different orders can carry different arithmetic data even when their ambient rational algebra is the same.

Hilbert symbol and quaternion ramification calculator over the rationals worked exampleRamification of (−1,−1) over Q−12+13+1odd p−1∞Product: (−1)(+1)…(−1) = +1Finite discriminant = 2; ramified places = {2,∞}
Scroll across to see the full diagram.
For (−1,−1), every odd-prime symbol is+1. The symbol at2 is−1 and the real-place symbol is−1. The ramified places are{2,∞}; their product is+1 and the finite reduced discriminant is2.

Compare this with the Jacobi symbol calculator with reciprocity steps. A Jacobi symbol is a residue sign, not the local splitting invariant at every rational place.

A local symbol is a splitting test

At a place v, the Hilbert symbol is+1 when the quaternion algebra splits over Qv and−1 when it is a division algebra there. Negative places are called ramified.

For nonzero parameters it is also related to solvability of the conic ax²+by²=z² in the local field. This local algebra meaning should not be confused with a Jacobi symbol, which is only one ingredient in the odd-prime formula.

Why only finitely many primes are checked

After removing square factors, odd primes not dividing either parameter have valuation exponents zero and Hilbert symbol+1. Consequently it suffices to inspect prime divisors of the two square-class integers, together with two.

The real place is checked separately. Omitting either the dyadic prime or infinity can change the ramification list and violate reciprocity, so they are explicit entries even when their symbols happen to be positive.

The prime two has its own formula

For odd p the residue units contribute ordinary Legendre symbols together with a valuation sign. At p=2, units modulo eight control the answer, and the odd-prime formula cannot simply be reused.

Writing a=2^αu and b=2^βv with odd u,v gives the displayed integer exponent modulo two. Negative odd units work with the same exact formula. Rational denominators have already been absorbed into a square-equivalent integer representative.

Hamilton quaternions as a worked example

For a=b=−1, the odd-prime formulas give+1. At two, the exponent is one modulo two, and at infinity both parameters are negative. Thus precisely two and infinity are ramified.

The finite reduced discriminant is the product of finite ramified primes, namely two. Infinity belongs in the ramification list but not in this integer product. This example therefore separates the place set from the finite discriminant.

Reciprocity as a necessary check

The product of Hilbert symbols over all rational places equals+1. Equivalently, the number of ramified places is even, counting the real place if it is ramified.

The implementation checks this identity and refuses an inconsistent result. Reciprocity is a valuable error detector but is not sufficient by itself to establish every individual sign: two wrong local signs could still multiply to the correct product.

Exact arithmetic and interpretation

Fixtures include (−1,−1), (2,3), (−1,3) and (5,7), with symmetry and rational-square invariance checks across a bounded parameter grid. The research record distinguishes these checks from an unavailable live Sage/PARI cross-run.

An empty ramification set means the rational algebra is split. A nonempty set identifies a division quaternion algebra over Q. This does not compute a preferred matrix isomorphism, a maximal order, an ideal-class set or an integral norm representation.

A few questions, answered

Why is infinity listed as a place?

Q has a real completion, and a quaternion algebra can ramify there when both parameters are negative.

Does the finite discriminant include infinity?

No. It is the product of finite ramified primes only.

Can a rational square factor change the answer?

No. Multiplying either nonzero parameter by a rational square leaves its square class and local Hilbert symbols unchanged.

Does reciprocity alone prove the signs?

No. It checks their product; an even number of sign errors could escape that check.

Find your calculator

Start typing to explore the library.