A characteristic-zero field on which the Hilbert symbol is bilinear and nondegenerate. The two structural axioms encode: (i) if both $(a,c)_F$ and $(b,c)_F$ equal $-1$ then $(ab,c)_F = 1$ (used to derive bilinearity); (ii) for every non-square unit $c$ there exists $b$ with $(b,c)_F = -1$ (nondegeneracy of the Hilbert pairing).
- isSolvable_mul_of_both_neg (a b c : Fˣ) : hilbertSymbol F a c = -1 → hilbertSymbol F b c = -1 → hilbertSymbol F (a * b) c = 1
Instances
Multiplicativity of padicUnitLegendre: $\left(\frac{u_1 u_2}{p}\right) = \left(\frac{u_1}{p}\right)\left(\frac{u_2}{p}\right)$.
padicUnitLegendre always takes values in $\{\pm 1\}$ for an odd prime, since the
quadratic character of a nonzero element of $\mathbb{F}_p$ is $\pm 1$.
Every nonzero $p$-adic number can be written as $p^\alpha u$ with $\alpha \in \mathbb{Z}$
and $u \in \mathbb{Z}_p^\times$, i.e. $a = $ padicPowerUnitZ p α u.
Algebraic identity expressing bilinearity of the closed-form Hilbert formula in the first argument, with all exponents written as natural-number absolute values and using the square-equal-to-one hypotheses on the Legendre values.
If $v$ is a square in $\mathbb{Z}_p$ and $\gamma$ has even absolute value, then $p^\gamma v$ is a square in $\mathbb{Q}_p$.
Bridge: existence of a primitive mod-$8$ solution for $z^2 = ux^2 + vy^2$ over $\mathbb{Z}_2$ is equivalent to the decidable predicate on the mod-$8$ reductions.
Bridge: existence of a primitive mod-$8$ solution for $z^2 = 2u x^2 + v y^2$ over $\mathbb{Z}_2$ is equivalent to the decidable predicate on the mod-$8$ reductions.
Glue lemma: given that the Hilbert symbol equals $1$ iff there is a primitive solution, that primitive solvability is equivalent to a decidable mod-$8$ predicate, and the formula is $\pm 1$ matching the predicate, conclude that the Hilbert symbol equals the formula.
Theorem 10.9, case $(\alpha,\beta) = (0,0)$: the $2$-adic Hilbert symbol on unit inputs $(u, v)$ equals the closed-form formula at $(0,0)$.
Theorem 10.9, case $(\alpha,\beta) = (1,0)$: $(2u, v)_{\mathbb{Q}_2}$ equals the closed-form formula at $(1, 0)$.
Symmetry of the Hilbert symbol over $\mathbb{Q}_2$: $(a, b)_{\mathbb{Q}_2} = (b, a)_{\mathbb{Q}_2}$ (local instance of the general symmetry, swapping $(x,y)$).
Theorem 10.9, case $(\alpha,\beta) = (0,1)$: $(u, 2v)_{\mathbb{Q}_2}$ equals the closed-form formula at $(0, 1)$, obtained from the $(1,0)$ case by symmetry.
Multiplicativity of the mod-$8$ reduction on units:
toZModPow_unit 3 (u * v) = toZModPow_unit 3 u * toZModPow_unit 3 v.
Theorem 10.9, case $(\alpha,\beta) = (1,1)$: $(2u, 2v)_{\mathbb{Q}_2}$ equals the closed-form formula at $(1, 1)$. This is the remaining case completing Theorem 10.9.
Theorem 10.9, case $(\alpha,\beta) = (1,1)$: wrapper around
padic_hilbert_bilinear_p2_two_two_case matching the naming convention of the other cases.
Theorem 10.9 in unified form: for $\alpha, \beta \in \{0,1\}$ and units $u, v \in \mathbb{Z}_2^\times$, the $2$-adic Hilbert symbol $(2^\alpha u, 2^\beta v)_{\mathbb{Q}_2}$ equals the closed-form formula at $(\alpha, \beta)$.
Theorem 10.9 in fully general form: for $\alpha, \beta \in \mathbb{Z}$ and units $u, v \in \mathbb{Z}_2^\times$, $(2^\alpha u, 2^\beta v)_{\mathbb{Q}_2}$ equals the closed-form formula at $(\alpha \bmod 2, \beta \bmod 2)$, using that the symbol is unchanged by even shifts in the valuation.
Half of bilinearity over $\mathbb{Q}_2$: if $(a, c)_{\mathbb{Q}_2} = (b, c)_{\mathbb{Q}_2} = -1$,
then $(ab, c)_{\mathbb{Q}_2} = 1$. Reduced via the $p$-adic decomposition and the closed-form
formula to the verified bilinearity lemma formula_mul_left_core.
Half of bilinearity over $\mathbb{Q}_p$ for arbitrary primes $p$: if
$(a,c)_{\mathbb{Q}_p} = (b,c)_{\mathbb{Q}_p} = -1$ then $(ab,c)_{\mathbb{Q}_p} = 1$.
The case $p = 2$ is padic_isSolvable_mul_of_both_neg_p2; the odd case uses the closed-form
formula together with multiplicativity of the Legendre symbol.
Decidability of hasPrimSolMod8_one_loc via finite search over ZMod 8.
Decidability of hasPrimSolMod8_two_loc via finite search over ZMod 8.
Decidable witness predicate for $2$-adic nondegeneracy: a unit $w_0 \in (\mathbb{Z}/8)^\times$ has either a unit $v_0$ with $z^2 = v_0 x^2 + w_0 y^2$ insolvable mod $8$, or a unit $v_0$ with $z^2 = 2v_0 x^2 + w_0 y^2$ insolvable mod $8$.
Instances For
Decidability of nondeg_unit_combined from decidability of each disjunct.
Brute-force verification: every non-identity unit $w_0 \in (\mathbb{Z}/8)^\times$ admits a
witness of nondegeneracy in the nondeg_unit_combined sense, used in the $p = 2$ case of
the nondegeneracy axiom.
Decidability of nondeg_two_prop via finite search over $(\mathbb{Z}/8)^\times$.
Brute-force verification: every unit $w_0 \in (\mathbb{Z}/8)^\times$ satisfies
nondeg_two_prop. Used for nondegeneracy when $c = 2^{\text{odd}} w$.
The underlying element of toZMod8Unit w is PadicInt.toZModPow 3 (↑w).
Bridge: primitive mod-$8$ solvability of $z^2 = ux^2 + vy^2$ over $\mathbb{Z}_2$ is
equivalent to the local decidable predicate on toZMod8Unit u and toZMod8Unit v.
Bridge: primitive mod-$8$ solvability of $z^2 = 2u x^2 + v y^2$ over $\mathbb{Z}_2$ is
equivalent to the local decidable predicate on toZMod8Unit u and toZMod8Unit v.
Surjectivity of toZMod8Unit: every unit in $\mathbb{Z}/8$ lifts to some unit in
$\mathbb{Z}_2$.
The underlying $\mathbb{Q}_2$-value of padicUnit_one w equals the image of $w$ under
unitZpToQp, i.e. the embedding $\mathbb{Z}_2^\times \hookrightarrow \mathbb{Q}_2^\times$.
Unit-level version of padicUnit_one_eq_unitZpToQp: equality in $\mathbb{Q}_2^\times$.
The underlying $\mathbb{Q}_2$-value of padicUnit_two w factors as $2 \cdot w$.
Unit-level version of padicUnit_two_eq_qpPrime_mul: equality in $\mathbb{Q}_2^\times$.
Nondegeneracy of the $2$-adic Hilbert pairing: for every non-square unit
$c \in \mathbb{Q}_2^\times$ there exists $b \in \mathbb{Q}_2^\times$ with
$(b, c)_{\mathbb{Q}_2} = -1$. Proven by lifting an obstruction from the mod-$8$ witnesses
nondeg_mod8_unit_witness/nondeg_mod8_two_witness.
Nondegeneracy of the $p$-adic Hilbert pairing for every prime $p$. For odd $p$, uses a
quadratic non-residue $u_{\text{nr}}$ and the closed-form formula; for $p = 2$ uses
padic_nondegenerate_p2.
The $p$-adic field $\mathbb{Q}_p$ is a HilbertBilinearField: the Hilbert symbol
$(-,-)_{\mathbb{Q}_p}$ is bilinear and nondegenerate.
If $a > 0$ is real, then $z^2 = a x^2 + b y^2$ is solvable with $(x, y, z) = (1/\sqrt{a}, 0, 1)$, so the real Hilbert symbol $(a, b)_{\mathbb{R}} = 1$ for any $b$.
If $(a, c)_{\mathbb{R}} = -1$ then $a < 0$ (contrapositive of real_pos_isSolvable).
If $(a, c)_{\mathbb{R}} = -1$ then $c < 0$ (symmetric counterpart of the previous lemma).
The real field $\mathbb{R}$ is a HilbertBilinearField: bilinearity holds because two
negative reals multiply to a positive one, and nondegeneracy holds because $-1$ pairs nontrivially
with itself.
Wrapper exposing HilbertBilinearField.isSolvable_mul_of_both_neg in the
hilbertSymbol namespace.
Symmetry of the Hilbert symbol over any field: $(a, b)_F = (b, a)_F$ (swap $(x, y)$ in the defining equation $z^2 = a x^2 + b y^2$).
Bilinearity in the left argument: $(ab, c)_F = (a, c)_F \cdot (b, c)_F$ for any
HilbertBilinearField $F$.
Bilinearity in the right argument: $(a, bc)_F = (a, b)_F \cdot (a, c)_F$, derived from
symmetry and mul_left.
Nondegeneracy axiom of HilbertBilinearField, exposed in the hilbertSymbol namespace:
every non-square unit pairs to $-1$ with some element.