Documentation

HexNumberFieldMathlib.Radical

The root solver receives exactly X^n - a.

Selection succeeds and returns the principal complex root.

theorem Hex.AlgebraicNumber.Radical.fast?_value (a : AlgebraicNumber) {n : ℕ} (hn : 1 < n) (ha : a.toComplex ≠ 0) {out : AlgebraicRoot} (h : fast? a (polynomial a n).roots.toArray = some out) :

The lazy branch selector returns the same principal value as the exact reference.

@[simp]

The executable nth root agrees with Mathlib's principal complex power.

@[simp]
theorem Hex.AlgebraicNumber.nthRoot_pow (a : AlgebraicNumber) {n : ℕ} (hn : n ≠ 0) :
a.nthRoot n ^ n = a

Every positive-index radical is a root of the expected equation.

@[simp]

The executable square root uses Mathlib's principal branch.

Conjugation commutes with the principal radical away from the negative-real branch cut.

A decidable branch-cut condition for conjugating principal radicals.