No dividing coordinate means the coordinate function reads none
Provedgpy_coordOf_none_of_not_dvdnumber-theory
If no coordinate is divisible by p, then the coordinate-of-prime function at p reads none. Formalization Note: the function is written out in Mathlib terms.
Preamble
import Mathlib open Classical
Formal statement
theorem gpy_coordOf_none_of_not_dvd {k : ℕ} {d : Fin k → ℕ} {p : ℕ}
(h : ¬ ∃ j, p ∣ d j) :
(if hex : ∃ j', p ∣ d j' then some (Classical.choose hex) else none) = none := by sorrySource
GPY good-count product formula via the fiber bijection, formalized from Mathlib (no local definitions in statements)