Skip to content

Conversation

@stevenraphael
Copy link
Contributor

This PR adds simplifier rules to handle the integer patterns x - (x / c0) and (x / c0) - x, which are special cases of the existing rewrite rules for x - (x + y) / c0 and (x + y) / c0 - x. This allows Halide to prove, for example, that x > (x / 2) for all x >= 1.

@stevenraphael stevenraphael marked this pull request as ready for review December 12, 2025 20:43
@abadams abadams merged commit bed0d3a into halide:main Dec 16, 2025
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants