fix: make `intersperse` honor `ratio` at the endpoints The selector decided which side to draw from by comparing the achieved fraction of `selector₁` contributions against `ratio` with a strict `<`. This is biased at the boundary: `ratio = 1` still drew a single element from `selector₂` before settling on `selector₁`. Instead pick whichever next state keeps the running fraction closest to `ratio`, so `ratio = 0`/`ratio = 1` draw entirely from one selector while both have results. `ratio` is now clamped to `[0, 1]`, and the tie-break and clamping are documented. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This is the repository for Lean 4.
See Install Lean.
Please read our Contribution Guidelines first.
See Building Lean.