A prime outside a finset of primes is coprime to its product
Provedgpy_coprime_prime_prodnumber-theory
A prime p is coprime to the product of a finset of primes none of which equals p. Formalization Note: the statement uses only Mathlib terms.
Preamble
import Mathlib open Classical
Formal statement
theorem gpy_coprime_prime_prod {P : Finset ℕ} {p : ℕ} (hp : Nat.Prime p)
(hP : ∀ q ∈ P, Nat.Prime q) (hne : ∀ q ∈ P, q ≠ p) :
Nat.Coprime p (∏ q ∈ P, q) := by sorrySource
GPY good-count local evaluation, formalized from Mathlib (prime factorization of the good-pair condition)