How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Exact certified clipping of convex rational polygons
Definition
Input two cyclic vertex lists for positive-area convex polygons in , with rational coordinates. The closing edge is implicit; if the last listed vertex repeats the first, delete that final copy. Delete consecutive duplicate vertices, including across the cyclic endpoint, then return unresolved if a list has fewer than three vertices, any remaining repeated vertex, a zero-length edge, or zero signed shoelace area. Reverse a negatively oriented list so both polygons are counterclockwise. For each list, certify convexity as follows: for every directed edge, evaluate the orientation of that edge with every listed vertex and require every sign to be nonnegative; if three consecutive vertices are collinear, require the middle one to lie between the other two; and for every pair of nonadjacent closed edges, certify that they do not intersect. Test the latter exactly using the four orientation signs: two segments intersect if the signs for against are strictly opposite and the signs for against are strictly opposite, or if one of these signs is zero and its point lies in the closed coordinatewise bounding rectangle of the corresponding segment. Return unresolved if any certificate check fails. These finite checks certify that each normalized list is the simple counterclockwise boundary of its convex hull, allowing redundant collinear vertices.
For every rational orientation test, clear one common positive denominator from the coordinates of its three points and call Certified predicate for exact dyadic geometric inputs on the resulting integer (hence dyadic) points. Propagate any result other than an exact positive, zero, or negative sign as unresolved. For each directed edge of , clip the current cyclic list of to that edge's closed left half-plane, treating a point as inside exactly when , where is its signed edge determinant. Traverse cyclically by setting to the last current vertex and then taking each current vertex in list order as . Apply exactly one of these branches:
- If and , append .
- If , append .
- If , append and then .
- If and , append nothing.
In either crossing branch set . The strict sign inequalities make this denominator nonzero and give ; when an endpoint sign is zero the intersection is that endpoint. No division is performed in either noncrossing branch. Remove consecutive duplicate output vertices after each pass, including a duplicate across the cyclic endpoint, and continue with the next edge of . If the current list is empty, it remains empty. Return the final rational cyclic list and area zero when it has fewer than three noncollinear vertices; otherwise return its exact shoelace area. No floating tolerance is used.
Failure behavior
The input polygons represent convex cells in the intersection-volume remap of Intersection-volume conservative remapping. A failed convexity check or uncertified predicate sign returns unresolved; it is never guessed. A negative crossing denominator is valid and is used as written. All constructions after the exact dyadic predicate calls use exact rational arithmetic.
Depends on
Used by
Dependency tree · two levels
10 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.
Sources
- Devon Powell and Tom Abel, An exact general remeshing scheme applied to physically conservative voxelization (standard reference, not scraped)
- Zhengru Zhang, Moving Mesh Method with Conservative Interpolation Based on L2-Projection, Commun. Comput. Phys. 1 (2006), 930–944 (standard reference, not scraped)