Red-wire shades and their propagation #
Each red edge of a Robinson quarter carries a light or dark shade. Straight wires and corners preserve shades; crossings require opposite shades. A locally allowed matching assignment therefore respects the parity of each red-graph path, and every rectangular oriented red cycle carries one shade around its boundary.
The coarsening results assume ValidShadeGrid (iterateRefine 2 grid) fine.
Existence of such a decoration is established only by the later Canonical/*
construction; this module proves preservation conditional on that hypothesis.
Main definitions #
ShadeStateandallowedFor: quarter shades and the local decoration rule.ValidShadeGrid: a locally allowed matching shade assignment.CycleShade: uniform shades on the inward corners of a rectangular board.ValidPortLabeling: a parity-consistent labeling with the prescribed incidence.
Main results #
CycleOn.exists_cycleShade: every oriented red cycle has a uniform shade.CycleShade.south_atand the other side lemmas propagate that shade along the complete boundary.Path.sound: path parity determines shade equality or opposition.ValidPortLabeling.validShadeGrid: consistent port labels give valid shades.ValidShadeGrid.coarsenandCycleShade.coarsen: coarsening through two substitutions preserves matching shade rules and the shade of every oriented cycle.
References #
The shading rules are after [JV20], §3.3, Figures 17–18 (manuscript pp. 24, 26–28).
Prior formalization: lean-wang,
revision 64268a3, modules Closed104.RedShades, RedShadePaths, RedShadeCycles and
RedShadeGraph, RedShadeGraphCoarsening, SignalCorridors, Signals and ShadedSignals.
These are local decoration and propagation steps of the corrected Robinson scaffold, not the
seed-removal theorem.
The two shades of a red wire.
Instances For
Both shades, in light/dark order for finite enumeration.
Every shade occurs in the finite enumeration.
The two wire shades form a finite type.
Optional shade carried by each edge of one quarter tile.
Shade on the west edge, absent when there is no red wire.
Shade on the east edge.
Shade on the south edge.
Shade on the north edge.
Every four-edge shade state, in west/east/south/north order.
Every four-edge shade state occurs in the enumeration.
Local rule with the thick component made explicit for proof reuse.
Swap the two wire shades without changing port incidence.
Swapping both shades preserves the local shade rules.
The incidence, transmission and crossing conditions of one allowed quarter.
West labels are present exactly where the red wire meets the west edge.
East labels have exactly the prescribed incidence.
South labels have exactly the prescribed incidence.
North labels have exactly the prescribed incidence.
A horizontal wire preserves its shade.
A vertical wire preserves its shade.
- east_south_corner_eq : cornerEast component quadrant = true → cornerSouth component quadrant = true → state.east = state.south
A southeast corner preserves its shade.
- east_north_corner_eq : cornerEast component quadrant = true → cornerNorth component quadrant = true → state.east = state.north
A northeast corner preserves its shade.
- west_south_corner_eq : cornerWest component quadrant = true → cornerSouth component quadrant = true → state.west = state.south
A southwest corner preserves its shade.
- west_north_corner_eq : cornerWest component quadrant = true → cornerNorth component quadrant = true → state.west = state.north
A northwest corner preserves its shade.
- crossing_opposite : hasHorizontal component quadrant = true → hasVertical component quadrant = true → state.west ≠ state.south
The two wires at a crossing have opposite shades.
The Boolean local checker expresses exactly the named shading conditions.
Local red-path incidence, propagation, corner, and crossing rules.
A locally allowed, edge-matching shade assignment over a quarter grid.
- allowed (x y : ℕ) : locallyAllowed { index := indexGrid (x / 2) (y / 2), quadrant := quadrantAt x y } (stateGrid x y) = true
Every quarter satisfies the local incidence and shade rules.
Adjacent quarters agree on horizontal shared edges.
Adjacent quarters agree on vertical shared edges.
Read the named local shading conditions at any quarter of a valid grid.
Matching and transmission on an interval identify its two boundary values.
Inward quarter coordinate of the west boundary.
Inward quarter coordinate of the east boundary.
Inward quarter coordinate of the south boundary.
Inward quarter coordinate of the north boundary.
The inward south quarter has its north-facing bit set.
The inward north quarter has its south-facing bit set.
The inward west quarter has its east-facing bit set.
The inward east quarter has its west-facing bit set.
The inward southwest quarter joins the east and north red edges.
The inward southeast quarter joins the west and north red edges.
The inward northeast quarter joins the west and south red edges.
The inward northwest quarter joins the east and south red edges.
Every strict interior quarter on the south side carries a horizontal wire.
Every strict interior quarter on the north side carries a horizontal wire.
Every strict interior quarter on the west side carries a vertical wire.
Every strict interior quarter on the east side carries a vertical wire.
Uniform shade at the four inward quarter corners of an arbitrary board.
East shade at the southwest inward corner.
West shade at the southeast inward corner.
West shade at the northeast inward corner.
East shade at the northwest inward corner.
A shade on one edge of any oriented board propagates to every corner.
Every oriented red board has one uniform light/dark corner shade.
The south side of a uniformly shaded cycle carries its corner shade.
The north side of a uniformly shaded cycle carries its corner shade.
The west side of a uniformly shaded cycle carries its corner shade.
The east side of a uniformly shaded cycle carries its corner shade.
Shade at the indicated edge port.
A locally allowed shade state has exactly the red-graph incidence at each port.
Allowed shade states have exactly the red-graph incidence.
Each graph link enforces the corresponding shade parity in a valid grid.
A parity-consistent assignment to all red-graph ports. Incidence is part of the data because match links exist independently of whether the shared edge carries a red wire.
Optional shade at each quarter-edge port.
Labels are present exactly on the geometrically prescribed red edges.
Regroup four labeled ports into the corresponding quarter shade state.
Port incidence and parity-link consistency are exactly the local shade tile and edge-matching rules.
The parity of a red-graph path determines the relation between its endpoint shades.
A bounded red-wire path relates its endpoint shades using only local validity and matching within the bounding rectangle.
Which side of a vertical red border is the board interior.
- west : HorizontalDirection
- east : HorizontalDirection
Which side of a horizontal red border is the board interior.
- south : VerticalDirection
- north : VerticalDirection
Vertical red boundary through a quarter, if any.
Horizontal red boundary through a quarter, if any.
Shade of the vertical red path through a quarter, if present.
Shade of the horizontal red path through a quarter, if present.
Selected vertical-border rule with the component made explicit.
Selected horizontal-border rule with the component made explicit.
Pull the four shades of a coarse quarter from its refined boundary ports.
A coarsened port reads its corresponding refined port.
Coarsening a valid twice-substituted assignment preserves all shade rules and matches.
A uniformly shaded refined cycle induces the same shade on its coarse ancestor.