Documentation

CslibFrontier.Computability.WangTile.Routing

Routed scaffolds and generic seed removal #

A finite scaffold assigns a routing role to each tile. Pairing its edge colours with payload colours lets crossings carry payload tiles and wires transmit one colour. Inactive edges use zero or a colour occurring in the payload palette.

Main definitions #

Main results #

References #

Restructured from lean-wang, revision 64268a3, routed scaffolds and its PointedCarrierAddressing and PointedPlane modules. The construction is a step of the seed-removal argument in [JV20], §3.3, pp. 26–29, after [Rob71]. The roles separate crossings from intervening wire cells, and the two obligations isolate the arbitrarily large seeded-square and pointed-plane construction steps; no concrete scaffold obligations are assumed proved here. For the corrected Robinson scaffold, the later Forcing and Realization modules must establish these obligations.

A tile's payload role: unconstrained, a wire, a crossing, or a seeded crossing.

Whether the role prescribes horizontal payload data.

Whether the role prescribes vertical payload data.

A finite scaffold with an assigned payload role at each tile.

def Cslib.WangTile.layer (base payload : WangTile) :

Pair scaffold and payload colours on each edge, in that order.

All tiles whose four colours are zero or occur on some payload tile.

Payloads allowed at a scaffold tile. Corners require the seed to belong to the palette.

Finite routed combination, with scaffold colour first in each Nat.pair edge code.

theorem Cslib.WangTile.mem_combine {S : RoutedScaffold} {I : SeededInstance} {t : WangTile} :
t ∈ combine S I ↔ ∃ b ∈ S.tiles, ∃ p ∈ routedPayloads S I b, b.layer p = t

Membership exposes the two finite layers and the local payload constraint.

Every input tile belongs to the palette completed under independent edge choices.

The local role constraint, with explicit finite colour bounds on inactive edges.

The combination is primitive recursive on the seeded instance code: only the finitely many roles on the fixed scaffold alphabet matter, so no computability premise on S.role is needed.

A matching plane, bundled for geometric constructions. This uses exactly TilesPlane.

The bundled and existential plane predicates describe the same tilings.

A matching routed plane separated into its scaffold and payload layers.

Decode the two layers of a combined tiling; edge pairing preserves both matchings.

A finite grid whose crossings are linked by horizontal and vertical payload wires.

The logical address on the outgoing horizontal side of a carrier.

The logical address on the outgoing vertical side of a carrier.

A scaffold square with logical crossing and wire addresses. A wire transmits the outgoing colour of its source. Entering the next crossing advances that address by one in the relevant axis. Only pairs of cells carrying that axis impose an equation.

Every combined plane yields seeded payload squares of every positive side length.

Every payload plane with the seed at the origin lifts to a combined plane.

Extract a seeded payload square by propagating colours along each interval of wires.

theorem Cslib.WangTile.forces_of_routedGrids {S : RoutedScaffold} (grids : ∀ (P : Plane S.tiles) (n : ℕ), Nonempty (RoutedGrid S P n)) :

Arbitrarily large routed grids in every scaffold plane imply forward forcing.

def Cslib.WangTile.Rectangle.crop {τ : List WangTile} {w h w' h' : ℕ} (R : Rectangle τ w h) (hw : w' ≤ w) (hh : h' ≤ h) :
Rectangle τ w' h'

Restrict a matching patch to a smaller rectangle at the same southwest corner.

theorem Cslib.WangTile.realizes_of_addressedSquares {S : RoutedScaffold} (squares : ∀ (n : ℕ), ∃ (m : ℕ), n ≤ m ∧ Nonempty (AddressedSquare S m)) :

Cofinal addressed squares realize every pointed payload plane. Flexible edges are filled from neighboring carriers or zero, then ordinary finite-square compactness gives the plane.

A generic seed-removal step, not the domino theorem: both geometric obligations remain hypotheses. Finite extended squares decode to source squares, while a source quadrant extends to the pointed plane required by realization.