Documentation

Mathlib.Data.Nat.Prime.Int

Prime numbers in the naturals and the integers #

TODO: This file can probably be merged with Data/Nat/Int/NatPrime.lean.

theorem Nat.Prime.pow_inj {p : } {q : } {m : } {n : } (hp : Nat.Prime p) (hq : Nat.Prime q) (h : p ^ (m + 1) = q ^ (n + 1)) :
p = q m = n

Two prime powers with positive exponents are equal only when the primes and the exponents are equal.