The coordinate function is some exactly when some coordinate divides
Provedgpy_coordOf_isSomenumber-theory
The coordinate-of-prime function at p is some exactly when some coordinate is divisible by p. Formalization Note: the function is written out in Mathlib terms.
Preamble
import Mathlib open Classical
Formal statement
theorem gpy_coordOf_isSome {k : ℕ} {d : Fin k → ℕ} {p : ℕ} :
((if hex : ∃ j', p ∣ d j' then some (Classical.choose hex) else none)).isSome ↔
∃ j, p ∣ d j := by sorrySource
GPY good-count product formula via the fiber bijection, formalized from Mathlib (no local definitions in statements)