The areas / V15. Real analysis in one variable
Mathlib.Analysis.SpecialFunctions.Pow.NthRootLemmas
20 declarations. Mathlib docs · Source
Lemmas about Nat.nthRoot
In this file we prove that Nat.nthRoot n a is indeed the floor of ⁿ√a.
theorem Nat.nthRoot.match_1.congr_eq_2 E1 #
∀ (motive : ℕ → ℕ → Sort u_1) (x x_1 : ℕ) (h_1 : (guess : ℕ) → motive 0 guess)
(h_2 : (fuel guess : ℕ) → motive fuel.succ guess) (fuel guess : ℕ),
x = fuel.succ →
x_1 = guess →
(match x, x_1 with
| 0, guess => h_1 guess
| fuel.succ, guess => h_2 fuel guess) ≍
h_2 fuel guess
theorem Nat.nthRoot.match_3.congr_eq_1 E1 #
∀ (motive : ℕ → ℕ → Sort u_1) (x x_1 : ℕ) (h_1 : (x : ℕ) → motive 0 x) (h_2 : (a : ℕ) → motive 1 a)
(h_3 : (n a : ℕ) → motive n.succ.succ a) (x_2 : ℕ),
x = 0 →
x_1 = x_2 →
(match x, x_1 with
| 0, x => h_1 x
| 1, a => h_2 a
| n.succ.succ, a => h_3 n a) ≍
h_1 x_2
theorem Nat.nthRoot.match_3.congr_eq_3 E1 #
∀ (motive : ℕ → ℕ → Sort u_1) (x x_1 : ℕ) (h_1 : (x : ℕ) → motive 0 x) (h_2 : (a : ℕ) → motive 1 a)
(h_3 : (n a : ℕ) → motive n.succ.succ a) (n a : ℕ),
x = n.succ.succ →
x_1 = a →
(match x, x_1 with
| 0, x => h_1 x
| 1, a => h_2 a
| n.succ.succ, a => h_3 n a) ≍
h_3 n a
theorem Nat.nthRoot.match_3.congr_eq_2 E1 #
∀ (motive : ℕ → ℕ → Sort u_1) (x x_1 : ℕ) (h_1 : (x : ℕ) → motive 0 x) (h_2 : (a : ℕ) → motive 1 a)
(h_3 : (n a : ℕ) → motive n.succ.succ a) (a : ℕ),
x = 1 →
x_1 = a →
(match x, x_1 with
| 0, x => h_1 x
| 1, a => h_2 a
| n.succ.succ, a => h_3 n a) ≍
h_2 a
theorem Nat.nthRoot.match_1.congr_eq_1 E1 #
∀ (motive : ℕ → ℕ → Sort u_1) (x x_1 : ℕ) (h_1 : (guess : ℕ) → motive 0 guess)
(h_2 : (fuel guess : ℕ) → motive fuel.succ guess) (guess : ℕ),
x = 0 →
x_1 = guess →
(match x, x_1 with
| 0, guess => h_1 guess
| fuel.succ, guess => h_2 fuel guess) ≍
h_1 guess
theorem Nat.nthRoot_zero_left E0 #
∀ (a : ℕ), Nat.nthRoot 0 a = 1
theorem Nat.nthRoot_one_left E0 #
Nat.nthRoot 1 = id
theorem Nat.nthRoot_zero_right E0 #
∀ {n : ℕ}, n ≠ 0 → n.nthRoot 0 = 0
theorem Nat.nthRoot_one_right E0 #
∀ {n : ℕ}, n.nthRoot 1 = 1
theorem Nat.pow_nthRoot_le_iff E0 #
∀ {n a : ℕ}, n.nthRoot a ^ n ≤ a ↔ n ≠ 0 ∨ a ≠ 0
nthRoot n a ^ n ≤ a unless both n and a are zeros.
theorem Nat.pow_nthRoot_le E1 #
∀ {n a : ℕ}, n ≠ 0 ∨ a ≠ 0 → n.nthRoot a ^ n ≤ a
Alias of the reverse direction of Nat.pow_nthRoot_le_iff.
nthRoot n a ^ n ≤ a unless both n and a are zeros.
theorem Nat.nthRoot.lt_pow_go_succ_aux E0 #
∀ {n a b : ℕ}, b ≠ 0 → a < ((a / b ^ n + n * b) / (n + 1) + 1) ^ (n + 1)
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.
theorem Nat.lt_pow_nthRoot_add_one E1 #
∀ {n : ℕ}, n ≠ 0 → ∀ (a : ℕ), a < (n.nthRoot a + 1) ^ n
theorem Nat.le_nthRoot_iff E0 #
∀ {n a b : ℕ}, n ≠ 0 → (a ≤ n.nthRoot b ↔ a ^ n ≤ b)
theorem Nat.nthRoot_lt_iff E0 #
∀ {n a b : ℕ}, n ≠ 0 → (n.nthRoot a < b ↔ a < b ^ n)
theorem Nat.nthRoot_pow E0 #
∀ {n : ℕ}, n ≠ 0 → ∀ (a : ℕ), n.nthRoot (a ^ n) = a
theorem Nat.nthRoot_eq_of_le_of_lt E1 #
∀ {n a b : ℕ}, a ^ n ≤ b → 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' E1 #
∀ {n a : ℕ}, (∃ x, x ^ n = a) ↔ n.nthRoot a ^ n = a
theorem Nat.exists_pow_eq_iff E0 #
∀ {n a : ℕ}, (∃ x, x ^ n = a) ↔ n = 0 ∧ a = 1 ∨ n ≠ 0 ∧ n.nthRoot a ^ n = a
instance Nat.instDecidableExistsPowEq E0 #
{n a : ℕ} → Decidable (∃ x, x ^ n = a)