Documentation

CslibFrontier.Computability.WangTile.Robinson.Canonical.Patches

Canonical decorated Robinson patches #

The selected closed substitution produces matching corrected tiles and shade blocks. Nearest selected borders determine obstruction signals along each row and column. Pairing these three layers gives finite scaffold patches of unbounded size.

Main definitions #

Main results #

References #

Restructured from lean-wang, revision 64268a3: its ShadedSubstitutionSupertiles, ShadedSignalRectangle and ShadedSubstitutionPlane modules in the corrected Robinson development.

structure Cslib.WangTile.Robinson.Canonical.ShadeValidOn (indexGrid : ℕ → ℕ → Index) (shadeGrid : ℕ → ℕ → ShadeState) (width height : ℕ) :

The finite local shade rules needed when decorating a bounded square.

  • allowed (x y : ℕ) : x < width → y < height → locallyAllowed { index := indexGrid (x / 2) (y / 2), quadrant := quadrantAt x y } (shadeGrid x y) = true

    Every quarter in the rectangle satisfies the local shade rule.

  • hmatch (x y : ℕ) : x + 1 < width → y < height → (shadeGrid x y).east = (shadeGrid (x + 1) y).west

    Adjacent horizontal quarters inside the rectangle carry matching shades.

  • vmatch (x y : ℕ) : x < width → y + 1 < height → (shadeGrid x y).north = (shadeGrid x (y + 1)).south

    Adjacent vertical quarters inside the rectangle carry matching shades.

Position in a 4 x 4 child block, encoded in south-to-north row order.

The decorated supertile obtained by repeatedly substituting the selected 4×4 children.

Underlying corrected tile at a coordinate in the decorated supertile.

Flatten each corrected-tile shade block into its four quarter states.

The canonical index grid is the two-substitutions-per-level refinement of its root.

theorem Cslib.WangTile.Robinson.Canonical.supertileIndexGrid_eq_of_root_eq (level : ℕ) (root : Node) (coarse : ℕ → ℕ → Index) (rootEq : coarse 0 0 = root.parent) {x y : ℕ} (hx : x < 4 ^ level) (hy : y < 4 ^ level) :
supertileIndexGrid level root x y = iterateRefine (2 * level) coarse x y

Inside the root block, canonical indices agree with any grid with the same root tile.

theorem Cslib.WangTile.Robinson.Canonical.supertileNodeGrid_block (level : ℕ) (root : Node) (bx by₀ x y : ℕ) (hx : x < 4) (hy : y < 4) :
supertileNodeGrid (level + 1) root (4 * bx + x) (4 * by₀ + y) = (supertileNodeGrid level root bx by₀).child (childPosition x y)

A four-by-four tile block in a supertile is the child block of its coarser node.

The inherited sparse quarters keep the shade of their parent quarters.

theorem Cslib.WangTile.Robinson.Canonical.supertileShadeGrid_block (level : ℕ) (root : Node) (bx by₀ x y : ℕ) (hx : x < 8) (hy : y < 8) :
supertileShadeGrid (level + 1) root (8 * bx + x) (8 * by₀ + y) = supertileShadeGrid 1 (supertileNodeGrid level root bx by₀) x y

Each eight-by-eight quarter block is the first supertile of its coarser node.

theorem Cslib.WangTile.Robinson.Canonical.supertile_validShadeRectangle (level : ℕ) (root : Node) :
ShadeValidOn (supertileIndexGrid level root) (supertileShadeGrid level root) (2 * 4 ^ level) (2 * 4 ^ level)

Every canonical supertile obeys the shade rules throughout its finite square.

Orientation of the last selected border strictly before an edge.

Orientation of the first selected border in a bounded suffix.

theorem Cslib.WangTile.Robinson.Canonical.previousInterior_eq_of_none_between {interior : ℕ → Option Bool} {border position : ℕ} {orientation : Bool} (selected : interior border = some orientation) (between : ∀ (candidate : ℕ), border < candidate → candidate < position → interior candidate = none) (afterBorder : border < position) :
previousInterior interior position = some orientation

A selected border remains the previous one until another border occurs.

theorem Cslib.WangTile.Robinson.Canonical.nextInterior_eq_of_no_opposite_before {interior : ℕ → Option Bool} {position border length : ℕ} {orientation : Bool} (selected : interior border = some orientation) (noOpposite : ∀ (candidate : ℕ), position ≤ candidate → candidate < border → interior candidate ≠ some !orientation) (atMostBorder : position ≤ border) (borderBeforeEnd : border < length) :
nextInterior interior position (length - position) = some orientation

A bounded suffix has the given first orientation if a border with that orientation occurs and no opposite border precedes it.

theorem Cslib.WangTile.Robinson.Canonical.exists_interior_of_nextInterior_eq_some {interior : ℕ → Option Bool} {position fuel : ℕ} {orientation : Bool} (next : nextInterior interior position fuel = some orientation) :
∃ (candidate : ℕ), position ≤ candidate ∧ candidate < position + fuel ∧ interior candidate = some orientation

A successful suffix scan witnesses an actual selected border in the scanned interval.

Canonical edge flow determined by the nearest selected borders. The clear case is the interval before a closing border whose previous border is opening or absent.

theorem Cslib.WangTile.Robinson.Canonical.intervalEdge_eq_none_iff (interior : ℕ → Option Bool) (length position : ℕ) :
intervalEdge interior length position = SignalFlow.none ↔ nextInterior interior position (length - position) = some false ∧ previousInterior interior position ≠ some false

The exact nearest-border condition for a clear edge.

theorem Cslib.WangTile.Robinson.Canonical.intervalEdge_eq_none_of_between_borders {interior : ℕ → Option Bool} {length opening closing position : ℕ} (openingBorder : interior opening = some true) (closingBorder : interior closing = some false) (noBorder : ∀ (candidate : ℕ), opening < candidate → candidate < closing → interior candidate = none) (afterOpening : opening < position) (atMostClosing : position ≤ closing) (closingBeforeEnd : closing < length) :
intervalEdge interior length position = SignalFlow.none

Every edge between consecutive opening and closing borders is clear.

theorem Cslib.WangTile.Robinson.Canonical.intervalEdge_allowed (interior : ℕ → Option Bool) (length position : ℕ) (hposition : position < length) :
flowAllowed (interior position) (intervalEdge interior length position) (intervalEdge interior length (position + 1)) = true

Nearest-border flows satisfy the one-dimensional local obstruction rule.

theorem Cslib.WangTile.Robinson.Canonical.interior_eq_none_of_adjacent_clear (interior : ℕ → Option Bool) {length position : ℕ} (hposition : position < length) (hleft : intervalEdge interior length position = SignalFlow.none) (hright : intervalEdge interior length (position + 1) = SignalFlow.none) :
interior position = none

A selected border cannot have clear canonical signal edges on both sides.

Side length in quarter tiles of a decorated supertile.

Selected vertical-border orientation along a quarter-tile row.

Selected horizontal-border orientation along a quarter-tile column.

The three-layer canonical site. Its four signal edges use the nearest selected borders.

A canonical three-layer patch of the concrete scaffold, with matching edges and local shade/signal allowance proved from the closed decorated substitution.

theorem Cslib.WangTile.Robinson.Canonical.lt_side (level : ℕ) :
level < side level

Canonical patch sides grow beyond their substitution level.

The concrete decorated Robinson scaffold has a plane tiling, by compactness of its canonical finite squares. This proves scaffold nonemptiness, not payload realization.