Finite orthogonal polygonal routes #
The data are lists of integer points. Their geometric interpretation uses Mathlib's closed real segments, including every real point between consecutive listed points, rather than only lattice points. A singleton route has singleton support; an empty route has empty support.
Main definitions #
Cslib.Orthogonal.Point,Cslib.Orthogonal.Route: finite integer-coordinate data.Cslib.Orthogonal.support: the continuous support of a polygonal route.Cslib.Orthogonal.IsOrthogonal: every consecutive segment is axis aligned and nondegenerate.Cslib.Orthogonal.wireLength: total Manhattan length.
Main results #
Cslib.Orthogonal.mem_horizontal,Cslib.Orthogonal.mem_vertical: real segment membership characterized by coordinate intervals.
References #
The finite-route definitions and proofs are original.
Explicit finite polygonal route data.
Instances For
The geometric inclusion does not identify distinct grid points.
A proper axis-aligned segment; zero-length segments are excluded.
Instances For
Every consecutive segment is proper and axis aligned.
Instances For
Orthogonality is decidable by checking the finitely many consecutive segments.
Removing the initial listed point preserves proper orthogonality.
A pair of lattice points one Manhattan unit apart forms a proper axis-aligned segment.
Total Manhattan length of the consecutive segments.
Instances For
Integer-point membership in an orthogonal route is an entirely integer-arithmetic test, while its meaning remains membership in the continuous real support.