Reconstruction of 2-Convex Polyominoes with Non-Empty Corners

Abstract

This paper uses the theoretical material developed in a previous study by the authors in order to reconstruct a subclass of 2-convex polyominoes called where the upper left corner and the lower right corner of the polyomino contain each only one cell. The main idea is to control the shape of these polyominoes by using 32 types of geometries. Some modifications are made in the reconstruction algorithm of Chrobak and Dürr for HV-convex polyominoes in order to impose these geometries.

Keywords

Share and Cite:

Tawbe, K. and Mansour, S. (2019) Reconstruction of 2-Convex Polyominoes with Non-Empty Corners. Open Journal of Discrete Mathematics, 9, 83-109. doi: 10.4236/ojdm.2019.94009.

1. Introduction

The present paper uses the theoretical material developed in a previous study by the authors in order to reconstruct a subclass of 2-convex polyominoes. Indeed, 2-convex polyominoes are the first difficult class of polyominoes in terms of tomographical reconstruction in the hierarchy of k-polyominoes and in this article we design an algorithm of reconstruction for a subclass of L-convex which is the second step in the whole comprehension of the hierarchy of k-polyominoes.

One main problem in discrete tomography consists on the reconstruction of discrete objects according to their horizontal and vertical projection vectors. In order to restrain the number of solutions, we could add convexity constraints to these discrete objects. There are many notions of discrete convexity of polyominoes (namely HV-convex  , Q-convex  , L-convex polyominoes  ) and each one leads to interesting studies. One natural notion of convexity on the discrete plane is the class of HV-convex polyominoes that are polyominoes with consecutive cells in rows and columns. Following the work of Del Lungo, Nivat, Barcucci, and Pinzani  we are able using discrete tomography to reconstruct polyominoes that are HV-convex according to their horizontal and vertical projections. In addition to that, for an HV-convex polyomino P every pairs of cells of P can be reached using a path included in P with only two kinds of unit steps (such a path is called monotone). A polyomino is called k-convex if for every two cells we find a monotone path with at most k changes of direction. Obviously a k-convex polyomino is an HV-convex polyomino. Thus, the set of k-convex polyominoes for $k\in ℕ$ forms a hierarchy of HV-convex polyominoes according to the number of changes of direction of monotone paths. This notion of 1-convex polyominoes has been considered by several points of view. In  combinatorial aspects of 1-convex polyominoes are analyzed, giving the enumeration according to the semi-perimeter and the area. In  it is given an algorithm that reconstructs a 1-convex polyomino from the set of its maximal L-polyominoes. Similarly in  it is given another way to reconstruct a L-convex polyomino from the size of some special paths, called bordered L-paths.

In fact 2-convex polymoninoes are more geometrically complex and there was no result for their direct reconstruction. We could notice that Duchi, Rinaldi, and Schaeffer are able to enumerate this class in an interesting and technical article  . But the enumeration technique gives no idea for the tomographical reconstruction.

The first subclass that creates the link with 2-convex polyominoes is the class of HV-centered polyominoes. In  , it is showed that if P is an HV-centered polyomino then P is 2-convex. Note that the tomographical properties of this subclass have been studied in  and its reconstruction algorithm is well known.

The main contribution of this paper is an $O\left({m}^{3}{n}^{3}\right)$ -time algorithm for reconstructing a subclass of 2-convex polyominoes using the geometrical properties studied in a previous study, and the algorithm of Chrobak and Dürr  . In particular, we add well-chosen clauses to the original construction of Chrobak and Dürr in order to control the 2L-convexity using 2SAT satisfaction problem.

This paper is divided into 5 sections. After basics on polyominoes, Section 3 shows the different geometrical shapes of a subclass of 2-convex polyominoes  . In Section 4, the algorithm of Chrobak and Dürr for the reconstruction of the HV-convex polyominoes is given  . Section 5 describes the reconstruction of different subclasses of 2-convex polyominoes.

2. Definition and Notation

A planar discrete set is a finite subset of the integer lattice ${ℤ}^{2}$ defined up to translation. A discrete set can be represented either by a set of cells, i.e. unitary squares of the cartesian plane, or by a binary matrix, where the 1’s determine the cells of the set (see Figure 1).

A polyomino P is a finite connected set of adjacent cells, defined up to translations, in the cartesian plane. A row convex polyomino (resp. column-convex) is

Figure 1. A finite set of $ℕ×ℕ$, and its representation in terms of a binary matrix and a set of cells.

a self avoiding convex polyomino such that the intersection of any horizontal line (resp. vertical line) with the polyomino has at most two connected components. Finally, a polyomino is said to be convex (or HV-convex) if it is both row and column-convex (see Figure 2).

To each discrete set S, represented as a $m×n$ binary matrix, two integer vectors $H=\left({h}_{1},\cdots ,{h}_{m}\right)$ and $V=\left({v}_{1},\cdots ,{v}_{n}\right)$ are associated such that, for each $1\le i\le m,1\le j\le n$, ${h}_{i}$ and ${v}_{j}$ are the number of cells of S (elements 1 of the matrix) which lie on row i and column j, respectively. The vectors H and V are called the horizontal and vertical projections of S, respectively (see Figure 3). Moreover if S has H and V as horizontal and vertival projections, respectively, then we say that S satisfies (H, V). Using the usual matrix notations, the element $\left(i,j\right)$ denotes the entry in row i and column j.

For any two cells A and B in a polyomino, a path ${\Pi }_{AB}$, from A to B, is a sequence $\left({i}_{1},{j}_{1}\right),\left({i}_{2},{j}_{2}\right),\cdots ,\left({i}_{r},{j}_{r}\right)$ of adjacent disjoint cells belonging in P, with $A=\left({i}_{1},{j}_{1}\right)$, and $B=\left({i}_{r},{j}_{r}\right)$. For each $1\le k\le r-1$, we say that the two consecutive cells $\left({i}_{k},{j}_{k}\right),\left({i}_{k+1},{j}_{k+1}\right)$ form:

• an east step if ${i}_{k+1}={i}_{k}$ and ${j}_{k+1}={j}_{k}+1$ ;

• a north step if ${i}_{k+1}={i}_{k}-1$ and ${j}_{k+1}={j}_{k}$ ;

• a west step if ${i}_{k+1}={i}_{k}$ and ${j}_{k+1}={j}_{k}-1$ ;

• a south step if ${i}_{k+1}={i}_{k}+1$ and ${j}_{k+1}={j}_{k}$.

Finally, we define a path to be monotone if it is entirely made of only two of the four types of steps defined above (see   ).

Proposition 1 (Castiglione, Restivo). A polyomino P is HV-convex if and only if every pair of cells is connected by a monotone path.

Let us consider a polyomino P. A path in P has a change of direction in the cell $\left({i}_{k},{j}_{k}\right)$, for $2\le k\le r-1$, if

${i}_{k}\ne {i}_{k-1}⇔{j}_{k+1}\ne {j}_{k}.$

Definition 1. We call k-convex an HV-convex polyomino such that every pair of its cells can be connected by a monotone path with at most k changes of direction respectively.

In  , it is proposed a hierarchy on convex polyominoes based on the number of changes of direction in the paths connecting any two cells of a polyomino.

For $k=1$, we have the first level of hierarchy, i.e. the class of 1-convex polyominoes, also denoted L-convex polyominoes for the typical shape of each

Figure 2. Row convex and convex polyomino.

Figure 3. A polyomino P with $H=\left(3,4,6,5,2\right)$ and $V=\left(1,3,4,5,4,1\right)$.

path having at most one single change of direction. In the present study, we focus our attention on the next level of the hierarchy, i.e. the class of 2-convex polyominoes, whose geometrical properties are more complicated and harder to be investigated than those of 1-convex polyominoes (see Figure 4).

3. 2-Convex Polyominoes

Let $\left(H,V\right)$ be two projection vectors and let P be an HV-convex polyomino, that satisfies $\left(H,V\right)$. By a classical argument P is contained in a rectangle R (called minimal bounding box) where in this box no projection gives a zero. Let $\left[\mathrm{min}\left(S\right),\mathrm{max}\left(S\right)\right]$ ( $\left[\mathrm{min}\left(E\right),\mathrm{max}\left(E\right)\right]$,#Math_41#, $\left[\mathrm{min}\left(W\right),\mathrm{max}\left(W\right)\right]$ ) be the intersection of P’s boundary on the lower (right, upper, left) side of R (see  ). By abuse of notation, we call $\mathrm{min}\left(S\right)$ [resp. $\mathrm{min}\left(E\right)$, $\mathrm{min}\left(N\right)$, $\mathrm{min}\left(W\right)$ ] the cell at the position $\left(m,\mathrm{min}\left(S\right)\right)$ [resp. $\left(\mathrm{min}\left(E\right),n\right)$, $\left(1,\mathrm{min}\left(N\right)\right)$, $\left(\mathrm{min}\left(W\right),1\right)$ ] and $\mathrm{max}\left(S\right)$ [resp. $\mathrm{max}\left(E\right)$, $\mathrm{max}\left(N\right)$, $\mathrm{max}\left(W\right)$ ] the cell at the position $\left(m,\mathrm{max}\left(S\right)\right)$ [resp. $\left(\mathrm{max}\left(E\right),n\right)$, $\left(1,\mathrm{max}\left(N\right)\right)$, $\left(\mathrm{max}\left(W\right),1\right)$ ] (see Figure 5).

Definition 2. The segment $\left[\mathrm{min}\left(S\right),\mathrm{max}\left(S\right)\right]$ is called the S-foot. Similarly, the segments $\left[\mathrm{min}\left(E\right),\mathrm{max}\left(E\right)\right]$, $\left[\mathrm{min}\left(N\right),\mathrm{max}\left(N\right)\right]$ and $\left[\mathrm{min}\left(W\right),\mathrm{max}\left(W\right)\right]$ are called E-foot, N-foot and W-foot.

For a bounding rectangle R and for a given polyomino P, let us define the following sets:

$WN=\left\{\left(i,j\right)\in P|i<\mathrm{min}\left(W\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }j<\mathrm{min}\left(N\right)\right\}$,

$SE=\left\{\left(i,j\right)\in P|i>\mathrm{max}\left(E\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }j>\mathrm{max}\left(S\right)\right\}$,

Figure 4. The convex polyomino on the left is 2-convex, while the one on the right is 1-convex.

Figure 5. Min and max of the four feet.

$NE=\left\{\left(i,j\right)\in P|i<\mathrm{min}\left(E\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }j>\mathrm{max}\left(N\right)\right\}$,

$WS=\left\{\left(i,j\right)\in P|i>\mathrm{max}\left(W\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }j<\mathrm{min}\left(S\right)\right\}$.

Let $\mathcal{C}$ be the class of HV-convex polyominoes, thus we have the following classes of polyominoes regarding the position of the non-intersecting feet.

$\begin{array}{l}{\alpha }^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}card\left(WN\right)=1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1\right\}\end{array}$,

$\begin{array}{l}{\beta }^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(S\right)<\mathrm{min}\left(N\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(E\right)<\mathrm{min}\left(W\right);\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }card\left(NE\right)=1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }card\left(WS\right)=1\right\}\end{array}$,

$\begin{array}{l}{\alpha }_{2L}^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }card\left(WN\right)=1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1\right\}\end{array}$, where P is a 2-convex polyomino.

$\begin{array}{l}{\beta }_{2L}^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(S\right)<\mathrm{min}\left(N\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(E\right)<\mathrm{min}\left(W\right);\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }card\left(NE\right)=1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }card\left(WS\right)=1\right\}\end{array}$, where P is a 2-convex polyomino.

Now in order to understand the different geometries of the class ${\alpha }_{2L}^{1,1}$, let us define the following subclasses of the class ${\alpha }^{1,1}$.

$\begin{array}{l}{\gamma }^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);card\left(WN\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1;\mathrm{min}\left(E\right)=\mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)=\mathrm{max}\left(N\right)+1\right\}\end{array}$ (see Figure 6).

$\begin{array}{l}{\delta }^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(S\right)<\mathrm{min}\left(N\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(E\right)<\mathrm{min}\left(W\right);card\left(NE\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(WS\right)=1;\mathrm{min}\left(E\right)\ne \mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)=\mathrm{max}\left(N\right)+1\right\}\end{array}$. (see Figure 6).

$\begin{array}{l}{\Delta }^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);card\left(WN\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1;\text{\hspace{0.17em}}\mathrm{min}\left(E\right)=\mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)\ne \mathrm{max}\left(N\right)+1\right\}\end{array}$ (see Figure 6).

$\begin{array}{l}{\chi }^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);card\left(WN\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1;\mathrm{min}\left(E\right)\ne \mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)\ne \mathrm{max}\left(N\right)+1\right\}\end{array}$ (see Figure 6).

$\begin{array}{l}{\gamma }_{2L}^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);card\left(WN\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1;\mathrm{min}\left(E\right)=\mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)=\mathrm{max}\left(N\right)+1\right\}\end{array}$, where P is a 2-convex polyomino.

$\begin{array}{l}{\delta }_{2L}^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(S\right)<\mathrm{min}\left(N\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(E\right)<\mathrm{min}\left(W\right);card\left(NE\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(WS\right)=1;\mathrm{min}\left(E\right)\ne \mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)=\mathrm{max}\left(N\right)+1\right\}\end{array}$, where P is a 2-convex polyomino.

$\begin{array}{l}{\Delta }_{2L}^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);card\left(WN\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1;\mathrm{min}\left(E\right)=\mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)\ne \mathrm{max}\left(N\right)+1\right\}\end{array}$, where P is a 2-convex polyomino.

$\begin{array}{l}{\chi }_{2L}^{1,1}=\left\{P\in \mathcal{C}|\mathrm{max}\left(N\right)<\mathrm{min}\left(S\right)\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{max}\left(W\right)<\mathrm{min}\left(E\right);card\left(WN\right)=1\\ \text{and}\text{\hspace{0.17em}}\text{ }card\left(SE\right)=1;\mathrm{min}\left(E\right)\ne \mathrm{max}\left(W\right)+1\text{\hspace{0.17em}}\text{ }\text{and}\text{\hspace{0.17em}}\text{ }\mathrm{min}\left(S\right)\ne \mathrm{max}\left(N\right)+1\right\}\end{array}$, where P is a 2-convex polyomino.

Theorem 1. Let P be a convex polyomino in the class ${\gamma }^{1,1}$, P is 2-convex if and only if there exists an L-path from

1) $\left\{\begin{array}{c}\mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(S\right)\end{array}$

or

2) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(E\right)\end{array}$

or

3) $\left\{\begin{array}{c}\mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ \mathrm{max}\left(W\right)\text{tothe corner cell in}SE\end{array}$

Figure 6. An element of the class: (a) ${\gamma }^{1,1}$, (b) ${\delta }^{1,1}$, (c) ${\Delta }^{1,1}$, (d) ${\chi }^{1,1}$.

or

4) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{tothe corner cell in}SE\end{array}$

Corollary 1. If P satisfies the conditions of Theorem 2, then P is in the class ${\gamma }_{2L}^{1,1}$ and hence it is in the class ${\alpha }_{2L}^{1,1}$ (see Figure 7).

Theorem 2. Let P be a convex polyomino in the class ${\delta }^{1,1}$, P is 2-convex if and only if there exists an L-path from

1) $\left\{\begin{array}{c}\mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(S\right)\end{array}$

or

2) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{tothe corner cell in}SE\end{array}$

or

3) $\left\{\begin{array}{c}\mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ \mathrm{max}\left(W\right)\text{tothe corner cell in}SE\end{array}$

or

4) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(E\right)\end{array}$

or

Figure 7. The four geometries in the class ${\gamma }_{2L}^{1,1}$.

5) $\left\{\begin{array}{c}\mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ 2L\text{-path starting by a south step from}\mathrm{min}\left(N\right)\text{to}\\ \text{the corner cell in}SE\end{array}$

or

6) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{tothe corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by a south step from}\\ \text{the corner cell in}WN\text{to}\mathrm{max}\left(S\right)\end{array}$

or

7) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by a south step fromthe corner cell in}WN\text{to}\\ \text{the corner cell in}SE\end{array}$

Corollary 2. If P satisfies the conditions of Theorem 3, then P is in the class ${\delta }_{2L}^{1,1}$ and hence it is in the class ${\alpha }_{2L}^{1,1}$ (see Figure 8).

Theorem 3. Let P be a convex polyomino in the class ${\Delta }^{1,1}$, P is 2-convex if and only if there exists an L-path from

1) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(E\right)\end{array}$

or

Figure 8. The seven geometries in the class ${\delta }_{2L}^{1,1}$.

2) $\left\{\begin{array}{c}\mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ \mathrm{max}\left(W\right)\text{tothe corner cell in}SE\end{array}$

or

3) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{tothe corner cell in}SE\end{array}$

or

4) $\left\{\begin{array}{c}\mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(S\right)\end{array}$

or

5) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by an east step from}\mathrm{min}\left(W\right)\text{to}\\ \text{the corner cell in}SE\end{array}$

or

6) $\left\{\begin{array}{c}\mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ \mathrm{max}\left(W\right)\text{tothe corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by an east step from}\\ \text{the corner cell in}WN\text{to}\mathrm{max}\left(E\right)\end{array}$

or

7) $\left\{\begin{array}{c}\mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ \mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ 2L\text{-path starting by an east step fromthe corner cell in}WN\text{to}\\ \text{the corner cell in}SE\end{array}$

Corollary 3. If P satisfies the conditions of Theorem 4, then P is in the class ${\Delta }_{2L}^{1,1}$ and hence it is in the class ${\alpha }_{2L}^{1,1}$ (see Figure 9).

Theorem 4. Let P be a convex polyomino in the class ${\chi }^{1,1}$, P is 2-convex if and only if there exists an L-path from

1) $\left\{\begin{array}{c}\mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ \mathrm{max}\left(W\right)\text{tothe corner cell in}SE\end{array}$

or

2) $\left\{\begin{array}{c}\mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ \mathrm{min}\left(W\right)\text{tothe corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by an east step from}\\ \text{the corner cell in}WN\text{to}\mathrm{max}\left(E\right)\end{array}$

or

3) $\left\{\begin{array}{c}\mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(S\right)\end{array}$

or

4) $\left\{\begin{array}{c}\mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ 2L\text{-path starting by a south step from}\mathrm{mi}\left(\left(N\right)\text{to}\\ \text{the corner cell in}SE\end{array}$

or

5) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{tothe corner cell in}SE\end{array}$

or

6) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{tothe corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by a south step from}\\ \text{the corner cell in}WN\text{to}\mathrm{max}\left(S\right)\end{array}$

or

7) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(E\right)\end{array}$

or

Figure 9. The seven geometries in the class ${\Delta }_{2L}^{1,1}$.

8) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \text{the corner cell in}WN\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by an east step from}\mathrm{min}\left(W\right)\text{to}\\ \text{the corner cell in}SE\end{array}$

or

9) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by an east step from}\\ \text{the corner cell in}WN\text{tothe corner cell in}SE\end{array}$

or

10) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by an east step fromthe corner cell in}WN\text{to}\\ \text{the corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by a south step from}\mathrm{min}\left(N\right)\text{to}\\ \text{the corner cell in}SE\end{array}$

or

11) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ and\\ \mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by an east step fromto}\\ \text{the corner cell in}WN\text{tothe corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by a south step from}\\ \text{the corner cell in}WN\text{to}\mathrm{max}\left(S\right)\end{array}$

or

12) $\left\{\begin{array}{c}\mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ \mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ 2L\text{-path starting by a south step from}\\ \text{the corner cell in}WN\text{tothe corner cell in}SE\end{array}$

or

13) $\left\{\begin{array}{c}\mathrm{max}\left(W\right)\text{to}\mathrm{max}\left(S\right)\\ \text{and}\\ \mathrm{max}\left(N\right)\text{to}\mathrm{max}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by a south step from}\\ \text{the corner cell in}WN\text{tothe corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by an east step from}\mathrm{min}\left(W\right)\text{to}\\ \text{the corner cell in}SE\end{array}$

or

14) $\left\{\begin{array}{c}\mathrm{min}\left(W\right)\text{to}\mathrm{min}\left(S\right)\\ \text{and}\\ \mathrm{min}\left(N\right)\text{to}\mathrm{min}\left(E\right)\\ \text{and}\\ 2L\text{-path starting by a south step from}\\ \text{the corner cell in}WN\text{tothe corner cell in}SE\\ \text{and}\\ 2L\text{-path starting by an east step from}\\ \text{the corner cell in}WN\text{to}\mathrm{max}\left(E\right)\end{array}$

Corollary 4. If P satisfies the conditions of Theorem 5, then P is in the class ${\chi }_{2L}^{1,1}$ and hence it is in the class ${\alpha }_{2L}^{1,1}$ (see Figure 10 and Figure 11).

4. HV-Convex Polyominoes

Assume that H, V denote strictly positive row and column sum vectors. We also assume that ${\sum }_{i}{h}_{i}={\sum }_{j}{v}_{j}$, since otherwise $\left(H,V\right)$ do not have a realization.

The idea of Chrobak and Dürr  for reconstructing an HV-convex polyomino is to impose convexity on the four corner regions outside of the polyomino.

An object A is called an upper-left corner region if $\left(i+1,j\right)\in A$ or $\left(i,j+1\right)\in A$ implies $\left(i,j\right)\in A$. In an analogous way other corner regions can be defined. Let $\stackrel{¯}{P}$ be the complement of P. The definition of HV-convex polyominoes directly implies the following lemma.

Lemma 1. P is an HV-convex polyomino if and only if $\stackrel{¯}{P}=A\cup B\cup C\cup D$, where $A,B,C,D$ are disjoint corner regions (upper-left, upper-right, lower-left and lower-right, respectively) such that 1) $\left(i-1,j-1\right)\in A$ implies $\left(i,j\right)$ not in D, and 2) $\left(i-1,j+1\right)\in B$ implies $\left(i,j\right)\notin C$.

Figure 10. The first twelve geometries in the class ${\chi }_{2L}^{1,1}$.

Figure 11. The last two geometries in the class ${\chi }_{2L}^{1,1}$.

Given an HV-convex polyomino P and two row indices $1\le k,l\le m$. P is anchored at $\left(k,l\right)$ if $\left(k,1\right),\left(l,n\right)\in P$. The idea of Chrobak and Dürr is, given $\left(H,V\right)$, to reconstruct a 2SAT expression (a boolean expression in conjunctive normal form with at most two literals in each clause) ${F}_{k,l}\left(H,V\right)$ with the property that ${F}_{k,l}\left(H,V\right)$ is satisfiable iff there is an HV-convex polyomino realization P of $\left(H,V\right)$ that is anchored at $\left(k,l\right)$. ${F}_{k,l}\left(H,V\right)$ consists of several sets of clauses, each set expressing a certain property: “Corners” (Cor), “Disjointness” (Dis), “Connectivity” (Con), “Anchors” (Anc), “Lower bound on column sums” (LBC) and “Upper bound on row sums” (UBR).

$Cor={\wedge }_{i,j}\left\{\begin{array}{cccc}{A}_{i,j}⇒{A}_{i-1,j}& {B}_{i,j}⇒{B}_{i-1,j}& {C}_{i,j}⇒{C}_{i+1,j}& {D}_{i,j}⇒{D}_{i+1,j}\\ {A}_{i,j}⇒{A}_{i,j-1}& {B}_{i,j}⇒{B}_{i,j+1}& {C}_{i,j}⇒{C}_{i,j-1}& {D}_{i,j}⇒{D}_{i,j+1}\end{array}\right\}$

The set of clauses $Cor$ means that the corners are convex, that is for the corner A if the cell $\left(i,j\right)$ belongs to A then cells $\left(i-1,j\right)$ and $\left(i,j-1\right)$ belong also to A. Similarly for corners B, C, and D.

$Dis={\wedge }_{i,j}\left\{{X}_{i,j}⇒{\stackrel{¯}{Y}}_{i,j}:\text{forsymbols}X,Y\in \left\{A,B,C,D\right\},X\ne Y\right\}$

The set of clauses $Dis$ means that all four corners are pairwise disjoint, that is $X\cap Y=\varnothing$ for $X,Y\in \left\{A,B,C,D\right\}$.

$Con={\wedge }_{i,j}\left\{\begin{array}{cc}{A}_{i,j}⇒{\stackrel{¯}{D}}_{i+1,j+1}& {B}_{i,j}⇒{\stackrel{¯}{C}}_{i+1,j-1}\end{array}\right\}$

The set of clauses $Con$ means that if the cell $\left(i,j\right)$ belongs to A then the cell $\left(i+1,j+1\right)$ does not belong to D, and similarly if the cell $\left(i,j\right)$ belongs to B then the cell $\left(i+1,j-1\right)$ does not belong to C.

$Anc=\left\{{\stackrel{¯}{A}}_{k,1}\wedge {\stackrel{¯}{B}}_{k,1}\wedge {\stackrel{¯}{C}}_{k,1}\wedge {\stackrel{¯}{D}}_{k,1}\wedge {\stackrel{¯}{A}}_{l,n}\wedge {\stackrel{¯}{B}}_{l,n}\wedge {\stackrel{¯}{C}}_{l,n}\wedge {\stackrel{¯}{D}}_{l,n}\right\}$

The set of clauses $Anc$ means that we fix two cells on the west and east feet of the polyomino P, for $k,l=1,\cdots ,m$ the first one at the position $\left(k,1\right)$ and the second one at the position $\left(l,n\right)$.

$LBC={\wedge }_{i,j}\left\{\begin{array}{cc}{A}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}& {A}_{i,j}⇒{\stackrel{¯}{D}}_{i+{v}_{j},j}\\ {B}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}& {B}_{i,j}⇒{\stackrel{¯}{D}}_{i+{v}_{j},j}\end{array}\right\}\wedge {\wedge }_{j}\left\{\begin{array}{cc}{\stackrel{¯}{C}}_{{v}_{j},j}& {\stackrel{¯}{D}}_{{v}_{j},j}\end{array}\right\}$

The set of clauses LBC implies that for each column j, we have that ${\sum }_{i}{P}_{i,j}\ge {v}_{j}$.

$UBR={\wedge }_{j}\left\{\begin{array}{cc}{\wedge }_{i\le \mathrm{min}\left\{k,l\right\}}{\stackrel{¯}{A}}_{i,j}⇒{B}_{i,j+{h}_{i}}& {\wedge }_{k\le i\le l}{\stackrel{¯}{C}}_{i,j}⇒{B}_{i,j+{h}_{i}}\\ {\wedge }_{l\le i\le k}{\stackrel{¯}{A}}_{i,j}⇒{D}_{i,j+{h}_{i}}& {\wedge }_{\mathrm{max}\left\{k,l\right\}\le i}{\stackrel{¯}{C}}_{i,j}⇒{D}_{i,j+{h}_{i}}\end{array}\right\}$

The set of clauses UBR implies that for each row i, we have that ${\sum }_{j}{P}_{i,j}\le {h}_{i}$.

Define ${F}_{k,l}\left(H,V\right)=Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR$. All literals with indices outside the set $\left\{1,\cdots ,m\right\}×\left\{1,\cdots ,n\right\}$ are assumed to have value 1.

The following theorem allows to link the existence of HV-convex solution and the evaluation of ${F}_{k,l}\left(H,V\right)$. The crucial part of this algorithm comes from the constraints on the two sets of clauses LBC and UBR.

Theorem 5 (Chrobak, Durr). ${F}_{k,l}\left(H,V\right)$ is satisfiable if and only if $\left(H,V\right)$ have a realization P that is an HV-convex polyomino anchored at $\left(k,l\right)$.

Each formula ${F}_{k,l}\left(H,V\right)$ has size $O\left(mn\right)$ and can be computed in time $O\left(mn\right)$. Since 2SAT can be solved in linear time see   , Chrobak and Dürr give the following result.

Theorem 6 (Chrobak, Durr). Algorithm 1 solves the reconstruction problem for HV-convex polyominoes in time $O\left(mn\mathrm{min}\left({m}^{2},{n}^{2}\right)\right)$.

5. Reconstruction of 2-Convex Polyominoes in ${\alpha }_{2L}^{1,1}$

The present section uses the theoretical material of the previous sections in order to reconstruct 2-convex polyominoes in the class ${\alpha }_{2L}^{1,1}$. Some modifications are made to the reconstruction algorithm of Chrobak and Dürr for HV-convex polyominoes in order to impose our geometries.

Finally, by defining an horizontal symmetry ${S}_{H}$, we show how to reconstruct P in the class ${\beta }_{2L}^{1,1}$.

5.1. Clauses for the Class ${\gamma }_{2L}^{1,1}$

We code by a 2SAT formula the four geometries that characterize all 2-convex polyominoes in the class ${\gamma }_{2L}^{1,1}$ in order to reconstruct them.

$Pos=\left\{\begin{array}{c}{C}_{\left(\mathrm{max}\left(W\right)+1,1\right)}\wedge {C}_{\left(m,\mathrm{max}\left(N\right)\right)}\wedge {A}_{1,1}\wedge {D}_{m,n}\end{array}\right\}$

$Cor={\wedge }_{i,j}\left\{\begin{array}{cccc}{A}_{i,j}⇒{A}_{i-1,j}& {B}_{i,j}⇒{B}_{i-1,j}& {C}_{i,j}⇒{C}_{i+1,j}& {D}_{i,j}⇒{D}_{i+1,j}\\ {A}_{i,j}⇒{A}_{i,j-1}& {B}_{i,j}⇒{B}_{i,j+1}& {C}_{i,j}⇒{C}_{i,j-1}& {D}_{i,j}⇒{D}_{i,j+1}\end{array}\right\}$

$Dis={\wedge }_{i,j}\left\{{X}_{i,j}⇒{\stackrel{¯}{Y}}_{i,j}:\text{forsymbols}X,Y\in \left\{A,B,C,D\right\},X\ne Y\right\}$

$Con={\wedge }_{i,j}\left\{\begin{array}{cc}{A}_{i,j}⇒{\stackrel{¯}{D}}_{i+1,j+1}& {B}_{i,j}⇒{\stackrel{¯}{C}}_{i+1,j-1}\end{array}\right\}$

$Anc=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right)+1,n}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right)+1,n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right)+1,n}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right)+1,n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{max}\left(N\right)+1}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{D}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{max}\left(N\right)+1}\wedge \\ {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{max}\left(S\right)}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{max}\left(S\right)}\end{array}\right\}$

$\begin{array}{l}LBC={\wedge }_{i}\left\{\begin{array}{cc}{\wedge }_{j<\mathrm{min}\left(N\right)}{A}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}& {\wedge }_{\mathrm{max}\left(N\right)+1\le j\le \mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{min}\left(N\right)\le j\le \mathrm{max}\left(N\right)}{C}_{i+{v}_{j},j}⇒{\stackrel{¯}{A}}_{i,j}& {\wedge }_{j>\mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{D}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{max}\left(N\right)

$UBR={\wedge }_{j}\left\{\begin{array}{cc}{\wedge }_{i<\mathrm{max}\left(W\right)+1}{\stackrel{¯}{A}}_{i,j}⇒{B}_{i,j+{h}_{i}}& {\wedge }_{\mathrm{min}\left(W\right)\le i\le \mathrm{max}\left(W\right)}{\stackrel{¯}{A}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{max}\left(W\right)+1\le i\le \mathrm{max}\left(E\right)}{\stackrel{¯}{B}}_{i,j+{h}_{i}}⇒{A}_{i,j}& {\wedge }_{i>\mathrm{max}\left(W\right)}{\stackrel{¯}{C}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{max}\left(E\right)

$REC=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$REC1=\left\{\begin{array}{c}{A}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-2}\wedge {A}_{\mathrm{min}\left(W\right)-2,\mathrm{min}\left(N\right)-1}\wedge {D}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+2}\\ \wedge {D}_{\mathrm{max}\left(E\right)+2,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$GEO1=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(N\right),\mathrm{max}\left(W\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(N\right),\mathrm{max}\left(W\right)+1}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(N\right),\mathrm{max}\left(W\right)+1}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(N\right),\mathrm{max}\left(W\right)+1}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\end{array}\right\}$

$GEO2=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\end{array}\right\}$

$GEO3=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$GEO4=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\end{array}\right\}$

In order to reconstruct all 2-convex polyominoes in the class ${\gamma }_{2L}^{1,1}$, we use the set of clauses that impose the 4 geometries.

$\begin{array}{l}{\gamma }_{2L,Geo1}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO1.\end{array}$

$\begin{array}{l}{\gamma }_{2l,Geo2}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO2.\end{array}$

$\begin{array}{l}{\gamma }_{2L,Geo3}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO3.\end{array}$

$\begin{array}{l}{\gamma }_{2L,Geo4}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO4.\end{array}$

Proof. The following modifications of the original algorithm of Chrobak and Durr  are made in order to add the geometrical constraints of the class ${\gamma }_{2L}^{1,1}$.

• The set $Pos$ imposes the constraint of the relative positions of feet in ${\gamma }_{2L}^{1,}$ with $\mathrm{min}\left(E\right)=\mathrm{max}\left(W\right)+1$ and $\mathrm{min}\left(S\right)=\mathrm{max}\left(N\right)+1$.

• The set $REC$ implies that thes cells at the positions $\left(\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-1\right)$ and $\left(\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+1\right)$ are in the interior of the polyomino.

• The set $REC1$ implies that the cells at the prositions $\left(\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-2\right)$, $\left(\mathrm{min}\left(W\right)-2,\mathrm{min}\left(N\right)-1\right)$, $\left(\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+2\right)$, and $\left(\mathrm{max}\left(E\right)+2,\mathrm{max}\left(S\right)+1\right)$ are not in the interior of the polyomino.

• The set $GEO1$ implies that we put a cell in the interior of the polyomino at the position $\left(\mathrm{max}\left(W\right)-1,\mathrm{max}\left(N\right)+1\right)$ (resp. $\left(\mathrm{min}\left(N\right),\mathrm{max}\left(W\right)+1\right)$ and then by convexity an L-path between $\mathrm{max}\left(W\right)-1$ and $\mathrm{max}\left(N\right)+1$ (resp. $\mathrm{min}\left(N\right)$ and $\mathrm{max}\left(W\right)+1$ ). Thus we have exactly the definition of the first geometry. The set $GEO2$, $GEO3$ and $GEO4$ give respectively the L-paths of the second geometry, the third geometry and the fourth geometry.

Using the conjunction of the whole set of clauses, if one of the ${\gamma }_{2L,Geo1}^{1,1}\left(H,V\right)$ or ${\gamma }_{2L,Geo2}^{1,1}$ or ${\gamma }_{2L,Geo3}^{1,1}$ or ${\gamma }_{2L,Geo4}^{1,1}$ is satisfiable then we are able to reconstruct an HV-convex with the constraints of the subclass ${\gamma }_{2L}^{1,1}$ (see Figure 12). $\square$

5.2. Clauses for the Class ${\delta }_{2L}^{1,1}$

We code by a 2SAT formula the seven geometries that characterize all 2-convex polyominoes in the class ${\delta }_{2L}^{1,1}$ in order to reconstruct them.

$Pos=\left\{\begin{array}{c}{C}_{\left(\mathrm{min}\left(E\right),1\right)}\wedge {C}_{\left(m,\mathrm{max}\left(N\right)\right)}\wedge {A}_{1,1}\wedge {D}_{m,n}\end{array}\right\}$

$Cor={\wedge }_{i,j}\left\{\begin{array}{cccc}{A}_{i,j}⇒{A}_{i-1,j}& {B}_{i,j}⇒{B}_{i-1,j}& {C}_{i,j}⇒{C}_{i+1,j}& {D}_{i,j}⇒{D}_{i+1,j}\\ {A}_{i,j}⇒{A}_{i,j-1}& {B}_{i,j}⇒{B}_{i,j+1}& {C}_{i,j}⇒{C}_{i,j-1}& {D}_{i,j}⇒{D}_{i,j+1}\end{array}\right\}$

$Dis={\wedge }_{i,j}\left\{{X}_{i,j}⇒{\stackrel{¯}{Y}}_{i,j}:\text{forsymbols}X,Y\in \left\{A,B,C,D\right\},X\ne Y\right\}$

$Con={\wedge }_{i,j}\left\{\begin{array}{cc}{A}_{i,j}⇒{\stackrel{¯}{D}}_{i+1,j+1}& {B}_{i,j}⇒{\stackrel{¯}{C}}_{i+1,j-1}\end{array}\right\}$

$Anc=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),n}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),n}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{max}\left(N\right)+1}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{D}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{max}\left(N\right)+1}\wedge \\ {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{max}\left(S\right)}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{max}\left(S\right)}\end{array}\right\}$

Figure 12. $Pos,ANC,REC$ and $REC1$ in the class ${\gamma }_{2L}^{1,1}$

$\begin{array}{l}LBC={\wedge }_{i}\left\{\begin{array}{cc}{\wedge }_{j<\mathrm{min}\left(N\right)}{A}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}& {\wedge }_{\mathrm{max}\left(N\right)+1\le j\le \mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{min}\left(N\right)\le j\le \mathrm{max}\left(N\right)}{C}_{i+{v}_{j},j}⇒{\stackrel{¯}{A}}_{i,j}& {\wedge }_{j>\mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{D}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{max}\left(N\right)

$UBR={\wedge }_{j}\left\{\begin{array}{cc}{\wedge }_{i<\mathrm{min}\left(E\right)}{\stackrel{¯}{A}}_{i,j}⇒{B}_{i,j+{h}_{i}}& {\wedge }_{\mathrm{min}\left(W\right)\le i\le \mathrm{max}\left(W\right)}{\stackrel{¯}{A}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{min}\left(E\right)\le i\le \mathrm{max}\left(E\right)}{\stackrel{¯}{B}}_{i,j+{h}_{i}}⇒{A}_{i,j}& {\wedge }_{i>\mathrm{max}\left(W\right)}{\stackrel{¯}{C}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{max}\left(E\right)

$REC=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$REC1=\left\{\begin{array}{c}{A}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-2}\wedge {A}_{\mathrm{min}\left(W\right)-2,\mathrm{min}\left(N\right)-1}\wedge {D}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+2}\\ \wedge {D}_{\mathrm{max}\left(E\right)+2,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$GEO1=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\end{array}\right\}$

$GEO2=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\end{array}\right\}$

$GEO3=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$GEO4=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)-1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)-1}\end{array}\right\}$

$LGEO5=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\end{array}\right\}$

$2LGEO5=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)+1}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{X}}_{\mathrm{min}\left(E\right)-1,\mathrm{max}\left(S\right)+1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO6=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\end{array}\right\}$

$2LGEO6=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)-1}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{X}}_{\mathrm{min}\left(E\right)-1,\mathrm{max}\left(S\right)},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO7=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\end{array}\right\}$

$2LGEO7=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)-1}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)+1}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{X}}_{\mathrm{min}\left(E\right)-1,\mathrm{max}\left(S\right)+1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

In order to reconstruct all 2-convex polyominoes in the class ${\delta }_{2L}^{1,1}$, we use the set of clauses that impose the 7 geometries.

$\begin{array}{l}{\delta }_{2L,Geo1}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO1.\end{array}$

$\begin{array}{l}{\delta }_{2L,Geo2}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO2.\end{array}$

$\begin{array}{l}{\delta }_{2L,Geo3}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO3.\end{array}$

$\begin{array}{l}{\delta }_{2L,Geo4}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO4.\end{array}$

$\begin{array}{l}{\delta }_{2L,LGeo5,2LGEO5}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge LGEO5\wedge 2LGEO5.\end{array}$

$\begin{array}{l}{\delta }_{2L,LGeo6,2LGEO6}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge LGEO6\wedge 2LGEO6.\end{array}$

$\begin{array}{l}{\delta }_{2L,LGeo7,2LGEO7}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge LGEO7\wedge 2LGEO7.\end{array}$

5.3. Clauses for the Class ${\Delta }_{2L}^{1,1}$

We code by a 2SAT formula the seven geometries that characterize all 2-convex polyominoes in the class ${\Delta }_{2L}^{1,1}$ in order to reconstruct them.

$Pos=\left\{\begin{array}{c}{C}_{\left(\mathrm{max}\left(W\right)+1,1\right)}\wedge {C}_{\left(m,\mathrm{max}\left(N\right)\right)}\wedge {A}_{1,1}\wedge {D}_{m,n}\end{array}\right\}$

$Cor={\wedge }_{i,j}\left\{\begin{array}{cccc}{A}_{i,j}⇒{A}_{i-1,j}& {B}_{i,j}⇒{B}_{i-1,j}& {C}_{i,j}⇒{C}_{i+1,j}& {D}_{i,j}⇒{D}_{i+1,j}\\ {A}_{i,j}⇒{A}_{i,j-1}& {B}_{i,j}⇒{B}_{i,j+1}& {C}_{i,j}⇒{C}_{i,j-1}& {D}_{i,j}⇒{D}_{i,j+1}\end{array}\right\}$

$Dis={\wedge }_{i,j}\left\{\begin{array}{c}{X}_{i,j}⇒{\stackrel{¯}{Y}}_{i,j}:\text{forsymbols}X,Y\in \left\{A,B,C,D\right\},X\ne Y\end{array}\right\}$

$Con={\wedge }_{i,j}\left\{\begin{array}{cc}{A}_{i,j}⇒{\stackrel{¯}{D}}_{i+1,j+1}& {B}_{i,j}⇒{\stackrel{¯}{C}}_{i+1,j-1}\end{array}\right\}$

$Anc=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right)+1,n}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right)+1,n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right)+1,n}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right)+1,n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{min}\left(S\right)}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{D}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{min}\left(S\right)}\wedge \\ {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{max}\left(S\right)}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{max}\left(S\right)}\end{array}\right\}$

$\begin{array}{l}LBC={\wedge }_{i}\left\{\begin{array}{cc}{\wedge }_{j<\mathrm{min}\left(N\right)}{A}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}& {\wedge }_{\mathrm{min}\left(S\right)\le j\le \mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{min}\left(N\right)\le j\le \mathrm{max}\left(N\right)}{C}_{i+{v}_{j},j}⇒{\stackrel{¯}{A}}_{i,j}& {\wedge }_{j>\mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{D}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{max}\left(N\right)

$UBR={\wedge }_{j}\left\{\begin{array}{cc}{\wedge }_{i<\mathrm{max}\left(W\right)+1}{\stackrel{¯}{A}}_{i,j}⇒{B}_{i,j+{h}_{i}}& {\wedge }_{\mathrm{min}\left(W\right)\le i\le \mathrm{max}\left(W\right)}{\stackrel{¯}{A}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{max}\left(W\right)+1\le i\le \mathrm{max}\left(E\right)}{\stackrel{¯}{B}}_{i,j+{h}_{i}}⇒{A}_{i,j}& {\wedge }_{i>\mathrm{max}\left(W\right)}{\stackrel{¯}{C}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{max}\left(E\right)

$REC=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$REC1=\left\{\begin{array}{c}{A}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-2}\wedge {A}_{\mathrm{min}\left(W\right)-2,\mathrm{min}\left(N\right)-1}\wedge {D}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+2}\\ \wedge {D}_{\mathrm{max}\left(E\right)+2,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$GEO1=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\end{array}\right\}$

$GEO2=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$GEO3=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\end{array}\right\}$

$GEO4=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\end{array}\right\}$

$LGEO5=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(W\right)+1}\end{array}\right\}$

$2LGEO5=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right),j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right)+1,\mathrm{min}\left(S\right)-1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO6=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$2LGEO6=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right)-1,j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right),\mathrm{min}\left(S\right)-1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO7=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\end{array}\right\}$

$2LGEO7=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right)-1,j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right)+1,\mathrm{min}\left(S\right)-1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

In order to reconstruct all 2-convex polyominoes in the class ${\Delta }_{2L}^{1,1}$, we use the set of clauses that impose the 7 geometries.

$\begin{array}{l}{\Delta }_{2L,Geo1}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO1.\end{array}$

$\begin{array}{l}{\Delta }_{2L,Geo2}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO2.\end{array}$

$\begin{array}{l}{\Delta }_{2L,Geo3}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO3.\end{array}$

$\begin{array}{l}{\Delta }_{2L,Geo4}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge GEO4.\end{array}$

$\begin{array}{l}{\Delta }_{2L,LGeo5,2LGEO5}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{ }\text{ }\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge LGEO5\wedge 2LGEO5.\end{array}$

$\begin{array}{l}{\Delta }_{2L,LGeo6,2LGEO6}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge LGEO6\wedge 2LGEO6.\end{array}$

$\begin{array}{l}{\Delta }_{2L,LGeo7,2LGEO7}^{1,1}\left(H,V\right)=Pos\wedge Cor\wedge Dis\wedge Con\wedge Anc\wedge LBC\wedge UBR\\ \text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\text{\hspace{0.17em}}\wedge REC\wedge REC1\wedge LGEO7\wedge 2LGEO7.\end{array}$

5.4. Clauses for the Class #Math_352#

We code by a 2SAT formula the fourteen geometries that characterize all 2-convex polyominoes in the class ${\chi }_{2L}^{1,1}$ in order to reconstruct them.

$Pos=\left\{\begin{array}{c}{C}_{\left(\mathrm{min}\left(E\right),1\right)}\wedge {C}_{\left(m,\mathrm{max}\left(N\right)\right)}\wedge {A}_{1,1}\wedge {D}_{m,n}\end{array}\right\}$

$Cor={\wedge }_{i,j}\left\{\begin{array}{cccc}{A}_{i,j}⇒{A}_{i-1,j}& {B}_{i,j}⇒{B}_{i-1,j}& {C}_{i,j}⇒{C}_{i+1,j}& {D}_{i,j}⇒{D}_{i+1,j}\\ {A}_{i,j}⇒{A}_{i,j-1}& {B}_{i,j}⇒{B}_{i,j+1}& {C}_{i,j}⇒{C}_{i,j-1}& {D}_{i,j}⇒{D}_{i,j+1}\end{array}\right\}$

$Dis={\wedge }_{i,j}\left\{\begin{array}{c}{X}_{i,j}⇒{\stackrel{¯}{Y}}_{i,j}:\text{forsymbols}X,Y\in \left\{A,B,C,D\right\},X\ne Y\end{array}\right\}$

$Con={\wedge }_{i,j}\left\{\begin{array}{cc}{A}_{i,j}⇒{\stackrel{¯}{D}}_{i+1,j+1}& {B}_{i,j}⇒{\stackrel{¯}{C}}_{i+1,j-1}\end{array}\right\}$

$Anc=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),n}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),n}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{min}\left(S\right)}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{D}}_{1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{min}\left(S\right)}\wedge \\ {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),n}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),n}\wedge \\ {\stackrel{¯}{A}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{m,\mathrm{max}\left(S\right)}\wedge \\ {\stackrel{¯}{C}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{m,\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{m,\mathrm{max}\left(S\right)}\end{array}\right\}$

$\begin{array}{l}LBC={\wedge }_{i}\left\{\begin{array}{cc}{\wedge }_{j<\mathrm{min}\left(N\right)}{A}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}& {\wedge }_{\mathrm{min}\left(S\right)\le j\le \mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{C}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{min}\left(N\right)\le j\le \mathrm{max}\left(N\right)}{C}_{i+{v}_{j},j}⇒{\stackrel{¯}{A}}_{i,j}& {\wedge }_{j>\mathrm{max}\left(S\right)}{B}_{i,j}⇒{\stackrel{¯}{D}}_{i+{v}_{j},j}\\ {\wedge }_{\mathrm{max}\left(N\right)

$UBR={\wedge }_{j}\left\{\begin{array}{cc}{\wedge }_{i<\mathrm{min}\left(E\right)}{\stackrel{¯}{A}}_{i,j}⇒{B}_{i,j+{h}_{i}}& {\wedge }_{\mathrm{min}\left(W\right)\le i\le \mathrm{max}\left(W\right)}{\stackrel{¯}{A}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{min}\left(E\right)\le i\le \mathrm{max}\left(E\right)}{\stackrel{¯}{B}}_{i,j+{h}_{i}}⇒{A}_{i,j}& {\wedge }_{i>\mathrm{max}\left(W\right)}{\stackrel{¯}{C}}_{i,j}⇒{D}_{i,j+{h}_{i}}\\ {\wedge }_{\mathrm{max}\left(E\right)

$REC=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$REC1=\left\{\begin{array}{c}{A}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(N\right)-2}\wedge {A}_{\mathrm{min}\left(W\right)-2,\mathrm{min}\left(N\right)-1}\wedge {D}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+2}\\ \wedge {D}_{\mathrm{max}\left(E\right)+2,\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$GEO1=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$LGEO2=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(S\right)+1}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(S\right)+1}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{max}\left(S\right)+1}\end{array}\right\}$

$2LGEO2=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right)-1,j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)+1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$GEO3=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\end{array}\right\}$

$LGEO4=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(S\right)}\end{array}\right\}$

$2LGEO4=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)+1}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{X}}_{\mathrm{min}\left(E\right)-1,\mathrm{max}\left(S\right)+1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$GEO5=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\end{array}\right\}$

$LGEO6=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(N\right)}\end{array}\right\}$

$2LGEO6=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)-1}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{X}}_{\mathrm{min}\left(E\right)-1,\mathrm{max}\left(S\right)},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$GEO7=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\end{array}\right\}$

$LGEO8=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right)-1,\mathrm{min}\left(E\right)}\end{array}\right\}$

$2LGEO8=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right),j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right)+1,\mathrm{min}\left(S\right)-1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO9=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\end{array}\right\}$

$2LGEO9=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right)-1,j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right)+1,\mathrm{min}\left(S\right)-1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO10=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\end{array}\right\}$

$2{L}_{1}GEO10=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right)-1,j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right)+1,\mathrm{min}\left(S\right)-1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$2{L}_{2}GEO10=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)+1}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{X}}_{\mathrm{min}\left(E\right)-1,\mathrm{max}\left(S\right)+1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO11=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(E\right),\mathrm{min}\left(N\right)}\end{array}\right\}$

$2{L}_{1}GEO11=\left\{\begin{array}{c}{B}_{\mathrm{min}\left(W\right)-1,j}⇒{\stackrel{¯}{C}}_{\mathrm{max}\left(E\right)+1,j-1}{\wedge }_{j>1}\\ {\stackrel{¯}{X}}_{\mathrm{min}\left(W\right)-1,\mathrm{max}\left(N\right)+1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right)+1,\mathrm{min}\left(S\right)-1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$2{L}_{2}GEO11=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)-1}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{X}}_{\mathrm{min}\left(E\right)-1,\mathrm{max}\left(S\right)},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO12=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{min}\left(W\right),\mathrm{min}\left(S\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\end{array}\right\}$

$2LGEO12=\left\{\begin{array}{c}{C}_{i,\mathrm{min}\left(N\right)-1}⇒{\stackrel{¯}{B}}_{i-1,\mathrm{max}\left(S\right)+1}{\wedge }_{i>1}\\ {\stackrel{¯}{X}}_{\mathrm{max}\left(W\right)+1,\mathrm{min}\left(N\right)-1}\wedge {\stackrel{¯}{X}}_{\mathrm{max}\left(E\right)+1,\mathrm{max}\left(S\right)+1},\forall X\in \left\{A,B,C,D\right\}\end{array}\right\}$

$LGEO13=\left\{\begin{array}{c}{\stackrel{¯}{A}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\\ \wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(E\right),\mathrm{max}\left(N\right)}\wedge {\stackrel{¯}{A}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{B}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\\ \wedge {\stackrel{¯}{C}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\wedge {\stackrel{¯}{D}}_{\mathrm{max}\left(W\right),\mathrm{max}\left(S\right)}\end{array}\right\}$  In order to reconstruct all 2-convex polyominoes in the class, we use the set of clauses that impose the 14 geometries.

5.5. Reconstruction of the Class Using the Horizontal Reflexion

Given two integer vectors and. To reconstruct a polyomino P in the class, one can see that the horizontal reflexion, sends the projection vectors to, where. Now from the two vectors of projections, one can reconstruct the polyomino P in the class and then by the horizontal reflexion, we reconstruct P in the class.

Conflicts of Interest

The authors declare no conflicts of interest regarding the publication of this paper.

  Barcucci, E., Del Lungo, A., Nivat, M. and Pinzani, R. (1996) Reconstructing Convex Polyominoes from Horizontal and Vertical Projections. Theoretical Computer Science, 155, 321-347. https://doi.org/10.1016/0304-3975(94)00293-2  Brunetti, S. and Daurat, A. (2005) Random Generation of Q-Convex Sets. Theoretical Computer Science, 347, 393-414. https://doi.org/10.1016/j.tcs.2005.06.033  Castiglione, G., Restivo, A. and Vaglica, R. (2006) A Reconstruction Algorithm for L-Convex Polyominoes. Theoretical Computer Science, 356, 58-72. http://www.sciencedirect.com https://doi.org/10.1016/j.tcs.2006.01.045  Castiglione, G., Frosini, A., Munarini, E., Restivo, A. and Rinaldi, S. (2007) Combinatorial Aspects of L-Convex Polyominoes. European Journal of Combinatorics, 28, 1724-1741.  Castiglione, G. and Restivo, A. (2003) Reconstruction of L-Convex Polyominoes. Electronic Notes in Discrete Mathematics, Vol. 12, Elsevier Science, Amsterdam. https://doi.org/10.1016/S1571-0653(04)00494-9  Duchi, E., Rinaldi, S. and Schaeffer, G. (2008) The Number of Z-Convex Polyominoes. Advances in Applied Mathematics, 40, 54-72. https://doi.org/10.1016/j.aam.2006.07.004  Tawbe, K. and Vuillon, L. (2011) 2L-Convex Polyominoes: Geometrical Aspects. Contributions to Discrete Mathematics, North America, 6, 1-25.  Chrobak, M. and Dürr, C. (1999) Reconstructing hv-Convex Polyominoes from Orthogonal Projections. Information Processing Letters, 69, 283-289. https://doi.org/10.1016/S0020-0190(99)00025-3  Tawbe, K., Ghandour, N. and Atwi, A. (2019) 2-Convex Polyominoes: Non-Empty Corners. Open Journal of Discrete Mathematics, 9, 33-51.  Tawbe, K. and Vuillon, L. (2011) 2L-Convex Polyominoes: Tomographical Aspects. Contributions to Discrete Mathematics, 8, 1-12.  Even, S., Itai, A. and Shamir, A. (1976) On the Complexity of Timetable and Multicommodity Flow Problems. SIAM Journal on Computing, 5, 691-703. https://doi.org/10.1137/0205048  Aspvall, B., Plass, M.F. and Tarjan, R.E. (1979) A Linear-Time Algorithm for Testing the Truth of Certain Quantified Boolean Formulas. Information Processing Letters, 8, 121-123. https://doi.org/10.1016/0020-0190(79)90002-4          