Locating a point in a partition #
For a strictly increasing grid t 0 < t 1 < … < t m, pieceIdx t m x is the index of the piece
[t i, t (i+1)) containing x ∈ [t 0, t m).
The piece containing x.
Equations
- Zeta5Irrational.pieceIdx t m x = Nat.findGreatest (fun (i : ℕ) => t i ≤ x) m