Lemmas about Nat.nthRoot #
In this file we prove that Nat.nthRoot n a is indeed the floor of ⁿ√a.
@[simp]
nthRoot n a ^ n ≤ a unless both n and a are zeros.
Alias of the reverse direction of Nat.pow_nthRoot_le_iff.
nthRoot n a ^ n ≤ a unless both n and a are zeros.
An auxiliary lemma saying that if b ≠ 0,
then (a / b ^ n + n * b) / (n + 1) + 1 is a strict upper estimate on √[n + 1] a.
@[simp]
@[simp]
@[simp]
theorem
Nat.nthRoot_eq_of_le_of_lt
{n a b : ℕ}
(h₁ : a ^ n ≤ b)
(h₂ : b < (a + 1) ^ n)
:
n.nthRoot b = a
If a ^ n ≤ b < (a + 1) ^ n, then n root of b equals a.
theorem
Nat.exists_pow_eq_iff
{n a : ℕ}
:
(∃ (x : ℕ), x ^ n = a) ↔ n = 0 ∧ a = 1 ∨ n ≠ 0 ∧ n.nthRoot a ^ n = a
@[implicit_reducible]