Documentation

CslibFrontier.Computability.WangTile.Robinson.Carrier.Addresses

Logical addresses on canonical Robinson carriers #

The smallest enclosing frame determines the row and column wires. Counting the free coordinates assigns integer addresses centered at the frame center. The nearest-border signals agree with those arithmetic wires, and neighboring carriers obey the address step equations needed to transport a pointed payload.

Main definitions #

Main results #

References #

Ported from lean-wang revision 64268a3, ShadedCarrierHierarchy (lines 196–392), ShadedCarrierBorderIntervals (lines 32–628) and ShadedCarrierHierarchyAddressing (lines 28–511). AddressedSquare replaces the source's SquareAddressing; the carrier arithmetic and wire-equation arguments closely follow the source.

A row's owner frame carries horizontally through every nonboundary column inside that frame, including across complete nested frames.

A column's owner frame carries vertically through every nonboundary row inside that frame, including across complete nested frames.

Carrier role predicted by the nested frame hierarchy. The corner marker is deliberately erased to .active; marker placement is a separate centered coordinate property.

Forget whether a crossing carries the distinguished corner marker.

Logical crossing address predicted by the row and column owner frames.

theorem Cslib.WangTile.Robinson.Carrier.point_eq_zero_of_centerResidues {level x y depth : ℕ} (rowOwner : depthAt (level - 1) y = some depth) (columnOwner : depthAt (level - 1) x = some depth) (xCenter : x % period depth = 2 * scale depth + 1) (yCenter : y % period depth = 2 * scale depth + 1) :
point level x y = (0, 0)

A crossing at the centers of both owner frames has logical address zero.

def Cslib.WangTile.Robinson.Carrier.addressedSquareOfHierarchy {S : RoutedScaffold} {n level : ℕ} (base : Rectangle S.tiles (n + 1) (n + 1)) (roleEq : ∀ (i j : Fin (n + 1)), eraseCorner (S.role (base.tile i j)) = carrierRole level ↑i ↑j) (cornerZero : ∀ (i j : Fin (n + 1)), S.role (base.tile i j) = RouteRole.corner → point level ↑i ↑j = (0, 0)) :

Turn a concrete square whose roles follow the hierarchy into an addressed carrier square. The concrete substitution proof only has to supply role recognition and centered corner markers.

@[simp]
theorem Cslib.WangTile.Robinson.Carrier.addressedSquareOfHierarchy_base {S : RoutedScaffold} {n level : ℕ} (base : Rectangle S.tiles (n + 1) (n + 1)) (roleEq : ∀ (i j : Fin (n + 1)), eraseCorner (S.role (base.tile i j)) = carrierRole level ↑i ↑j) (cornerZero : ∀ (i j : Fin (n + 1)), S.role (base.tile i j) = RouteRole.corner → point level ↑i ↑j = (0, 0)) :
(addressedSquareOfHierarchy base roleEq cornerZero).base = base

Addressing a square preserves its underlying matching patch.

theorem Cslib.WangTile.Robinson.Carrier.intervalEdge_pair_iff_horizontalCarrier {level coordinate transverse : ℕ} (coordinate_lt : coordinate < Canonical.side level) :
Canonical.intervalEdge (fun (x : ℕ) => selectedBorder level x transverse) (Canonical.side level) coordinate = SignalFlow.none ∧ Canonical.intervalEdge (fun (x : ℕ) => selectedBorder level x transverse) (Canonical.side level) (coordinate + 1) = SignalFlow.none ↔ isHorizontalCarrier level coordinate transverse = true

Both canonical signal edges are clear exactly on an arithmetic horizontal carrier.