arXiv:2608.24260cs.FLAug 2026

Manuscript Offprint

arXiv:2608.24260

Guillotine and Tiling Cofiniteness in Unary Picture Languages

Pierluigi San Pietro, Stefano Crespi Reghizzi, Antonio Restivo

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Pierluigi San Pietro[0000-0002-2437-8716] Stefano Crespi Reghizzi[0000-0001-5061-7402]

Dipartimento di Elettronica, Informazione e Bioingegneria

Politecnico di Milano and CNR-IEIIT

Milano, Italia

pierluigi.sanpietro@polimi.it stefano.crespireghizzi@polimi.it

Antonio Restivo[0000-0002-1972-6931]

Dipartimento di Matematica e Informatica

Università di Palermo

Palermo, Italia

antonio.restivo@unipa.it

Motivated by the study of closure operations on picture languages, we ask when a set of unary tiles can generate all sufficiently large pictures either via repeated horizontal and vertical concatenations or via tiling operations.

In one dimension, the lengths of words in the concatenation closure of a unary language form an additive subsemigroup of N>0\mathbb{N}_{>0}; hence, they are finitely generated. Cofiniteness is characterized by the gcd of these generators being one. Since ordinary cofiniteness in two dimensions is too restrictive and essentially reduces to degenerate one-dimensional conditions on strips, we introduce and study asymptotic cofiniteness: all sufficiently large rectangular pictures are generated. A direct extension of the one-dimensional criterion, requiring the gcd of the tile heights and of the tile widths to be one, is not sufficient, because local congruence obstructions may persist in two dimensions.

We give an exact arithmetic characterization of asymptotic cofiniteness for arbitrary, possibly infinite, sets of unary rectangular tiles. The characterization is the same for the guillotine closure, obtained by horizontal and vertical concatenation, and for the full tiling closure. For finite tile sets, the proof combines semigroup arguments and an explicit least-common-multiple stacking construction for sufficiency, while necessity is obtained by a roots-of-unity argument applying also to nonsliceable tilings. The extension to infinite tile sets follows from the finite-basis theorem for Klarner systems.

1 Introduction

In one dimension, cofiniteness is a well understood property. If LL is a finite language of unary words, then its concatenation closure L+L^{+} is cofinite if and only if the greatest common divisor of the lengths of the words occurring in LL is 1.

In this paper we study the corresponding question in two dimensions, namely for unary picture languages [8, 2, 4]. A picture language is unary when it is defined over a one-letter alphabet; in this case, every picture is a rectangular array of copies of the same symbol and is therefore completely determined by its height and width. Although in the unary setting pictures can be identified with their rectangular sizes, the objects of concern are still picture languages and language-theoretic closure operations. A picture language generates larger pictures either by repeated horizontal and vertical concatenation, giving the guillotine closure, or by arbitrary tilings, giving the tiling closure [19]. We ask when all sufficiently large rectangular unary pictures belong to the generated language, that is, when the set of generated sizes contains a northeast quadrant. We call this property asymptotic cofiniteness (Figure 1, right).

M. Hospodár et al. (Eds.): 17th International Conference on Automata and Formal Languages (AFL 2026)

EPTCS 451, 2026, pp. 275–288, doi:10.4204/EPTCS.451.19

© P. San Pietro, S. Crespi Reghizzi, A. Restivo

This work is licensed under the

Creative Commons Attribution License.

Guillotine and Tiling Cofiniteness in Unary Picture Languages

Figure

ordinary cofiniteness:

only finitely many missing sizes ∘\circ;

Figure

asymptotic cofiniteness:

the shaded area contains no missing size ∘\circ;

outside the shaded area there may be infinitely many ∘\circ

Figure 1: Ordinary cofiniteness allows only finitely many missing sizes (denoted by ∘\circ), whereas asymptotic cofiniteness requires all sufficiently large heights and widths to be present simultaneously, but infinitely many sizes may still be missing.

These two closure operations are classical in the theory of picture languages. Arbitrary tilings play a central role in local and grammatical descriptions of pictures [19, 3, 16], whereas closure under horizontal and vertical concatenation is more restrictive, since pictures are built recursively by composing two pictures with matching dimensions along a full common edge [8, 15].

For recognizable picture languages [7, 13], Simplot proved that closure under horizontal and vertical concatenation is strictly contained in closure under arbitrary tilings [19]. More generally, several familiar one-dimensional properties change substantially when passing to pictures: for instance, closure-theoretic decision problems that are decidable for word languages become undecidable already for local and recognizable picture languages, while bases of closed picture languages remain unique but need not be recognizable [5]. The present paper focuses on a different aspect of this contrast, namely asymptotic cofiniteness.

This asymptotic notion is natural in the present setting. Indeed, ordinary cofiniteness (Figure 1, left) in N>02\mathbb{N}_{>0}^2 would already force all but finitely many horizontal strips (1,w)(1,w) and vertical strips (h,1)(h,1) to belong to the generated language. But a rectangle of height 1 can only be generated from pieces of height 1, and dually for width 1. In effect, cofiniteness in the classical sense would reduce the problem to two independent one-dimensional strips — a much less interesting situation. In applications such as architectural floorplans or VLSI layouts [10, 6, 12, 1], relying on arbitrarily long one-cell-wide corridors is often unnatural. This motivates asymptotic cofiniteness, which avoids such degenerate constructions and captures the ability to fill all large rectangles, while allowing infinitely many missing sizes (see Figure 1).

It is also useful to distinguish our setting from ordinary additive semigroups in N2\mathbb{N}^2. If a finite set F⊆N>02F \subseteq \mathbb{N}_{>0}^2 generates a monoid under vector addition, then all generated points lie in the rational cone determined by the extreme slopes of the generators. Hence even asymptotic cofiniteness cannot occur, since an upper-right quadrant contains points of arbitrarily small and arbitrarily large slope. Thus ordinary vector addition cannot produce the product-shaped sets we need; the extra power of independent horizontal and vertical growth is essential.

Our viewpoint is also different from the classical two-dimensional packing and strip-packing problems [9, 14], where the input is typically a finite set of rectangular items and the question is whether they can be packed into a prescribed container, or how to optimize a quantity such as the number of bins or the used height. Here, by contrast, the tile set acts as a generating set, and the object of study is the infinite family of rectangles obtainable under closure operations, with cofiniteness as the relevant asymptotic property.

Returning to asymptotic cofiniteness, one might at first expect a direct extension of the one-dimensional criterion: perhaps it is enough that the gcd of the tile heights be 1 and the gcd of the tile widths be 1. This is false in general.

For instance, following the convention that the first coordinate is height and the second is width, we write ah,wa^{h,w} for the unary picture with h rows and w columns. Thus a2,3a^{2,3} has height 2 and width 3. Consider

L={a2,3,a2,5,a7,3}.L=\{a^{2,3},a^{2,5},a^{7,3}\}.

Although the gcd of the occurring heights is gcd⁡{2,7}=1\gcd\{2,7\}=1 and the gcd of the occurring widths is gcd⁡{3,5}=1\gcd\{3,5\}=1, every picture in L++L^{++} of odd height has width divisible by 3. Hence asymptotic cofiniteness fails. Indeed, the only tiles of odd height have width 3, and the same obstruction propagates under tiling.

Our main result gives an exact arithmetic characterization, and shows that it is the same for the guillotine closure and for the tiling closure. Identifying unary pictures with their sizes, let F⊆N>02F \subseteq \mathbb{N}_{>0}^2 be the set of tile sizes. The precise condition involves only a few simple sets derived from FF:

H={h≥1:∃w≥1,(h,w)∈F},H=\left\{h\geq1:\exists w\geq1,\left(h,w\right)\in F\right\}, P={primep:p∣wforsome(h,w)∈F},P=\left\{\mathrm{prime}p:p\mid w for some\left(h,w\right)\in F\right\},

and, for each p∈Pp \in P,

Hp={h≥1:∃(h,w)∈Fwithp≠w},H_{p}=\left\{h\geq1:\exists(h,w)\in F with p\neq w\right\},

where p∣wp \mid w denotes that pp divides ww (i.e., ww is a multiple of pp), and p∤wp \nmid w otherwise.

Thus HpH_{p} is the set of heights of tiles whose width is not divisible by p.

We prove that the following conditions are equivalent:

  1. the guillotine closure of F is asymptotically cofinite;

  2. the tiling closure of F is asymptotically cofinite;

  3. gcd⁡(H)=1\gcd(H) = 1 and gcd⁡(Hp)=1\gcd(H_p) = 1 for every p∈Pp \in P.

We first prove the characterization for finite tile sets. The proof is split into two parts. For the guillotine closure, the sufficiency direction (3) ⟹\Longrightarrow (1) combines semigroup arguments with an explicit least-common-multiple stacking construction. The necessity direction (2) ⟹\Longrightarrow (3) is then proved simultaneously for the guillotine and tiling closures by a roots-of-unity argument that works even for nonsliceable tilings such as windmills. Finally, the same characterization is extended to infinite sets using the finite-basis properties of Klarner systems [17]. While in the finite case asymptotic cofiniteness is decidable, in the infinite case decidability may depend on the definition of the tile set.

The paper is organized as follows. Section 2 recalls the basic definitions of picture languages and tiling closures. Section 3 contains the main theorem on asymptotic cofiniteness for finite tile sets. Section 4 extends the result to arbitrary tile sets. Section 5 concludes with a discussion of related results and an open problem.

Guillotine and Tiling Cofiniteness in Unary Picture Languages

Figure

Figure 2: This tiling is a guillotine decomposition: it admits a recursive decomposition by full-width or full-height guillotine cuts.

Figure

Figure

Figure 3: The two displayed tilings over the tile set F={(1,5),(4,2),(3,3)}F = \{(1,5),(4,2),(3,3)\} are examples of so-called windmills. Neither admits a guillotine decomposition into tiles of sizes in FF.

References (17)