Chapter 7: the square root of a prime is irrational
ProvedProofsInTheBook.Chapter07.chapter07_sqrt_primeirrationalitynumber-theoryproofs-from-the-book
For every prime natural number , the nonnegative real square root of is irrational:
The source uses the characterization of irrational square roots of natural numbers together with the fact that a prime is not a square.
Preamble
import Mathlib set_option maxHeartbeats 800000 open scoped BigOperators
Formal statement
theorem ProofsInTheBook.Chapter07.chapter07_sqrt_prime (p : ℕ) (hp : p.Prime) : Irrational (√(p : ℝ)) := by sorry
Source
Martin Aigner and Günter M. Ziegler, Proofs from THE BOOK, 6th edition, Springer, 2018, Chapter 8, “Some irrational numbers”, pp. 47–53 (https://doi.org/10.1007/978-3-662-57265-8_8). Exact Lean declaration: https://github.com/xiangyazi24/proof_in_the_book/blob/88d88d141768cded75e782c525ef1bf04b8fe220/ProofsInTheBook/Chapter07.lean#L37-L39. The book citation identifies the topic; the source proof’s reuse of Mathlib or local argument is described separately.