Selecting a short boundary from a convex lattice window #
The geometric part of Lemma 5.5 (lem:boundary-window) of paper/nivat.tex.
Integer slices of convex sets are consecutive blocks. Rational interpolation
and integer rounding give the sharp lower bound of e - 1 sites on intermediate
rows. A low-complexity row band of least cardinality has positive discrepancy
after either nonempty endpoint is deleted; choosing its shorter endpoint gives
the boundary cost inequality. This finite minimization implements the
lemma's discrepancy-crossing selection.
A finite set containing exactly the integer points of a convex subset of the rational plane;
this includes rectangles expressed in an arbitrary lattice basis. Lemma 5.5
(lem:boundary-window).
Equations
- Nivat.TwoFactors.LatticeConvex D = ∃ (S : Set (ℚ × ℚ)), Convex ℚ S ∧ ∀ (z : Nivat.Lattice), z ∈ D ↔ Nivat.latticeRatCast z ∈ S
Instances For
A subset retaining every original site between any two occupied row levels, as occurs when
extreme rows are deleted. Lemma 5.5 (lem:boundary-window).
Equations
Instances For
The original finite window is a row band of itself, so it is an admissible initial window
for discrepancy selection. Lemma 5.5 (lem:boundary-window).
Deleting all rows at or below a level preserves the property of retaining every original
site between occupied rows. Lemma 5.5 (lem:boundary-window).
Deleting all rows at or above a level preserves the property of retaining every original
site between occupied rows. Lemma 5.5 (lem:boundary-window).
Among the row bands with nonpositive discrepancy, choose one of least cardinality; deleting
an occupied extreme row from it must give positive discrepancy. Lemma 5.5
(lem:boundary-window).
A convex subset of the rational plane contains the full horizontal interval between two
points of the same row. Lemma 5.5 (lem:boundary-window).
Every integer site between two sites in one row of a lattice-convex window belongs to that
window. Lemma 5.5 (lem:boundary-window).
If both extreme rows have at least e consecutive sites, convex interpolation gives at
least e - 1 consecutive integer sites on every intermediate row. Ceiling the interpolated
left endpoint accounts for the sharp loss of one site. Lemma 5.5 (lem:boundary-window).
The integer sites of an axis-aligned rectangle are exactly the integer points in the
corresponding convex rational rectangle. Lemma 5.5 (lem:boundary-window).
A compatible rational linear map pulls a lattice-convex window back to another
lattice-convex window. The membership equation records the actual preimage in the chosen
basis. Lemma 5.5 (lem:boundary-window).
The sites of a finite window at a fixed row level. Lemma 5.5 (lem:boundary-window).
Equations
- Nivat.TwoFactors.rowSites D j = {z ∈ D | z.2 = j}
Instances For
The horizontal integer coordinates of the sites at a fixed row level. Lemma 5.5
(lem:boundary-window).
Equations
Instances For
Projection to the horizontal coordinate is injective within a fixed row and therefore
preserves its number of sites. Lemma 5.5 (lem:boundary-window).
An occupied row of a row band retains every site between any two of its sites, by row
convexity of the original window. Lemma 5.5 (lem:boundary-window).
A nonempty finite integer row with no gaps consists exactly of a consecutive block whose
length is its cardinality. Lemma 5.5 (lem:boundary-window).
Deleting a nonempty endpoint row from a smallest low-complexity band crosses to positive
discrepancy, so the increase in pattern count is smaller than the number of deleted sites.
Lemma 5.5 (lem:boundary-window), equation eq:boundary-cost.
The selected window before translation and normal reflection: an extreme consecutive edge,
its interior, the boundary cost, and consecutive-block witnesses in every row. Lemma 5.5
(lem:boundary-window).
The selected row band inside the input window.
The interior obtained by deleting the selected extreme row.
- lo : ℤ
The lowest row of the selected band.
- hi : ℤ
The highest row of the selected band.
- edge : ℤ
The row selected for deletion.
- start : ℤ
The horizontal coordinate of the first edge site.
- e : ℕ
The positive number of consecutive edge sites.
- band : RowBandSubset D₀ self.D
All input sites between occupied rows are retained.
The lower row does not exceed the upper row.
Every selected site lies between the extreme rows.
The selected edge is one of the two extreme rows.
The selected edge is nonempty.
The selected edge is exactly the consecutive block of length
e.The edge length agrees with its finite-set cardinality.
The interior consists of all selected sites off the edge.
The selected band has nonpositive discrepancy.
The boundary pattern increase is less than the edge length.
Every row of the band contains
e - 1consecutive sites.
Instances For
A low-complexity lattice-convex window contains a row band with a shorter extreme edge whose
deletion has cost less than the edge length and leaves the required e - 1 row blocks.
Lemma 5.5 (lem:boundary-window).
At every row other than the selected extreme edge, the consecutive-block witnesses lie in
the interior. Lemma 5.5 (lem:boundary-window).