The coordinate reading some j really holds the prime
Provedgpy_coordOf_eq_somenumber-theory
If the coordinate-of-prime function at p reads some j, then p divides d j. The function is p's holding coordinate if one exists, else none. Formalization Note: the function is written out in Mathlib terms.
Preamble
import Mathlib open Classical
Formal statement
theorem gpy_coordOf_eq_some {k : ℕ} {d : Fin k → ℕ} {p : ℕ} {j : Fin k}
(h : (if hex : ∃ j', p ∣ d j' then some (Classical.choose hex) else none) = some j) :
p ∣ d j := by sorrySource
GPY good-count product formula via the fiber bijection, formalized from Mathlib (no local definitions in statements)