Unit neighbors at canonical endpoint ports #
Main definitions #
Cslib.Orthogonal.Layout.portStep: the left, upward and right unit port directions.
Main results #
Cslib.Orthogonal.infix_head_pair_getD,.infix_last_pair_getD: indexed endpoint neighbors from a consecutive pair in a path without repetitions.Cslib.Orthogonal.Layout.fanWalk,.returnFanWalk: the exact two-step endpoint fans.
theorem Cslib.Orthogonal.infix_head_pair_getD {r : Route} (hn : List.Nodup r) {a b : Point} (hp : [a, b] <:+: r) (hh : List.head? r = some a) (d : Point) :
A consecutive pair starting at the unique first point determines index one.
theorem Cslib.Orthogonal.infix_last_pair_getD {r : Route} (hn : List.Nodup r) {a b : Point} (hp : [a, b] <:+: r) (hh : List.getLast? r = some b) (d : Point) :
A consecutive pair ending at the unique final point determines the penultimate index.
The unit directions of the left, upward and right canonical endpoint ports.
Instances For
Distinct ports have distinct unit directions.