Powers and roots¶
Integer powers¶
Integer powers \(x^n\), \(n \in \mathbb Z\), are Definition X-4 of the carrier: repeated multiplication for \(n \ge 1\), the inverse's powers for \(n \le -1\), and \(x^0 = 1\) only for finite nonzero \(x\) (\(0^0 = \infty^0 = I\)). The literal kind evaluates them on rational literals where its power laws determine the value (the kernel's L5: \(a \ne 0\), or \(a = 0\) and \(n > 0\)).
General powers¶
Definition W-1 (general power). For \(z\) and \(w\) in \(\hat S\), with \(w\) not an integer:
| \(z\) | \(w\) finite, \(\mathrm{Re}\,w > 0\) | \(\mathrm{Re}\,w < 0\) | \(\mathrm{Re}\,w = 0\), \(w \ne 0\) |
|---|---|---|---|
| finite, \(\ne 0\) | \(\exp(w \log z)\) | \(\exp(w \log z)\) | \(\exp(w \log z)\) |
| \(0\) | \(0\) | \(C_\infty\) | \(I\) |
| \(D(\theta)\) | ray limit (below) | \(0\) | \(I\) |
| \(C_\infty\) | \(C_\infty\) | \(0\) | \(I\) |
| \(I\) | \(I\) | \(I\) | \(I\) |
For integer \(w\), Definition X-4 applies. The pow constant carries both,
as axioms (G6), because it is bound to the literal kind's POW
(C1.4).
Infinite exponents follow.
Definition W-1a (infinite exponents). For a finite base \(z \ne 0\), \(z \ne 1\), with \(L = \log z\), and a direction \(\theta\), let \(\rho = \mathrm{Re}(\theta L)\) and \(\sigma = \mathrm{Im}(\theta L)\):
For the other bases: \(1^{D(\theta)} = 1^{C_\infty} = I\); \(0^{D(\theta)}\) is \(0\), \(C_\infty\), or \(I\) as \(\mathrm{Re}\,\theta\) is positive, negative, or zero; for an infinite base \(D(\varphi)\) or \(C_\infty\), \(z^{D(\theta)}\) is \(0\) when \(\mathrm{Re}\,\theta < 0\) and \(I\) when \(\mathrm{Re}\,\theta = 0\), and when \(\mathrm{Re}\,\theta > 0\) it is \(D(1)\) for \(z = D(1)\) and \(\theta = 1\), and \(C_\infty\) otherwise; \(z^{C_\infty} = I\) and \(z^I = I^w = I\) for every \(z\) and \(w\).
Proposition W-1b (infinite exponents are ray limits). For a finite base \(z \ne 0, 1\), \(z^{D(\theta)}\) is the limit of \(z^{r\theta}\) as \(r \to +\infty\) (Definition E-4), and \(z^{C_\infty}\) the common value over all directions (there is none).
Proof. \(z^{r\theta} = \exp(r\theta L)\) has modulus \(e^{r\rho}\) and argument \(r\sigma\). If \(\rho < 0\) the modulus tends to \(0\). If \(\rho > 0\) it grows, and the direction \(e^{ir\sigma}\) is fixed (at \(1\)) exactly when \(\sigma = 0\), and rotates otherwise. If \(\rho = 0\) the value stays on a circle of radius \(1\), rotating since \(L \ne 0\) forces \(\sigma \ne 0\), so there is no limit. Over all directions, \(\rho\) takes both signs (as \(L \ne 0\)), so the values at \(D(\theta)\) include \(0\) and an infinity. \(\square\)
The reference script tabulates these limits (section general powers at infinite exponents), at radii scaled by \(\sqrt 2\) so that a rotation by a rational multiple of \(\pi\) does not alias with the sampled radii. At \(z = 1\) the limit is \(1\), but the profile defines the value as \(I\): \(1^\infty\) is an indeterminate form, the one exception, as \(\operatorname{arccot} 0\) is for \(\operatorname{arccot}\). The entries for \(0\) and for infinite bases are listed on the behavior checklist; they are the limits along rays of \(z\) and \(w\) together.
The base \(E\)¶
Definition W-1c. \(E := \exp(1)\).
Theorem W-1d (\(E^w = \exp(w)\)). For every \(w \in \hat S\): \(E^w = \exp(w)\).
Proof. For finite \(w\): \(\log E = \log(\exp 1) = 1\) by Theorem E-2(2), since \(\mathrm{im}(1) = 0 \in (-\pi, \pi]\), so \(E^w = \exp(w \log E) = \exp(w)\) (for integer \(w\) by Theorem W-2). For \(w = D(\theta)\): \(L = 1\), so \(\rho = \mathrm{Re}\,\theta\) and \(\sigma = \mathrm{Im}\,\theta\), and Definition W-1a gives \(0\) for \(\mathrm{Re}\,\theta < 0\), \(D(1)\) for \(\theta = 1\), \(C_\infty\) for \(\mathrm{Re}\,\theta > 0\) with \(\theta \ne 1\), and \(I\) for \(\theta = \pm i\): exactly \(\exp\)'s table (Proposition E-1). For \(w = C_\infty\) and \(w = I\) both sides are \(I\). \(\square\)
Thus the equivalence of \(\exp(x)\) and \(E^x\) is a theorem of the
profile, with no guard: the CAS may write either form, and exp stays
the primitive the axioms characterize (Isabelle/HOL's convention as well:
its powr is defined from exp and ln).
The ray limit of \(z^w\) along \(\theta = e^{i\phi}\), for finite \(w = a + ib\) with \(a > 0\): \(w \log(r\theta) = (a \ln r - b\phi) + i(b \ln r + a\phi)\), so the modulus grows; the direction is fixed when \(b = 0\), giving \(D(e^{i a\phi})\), and rotates when \(b \ne 0\), giving \(C_\infty\).
Theorem W-2 (agreement on integers). For finite \(z \ne 0\) and \(n \in \mathbb Z\): \(\exp(n \log z) = z^n\) (the integer power).
Proof. \(\exp\) is a homomorphism from addition to multiplication on finite arguments (G7), so \(\exp(n u) = \exp(u)^n\), and \(\exp(\log z) = z\). \(\square\)
So the general power extends the integer power: no value of Definition X-4 is contradicted, which is what makes it safe to keep both in one constant.
Theorem W-3 (power laws and their domains). For finite nonzero \(z\) and finite \(w, v\):
- \(z^{w + v} = z^w \cdot z^v\);
- \((z^w)^v = z^{wv} \exp(-2\pi i\, v K(w \log z))\), so \((z^w)^v = z^{wv}\) when \(-\pi < \mathrm{im}(w \log z) \le \pi\), and always when \(v\) is an integer;
- \((zu)^w = z^w u^w \exp(-2\pi i\, w K(\log z + \log u))\) for finite nonzero \(u\); for positive reals \(z, u\) the correction vanishes.
Proof. Expand the definition and use Theorem E-2(2) and (3). \(\square\)
Square roots¶
Definition W-4 (principal square root). \(\sqrt z = z^{1/2}\): for finite \(z \ne 0\), \(\exp(\tfrac12 \log z)\); \(\sqrt 0 = 0\); \(\sqrt{D(\theta)} = D(e^{i\phi/2})\); \(\sqrt{C_\infty} = C_\infty\); \(\sqrt I = I\). Its branch cut is the negative real axis, closed from above: \(\sqrt{-x} = i\sqrt x\) for \(x > 0\).
Theorem W-5.
- \((\sqrt z)^2 = z\) for every finite \(z\).
- \(\sqrt{z^2} = z\) exactly when \(z = 0\), or \(\mathrm{Re}\,z > 0\), or \(\mathrm{Re}\,z = 0\) and \(\mathrm{Im}\,z > 0\); otherwise \(\sqrt{z^2} = -z\).
- On the reals: for \(x \ge 0\), \(\sqrt x\) is the unique real \(y \ge 0\) with \(y^2 = x\), and \(\sqrt{x^2} = \lvert x\rvert\) for every real \(x\); \(\sqrt{}\) is increasing on \([0, \infty)\).
- \(\sqrt{zw} = \sqrt z \sqrt w\) when \(z, w \ge 0\) are real, and in general up to the sign \(\exp(-\pi i\, K(\log z + \log w))\).
Proof. (1): \(\exp(\tfrac12 \log z)^2 = \exp(\log z) = z\). (2): \(\sqrt{z^2}\) is a square root of \(z^2\), so \(\pm z\); it is the one whose argument lies in \((-\pi/2, \pi/2]\), which is \(z\) exactly in the stated half-plane. (3), (4): from (2) and Theorem W-3. \(\square\)
Theorem W-5(2), restricted to \(z \ge 0\) real, justifies the transformation \(\sqrt{x^2} \to x\) under \(x \ge 0\).
Real roots¶
Definition W-6 (real roots). For a real \(x\) and an integer \(n \ge 1\), \(\mathrm{surd}(x, n)\) is the real \(n\)-th root: for \(x \ge 0\), the unique real \(y \ge 0\) with \(y^n = x\); for \(x < 0\) and odd \(n\), \(-\mathrm{surd}(-x, n)\); for \(x < 0\) and even \(n\), \(I\). For non-real or non-finite \(x\), or \(n\) not a positive integer, \(I\).
Theorem W-7. For odd \(n\), \(\mathrm{surd}\) is real on all finite reals, strictly increasing, and \(\mathrm{surd}(x, n)^n = x\). For \(x \ge 0\), \(\mathrm{surd}(x, n) = x^{1/n}\) (the principal root); for \(x < 0\) and odd \(n \ge 3\) the principal root \(x^{1/n}\) is not real, and differs from \(\mathrm{surd}(x, n)\).
Proof. Existence and uniqueness of real roots from completeness (G4); for \(x < 0\), \(\mathrm{Arg}(x) = \pi\) gives \(x^{1/n} = \lvert x\rvert^{1/n} e^{i\pi/n}\). \(\square\)