Quarter ports and oriented red paths #
The corrected Robinson tiles have four quarter sites. Red wires occupy specific lanes and corners; walks through their ports record the parity of horizontal-to-vertical crossings. A bounded walk keeps every intermediate port inside its stated rectangle.
Main definitions #
QuarterIndex: a tile index and its named quadrant.CycleOn: rectangular cycles with their exact inward-facing red lanes.Path,BoundedPath: parity-labelled red walks.
Main results #
subdivideTileAt_horizontal_iff,subdivideTileAt_vertical_iff: exact quarter matching.CycleOn.refine: substitution preserves oriented cycles and doubles them.fixed_cycle: every twice-substituted tile contains an oriented cycle.
References #
The red-wire construction is after [JV20], §§3.2–3.3, Figures 16–18
(manuscript pp. 26–28).
Prior formalization: lean-wang,
revision 64268a3, modules Closed104.TileSubdivision, QuarterGeometry,
Quarters, RedCycleExpansion, RedCycleScaling, RedBoards,
OrientedRedCycles, RedShadeGraph and RedShadeGraphBoundedPath.
The port and crossing parity semantics are unchanged; wire incidence is independent of shades.
Internal seam colours use this library's WangTile code, in top/bottom/left/right order,
an injective recolouring of the source's north/south/east/west code.
Horizontal coordinate of a quadrant: false for west, true for east.
Vertical coordinate of a quadrant: false for south, true for north.
All four quarter positions, in southwest/southeast/northwest/northeast order.
Every quadrant occurs in the enumeration.
Horizontal macro-edge colors are split by west/east half.
Vertical macro-edge colors are split by south/north half.
Internal vertical seam color between west and east quadrants.
Internal horizontal seam color between south and north quadrants.
The quadrant tile of t in the 2x2 subdivision.
Matching quarter edges identify internal parents or matching external macro-edges.
The vertical counterpart of quarter-edge matching.
A quarter of one indexed tile of the corrected Robinson alphabet.
The ordinary Wang tile encoding a quarter and its internal seams.
Membership of a red lane in a thick component; green lanes are omitted.
Red vertical path in the west (false) or east (true) half of a tile.
Red horizontal path in the south (false) or north (true) half of a tile.
Red corner path entering the west edge of this quarter.
Red corner path entering the east edge of this quarter.
Red corner path entering the south edge of this quarter.
Red corner path entering the north edge of this quarter.
A horizontal red wire crosses this quarter.
A vertical red wire crosses this quarter.
A red wire meets the west edge of this quarter.
A red wire meets the east edge of this quarter.
A red wire meets the south edge of this quarter.
A red wire meets the north edge of this quarter.
The quarter selected by the parity of its coordinates.
The horizontal bit of a quarter is the parity of its horizontal coordinate.
The vertical bit of a quarter is the parity of its vertical coordinate.
Thick component of an indexed tile.
The southwest child preserves the complete old thick component.
A rectangular red cycle with the four inward-facing lane orientations.
- west_lt_east : west < east
Positive horizontal extent.
- south_lt_north : south < north
Positive vertical extent.
Southwest inward corner.
Southeast inward corner.
Northwest inward corner.
Northeast inward corner.
- southLane (x : ℕ) : west < x → x < east → containsLine (indexThick (grid x south)) ThickLine.r1 = true
North-facing horizontal lane on the south side.
- northLane (x : ℕ) : west < x → x < east → containsLine (indexThick (grid x north)) ThickLine.r3 = true
South-facing horizontal lane on the north side.
- westLane (y : ℕ) : south < y → y < north → containsLine (indexThick (grid west y)) ThickLine.r0 = true
East-facing vertical lane on the west side.
- eastLane (y : ℕ) : south < y → y < north → containsLine (indexThick (grid east y)) ThickLine.r2 = true
West-facing vertical lane on the east side.
Every twice-substituted tile contains the same oriented red board.
The four possible port sides form a finite alphabet.
One local shade-preserving or shade-reversing connection.
- horizontalMatch {indexGrid : ℕ → ℕ → Index} (x y : ℕ) : Link indexGrid { x := x, y := y, side := Side.east } { x := x + 1, y := y, side := Side.west } false
- verticalMatch {indexGrid : ℕ → ℕ → Index} (x y : ℕ) : Link indexGrid { x := x, y := y, side := Side.north } { x := x, y := y + 1, side := Side.south } false
- horizontal {indexGrid : ℕ → ℕ → Index} (x y : ℕ) (hpath : hasHorizontal (componentAt indexGrid x y) (quadrantAt x y) = true) : Link indexGrid { x := x, y := y, side := Side.west } { x := x, y := y, side := Side.east } false
- vertical {indexGrid : ℕ → ℕ → Index} (x y : ℕ) (hpath : hasVertical (componentAt indexGrid x y) (quadrantAt x y) = true) : Link indexGrid { x := x, y := y, side := Side.south } { x := x, y := y, side := Side.north } false
- westNorth {indexGrid : ℕ → ℕ → Index} (x y : ℕ) (hwest : cornerWest (componentAt indexGrid x y) (quadrantAt x y) = true) (hnorth : cornerNorth (componentAt indexGrid x y) (quadrantAt x y) = true) : Link indexGrid { x := x, y := y, side := Side.west } { x := x, y := y, side := Side.north } false
- westSouth {indexGrid : ℕ → ℕ → Index} (x y : ℕ) (hwest : cornerWest (componentAt indexGrid x y) (quadrantAt x y) = true) (hsouth : cornerSouth (componentAt indexGrid x y) (quadrantAt x y) = true) : Link indexGrid { x := x, y := y, side := Side.west } { x := x, y := y, side := Side.south } false
- eastNorth {indexGrid : ℕ → ℕ → Index} (x y : ℕ) (heast : cornerEast (componentAt indexGrid x y) (quadrantAt x y) = true) (hnorth : cornerNorth (componentAt indexGrid x y) (quadrantAt x y) = true) : Link indexGrid { x := x, y := y, side := Side.east } { x := x, y := y, side := Side.north } false
- eastSouth {indexGrid : ℕ → ℕ → Index} (x y : ℕ) (heast : cornerEast (componentAt indexGrid x y) (quadrantAt x y) = true) (hsouth : cornerSouth (componentAt indexGrid x y) (quadrantAt x y) = true) : Link indexGrid { x := x, y := y, side := Side.east } { x := x, y := y, side := Side.south } false
- crossing {indexGrid : ℕ → ℕ → Index} (x y : ℕ) (hhorizontal : hasHorizontal (componentAt indexGrid x y) (quadrantAt x y) = true) (hvertical : hasVertical (componentAt indexGrid x y) (quadrantAt x y) = true) : Link indexGrid { x := x, y := y, side := Side.west } { x := x, y := y, side := Side.south } true
- symm {indexGrid : ℕ → ℕ → Index} {first second : Port} {parity : Bool} : Link indexGrid first second parity → Link indexGrid second first parity
A finite red-wire walk, labelled by the parity of its crossings.
- refl {indexGrid : ℕ → ℕ → Index} (port : Port) : Path indexGrid port port false
- ofLink {indexGrid : ℕ → ℕ → Index} {first second : Port} {parity : Bool} : Link indexGrid first second parity → Path indexGrid first second parity
- trans {indexGrid : ℕ → ℕ → Index} {first second third : Port} {firstParity secondParity : Bool} : Path indexGrid first second firstParity → Path indexGrid second third secondParity → Path indexGrid first third (firstParity ^^ secondParity)
A port lies in the quarter rectangle with the specified width and height.
A parity-labelled red walk whose every endpoint stays in a fixed rectangle.
- refl {indexGrid : ℕ → ℕ → Index} {width height : ℕ} (port : Port) (hport : PortInBounds port width height) : BoundedPath indexGrid width height port port false
- ofLink {indexGrid : ℕ → ℕ → Index} {width height : ℕ} {first second : Port} {parity : Bool} (link : Link indexGrid first second parity) (hfirst : PortInBounds first width height) (hsecond : PortInBounds second width height) : BoundedPath indexGrid width height first second parity
- trans {indexGrid : ℕ → ℕ → Index} {width height : ℕ} {first second third : Port} {firstParity secondParity : Bool} (firstPath : BoundedPath indexGrid width height first second firstParity) (secondPath : BoundedPath indexGrid width height second third secondParity) : BoundedPath indexGrid width height first third (firstParity ^^ secondParity)
Forgetting the rectangle bounds gives an ordinary red walk.
The first endpoint of a bounded red walk lies in its bounding rectangle.