What if a recursive field preserves, contracts, or reverses slack?

Let one recursive field rotate \((x,y)\) through an angle of infinite order and leave \(t\) fixed. Let a second field fix \((x,y)\) and double \(t\). The guard is \(x\le1+t\). The caller \((1/4,0,20)\) has ample room at every descendant. No polyhedral typing covers it. InvarGenT infers the greatest polyhedrally typable domain, \(x=y=0\) and \(t\ge0\). Changing the first field to a sixth turn gives a different answer. The compiler now infers the entire growing hexagon, including its boundary.

Allowing the rational multipliers of \(t\) to vary freely still gives a decision for whole caller families. A reset, a sign change and an arbitrarily long sequence of slack-preserving steps have distinct effects. In most cases the construction computes the greatest polyhedrally typable domain outright. Expanding fields and the zero-slack face

Fields that leave slack unchanged

Use rational indices \((y,t)\) in the observable coordinates of the guards. The field \(e\) acts by \((M_e y,r_e t)\), with every \(M_e\) preserving a common positive quadratic form. A guard is \(b_i y\le c_i+t\). For recession directions replace \(c_i\) by zero. First suppose \(r_e\ge1\) for all fields, with both neutral fields (\(r_e=1\)) and expanding fields (\(r_e>1\)).

Let \(H\) be the group generated by the neutral matrices. Compute the subspace \(L_H\) of vectors with finite \(H\)-orbit by the residue graph from the preceding note. Then compute the largest subspace \(U\subseteq L_H\) preserved by all fields. If \(L_H\) is given by row equations, close their span under right multiplication by every \(M_e\) and take the common kernel. This takes at most \(\dim y\) independent rows. Finite-orbit subspace

Every polyhedrally typable point has \(y\in U\), at any slack. Indeed, intersect its homogenized typing with the slice at the given \((t,\lambda)\). Every neutral word preserves this slice, and the compact closure of the neutral matrices acts onto it. Choose finitely many normals \(b_iM_w\) spanning the observable row space. The word \(w\) may include expanding fields. Its inequality bounds that normal by \(c_i\lambda+r_wt\), a constant on the slice. All neutral translates of this normal obey the same bound, since the neutral prefix leaves \(t\) fixed. Fix the common fixed component of \(y\) under \(H\). The centred normal orbits bound the remaining coordinates, so the slice is a bounded polyhedron on which \(H\) permutes the vertices. Thus \(y\in L_H\). Every reachable image must satisfy this requirement, which gives \(y\in U\). Bounded-slice proof

The second restriction can discard a caller whose initial neutral orbit is a singleton. A rotation fixes the \(z\) axis. Take a second field that exchanges \(x\) and \(z\) and doubles \(t\), and keep the guard \(x\le1+t\). Starting at \((0,0,1,20)\) is safe, since every measured vector has length one. The expanding field sends it to the rotating plane. This caller has no polyhedral typing.

On \(U\) the action of \(H\) is finite. Every basis vector has a finite orbit, and a matrix is determined by its action on the basis. Enumerate the resulting finite group \(J\). For each original guard and \(h\in J\) require \(b_i h y\le c_i+t\). For each expanding matrix \(M_e\) include the combined field \((M_e h,r_e)\) for every \(h\in J\). Apply the strictly expanding caller theorem on \(U\) to these guards and fields. Any original typing satisfies the new obligations. Conversely, if the reduced problem has typing \(P\), take the closed convex hull of the finitely many \(hP\). Each neutral field permutes these copies. Each expanding field takes every copy back into \(P\). The strengthened guards cover every copy. This proves both directions for points, arbitrary closed polyhedral families and recession generators. If all fields are neutral, their finite action on \(L_H\) directly gives the greatest polyhedral typing there, for either sign of \(t\). Expanding caller test · Executable neutral reduction · Neutral saturation in Lean

Any rational multiplier

Theorem. For finitely many required isometric fields with rational \(r_e\) of any sign or magnitude, a finite algorithm decides whether one closed rational polyhedral typing covers a given nonempty rational polyhedral caller family. Finite unions and private linear indices are allowed. The test first projects to the observable coordinates, including when some gain vanishes. All \(M_e\) on these coordinates are invertible, even when the full field resets \(t\) to zero.

The neutral reduction handles all \(r_e\ge1\). For every other case write \(L\) for the subspace of vectors with finite orbit under the full group of measured matrices. Each of the following arguments forces \(y\in L\).

These cases cover the remaining rational gains. On \(L\), enumerate the finite group \(J\) of measured actions. Its guards can now be written as finitely many homogeneous rows. The table gives the whole greatest polyhedrally typable domain there. Use \(\lambda=1\) for public states and \(\lambda=0\) for recession directions.

Gains Domain on \(L\)
Some \(|r_e|>1\) and some \(r_e<0\) \(t=0\) and \(b_i g y\le c_i\lambda\) for every guard \(i\) and \(g\in J\).
All \(r_e\ge0\), with an expansion and at least one gain below one \(t\ge0\) and \(b_i g y\le c_i\lambda\) for every guard \(i\) and \(g\in J\).
All \(|r_e|\le1\) Use the signed word bounds below.

In the second row, negative slack is impossible by repetition of the expanding field. At nonnegative slack the zero-slack guards are sufficient for every descendant. Necessity follows by reaching the zero-slack limit before applying any word.

For the last row, a word with measured action \(g\), product sign \(s\) and product magnitude \(q\) requires \(b_i g y\le c_i\lambda+sqt\). Build the finite graph of pairs \((g,s)\), starting from \((I,+1)\). An edge with nonzero gain multiplies \(q\) by \(|r_e|\le1\). For every reachable pair keep its largest \(q\). A simple path attains it, since removing a cycle can only increase the product. Equivalently use a shortest-path search with exact multiplicative costs \(1/|r_e|\). Retain the resulting guard for each pair.

If a field contracts or resets, also retain the row with product zero for every \(g\in J\). Its measured action has finite order on \(L\), so powers returning to the identity can drive the product arbitrarily close to zero. A reset attains zero outright. Follow these powers by a word with the desired action \(g\). The limiting row is necessary by closedness. Every actual nonzero slope of the same sign lies between zero and the retained extremum, so both endpoint inequalities imply its guard at every \(t\). If all magnitudes equal one, the attainable signed slopes are already their own extrema. In each case the rows describe every word guard on the invariant subspace \(L\). Hence the domain they define is itself inductive. Exact enumeration and independent signed checks · Endpoint implication in Lean

Recognizing the class in the source coordinates

One can discard invisible dynamics before looking for a metric or a slack axis. For raw affine fields \(x\mapsto A_e x+d_e\) and written guard normals \(a_i\), close the row span of the \(a_i\) under the \(A_e\) and write its basis as \(B\). A field induces \((BA_e)x+Bd_e\) on \(Bx\) and \(BA_e\) factors through \(B\). All guards factor as well. Projection carries every typing to a typing of this observable system. Taking the inverse image lifts any such typing to the raw coordinates. The caller and its recession generators project by the same linear map. This argument permits arbitrary affine dynamics on the invisible directions. In the replay two hidden indices include a translation with no fixed point and an eigenvalue five, concealed by a change of basis. The full system has no common isometric frame. Its observable quotient admits one and decides the caller, including lineality in the hidden indices.

On the observable quotient, look for a simultaneous rational affine change of coordinates to \((M_e y,r_e t)\) and written guards with strictly positive slack allowance. A common fixed point is necessary and found by linear equations. Also \(|r_e|=|\det A_e|\).

If some determinant has magnitude different from one, try both signs for that field’s scalar. In a valid frame its scalar eigenspace and left eigenspace are simple and pair nontrivially. This includes a zero eigenvalue at a reset. The two lines give a candidate slack axis and a complementary measured space. Check that every other field has the same right and left directions with matching scalar, that all guards can share the chosen slack orientation, and that a common positive rational metric exists on the complement.

If all determinants have magnitude one, a candidate frame makes the full linear matrices isometries for a common positive metric. Compute such a rational \(Q\) or reject. Enumerate the finitely many sign choices \(r_e\in\{1,-1\}\). In the corresponding joint eigenspace seek an axis \(u\) with \(a_i u\le-1\) for every written guard normal. This rational linear feasibility condition is equivalent to strict negativity by scaling. The \(Q\)-orthogonal complement of \(u\) is invariant. In particular an identity field can have many possible slack axes. Choosing the first vector in an eigenbasis would miss valid guard orientations. These checks decide recognition as well as caller coverage. Metric test · Signed affine recognizer

What the compiler exploits

For a direct recursive constructor InvarGenT can recover a rotation from one field, from the product of two reflections, or by composing a neutral turn with a separate expanding field. In the recovered plane, a rational rotation has infinite order exactly when its trace is outside \(\{-2,-1,0,1,2\}\). The same test on a pair of neutral reflections can detect an infinite neutral subgroup even though each reflection has order two.

At a fixed \(t\) the orbit of the recovered guard then bounds the whole measured plane of any invariant section. Every polyhedrally typable point must have both measured coordinates zero. The compiler retains those two equations, nonnegative slack, and the source guards, and checks the candidate on every actual field. These necessary conditions, once verified inductive, give the greatest polyhedrally typable domain. With finite neutral action and finite total orientation group, the least-gain search also admits edges of cost one. Orientations are visited once. InvarGenT implementation

The native replay checks three affinely reindexed programs. A single neutral turn of infinite order and a pair of neutral reflections each give exactly the slack axis. Each rejects the safe point with positive slack from the opening example. A neutral sixth turn gives its full hexagon. Z3 checks the exported domain in both directions, and two ordinary aliases reuse it. The general signed decision and recognition procedures run separately in Python. For the Table 4.4 feedback loop, the remaining question is how to choose among these verified jumps and ordinary abduction when neither answer covers the other. One can also decide whether a single greatest typing covers all the individually typable callers. Greatest-type criterion and finite unfolding Source and replay

python3 thesis-review-63.py
python3 thesis-review-63.py --compiler /path/to/InvarGenT.native