Documentation

CslibFrontier.Computability.WangTile.Robinson.RedPaths.Certificates

Checked red-path connectivity through substitution #

Finite predecessor forests certify red-port connectivity in every corrected Robinson parent's two-substitution block. Each row stores one edge to an earlier row, with its crossing parity. The checks cover every live port, including the central base region; the same forests certify the even east and north connectors. No search algorithm is part of the logical interface.

Main definitions #

Main results #

References #

The corrected construction is after [JV20], §§3.2–3.3, Figures 16–18 (manuscript pp. 26–28). Prior formalization: lean-wang, revision 64268a3, RedShadeGraphCertificate, RedShadeGraphLocalCoverage, RedShadeGraphRefinement, RedShadeGraphPathRefinement, RedShadeGraphTranslation, RedShadeGraphCoarsening and CanonicalOddShadeBase. The predecessor compression is original; its finite input derives from that revision's RedShadeGraphPathWitnesses (including oddNodes) and keeps every port and crossing parity unchanged.

Constant grid with the specified parent tile.

The grid obtained by substituting a constant parent grid twice.

theorem Cslib.WangTile.Robinson.iterateRefine_two_local (grid : ℕ → ℕ → Index) (x y : ℕ) :
iterateRefine 2 grid x y = fineGrid (grid (x / 4) (y / 4)) (x % 4) (y % 4)

Two substitution steps depend only on the containing parent and local block coordinates.

Embed an old quarter coordinate into its macrocell's southwest two positions.

The sparse embedded old port, retaining its side.

All ports in the specified quarter rectangle.

theorem Cslib.WangTile.Robinson.mem_portsIn_iff {p : Port} {width height : ℕ} :
p ∈ portsIn width height ↔ PortInBounds p width height

A port is listed in a rectangle exactly when both its coordinates are in bounds.

A strict bottom-side port of the cycle created in a depth-two block.

The new cycle source and the sparse copies of every live old port.

theorem Cslib.WangTile.Robinson.exists_boundedPath (parent : Index) {target : Port} (mem : target ∈ portsIn 8 8) (present : portPresent (fineGrid parent) target = true) :
∃ source ∈ sources parent, ∃ (parity : Bool), BoundedPath (fineGrid parent) 8 8 source target parity

Every live port in a two-substitution block has a bounded path from the new cycle or an inherited live old port.

theorem Cslib.WangTile.Robinson.base_exists_boundedPath {target : Port} (west : 2 ≤ target.x) (east : target.x < 6) (south : 2 ≤ target.y) (north : target.y < 6) (present : portPresent (fineGrid 0) target = true) :
∃ (parity : Bool), BoundedPath (fineGrid 0) 8 8 cycleSource target parity

Every live port in the central 4 × 4 region of parent zero's block belongs to the newly created cycle component.

theorem Cslib.WangTile.Robinson.odd_base_exists_boundedPath {target : Port} (west : 4 ≤ target.x) (east : target.x < 12) (south : 4 ≤ target.y) (north : target.y < 12) (present : portPresent (iterateRefine 4 fun (x x_1 : ℕ) => 0) target = true) :
∃ (source : Port) (parity : Bool), source ∈ [{ x := 5, y := 5, side := Side.east }, { x := 12, y := 5, side := Side.west }, { x := 12, y := 12, side := Side.west }, { x := 5, y := 12, side := Side.east }] ∧ BoundedPath (iterateRefine 4 fun (x x_1 : ℕ) => 0) 16 16 source target parity

Every live port in the odd root's central square has a bounded path from a root corner. This is the finite base case of the odd-phase shade comparison, after lean-wang's CanonicalOddShadeBase.exists_boundedPath at revision 64268a3.

theorem Cslib.WangTile.Robinson.source_cases {parent : Index} {source : Port} (h : source ∈ sources parent) :
source = cycleSource ∨ ∃ old ∈ portsIn 2 2, portPresent (coarseGrid parent) old = true ∧ source = sparsePort old

The two possible origins of a local coverage path.

def Cslib.WangTile.Robinson.translatePort (port : Port) (offsetX offsetY : ℕ) :

Translate a quarter port without changing its side.

theorem Cslib.WangTile.Robinson.boundedPath_translate {grid other : ℕ → ℕ → Index} {width height offsetX offsetY : ℕ} (hx : offsetX % 2 = 0) (hy : offsetY % 2 = 0) (componentsEq : ∀ (x y : ℕ), x < width → y < height → componentAt grid x y = componentAt other (offsetX + x) (offsetY + y)) {first second : Port} {parity : Bool} (path : BoundedPath grid width height first second parity) :
Path other (translatePort first offsetX offsetY) (translatePort second offsetX offsetY) parity

Transport a bounded path to any even translate with the same local components.

theorem Cslib.WangTile.Robinson.componentAt_two_block (grid : ℕ → ℕ → Index) (bx by₀ x y : ℕ) (hx : x < 8) (hy : y < 8) :
componentAt (iterateRefine 2 grid) (8 * bx + x) (8 * by₀ + y) = componentAt (fineGrid (grid bx by₀)) x y

A twice-substituted macrocell depends only on its old parent tile.

theorem Cslib.WangTile.Robinson.boundedPath_two_block (grid : ℕ → ℕ → Index) (blockX blockY : ℕ) {first target : Port} {parity : Bool} (path : BoundedPath (fineGrid (grid blockX blockY)) 8 8 first target parity) :
Path (iterateRefine 2 grid) (translatePort first (8 * blockX) (8 * blockY)) (translatePort target (8 * blockX) (8 * blockY)) parity

A checked local route transplanted into the corresponding arbitrary macrocell.

The sparse old quarters retain their exact thick component.

An east/north port is moved to the macrocell boundary when it exits an old tile.

Side-sensitive refinement: west/south stay sparse, east/north reach the block boundary.

theorem Cslib.WangTile.Robinson.portPresent_local (grid : ℕ → ℕ → Index) (port : Port) :
portPresent (coarseGrid (grid (port.x / 2) (port.y / 2))) { x := port.x % 2, y := port.y % 2, side := port.side } = portPresent grid port

Port incidence depends only on the containing tile and its local quarter.

theorem Cslib.WangTile.Robinson.portPresent_two_block (grid : ℕ → ℕ → Index) (blockX blockY : ℕ) (port : Port) (hx : port.x < 8) (hy : port.y < 8) :
portPresent (fineGrid (grid blockX blockY)) port = portPresent (iterateRefine 2 grid) (translatePort port (8 * blockX) (8 * blockY))

Port incidence is preserved when a bounded local block is embedded in a refined grid.

theorem Cslib.WangTile.Robinson.refinedPort_present (grid : ℕ → ℕ → Index) (port : Port) :

The side-sensitive refined image carries a red wire exactly when the old port does.

theorem Cslib.WangTile.Robinson.livePortPath (grid : ℕ → ℕ → Index) (port : Port) (live : portPresent grid port = true) :

A live old port reaches its side-sensitive refined image with even parity.

theorem Cslib.WangTile.Robinson.Link.refine {grid : ℕ → ℕ → Index} {first second : Port} {parity : Bool} (link : Link grid first second parity) :
Path (iterateRefine 2 grid) (refinedPort first) (refinedPort second) parity

Every coarse link refines to a fine path with the same crossing parity.

theorem Cslib.WangTile.Robinson.Path.refine {grid : ℕ → ℕ → Index} {first second : Port} {parity : Bool} (path : Path grid first second parity) :
Path (iterateRefine 2 grid) (refinedPort first) (refinedPort second) parity

Two substitutions preserve the crossing parity of every red path.