An n-th root of an integer is either an integer or irrational
ProvedFamousTheorems.nth_root_integer_or_irrational_6bAn -th root of an integer is either an integer or irrational. Let , and with . If is not an integer, then is irrational.
This generalizes the irrationality of . By the rational root theorem, a rational root of the monic polynomial must be an integer. It gives the irrationality of whenever is not a perfect -th power, for example and .
Formalization note. Mathlib's irrational_nrt_of_notint_nrt. The hypotheses are , that is not equal to any integer, and .
Preamble
import Mathlib
Formal statement
namespace FamousTheorems
theorem nth_root_integer_or_irrational_6b {x : ℝ} (n : ℕ) (m : ℤ) (hxr : x ^ n = m) (hv : ¬∃ y : ℤ, x = y) (hnpos : 0 < n) : Irrational x := by sorry
end FamousTheoremsSource
Listed in Mathlib's curated theorem manifests (docs/1000.yaml); formalized in Mathlib as `irrational_nrt_of_notint_nrt`. Proof here reduces to that Mathlib result.